diff --git a/assets/index-UNE6SGz_.js b/assets/index-UNE6SGz_.js new file mode 100644 index 0000000..b0b3353 --- /dev/null +++ b/assets/index-UNE6SGz_.js @@ -0,0 +1,69 @@ +function df(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Ms(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var Fs={exports:{}},xl={},Us={exports:{}},R={};/** + * @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 sr=Symbol.for("react.element"),hf=Symbol.for("react.portal"),mf=Symbol.for("react.fragment"),vf=Symbol.for("react.strict_mode"),gf=Symbol.for("react.profiler"),yf=Symbol.for("react.provider"),wf=Symbol.for("react.context"),xf=Symbol.for("react.forward_ref"),kf=Symbol.for("react.suspense"),Sf=Symbol.for("react.memo"),Ef=Symbol.for("react.lazy"),mu=Symbol.iterator;function Cf(e){return e===null||typeof e!="object"?null:(e=mu&&e[mu]||e["@@iterator"],typeof e=="function"?e:null)}var $s={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vs=Object.assign,Bs={};function hn(e,t,n){this.props=e,this.context=t,this.refs=Bs,this.updater=n||$s}hn.prototype.isReactComponent={};hn.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")};hn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function As(){}As.prototype=hn.prototype;function vi(e,t,n){this.props=e,this.context=t,this.refs=Bs,this.updater=n||$s}var gi=vi.prototype=new As;gi.constructor=vi;Vs(gi,hn.prototype);gi.isPureReactComponent=!0;var vu=Array.isArray,Ws=Object.prototype.hasOwnProperty,yi={current:null},Qs={key:!0,ref:!0,__self:!0,__source:!0};function Hs(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Ws.call(t,r)&&!Qs.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,q=N[H];if(0>>1;Hl(Wl,L))_tl(mr,Wl)?(N[H]=mr,N[_t]=L,H=_t):(N[H]=Wl,N[Ct]=L,H=Ct);else if(_tl(mr,L))N[H]=mr,N[_t]=L,H=_t;else break e}}return T}function l(N,T){var L=N.sortIndex-T.sortIndex;return L!==0?L:N.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],p=1,h=null,m=3,y=!1,w=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(N){for(var T=n(a);T!==null;){if(T.callback===null)r(a);else if(T.startTime<=N)r(a),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(a)}}function g(N){if(x=!1,d(N),!w)if(n(s)!==null)w=!0,Bl(S);else{var T=n(a);T!==null&&Al(g,T.startTime-N)}}function S(N,T){w=!1,x&&(x=!1,f(O),O=-1),y=!0;var L=m;try{for(d(T),h=n(s);h!==null&&(!(h.expirationTime>T)||N&&!Oe());){var H=h.callback;if(typeof H=="function"){h.callback=null,m=h.priorityLevel;var q=H(h.expirationTime<=T);T=e.unstable_now(),typeof q=="function"?h.callback=q:h===n(s)&&r(s),d(T)}else r(s);h=n(s)}if(h!==null)var hr=!0;else{var Ct=n(a);Ct!==null&&Al(g,Ct.startTime-T),hr=!1}return hr}finally{h=null,m=L,y=!1}}var P=!1,j=null,O=-1,Q=5,z=-1;function Oe(){return!(e.unstable_now()-zN||125H?(N.sortIndex=L,t(a,N),n(s)===null&&N===n(a)&&(x?(f(O),O=-1):x=!0,Al(g,L-H))):(N.sortIndex=q,t(s,N),w||y||(w=!0,Bl(S))),N},e.unstable_shouldYield=Oe,e.unstable_wrapCallback=function(N){var T=m;return function(){var L=m;m=T;try{return N.apply(this,arguments)}finally{m=L}}}})(Js);Xs.exports=Js;var Mf=Xs.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 Ff=E,xe=Mf;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"),xo=Object.prototype.hasOwnProperty,Uf=/^[: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]*$/,yu={},wu={};function $f(e){return xo.call(wu,e)?!0:xo.call(yu,e)?!1:Uf.test(e)?wu[e]=!0:(yu[e]=!0,!1)}function Vf(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 Bf(e,t,n,r){if(t===null||typeof t>"u"||Vf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var xi=/[\-:]([a-z])/g;function ki(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(xi,ki);re[t]=new fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xi,ki);re[t]=new fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xi,ki);re[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Si(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` +`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Kl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?jn(e):""}function Af(e){switch(e.tag){case 5:return jn(e.type);case 16:return jn("Lazy");case 13:return jn("Suspense");case 19:return jn("SuspenseList");case 0:case 2:case 15:return e=Yl(e.type,!1),e;case 11:return e=Yl(e.type.render,!1),e;case 1:return e=Yl(e.type,!0),e;default:return""}}function Co(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 Wt:return"Fragment";case At:return"Portal";case ko:return"Profiler";case Ei:return"StrictMode";case So:return"Suspense";case Eo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bs:return(e.displayName||"Context")+".Consumer";case qs:return(e._context.displayName||"Context")+".Provider";case Ci:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _i:return t=e.displayName||null,t!==null?t:Co(e.type)||"Memo";case nt:t=e._payload,e=e._init;try{return Co(e(t))}catch{}}return null}function Wf(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 Co(t);case 8:return t===Ei?"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 yt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ta(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qf(e){var t=ta(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=Qf(e))}function na(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ta(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hr(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 _o(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ku(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yt(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 ra(e,t){t=t.checked,t!=null&&Si(e,"checked",t,!1)}function No(e,t){ra(e,t);var n=yt(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")?Po(e,t.type,n):t.hasOwnProperty("defaultValue")&&Po(e,t.type,yt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Su(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 Po(e,t,n){(t!=="number"||Hr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var On=Array.isArray;function en(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=wr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rn={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},Hf=["Webkit","ms","Moz","O"];Object.keys(Rn).forEach(function(e){Hf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rn[t]=Rn[e]})});function ua(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Rn.hasOwnProperty(e)&&Rn[e]?(""+t).trim():t+"px"}function sa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ua(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Kf=A({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 To(e,t){if(t){if(Kf[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 Lo(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 Ro=null;function Ni(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zo=null,tn=null,nn=null;function _u(e){if(e=fr(e)){if(typeof zo!="function")throw Error(k(280));var t=e.stateNode;t&&(t=_l(t),zo(e.stateNode,e.type,t))}}function aa(e){tn?nn?nn.push(e):nn=[e]:tn=e}function ca(){if(tn){var e=tn,t=nn;if(nn=tn=null,_u(e),t)for(e=0;e>>=0,e===0?32:31-(rd(e)/ld|0)|0}var xr=64,kr=4194304;function Tn(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 Xr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Tn(u):(o&=i,o!==0&&(r=Tn(o)))}else i=n&~l,i!==0?r=Tn(i):o!==0&&(r=Tn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ar(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-De(t),e[t]=n}function sd(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=Dn),Du=" ",Iu=!1;function Ta(e,t){switch(e){case"keyup":return Md.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function La(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qt=!1;function Ud(e,t){switch(e){case"compositionend":return La(t);case"keypress":return t.which!==32?null:(Iu=!0,Du);case"textInput":return e=t.data,e===Du&&Iu?null:e;default:return null}}function $d(e,t){if(Qt)return e==="compositionend"||!Di&&Ta(e,t)?(e=ja(),Mr=Li=it=null,Qt=!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=$u(n)}}function Ia(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ia(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ma(){for(var e=window,t=Hr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hr(e.document)}return t}function Ii(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 Gd(e){var t=Ma(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ia(n.ownerDocument.documentElement,n)){if(r!==null&&Ii(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Vu(n,o);var i=Vu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ht=null,$o=null,Mn=null,Vo=!1;function Bu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||Ht==null||Ht!==Hr(r)||(r=Ht,"selectionStart"in r&&Ii(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}),Mn&&Xn(Mn,r)||(Mn=r,r=qr($o,"onSelect"),0Gt||(e.current=Ko[Gt],Ko[Gt]=null,Gt--)}function M(e,t){Gt++,Ko[Gt]=e.current,e.current=t}var wt={},ue=kt(wt),he=kt(!1),zt=wt;function sn(e,t){var n=e.type.contextTypes;if(!n)return wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function el(){U(he),U(ue)}function Gu(e,t,n){if(ue.current!==wt)throw Error(k(168));M(ue,t),M(he,n)}function Ha(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Wf(e)||"Unknown",l));return A({},n,r)}function tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wt,zt=ue.current,M(ue,e),M(he,he.current),!0}function Xu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Ha(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,U(he),U(ue),M(ue,e)):U(he),M(he,n)}var We=null,Nl=!1,uo=!1;function Ka(e){We===null?We=[e]:We.push(e)}function ip(e){Nl=!0,Ka(e)}function St(){if(!uo&&We!==null){uo=!0;var e=0,t=I;try{var n=We;for(I=1;e>=i,l-=i,Qe=1<<32-De(t)+l|n<O?(Q=j,j=null):Q=j.sibling;var z=m(f,j,d[O],g);if(z===null){j===null&&(j=Q);break}e&&j&&z.alternate===null&&t(f,j),c=o(z,c,O),P===null?S=z:P.sibling=z,P=z,j=Q}if(O===d.length)return n(f,j),$&&Nt(f,O),S;if(j===null){for(;OO?(Q=j,j=null):Q=j.sibling;var Oe=m(f,j,z.value,g);if(Oe===null){j===null&&(j=Q);break}e&&j&&Oe.alternate===null&&t(f,j),c=o(Oe,c,O),P===null?S=Oe:P.sibling=Oe,P=Oe,j=Q}if(z.done)return n(f,j),$&&Nt(f,O),S;if(j===null){for(;!z.done;O++,z=d.next())z=h(f,z.value,g),z!==null&&(c=o(z,c,O),P===null?S=z:P.sibling=z,P=z);return $&&Nt(f,O),S}for(j=r(f,j);!z.done;O++,z=d.next())z=y(j,f,O,z.value,g),z!==null&&(e&&z.alternate!==null&&j.delete(z.key===null?O:z.key),c=o(z,c,O),P===null?S=z:P.sibling=z,P=z);return e&&j.forEach(function(yn){return t(f,yn)}),$&&Nt(f,O),S}function C(f,c,d,g){if(typeof d=="object"&&d!==null&&d.type===Wt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case gr:e:{for(var S=d.key,P=c;P!==null;){if(P.key===S){if(S=d.type,S===Wt){if(P.tag===7){n(f,P.sibling),c=l(P,d.props.children),c.return=f,f=c;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===nt&&qu(S)===P.type){n(f,P.sibling),c=l(P,d.props),c.ref=_n(f,P,d),c.return=f,f=c;break e}n(f,P);break}else t(f,P);P=P.sibling}d.type===Wt?(c=Rt(d.props.children,f.mode,g,d.key),c.return=f,f=c):(g=Qr(d.type,d.key,d.props,null,f.mode,g),g.ref=_n(f,c,d),g.return=f,f=g)}return i(f);case At:e:{for(P=d.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=l(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=vo(d,f.mode,g),c.return=f,f=c}return i(f);case nt:return P=d._init,C(f,c,P(d._payload),g)}if(On(d))return w(f,c,d,g);if(xn(d))return x(f,c,d,g);jr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,d),c.return=f,f=c):(n(f,c),c=mo(d,f.mode,g),c.return=f,f=c),i(f)):n(f,c)}return C}var cn=Ja(!0),Za=Ja(!1),ll=kt(null),ol=null,Zt=null,$i=null;function Vi(){$i=Zt=ol=null}function Bi(e){var t=ll.current;U(ll),e._currentValue=t}function Xo(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 ln(e,t){ol=e,$i=Zt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function Pe(e){var t=e._currentValue;if($i!==e)if(e={context:e,memoizedValue:t,next:null},Zt===null){if(ol===null)throw Error(k(308));Zt=e,ol.dependencies={lanes:0,firstContext:e}}else Zt=Zt.next=e;return t}var Ot=null;function Ai(e){Ot===null?Ot=[e]:Ot.push(e)}function qa(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ai(t)):(n.next=l.next,l.next=n),t.interleaved=n,Je(e,r)}function Je(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 rt=!1;function Wi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ba(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 Ye(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Je(e,n)}return l=r.interleaved,l===null?(t.next=t,Ai(r)):(t.next=l.next,l.next=t),r.interleaved=t,Je(e,n)}function Ur(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,ji(e,n)}}function bu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,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 il(e,t,n,r){var l=e.updateQueue;rt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==i&&(u===null?p.firstBaseUpdate=a:u.next=a,p.lastBaseUpdate=s))}if(o!==null){var h=l.baseState;i=0,p=a=s=null,u=o;do{var m=u.lane,y=u.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:y,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=e,x=u;switch(m=t,y=n,x.tag){case 1:if(w=x.payload,typeof w=="function"){h=w.call(y,h,m);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=x.payload,m=typeof w=="function"?w.call(y,h,m):w,m==null)break e;h=A({},h,m);break e;case 2:rt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else y={eventTime:y,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(a=p=y,s=h):p=p.next=y,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(p===null&&(s=h),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Mt|=i,e.lanes=i,e.memoizedState=h}}function es(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ao.transition;ao.transition={};try{e(!1),t()}finally{I=n,ao.transition=r}}function vc(){return je().memoizedState}function cp(e,t,n){var r=mt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gc(e))yc(t,n);else if(n=qa(e,t,n,r),n!==null){var l=ae();Ie(n,e,r,l),wc(n,t,r)}}function fp(e,t,n){var r=mt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gc(e))yc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Me(u,i)){var s=t.interleaved;s===null?(l.next=l,Ai(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=qa(e,t,l,r),n!==null&&(l=ae(),Ie(n,e,r,l),wc(n,t,r))}}function gc(e){var t=e.alternate;return e===B||t!==null&&t===B}function yc(e,t){Fn=sl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ji(e,n)}}var al={readContext:Pe,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},dp={readContext:Pe,useCallback:function(e,t){return Ue().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:ns,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vr(4194308,4,fc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vr(4,2,e,t)},useMemo:function(e,t){var n=Ue();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ue();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=cp.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Ue();return e={current:e},t.memoizedState=e},useState:ts,useDebugValue:Zi,useDeferredValue:function(e){return Ue().memoizedState=e},useTransition:function(){var e=ts(!1),t=e[0];return e=ap.bind(null,e[1]),Ue().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,l=Ue();if($){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ee===null)throw Error(k(349));It&30||rc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ns(oc.bind(null,r,o,e),[e]),r.flags|=2048,rr(9,lc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ue(),t=ee.identifierPrefix;if($){var n=He,r=Qe;n=(r&~(1<<32-De(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[$e]=t,e[qn]=r,Oc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Lo(n,r),n){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;lpn&&(t.flags|=128,r=!0,Nn(o,!1),t.lanes=4194304)}else{if(!r)if(e=ul(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return oe(t),null}else 2*K()-o.renderingStartTime>pn&&n!==1073741824&&(t.flags|=128,r=!0,Nn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=V.current,M(V,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return ru(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ge&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function xp(e,t){switch(Fi(t),t.tag){case 1:return me(t.type)&&el(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(),U(he),U(ue),Ki(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hi(t),null;case 13:if(U(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));an()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(V),null;case 4:return fn(),null;case 10:return Bi(t.type._context),null;case 22:case 23:return ru(),null;case 24:return null;default:return null}}var Tr=!1,ie=!1,kp=typeof WeakSet=="function"?WeakSet:Set,_=null;function qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function li(e,t,n){try{n()}catch(r){W(e,t,r)}}var ps=!1;function Sp(e,t){if(Bo=Jr,e=Ma(),Ii(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,p=0,h=e,m=null;t:for(;;){for(var y;h!==n||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(y=h.firstChild)!==null;)m=h,h=y;for(;;){if(h===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++p===r&&(s=i),(y=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=y}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ao={focusedElem:e,selectionRange:n},Jr=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,C=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:Le(t.type,x),C);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(g){W(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return w=ps,ps=!1,w}function Un(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&li(t,n,o)}l=l.next}while(l!==r)}}function Ol(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 oi(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 Rc(e){var t=e.alternate;t!==null&&(e.alternate=null,Rc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$e],delete t[qn],delete t[Ho],delete t[lp],delete t[op])),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 zc(e){return e.tag===5||e.tag===3||e.tag===4}function hs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zc(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 ii(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=br));else if(r!==4&&(e=e.child,e!==null))for(ii(e,t,n),e=e.sibling;e!==null;)ii(e,t,n),e=e.sibling}function ui(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(ui(e,t,n),e=e.sibling;e!==null;)ui(e,t,n),e=e.sibling}var te=null,Re=!1;function et(e,t,n){for(n=n.child;n!==null;)Dc(e,t,n),n=n.sibling}function Dc(e,t,n){if(Ve&&typeof Ve.onCommitFiberUnmount=="function")try{Ve.onCommitFiberUnmount(kl,n)}catch{}switch(n.tag){case 5:ie||qt(n,t);case 6:var r=te,l=Re;te=null,et(e,t,n),te=r,Re=l,te!==null&&(Re?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Re?(e=te,n=n.stateNode,e.nodeType===8?io(e.parentNode,n):e.nodeType===1&&io(e,n),Yn(e)):io(te,n.stateNode));break;case 4:r=te,l=Re,te=n.stateNode.containerInfo,Re=!0,et(e,t,n),te=r,Re=l;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&li(n,t,i),l=l.next}while(l!==r)}et(e,t,n);break;case 1:if(!ie&&(qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){W(n,t,u)}et(e,t,n);break;case 21:et(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,et(e,t,n),ie=r):et(e,t,n);break;default:et(e,t,n)}}function ms(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kp),t.forEach(function(r){var l=Lp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Te(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cp(r/1960))-r,10e?16:e,ut===null)var r=!1;else{if(e=ut,ut=null,dl=0,D&6)throw Error(k(331));var l=D;for(D|=4,_=e.current;_!==null;){var o=_,i=o.child;if(_.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-tu?Lt(e,0):eu|=n),ve(e,t)}function Ac(e,t){t===0&&(e.mode&1?(t=kr,kr<<=1,!(kr&130023424)&&(kr=4194304)):t=1);var n=ae();e=Je(e,t),e!==null&&(ar(e,t,n),ve(e,n))}function Tp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ac(e,n)}function Lp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Ac(e,n)}var Wc;Wc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,yp(e,t,n);pe=!!(e.flags&131072)}else pe=!1,$&&t.flags&1048576&&Ya(t,rl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Br(e,t),e=t.pendingProps;var l=sn(t,ue.current);ln(t,n),l=Gi(null,t,r,e,l,n);var o=Xi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(o=!0,tl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Wi(t),l.updater=jl,t.stateNode=l,l._reactInternals=t,Zo(t,r,e,n),t=ei(null,t,r,!0,o,n)):(t.tag=0,$&&o&&Mi(t),se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Br(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=zp(r),e=Le(r,e),l){case 0:t=bo(null,t,r,e,n);break e;case 1:t=cs(null,t,r,e,n);break e;case 11:t=ss(null,t,r,e,n);break e;case 14:t=as(null,t,r,Le(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),bo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),cs(e,t,r,l,n);case 3:e:{if(Nc(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,ba(e,t),il(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=dn(Error(k(423)),t),t=fs(e,t,r,n,l);break e}else if(r!==l){l=dn(Error(k(424)),t),t=fs(e,t,r,n,l);break e}else for(ye=dt(t.stateNode.containerInfo.firstChild),we=t,$=!0,ze=null,n=Za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(an(),r===l){t=Ze(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return ec(t),e===null&&Go(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Wo(r,l)?i=null:o!==null&&Wo(r,o)&&(t.flags|=32),_c(e,t),se(e,t,i,n),t.child;case 6:return e===null&&Go(t),null;case 13:return Pc(e,t,n);case 4:return Qi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cn(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),ss(e,t,r,l,n);case 7:return se(e,t,t.pendingProps,n),t.child;case 8:return se(e,t,t.pendingProps.children,n),t.child;case 12:return se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,M(ll,r._currentValue),r._currentValue=i,o!==null)if(Me(o.value,i)){if(o.children===l.children&&!he.current){t=Ze(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Ye(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var p=a.pending;p===null?s.next=s:(s.next=p.next,p.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Xo(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Xo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,ln(t,n),l=Pe(l),r=r(l),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,l=Le(r,t.pendingProps),l=Le(r.type,l),as(e,t,r,l,n);case 15:return Ec(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Br(e,t),t.tag=1,me(r)?(e=!0,tl(t)):e=!1,ln(t,n),xc(t,r,l),Zo(t,r,l,n),ei(null,t,r,!0,e,n);case 19:return jc(e,t,n);case 22:return Cc(e,t,n)}throw Error(k(156,t.tag))};function Qc(e,t){return ga(e,t)}function Rp(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 _e(e,t,n,r){return new Rp(e,t,n,r)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zp(e){if(typeof e=="function")return ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ci)return 11;if(e===_i)return 14}return 2}function vt(e,t){var n=e.alternate;return n===null?(n=_e(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 Qr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")ou(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Wt:return Rt(n.children,l,o,t);case Ei:i=8,l|=8;break;case ko:return e=_e(12,n,t,l|2),e.elementType=ko,e.lanes=o,e;case So:return e=_e(13,n,t,l),e.elementType=So,e.lanes=o,e;case Eo:return e=_e(19,n,t,l),e.elementType=Eo,e.lanes=o,e;case ea:return Ll(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qs:i=10;break e;case bs:i=9;break e;case Ci:i=11;break e;case _i:i=14;break e;case nt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=_e(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Rt(e,t,n,r){return e=_e(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=_e(22,e,r,t),e.elementType=ea,e.lanes=n,e.stateNode={isHidden:!1},e}function mo(e,t,n){return e=_e(6,e,null,t),e.lanes=n,e}function vo(e,t,n){return t=_e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function iu(e,t,n,r,l,o,i,u,s){return e=new Dp(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=_e(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wi(o),e}function Ip(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gc)}catch(e){console.error(e)}}Gc(),Gs.exports=ke;var Vp=Gs.exports,Es=Vp;wo.createRoot=Es.createRoot,wo.hydrateRoot=Es.hydrateRoot;/** + * @remix-run/router v1.16.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Xc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ap(){return Math.random().toString(36).substr(2,8)}function _s(e,t){return{usr:e.state,key:e.key,idx:t}}function di(e,t,n,r){return n===void 0&&(n=null),or({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gn(t):t,{state:n,key:t&&t.key||r||Ap()})}function ml(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 gn(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 Wp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=st.Pop,s=null,a=p();a==null&&(a=0,i.replaceState(or({},i.state,{idx:a}),""));function p(){return(i.state||{idx:null}).idx}function h(){u=st.Pop;let C=p(),f=C==null?null:C-a;a=C,s&&s({action:u,location:x.location,delta:f})}function m(C,f){u=st.Push;let c=di(x.location,C,f);a=p()+1;let d=_s(c,a),g=x.createHref(c);try{i.pushState(d,"",g)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(g)}o&&s&&s({action:u,location:x.location,delta:1})}function y(C,f){u=st.Replace;let c=di(x.location,C,f);a=p();let d=_s(c,a),g=x.createHref(c);i.replaceState(d,"",g),o&&s&&s({action:u,location:x.location,delta:0})}function w(C){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof C=="string"?C:ml(C);return c=c.replace(/ $/,"%20"),G(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let x={get action(){return u},get location(){return e(l,i)},listen(C){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(Cs,h),s=C,()=>{l.removeEventListener(Cs,h),s=null}},createHref(C){return t(l,C)},createURL:w,encodeLocation(C){let f=w(C);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:y,go(C){return i.go(C)}};return x}var Ns;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ns||(Ns={}));function Qp(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?gn(t):t,l=cu(r.pathname||"/",n);if(l==null)return null;let o=Jc(e);Hp(o);let i=null;for(let u=0;i==null&&u{let s={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(G(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=gt([r,s.relativePath]),p=n.concat(s);o.children&&o.children.length>0&&(G(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Jc(o.children,t,p,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:qp(a,o.index),routesMeta:p})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,i);else for(let s of Zc(o.path))l(o,i,s)}),t}function Zc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Zc(r.join("/")),u=[];return u.push(...i.map(s=>s===""?o:[o,s].join("/"))),l&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Hp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bp(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Kp=/^:[\w-]+$/,Yp=3,Gp=2,Xp=1,Jp=10,Zp=-2,Ps=e=>e==="*";function qp(e,t){let n=e.split("/"),r=n.length;return n.some(Ps)&&(r+=Zp),t&&(r+=Gp),n.filter(l=>!Ps(l)).reduce((l,o)=>l+(Kp.test(o)?Yp:o===""?Xp:Jp),r)}function bp(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function eh(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{let{paramName:m,isOptional:y}=p;if(m==="*"){let x=u[h]||"";i=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const w=u[h];return y&&!w?a[m]=void 0:a[m]=(w||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function nh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function rh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xc(!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 cu(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 lh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?gn(e):e;return{pathname:n?n.startsWith("/")?n:oh(n,t):t,search:sh(r),hash:ah(l)}}function oh(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function go(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 ih(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qc(e,t){let n=ih(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=gn(e):(l=or({},e),G(!l.pathname||!l.pathname.includes("?"),go("?","pathname","search",l)),G(!l.pathname||!l.pathname.includes("#"),go("#","pathname","hash",l)),G(!l.search||!l.search.includes("#"),go("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(i==null)u=n;else{let h=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),h-=1;l.pathname=m.join("/")}u=h>=0?t[h]:"/"}let s=lh(l,u),a=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||p)&&(s.pathname+="/"),s}const gt=e=>e.join("/").replace(/\/\/+/g,"/"),uh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ah=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ch(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ef=["post","put","patch","delete"];new Set(ef);const fh=["get",...ef];new Set(fh);/** + * React Router v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),E.useCallback(function(a,p){if(p===void 0&&(p={}),!u.current)return;if(typeof a=="number"){r.go(a);return}let h=bc(a,JSON.parse(i),o,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:gt([t,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[t,r,i,o,e])}function mh(){let{matches:e}=E.useContext(Et),t=e[e.length-1];return t?t.params:{}}function rf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Vt),{matches:l}=E.useContext(Et),{pathname:o}=Fl(),i=JSON.stringify(qc(l,r.v7_relativeSplatPath));return E.useMemo(()=>bc(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function vh(e,t){return gh(e,t)}function gh(e,t,n,r){pr()||G(!1);let{navigator:l}=E.useContext(Vt),{matches:o}=E.useContext(Et),i=o[o.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=Fl(),p;if(t){var h;let C=typeof t=="string"?gn(t):t;s==="/"||(h=C.pathname)!=null&&h.startsWith(s)||G(!1),p=C}else p=a;let m=p.pathname||"/",y=m;if(s!=="/"){let C=s.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=Qp(e,{pathname:y}),x=Sh(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:gt([s,l.encodeLocation?l.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?s:gt([s,l.encodeLocation?l.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&x?E.createElement(Ml.Provider,{value:{location:ir({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:st.Pop}},x):x}function yh(){let e=Nh(),t=ch(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};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:l},n):null,null)}const wh=E.createElement(yh,null);class xh 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(Et.Provider,{value:this.props.routeContext},E.createElement(tf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kh(e){let{routeContext:t,match:n,children:r}=e,l=E.useContext(fu);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Et.Provider,{value:t},r)}function Sh(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let p=i.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);p>=0||G(!1),i=i.slice(0,Math.min(i.length,p+1))}let s=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((p,h,m)=>{let y,w=!1,x=null,C=null;n&&(y=u&&h.route.id?u[h.route.id]:void 0,x=h.route.errorElement||wh,s&&(a<0&&m===0?(w=!0,C=null):a===m&&(w=!0,C=h.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,m+1)),c=()=>{let d;return y?d=x:w?d=C:h.route.Component?d=E.createElement(h.route.Component,null):h.route.element?d=h.route.element:d=p,E.createElement(kh,{match:h,routeContext:{outlet:p,matches:f,isDataRoute:n!=null},children:d})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?E.createElement(xh,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var lf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(lf||{}),vl=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}(vl||{});function Eh(e){let t=E.useContext(fu);return t||G(!1),t}function Ch(e){let t=E.useContext(dh);return t||G(!1),t}function _h(e){let t=E.useContext(Et);return t||G(!1),t}function of(e){let t=_h(),n=t.matches[t.matches.length-1];return n.route.id||G(!1),n.route.id}function Nh(){var e;let t=E.useContext(tf),n=Ch(vl.UseRouteError),r=of(vl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ph(){let{router:e}=Eh(lf.UseNavigateStable),t=of(vl.UseNavigateStable),n=E.useRef(!1);return nf(()=>{n.current=!0}),E.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,ir({fromRouteId:t},o)))},[e,t])}function tt(e){G(!1)}function jh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=st.Pop,navigator:o,static:i=!1,future:u}=e;pr()&&G(!1);let s=t.replace(/^\/*/,"/"),a=E.useMemo(()=>({basename:s,navigator:o,static:i,future:ir({v7_relativeSplatPath:!1},u)}),[s,u,o,i]);typeof r=="string"&&(r=gn(r));let{pathname:p="/",search:h="",hash:m="",state:y=null,key:w="default"}=r,x=E.useMemo(()=>{let C=cu(p,s);return C==null?null:{location:{pathname:C,search:h,hash:m,state:y,key:w},navigationType:l}},[s,p,h,m,y,w,l]);return x==null?null:E.createElement(Vt.Provider,{value:a},E.createElement(Ml.Provider,{children:n,value:x}))}function Oh(e){let{children:t,location:n}=e;return vh(pi(t),n)}new Promise(()=>{});function pi(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,l)=>{if(!E.isValidElement(r))return;let o=[...t,l];if(r.type===E.Fragment){n.push.apply(n,pi(r.props.children,o));return}r.type!==tt&&G(!1),!r.props.index||!r.props.children||G(!1);let i={id:r.props.id||o.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&&(i.children=pi(r.props.children,o)),n.push(i)}),n}/** + * React Router DOM v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Lh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Rh(e,t){return e.button===0&&(!t||t==="_self")&&!Lh(e)}const zh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Dh="6";try{window.__reactRouterVersion=Dh}catch{}const Ih="startTransition",js=Of[Ih];function Mh(e){let{basename:t,children:n,future:r,window:l}=e,o=E.useRef();o.current==null&&(o.current=Bp({window:l,v5Compat:!0}));let i=o.current,[u,s]=E.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},p=E.useCallback(h=>{a&&js?js(()=>s(h)):s(h)},[s,a]);return E.useLayoutEffect(()=>i.listen(p),[i,p]),E.createElement(jh,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const Fh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Os=E.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:s,to:a,preventScrollReset:p,unstable_viewTransition:h}=t,m=Th(t,zh),{basename:y}=E.useContext(Vt),w,x=!1;if(typeof a=="string"&&Uh.test(a)&&(w=a,Fh))try{let d=new URL(window.location.href),g=a.startsWith("//")?new URL(d.protocol+a):new URL(a),S=cu(g.pathname,y);g.origin===d.origin&&S!=null?a=S+g.search+g.hash:x=!0}catch{}let C=ph(a,{relative:l}),f=$h(a,{replace:i,state:u,target:s,preventScrollReset:p,relative:l,unstable_viewTransition:h});function c(d){r&&r(d),d.defaultPrevented||f(d)}return E.createElement("a",hi({},m,{href:w||C,onClick:x||o?r:c,ref:n,target:s}))});var Ts;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ts||(Ts={}));var Ls;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ls||(Ls={}));function $h(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u}=t===void 0?{}:t,s=Ul(),a=Fl(),p=rf(e,{relative:i});return E.useCallback(h=>{if(Rh(h,n)){h.preventDefault();let m=r!==void 0?r:ml(a)===ml(p);s(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u})}},[a,s,p,r,l,n,e,o,i,u])}function ur({name:e,preIcon:t,postIcon:n,handler:r,color:l="blue"}){const o={blue:"bg-blue-500 hover:bg-blue-700 text-white",red:"bg-red-500 hover:bg-red-700 text-white",yellow:"bg-yellow-500 hover:bg-yellow-700 text-black",black:"bg-black hover:bg-gray-800 text-white",grey:"bg-gray-500 hover:bg-gray-700 text-white",green:"bg-green-500 hover:bg-green-700 text-white",orange:"bg-orange-500 hover:bg-orange-700 text-white"},i=o[l]||o.blue;return v.jsxs("button",{className:`${i} font-bold py-2 px-4 rounded flex w-min text-nowrap items-center focus:outline-none`,onClick:r,children:[t&&v.jsx("span",{children:t}),e&&v.jsx("span",{className:"mx-2",children:e}),n&&v.jsx("span",{children:n})]})}function Rs({name:e,contentArr:t,handleDropdown:n}){return v.jsx("div",{className:"flex justify-evenly",children:v.jsxs("select",{name:e,onChange:r=>n(r),className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded flex items-center",children:[v.jsxs("option",{value:"",children:["Please choose ",e]}),t==null?void 0:t.map((r,l)=>v.jsx("option",{value:r,children:r},l))]})})}const Vh=()=>["Science","Geography","History","Mathematics","Pop Culture","Music","Literature","Favourited"],Bh=()=>["easy","medium","hard","all"];function yo(){const e=Vh(),t=Bh(),[n,r]=E.useState(void 0),[l,o]=E.useState(void 0);console.log("Category selected "+n),console.log("Difficulty selected "+l);const i=Ul(),u=()=>{i("/quiz")},s=p=>{r(p.target.value)},a=p=>{o(p.target.value)};return v.jsxs("div",{className:"container mx-auto flex flex-col items-center mt-10 p-5",children:[v.jsx("h1",{className:"text-4xl font-bold mb-4 text-white",children:"Take a Quiz"}),v.jsx("section",{className:"mb-6 text-gray-400 text-center",children:v.jsx("p",{children:"This is the main page for the quiz."})}),v.jsxs("div",{className:"flex flex-col md:flex-row space-y-4 md:space-y-0 md:space-x-4 mb-6",children:[v.jsx(Rs,{name:"Category",contentArr:e,handleDropdown:s}),v.jsx(Rs,{name:"Difficulty",contentArr:t,handleDropdown:a})]}),v.jsx(ur,{name:"START QUIZ",color:"orange",handler:u})]})}function Ah(){return v.jsx(v.Fragment,{children:v.jsx("h1",{children:"Quiz component "})})}var uf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zs=Ke.createContext&&Ke.createContext(uf),Wh=["attr","size","title"];function Qh(e,t){if(e==null)return{};var n=Hh(e,t),r,l;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hh(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;tKe.createElement(t.tag,yl({key:n},t.attr),sf(t.child)))}function $l(e){return t=>Ke.createElement(Xh,gl({attr:yl({},e.attr)},t),sf(e.child))}function Xh(e){var t=n=>{var{attr:r,size:l,title:o}=e,i=Qh(e,Wh),u=l||n.size||"1em",s;return n.className&&(s=n.className),e.className&&(s=(s?s+" ":"")+e.className),Ke.createElement("svg",gl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:s,style:yl(yl({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&Ke.createElement("title",null,o),e.children)};return zs!==void 0?Ke.createElement(zs.Consumer,null,n=>t(n)):t(uf)}function Jh(e){return $l({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function Zh(e){return $l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"},child:[]}]})(e)}function qh(e){return $l({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"},child:[]}]})(e)}function bh(e){return $l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"},child:[]},{tag:"line",attr:{x1:"18",y1:"9",x2:"12",y2:"15"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"18",y2:"15"},child:[]}]})(e)}function em({question:e,onDelete:t,onEdit:n}){return v.jsxs("div",{className:"flex justify-between items-center bg-gray-100 p-2 rounded border-b border-gray-600 w-full",children:[v.jsx("span",{className:"text-gray-700 mr-2 ml-2 justify-self-start",children:e.question}),v.jsxs("div",{className:"flex space-x-2",children:[v.jsx(ur,{preIcon:v.jsx(qh,{}),handler:n,name:"Edit"}),v.jsx(ur,{color:"red",preIcon:v.jsx(bh,{}),handler:t,name:"Delete"})]})]})}function tm({questions:e,setAllQuestions:t}){const n=o=>{console.log(`Deleting question with id: ${o}`),fetch(`http://localhost:3000/delete-post/${o}`,{method:"DELETE",headers:{"Content-Type":"application/json"}}).then(i=>{if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return i.text()}).then(i=>{console.log("Delete response:",i),t(u=>u.filter(s=>s.id!==o))}).catch(i=>{console.error("Error:",i)})},r=Ul(),l=o=>{console.log(`Editing question with id: ${o}`),r(`/questionbank/editquestion/${o}`)};return v.jsx("div",{className:"question-bank-table",children:e.map(o=>v.jsx(em,{question:o,onDelete:()=>n(o.id),onEdit:()=>l(o.id)},o.id))})}var be={exports:{}};const nm={},rm=Object.freeze(Object.defineProperty({__proto__:null,default:nm},Symbol.toStringTag,{value:"Module"})),Vl=pf(rm),lm="dotenv",om="16.4.5",im="Loads environment variables from .env file",um="lib/main.js",sm="lib/main.d.ts",am={".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},cm={"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},fm={type:"git",url:"git://github.com/motdotla/dotenv.git"},dm="https://dotenvx.com",pm=["dotenv","env",".env","environment","variables","config","settings"],hm="README.md",mm="BSD-2-Clause",vm={"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},gm={node:">=12"},ym={fs:!1},wm={name:lm,version:om,description:im,main:um,types:sm,exports:am,scripts:cm,repository:fm,funding:dm,keywords:pm,readmeFilename:hm,license:mm,devDependencies:vm,engines:gm,browser:ym};var Bn={};const mi=Vl,du=Vl,xm=Vl,km=Vl,Sm=wm,pu=Sm.version,Em=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Cm(e){const t={};let n=e.toString();n=n.replace(/\r\n?/mg,` +`);let r;for(;(r=Em.exec(n))!=null;){const l=r[1];let o=r[2]||"";o=o.trim();const i=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),i==='"'&&(o=o.replace(/\\n/g,` +`),o=o.replace(/\\r/g,"\r")),t[l]=o}return t}function _m(e){const t=cf(e),n=Z.configDotenv({path:t});if(!n.parsed){const i=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw i.code="MISSING_DATA",i}const r=af(e).split(","),l=r.length;let o;for(let i=0;i=l)throw u}return Z.parse(o)}function Nm(e){console.log(`[dotenv@${pu}][INFO] ${e}`)}function Pm(e){console.log(`[dotenv@${pu}][WARN] ${e}`)}function wl(e){console.log(`[dotenv@${pu}][DEBUG] ${e}`)}function af(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:Bn.DOTENV_KEY&&Bn.DOTENV_KEY.length>0?Bn.DOTENV_KEY:""}function jm(e,t){let n;try{n=new URL(t)}catch(u){if(u.code==="ERR_INVALID_URL"){const s=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw s.code="INVALID_DOTENV_KEY",s}throw u}const r=n.password;if(!r){const u=new Error("INVALID_DOTENV_KEY: Missing key part");throw u.code="INVALID_DOTENV_KEY",u}const l=n.searchParams.get("environment");if(!l){const u=new Error("INVALID_DOTENV_KEY: Missing environment part");throw u.code="INVALID_DOTENV_KEY",u}const o=`DOTENV_VAULT_${l.toUpperCase()}`,i=e.parsed[o];if(!i){const u=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw u.code="NOT_FOUND_DOTENV_ENVIRONMENT",u}return{ciphertext:i,key:r}}function cf(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(const n of e.path)mi.existsSync(n)&&(t=n.endsWith(".vault")?n:`${n}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=du.resolve(process.cwd(),".env.vault");return mi.existsSync(t)?t:null}function Is(e){return e[0]==="~"?du.join(xm.homedir(),e.slice(1)):e}function Om(e){Nm("Loading env from encrypted .env.vault");const t=Z._parseVault(e);let n=Bn;return e&&e.processEnv!=null&&(n=e.processEnv),Z.populate(n,t,e),{parsed:t}}function Tm(e){const t=du.resolve(process.cwd(),".env");let n="utf8";const r=!!(e&&e.debug);e&&e.encoding?n=e.encoding:r&&wl("No encoding is specified. UTF-8 is used by default");let l=[t];if(e&&e.path)if(!Array.isArray(e.path))l=[Is(e.path)];else{l=[];for(const s of e.path)l.push(Is(s))}let o;const i={};for(const s of l)try{const a=Z.parse(mi.readFileSync(s,{encoding:n}));Z.populate(i,a,e)}catch(a){r&&wl(`Failed to load ${s} ${a.message}`),o=a}let u=Bn;return e&&e.processEnv!=null&&(u=e.processEnv),Z.populate(u,i,e),o?{parsed:i,error:o}:{parsed:i}}function Lm(e){if(af(e).length===0)return Z.configDotenv(e);const t=cf(e);return t?Z._configVault(e):(Pm(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Z.configDotenv(e))}function Rm(e,t){const n=Buffer.from(t.slice(-64),"hex");let r=Buffer.from(e,"base64");const l=r.subarray(0,12),o=r.subarray(-16);r=r.subarray(12,-16);try{const i=km.createDecipheriv("aes-256-gcm",n,l);return i.setAuthTag(o),`${i.update(r)}${i.final()}`}catch(i){const u=i instanceof RangeError,s=i.message==="Invalid key length",a=i.message==="Unsupported state or unable to authenticate data";if(u||s){const p=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw p.code="INVALID_DOTENV_KEY",p}else if(a){const p=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw p.code="DECRYPTION_FAILED",p}else throw i}}function zm(e,t,n={}){const r=!!(n&&n.debug),l=!!(n&&n.override);if(typeof t!="object"){const o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(const o of Object.keys(t))Object.prototype.hasOwnProperty.call(e,o)?(l===!0&&(e[o]=t[o]),r&&wl(l===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):e[o]=t[o]}const Z={configDotenv:Tm,_configVault:Om,_parseVault:_m,config:Lm,decrypt:Rm,parse:Cm,populate:zm};be.exports.configDotenv=Z.configDotenv;be.exports._configVault=Z._configVault;be.exports._parseVault=Z._parseVault;be.exports.config=Z.config;be.exports.decrypt=Z.decrypt;be.exports.parse=Z.parse;be.exports.populate=Z.populate;be.exports=Z;var Dm=be.exports;const Im=Ms(Dm);var Mm={};function Fm(){const[e,t]=E.useState([]),n=Ul(),r=()=>{n("/home")};function l(){n("/questionbank/addquestion")}return E.useEffect(()=>{Im.config();const o=Mm.apiURL;console.log(`URL es: ${o}`),fetch(`${o}`,{method:"GET",headers:{"Content-Type":"application/json"}}).then(i=>i.json()).then(i=>{t(i)}).catch(i=>{console.error("Error:",i)})},[]),v.jsxs("div",{className:"container mx-auto flex flex-col items-center mt-10 p-5",children:[v.jsx("h1",{className:"text-4xl font-bold mb-4 text-white",children:"Question bank"}),v.jsx("section",{className:"mb-6 text-gray-400 text-center",children:v.jsx("p",{children:"Create - Edit - Delete questions."})}),v.jsxs("div",{className:"flex flex-col space-y-4",children:[v.jsx(ur,{name:"CREATE QUESTION",color:"blue",handler:l}),v.jsx(tm,{questions:e,setAllQuestions:t}),v.jsx(ur,{name:"BACK",color:"orange",handler:r})]})]})}function Um(){const[e,t]=E.useState({id:9,category:"test",difficulty:"easy",question:"How many",options:["01/07/1998","07/07/1998","02/02/1961","09/09/1990"],answer:"",favourited:!1,timestamp:new Date}),n=l=>{l.preventDefault(),fetch("http://localhost:3000/create-question",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(o=>o.json()).then(o=>{console.log(o)}).catch(o=>{console.error("Error:",o)})},r=l=>{const{name:o,type:i,checked:u,value:s}=l.target;t(a=>({...a,[o]:i==="checkbox"?u:s}))};return v.jsxs("form",{onSubmit:n,className:" text-black p-4 bg-gray-100 rounded shadow-md ",children:[v.jsxs("div",{className:"grid grid-cols-2 gap-2 auto-cols-min",children:[v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"ID:"}),v.jsx("input",{type:"text",name:"id",value:e.id,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 self-end font-bold mb-2",children:"Category:"}),v.jsx("input",{type:"text",name:"category",value:e.category,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Difficulty:"}),v.jsx("input",{type:"text",name:"difficulty",value:e.difficulty,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Question:"}),v.jsx("input",{type:"text",name:"question",value:e.question,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 0:"}),v.jsx("input",{type:"text",name:"options",value:e.options[0],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 1:"}),v.jsx("input",{type:"text",name:"options",value:e.options[1],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 2:"}),v.jsx("input",{type:"text",name:"options",value:e.options[2],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 3:"}),v.jsx("input",{type:"text",name:"options",value:e.options[3],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Answer:"}),v.jsx("input",{type:"text",name:"answer",value:e.answer,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Favourited:"}),v.jsx("input",{type:"checkbox",name:"favourited",checked:e.favourited,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Timestamp:"}),v.jsx("input",{type:"date",name:"timestamp",value:e.timestamp.toISOString().split("T")[0],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"})]}),v.jsx("button",{type:"submit",children:"Add question"})]})}function $m(){return v.jsx(v.Fragment,{children:v.jsx(Um,{})})}const Vm=({id:e})=>{const[t,n]=E.useState({id:0,category:"",difficulty:"medium",question:"Default start values",options:["a","b","c","d"],answer:"",favourited:!1,timestamp:new Date});E.useEffect(()=>{(async()=>{try{console.log("Fetched ID:",e);const i=Number(e);if(isNaN(i))throw new Error("Invalid ID");const a=(await(await fetch(`http://localhost:3000/get-question-by-id/${e}`)).json())[0];a.timestamp=new Date(a.timestamp),n(a)}catch(i){console.error("Error fetching data:",i)}})()},[e]);const r=o=>{const{name:i,type:u,checked:s,value:a}=o.currentTarget;n(p=>({...p,[i]:u==="checkbox"?s:a}))},l=o=>{o.preventDefault(),console.log(t)};return v.jsxs("form",{onSubmit:l,className:"text-black p-4 bg-gray-100 rounded shadow-md",children:[v.jsxs("div",{className:"grid grid-cols-2 gap-2 auto-cols-min",children:[v.jsx("label",{className:"block text-gray-700 self-end font-bold mb-2",children:"Category:"}),v.jsx("input",{type:"text",name:"category",value:t.category,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Difficulty:"}),v.jsx("input",{type:"text",name:"difficulty",value:t.difficulty,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Question:"}),v.jsx("input",{type:"text",name:"question",value:t.question,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 0:"}),v.jsx("input",{type:"text",name:"options",value:t.options[0],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 1:"}),v.jsx("input",{type:"text",name:"options",value:t.options[1],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 2:"}),v.jsx("input",{type:"text",name:"options",value:t.options[2],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 3:"}),v.jsx("input",{type:"text",name:"options",value:t.options[3],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Answer:"}),v.jsx("input",{type:"text",name:"answer",value:t.answer,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Favourited:"}),v.jsx("input",{type:"checkbox",name:"favourited",checked:t.favourited,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Timestamp:"}),v.jsx("input",{type:"date",name:"timestamp",value:t.timestamp.toISOString().substr(0,10),onChange:r,className:"w-full px-3 py-2 border rounded bg-white"})]}),v.jsx("button",{type:"submit",className:"mt-4 px-4 py-2 bg-blue-500 text-white rounded",children:"Edit question"})]})},Bm=()=>{const{id:e}=mh();return v.jsx(Vm,{id:Number(e)})},Am=()=>v.jsxs(Oh,{children:[v.jsx(tt,{path:"/",element:v.jsx(yo,{})}),v.jsx(tt,{path:"/home",element:v.jsx(yo,{})}),v.jsx(tt,{path:"/P1DAAF-Frontend/",element:v.jsx(yo,{})}),v.jsx(tt,{path:"/quiz",element:v.jsx(Ah,{})}),v.jsx(tt,{path:"/questionbank",element:v.jsx(Fm,{})}),v.jsx(tt,{path:"/questionbank/addquestion",element:v.jsx($m,{})}),v.jsx(tt,{path:"/questionbank/editquestion/:id",element:v.jsx(Bm,{})})]}),Wm=()=>v.jsx("nav",{className:"bg-gray-700 p-4 w-full top-0 z-50",children:v.jsxs("ul",{className:"flex space-x-8",children:[v.jsx("li",{children:v.jsxs(Os,{to:"/home",className:"text-white flex items-center space-x-2 hover:text-gray-400",children:[v.jsx(Jh,{}),v.jsx("span",{children:"Home"})]})}),v.jsx("li",{children:v.jsxs(Os,{to:"/questionbank",className:"text-white flex items-center space-x-2 hover:text-gray-400",children:[v.jsx(Zh,{}),v.jsx("span",{children:"Question Bank"})]})})]})});function Qm(){return v.jsx(Mh,{children:v.jsxs("div",{children:[v.jsx(Wm,{}),v.jsx(Am,{})]})})}wo.createRoot(document.getElementById("root")).render(v.jsx(Ke.StrictMode,{children:v.jsx(Qm,{})})); diff --git a/assets/index-uzNBgupo.js b/assets/index-uzNBgupo.js deleted file mode 100644 index f32aa66..0000000 --- a/assets/index-uzNBgupo.js +++ /dev/null @@ -1,67 +0,0 @@ -function bc(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ps={exports:{}},vl={},js={exports:{}},R={};/** - * @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 or=Symbol.for("react.element"),tf=Symbol.for("react.portal"),nf=Symbol.for("react.fragment"),rf=Symbol.for("react.strict_mode"),lf=Symbol.for("react.profiler"),of=Symbol.for("react.provider"),uf=Symbol.for("react.context"),sf=Symbol.for("react.forward_ref"),af=Symbol.for("react.suspense"),cf=Symbol.for("react.memo"),ff=Symbol.for("react.lazy"),uu=Symbol.iterator;function df(e){return e===null||typeof e!="object"?null:(e=uu&&e[uu]||e["@@iterator"],typeof e=="function"?e:null)}var Ls={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zs=Object.assign,Ts={};function dn(e,t,n){this.props=e,this.context=t,this.refs=Ts,this.updater=n||Ls}dn.prototype.isReactComponent={};dn.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")};dn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rs(){}Rs.prototype=dn.prototype;function ci(e,t,n){this.props=e,this.context=t,this.refs=Ts,this.updater=n||Ls}var fi=ci.prototype=new Rs;fi.constructor=ci;zs(fi,dn.prototype);fi.isPureReactComponent=!0;var su=Array.isArray,Os=Object.prototype.hasOwnProperty,di={current:null},Ds={key:!0,ref:!0,__self:!0,__source:!0};function Is(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Os.call(t,r)&&!Ds.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,J=_[H];if(0>>1;Hl(Ul,T))Etl(dr,Ul)?(_[H]=dr,_[Et]=T,H=Et):(_[H]=Ul,_[kt]=T,H=kt);else if(Etl(dr,T))_[H]=dr,_[Et]=T,H=Et;else break e}}return z}function l(_,z){var T=_.sortIndex-z.sortIndex;return T!==0?T:_.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],h=1,p=null,m=3,g=!1,w=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(_){for(var z=n(a);z!==null;){if(z.callback===null)r(a);else if(z.startTime<=_)r(a),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(a)}}function y(_){if(x=!1,d(_),!w)if(n(s)!==null)w=!0,Ml(k);else{var z=n(a);z!==null&&Fl(y,z.startTime-_)}}function k(_,z){w=!1,x&&(x=!1,f(L),L=-1),g=!0;var T=m;try{for(d(z),p=n(s);p!==null&&(!(p.expirationTime>z)||_&&!je());){var H=p.callback;if(typeof H=="function"){p.callback=null,m=p.priorityLevel;var J=H(p.expirationTime<=z);z=e.unstable_now(),typeof J=="function"?p.callback=J:p===n(s)&&r(s),d(z)}else r(s);p=n(s)}if(p!==null)var fr=!0;else{var kt=n(a);kt!==null&&Fl(y,kt.startTime-z),fr=!1}return fr}finally{p=null,m=T,g=!1}}var P=!1,j=null,L=-1,Q=5,O=-1;function je(){return!(e.unstable_now()-O_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var T=m;m=z;try{return _()}finally{m=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,z){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var T=m;m=_;try{return z()}finally{m=T}},e.unstable_scheduleCallback=function(_,z,T){var H=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0H?(_.sortIndex=T,t(a,_),n(s)===null&&_===n(a)&&(x?(f(L),L=-1):x=!0,Fl(y,T-H))):(_.sortIndex=J,t(s,_),w||g||(w=!0,Ml(k))),_},e.unstable_shouldYield=je,e.unstable_wrapCallback=function(_){var z=m;return function(){var T=m;m=z;try{return _.apply(this,arguments)}finally{m=T}}}})(Bs);$s.exports=Bs;var Cf=$s.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 Nf=E,we=Cf;function S(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"),mo=Object.prototype.hasOwnProperty,_f=/^[: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]*$/,cu={},fu={};function Pf(e){return mo.call(fu,e)?!0:mo.call(cu,e)?!1:_f.test(e)?fu[e]=!0:(cu[e]=!0,!1)}function jf(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 Lf(e,t,n,r){if(t===null||typeof t>"u"||jf(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 ce(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ne[t]=new ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ce(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){ne[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var hi=/[\-:]([a-z])/g;function mi(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(hi,mi);ne[t]=new ce(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(hi,mi);ne[t]=new ce(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(hi,mi);ne[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function vi(e,t,n,r){var l=ne.hasOwnProperty(t)?ne[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` -`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Al=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_n(e):""}function zf(e){switch(e.tag){case 5:return _n(e.type);case 16:return _n("Lazy");case 13:return _n("Suspense");case 19:return _n("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function wo(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 At:return"Fragment";case Bt:return"Portal";case vo:return"Profiler";case yi:return"StrictMode";case yo:return"Suspense";case go:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ws:return(e.displayName||"Context")+".Consumer";case Vs:return(e._context.displayName||"Context")+".Provider";case gi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wi:return t=e.displayName||null,t!==null?t:wo(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return wo(e(t))}catch{}}return null}function Tf(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 wo(t);case 8:return t===yi?"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 vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rf(e){var t=Hs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mr(e){e._valueTracker||(e._valueTracker=Rf(e))}function Ks(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hs(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vr(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 xo(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vt(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 Ys(e,t){t=t.checked,t!=null&&vi(e,"checked",t,!1)}function So(e,t){Ys(e,t);var n=vt(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")?ko(e,t.type,n):t.hasOwnProperty("defaultValue")&&ko(e,t.type,vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hu(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 ko(e,t,n){(t!=="number"||Vr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pn=Array.isArray;function qt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=vr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={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},Of=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){Of.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Js(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function qs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Js(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Df=V({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 No(e,t){if(t){if(Df[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function _o(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 Po=null;function xi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jo=null,bt=null,en=null;function yu(e){if(e=sr(e)){if(typeof jo!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Sl(t),jo(e.stateNode,e.type,t))}}function bs(e){bt?en?en.push(e):en=[e]:bt=e}function ea(){if(bt){var e=bt,t=en;if(en=bt=null,yu(e),t)for(e=0;e>>=0,e===0?32:31-(Hf(e)/Kf|0)|0}var yr=64,gr=4194304;function jn(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 Kr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=jn(u):(o&=i,o!==0&&(r=jn(o)))}else i=n&~l,i!==0?r=jn(i):o!==0&&(r=jn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ir(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oe(t),e[t]=n}function Zf(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=Rn),_u=" ",Pu=!1;function xa(e,t){switch(e){case"keyup":return Cd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vt=!1;function _d(e,t){switch(e){case"compositionend":return Sa(t);case"keypress":return t.which!==32?null:(Pu=!0,_u);case"textInput":return e=t.data,e===_u&&Pu?null:e;default:return null}}function Pd(e,t){if(Vt)return e==="compositionend"||!ji&&xa(e,t)?(e=ga(),Or=Ni=lt=null,Vt=!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=Tu(n)}}function Na(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Na(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _a(){for(var e=window,t=Vr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vr(e.document)}return t}function Li(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 Md(e){var t=_a(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Na(n.ownerDocument.documentElement,n)){if(r!==null&&Li(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ru(n,o);var i=Ru(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Wt=null,Do=null,Dn=null,Io=!1;function Ou(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||Wt==null||Wt!==Vr(r)||(r=Wt,"selectionStart"in r&&Li(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}),Dn&&Kn(Dn,r)||(Dn=r,r=Gr(Do,"onSelect"),0Kt||(e.current=Ao[Kt],Ao[Kt]=null,Kt--)}function M(e,t){Kt++,Ao[Kt]=e.current,e.current=t}var yt={},ie=wt(yt),pe=wt(!1),Tt=yt;function on(e,t){var n=e.type.contextTypes;if(!n)return yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function he(e){return e=e.childContextTypes,e!=null}function Jr(){U(pe),U(ie)}function Bu(e,t,n){if(ie.current!==yt)throw Error(S(168));M(ie,t),M(pe,n)}function Ia(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,Tf(e)||"Unknown",l));return V({},n,r)}function qr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yt,Tt=ie.current,M(ie,e),M(pe,pe.current),!0}function Au(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Ia(e,t,Tt),r.__reactInternalMemoizedMergedChildContext=e,U(pe),U(ie),M(ie,e)):U(pe),M(pe,n)}var Ve=null,kl=!1,no=!1;function Ma(e){Ve===null?Ve=[e]:Ve.push(e)}function Xd(e){kl=!0,Ma(e)}function xt(){if(!no&&Ve!==null){no=!0;var e=0,t=I;try{var n=Ve;for(I=1;e>=i,l-=i,We=1<<32-Oe(t)+l|n<L?(Q=j,j=null):Q=j.sibling;var O=m(f,j,d[L],y);if(O===null){j===null&&(j=Q);break}e&&j&&O.alternate===null&&t(f,j),c=o(O,c,L),P===null?k=O:P.sibling=O,P=O,j=Q}if(L===d.length)return n(f,j),$&&Ct(f,L),k;if(j===null){for(;LL?(Q=j,j=null):Q=j.sibling;var je=m(f,j,O.value,y);if(je===null){j===null&&(j=Q);break}e&&j&&je.alternate===null&&t(f,j),c=o(je,c,L),P===null?k=je:P.sibling=je,P=je,j=Q}if(O.done)return n(f,j),$&&Ct(f,L),k;if(j===null){for(;!O.done;L++,O=d.next())O=p(f,O.value,y),O!==null&&(c=o(O,c,L),P===null?k=O:P.sibling=O,P=O);return $&&Ct(f,L),k}for(j=r(f,j);!O.done;L++,O=d.next())O=g(j,f,L,O.value,y),O!==null&&(e&&O.alternate!==null&&j.delete(O.key===null?L:O.key),c=o(O,c,L),P===null?k=O:P.sibling=O,P=O);return e&&j.forEach(function(vn){return t(f,vn)}),$&&Ct(f,L),k}function C(f,c,d,y){if(typeof d=="object"&&d!==null&&d.type===At&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case hr:e:{for(var k=d.key,P=c;P!==null;){if(P.key===k){if(k=d.type,k===At){if(P.tag===7){n(f,P.sibling),c=l(P,d.props.children),c.return=f,f=c;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===et&&Qu(k)===P.type){n(f,P.sibling),c=l(P,d.props),c.ref=En(f,P,d),c.return=f,f=c;break e}n(f,P);break}else t(f,P);P=P.sibling}d.type===At?(c=zt(d.props.children,f.mode,y,d.key),c.return=f,f=c):(y=Ar(d.type,d.key,d.props,null,f.mode,y),y.ref=En(f,c,d),y.return=f,f=y)}return i(f);case Bt:e:{for(P=d.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=l(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=co(d,f.mode,y),c.return=f,f=c}return i(f);case et:return P=d._init,C(f,c,P(d._payload),y)}if(Pn(d))return w(f,c,d,y);if(gn(d))return x(f,c,d,y);Nr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,d),c.return=f,f=c):(n(f,c),c=ao(d,f.mode,y),c.return=f,f=c),i(f)):n(f,c)}return C}var sn=Ba(!0),Aa=Ba(!1),tl=wt(null),nl=null,Gt=null,Oi=null;function Di(){Oi=Gt=nl=null}function Ii(e){var t=tl.current;U(tl),e._currentValue=t}function Qo(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 nn(e,t){nl=e,Oi=Gt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(de=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},Gt===null){if(nl===null)throw Error(S(308));Gt=e,nl.dependencies={lanes:0,firstContext:e}}else Gt=Gt.next=e;return t}var Pt=null;function Mi(e){Pt===null?Pt=[e]:Pt.push(e)}function Va(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Mi(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ge(e,r)}function Ge(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 tt=!1;function Fi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wa(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 Ke(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ft(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ge(e,n)}return l=r.interleaved,l===null?(t.next=t,Mi(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ge(e,n)}function Ir(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,ki(e,n)}}function Hu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,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 rl(e,t,n,r){var l=e.updateQueue;tt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==i&&(u===null?h.firstBaseUpdate=a:u.next=a,h.lastBaseUpdate=s))}if(o!==null){var p=l.baseState;i=0,h=a=s=null,u=o;do{var m=u.lane,g=u.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:g,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=e,x=u;switch(m=t,g=n,x.tag){case 1:if(w=x.payload,typeof w=="function"){p=w.call(g,p,m);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=x.payload,m=typeof w=="function"?w.call(g,p,m):w,m==null)break e;p=V({},p,m);break e;case 2:tt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else g={eventTime:g,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(a=h=g,s=p):h=h.next=g,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(s=p),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Dt|=i,e.lanes=i,e.memoizedState=p}}function Ku(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=lo.transition;lo.transition={};try{e(!1),t()}finally{I=n,lo.transition=r}}function ic(){return Pe().memoizedState}function qd(e,t,n){var r=pt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e))sc(t,n);else if(n=Va(e,t,n,r),n!==null){var l=se();De(n,e,r,l),ac(n,t,r)}}function bd(e,t,n){var r=pt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))sc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Ie(u,i)){var s=t.interleaved;s===null?(l.next=l,Mi(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Va(e,t,l,r),n!==null&&(l=se(),De(n,e,r,l),ac(n,t,r))}}function uc(e){var t=e.alternate;return e===A||t!==null&&t===A}function sc(e,t){In=ol=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ac(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ki(e,n)}}var il={readContext:_e,useCallback:re,useContext:re,useEffect:re,useImperativeHandle:re,useInsertionEffect:re,useLayoutEffect:re,useMemo:re,useReducer:re,useRef:re,useState:re,useDebugValue:re,useDeferredValue:re,useTransition:re,useMutableSource:re,useSyncExternalStore:re,useId:re,unstable_isNewReconciler:!1},ep={readContext:_e,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Xu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fr(4194308,4,tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fr(4,2,e,t)},useMemo:function(e,t){var n=Fe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fe();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=qd.bind(null,A,e),[r.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:Yu,useDebugValue:Hi,useDeferredValue:function(e){return Fe().memoizedState=e},useTransition:function(){var e=Yu(!1),t=e[0];return e=Jd.bind(null,e[1]),Fe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=A,l=Fe();if($){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),b===null)throw Error(S(349));Ot&30||Ya(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Xu(Ga.bind(null,r,o,e),[e]),r.flags|=2048,er(9,Xa.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Fe(),t=b.identifierPrefix;if($){var n=Qe,r=We;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ue]=t,e[Gn]=r,wc(e,t,!1,!1),t.stateNode=e;e:{switch(i=_o(n,r),n){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;lfn&&(t.flags|=128,r=!0,Cn(o,!1),t.lanes=4194304)}else{if(!r)if(e=ll(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return le(t),null}else 2*K()-o.renderingStartTime>fn&&n!==1073741824&&(t.flags|=128,r=!0,Cn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=B.current,M(B,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return Ji(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function sp(e,t){switch(Ti(t),t.tag){case 1:return he(t.type)&&Jr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),U(pe),U(ie),Bi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $i(t),null;case 13:if(U(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(B),null;case 4:return an(),null;case 10:return Ii(t.type._context),null;case 22:case 23:return Ji(),null;case 24:return null;default:return null}}var Pr=!1,oe=!1,ap=typeof WeakSet=="function"?WeakSet:Set,N=null;function Zt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function bo(e,t,n){try{n()}catch(r){W(e,t,r)}}var os=!1;function cp(e,t){if(Mo=Yr,e=_a(),Li(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,h=0,p=e,m=null;t:for(;;){for(var g;p!==n||l!==0&&p.nodeType!==3||(u=i+l),p!==o||r!==0&&p.nodeType!==3||(s=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(g=p.firstChild)!==null;)m=p,p=g;for(;;){if(p===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++h===r&&(s=i),(g=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=g}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:e,selectionRange:n},Yr=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,C=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:ze(t.type,x),C);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(y){W(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return w=os,os=!1,w}function Mn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&bo(t,n,o)}l=l.next}while(l!==r)}}function Nl(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 ei(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 kc(e){var t=e.alternate;t!==null&&(e.alternate=null,kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ue],delete t[Gn],delete t[Bo],delete t[Kd],delete t[Yd])),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 Ec(e){return e.tag===5||e.tag===3||e.tag===4}function is(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ec(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 ti(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=Zr));else if(r!==4&&(e=e.child,e!==null))for(ti(e,t,n),e=e.sibling;e!==null;)ti(e,t,n),e=e.sibling}function ni(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(ni(e,t,n),e=e.sibling;e!==null;)ni(e,t,n),e=e.sibling}var ee=null,Te=!1;function qe(e,t,n){for(n=n.child;n!==null;)Cc(e,t,n),n=n.sibling}function Cc(e,t,n){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(yl,n)}catch{}switch(n.tag){case 5:oe||Zt(n,t);case 6:var r=ee,l=Te;ee=null,qe(e,t,n),ee=r,Te=l,ee!==null&&(Te?(e=ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ee.removeChild(n.stateNode));break;case 18:ee!==null&&(Te?(e=ee,n=n.stateNode,e.nodeType===8?to(e.parentNode,n):e.nodeType===1&&to(e,n),Qn(e)):to(ee,n.stateNode));break;case 4:r=ee,l=Te,ee=n.stateNode.containerInfo,Te=!0,qe(e,t,n),ee=r,Te=l;break;case 0:case 11:case 14:case 15:if(!oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&bo(n,t,i),l=l.next}while(l!==r)}qe(e,t,n);break;case 1:if(!oe&&(Zt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){W(n,t,u)}qe(e,t,n);break;case 21:qe(e,t,n);break;case 22:n.mode&1?(oe=(r=oe)||n.memoizedState!==null,qe(e,t,n),oe=r):qe(e,t,n);break;default:qe(e,t,n)}}function us(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ap),t.forEach(function(r){var l=wp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dp(r/1960))-r,10e?16:e,ot===null)var r=!1;else{if(e=ot,ot=null,al=0,D&6)throw Error(S(331));var l=D;for(D|=4,N=e.current;N!==null;){var o=N,i=o.child;if(N.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-Gi?Lt(e,0):Xi|=n),me(e,t)}function Rc(e,t){t===0&&(e.mode&1?(t=gr,gr<<=1,!(gr&130023424)&&(gr=4194304)):t=1);var n=se();e=Ge(e,t),e!==null&&(ir(e,t,n),me(e,n))}function gp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rc(e,n)}function wp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),Rc(e,n)}var Oc;Oc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)de=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return de=!1,ip(e,t,n);de=!!(e.flags&131072)}else de=!1,$&&t.flags&1048576&&Fa(t,el,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ur(e,t),e=t.pendingProps;var l=on(t,ie.current);nn(t,n),l=Vi(null,t,r,e,l,n);var o=Wi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,he(r)?(o=!0,qr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Fi(t),l.updater=Cl,t.stateNode=l,l._reactInternals=t,Ko(t,r,e,n),t=Go(null,t,r,!0,o,n)):(t.tag=0,$&&o&&zi(t),ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ur(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Sp(r),e=ze(r,e),l){case 0:t=Xo(null,t,r,e,n);break e;case 1:t=ns(null,t,r,e,n);break e;case 11:t=es(null,t,r,e,n);break e;case 14:t=ts(null,t,r,ze(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Xo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),ns(e,t,r,l,n);case 3:e:{if(vc(t),e===null)throw Error(S(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Wa(e,t),rl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=cn(Error(S(423)),t),t=rs(e,t,r,n,l);break e}else if(r!==l){l=cn(Error(S(424)),t),t=rs(e,t,r,n,l);break e}else for(ye=ct(t.stateNode.containerInfo.firstChild),ge=t,$=!0,Re=null,n=Aa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(un(),r===l){t=Ze(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return Qa(t),e===null&&Wo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Uo(r,l)?i=null:o!==null&&Uo(r,o)&&(t.flags|=32),mc(e,t),ue(e,t,i,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return yc(e,t,n);case 4:return Ui(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sn(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),es(e,t,r,l,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,M(tl,r._currentValue),r._currentValue=i,o!==null)if(Ie(o.value,i)){if(o.children===l.children&&!pe.current){t=Ze(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Ke(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?s.next=s:(s.next=h.next,h.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Qo(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(S(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Qo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,nn(t,n),l=_e(l),r=r(l),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,l=ze(r,t.pendingProps),l=ze(r.type,l),ts(e,t,r,l,n);case 15:return pc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Ur(e,t),t.tag=1,he(r)?(e=!0,qr(t)):e=!1,nn(t,n),cc(t,r,l),Ko(t,r,l,n),Go(null,t,r,!0,e,n);case 19:return gc(e,t,n);case 22:return hc(e,t,n)}throw Error(S(156,t.tag))};function Dc(e,t){return ua(e,t)}function xp(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 Ce(e,t,n,r){return new xp(e,t,n,r)}function bi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sp(e){if(typeof e=="function")return bi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gi)return 11;if(e===wi)return 14}return 2}function ht(e,t){var n=e.alternate;return n===null?(n=Ce(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 Ar(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")bi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case At:return zt(n.children,l,o,t);case yi:i=8,l|=8;break;case vo:return e=Ce(12,n,t,l|2),e.elementType=vo,e.lanes=o,e;case yo:return e=Ce(13,n,t,l),e.elementType=yo,e.lanes=o,e;case go:return e=Ce(19,n,t,l),e.elementType=go,e.lanes=o,e;case Qs:return Pl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vs:i=10;break e;case Ws:i=9;break e;case gi:i=11;break e;case wi:i=14;break e;case et:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ce(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function zt(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function Pl(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=Qs,e.lanes=n,e.stateNode={isHidden:!1},e}function ao(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function co(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ql(0),this.expirationTimes=Ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ql(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function eu(e,t,n,r,l,o,i,u,s){return e=new kp(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ce(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fi(o),e}function Ep(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uc)}catch(e){console.error(e)}}Uc(),Us.exports=xe;var jp=Us.exports,ms=jp;ho.createRoot=ms.createRoot,ho.hydrateRoot=ms.hydrateRoot;/** - * @remix-run/router v1.16.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function $c(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zp(){return Math.random().toString(36).substr(2,8)}function ys(e,t){return{usr:e.state,key:e.key,idx:t}}function ui(e,t,n,r){return n===void 0&&(n=null),nr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mn(t):t,{state:n,key:t&&t.key||r||zp()})}function dl(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 mn(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 Tp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=it.Pop,s=null,a=h();a==null&&(a=0,i.replaceState(nr({},i.state,{idx:a}),""));function h(){return(i.state||{idx:null}).idx}function p(){u=it.Pop;let C=h(),f=C==null?null:C-a;a=C,s&&s({action:u,location:x.location,delta:f})}function m(C,f){u=it.Push;let c=ui(x.location,C,f);a=h()+1;let d=ys(c,a),y=x.createHref(c);try{i.pushState(d,"",y)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;l.location.assign(y)}o&&s&&s({action:u,location:x.location,delta:1})}function g(C,f){u=it.Replace;let c=ui(x.location,C,f);a=h();let d=ys(c,a),y=x.createHref(c);i.replaceState(d,"",y),o&&s&&s({action:u,location:x.location,delta:0})}function w(C){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof C=="string"?C:dl(C);return c=c.replace(/ $/,"%20"),X(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let x={get action(){return u},get location(){return e(l,i)},listen(C){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(vs,p),s=C,()=>{l.removeEventListener(vs,p),s=null}},createHref(C){return t(l,C)},createURL:w,encodeLocation(C){let f=w(C);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:g,go(C){return i.go(C)}};return x}var gs;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gs||(gs={}));function Rp(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?mn(t):t,l=lu(r.pathname||"/",n);if(l==null)return null;let o=Bc(e);Op(o);let i=null;for(let u=0;i==null&&u{let s={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(X(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=mt([r,s.relativePath]),h=n.concat(s);o.children&&o.children.length>0&&(X(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Bc(o.children,t,h,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Bp(a,o.index),routesMeta:h})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,i);else for(let s of Ac(o.path))l(o,i,s)}),t}function Ac(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Ac(r.join("/")),u=[];return u.push(...i.map(s=>s===""?o:[o,s].join("/"))),l&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Op(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ap(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Dp=/^:[\w-]+$/,Ip=3,Mp=2,Fp=1,Up=10,$p=-2,ws=e=>e==="*";function Bp(e,t){let n=e.split("/"),r=n.length;return n.some(ws)&&(r+=$p),t&&(r+=Mp),n.filter(l=>!ws(l)).reduce((l,o)=>l+(Dp.test(o)?Ip:o===""?Fp:Up),r)}function Ap(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Vp(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{let{paramName:m,isOptional:g}=h;if(m==="*"){let x=u[p]||"";i=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const w=u[p];return g&&!w?a[m]=void 0:a[m]=(w||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Qp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$c(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Hp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $c(!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 lu(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 Kp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?mn(e):e;return{pathname:n?n.startsWith("/")?n:Yp(n,t):t,search:Zp(r),hash:Jp(l)}}function Yp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function fo(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 Xp(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Vc(e,t){let n=Xp(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Wc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=mn(e):(l=nr({},e),X(!l.pathname||!l.pathname.includes("?"),fo("?","pathname","search",l)),X(!l.pathname||!l.pathname.includes("#"),fo("#","pathname","hash",l)),X(!l.search||!l.search.includes("#"),fo("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(i==null)u=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}u=p>=0?t[p]:"/"}let s=Kp(l,u),a=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||h)&&(s.pathname+="/"),s}const mt=e=>e.join("/").replace(/\/\/+/g,"/"),Gp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Jp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Qc=["post","put","patch","delete"];new Set(Qc);const bp=["get",...Qc];new Set(bp);/** - * React Router v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),E.useCallback(function(a,h){if(h===void 0&&(h={}),!u.current)return;if(typeof a=="number"){r.go(a);return}let p=Wc(a,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:mt([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,i,o,e])}function rh(){let{matches:e}=E.useContext(St),t=e[e.length-1];return t?t.params:{}}function Yc(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Ut),{matches:l}=E.useContext(St),{pathname:o}=Ol(),i=JSON.stringify(Vc(l,r.v7_relativeSplatPath));return E.useMemo(()=>Wc(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function lh(e,t){return oh(e,t)}function oh(e,t,n,r){cr()||X(!1);let{navigator:l}=E.useContext(Ut),{matches:o}=E.useContext(St),i=o[o.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=Ol(),h;if(t){var p;let C=typeof t=="string"?mn(t):t;s==="/"||(p=C.pathname)!=null&&p.startsWith(s)||X(!1),h=C}else h=a;let m=h.pathname||"/",g=m;if(s!=="/"){let C=s.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=Rp(e,{pathname:g}),x=ch(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:mt([s,l.encodeLocation?l.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?s:mt([s,l.encodeLocation?l.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&x?E.createElement(Rl.Provider,{value:{location:rr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:it.Pop}},x):x}function ih(){let e=hh(),t=qp(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};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:l},n):null,null)}const uh=E.createElement(ih,null);class sh 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(St.Provider,{value:this.props.routeContext},E.createElement(Hc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ah(e){let{routeContext:t,match:n,children:r}=e,l=E.useContext(ou);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(St.Provider,{value:t},r)}function ch(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let h=i.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id])!==void 0);h>=0||X(!1),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((h,p,m)=>{let g,w=!1,x=null,C=null;n&&(g=u&&p.route.id?u[p.route.id]:void 0,x=p.route.errorElement||uh,s&&(a<0&&m===0?(w=!0,C=null):a===m&&(w=!0,C=p.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,m+1)),c=()=>{let d;return g?d=x:w?d=C:p.route.Component?d=E.createElement(p.route.Component,null):p.route.element?d=p.route.element:d=h,E.createElement(ah,{match:p,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:d})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?E.createElement(sh,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var Xc=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Xc||{}),pl=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}(pl||{});function fh(e){let t=E.useContext(ou);return t||X(!1),t}function dh(e){let t=E.useContext(eh);return t||X(!1),t}function ph(e){let t=E.useContext(St);return t||X(!1),t}function Gc(e){let t=ph(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function hh(){var e;let t=E.useContext(Hc),n=dh(pl.UseRouteError),r=Gc(pl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mh(){let{router:e}=fh(Xc.UseNavigateStable),t=Gc(pl.UseNavigateStable),n=E.useRef(!1);return Kc(()=>{n.current=!0}),E.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,rr({fromRouteId:t},o)))},[e,t])}function be(e){X(!1)}function vh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=it.Pop,navigator:o,static:i=!1,future:u}=e;cr()&&X(!1);let s=t.replace(/^\/*/,"/"),a=E.useMemo(()=>({basename:s,navigator:o,static:i,future:rr({v7_relativeSplatPath:!1},u)}),[s,u,o,i]);typeof r=="string"&&(r=mn(r));let{pathname:h="/",search:p="",hash:m="",state:g=null,key:w="default"}=r,x=E.useMemo(()=>{let C=lu(h,s);return C==null?null:{location:{pathname:C,search:p,hash:m,state:g,key:w},navigationType:l}},[s,h,p,m,g,w,l]);return x==null?null:E.createElement(Ut.Provider,{value:a},E.createElement(Rl.Provider,{children:n,value:x}))}function yh(e){let{children:t,location:n}=e;return lh(si(t),n)}new Promise(()=>{});function si(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,l)=>{if(!E.isValidElement(r))return;let o=[...t,l];if(r.type===E.Fragment){n.push.apply(n,si(r.props.children,o));return}r.type!==be&&X(!1),!r.props.index||!r.props.children||X(!1);let i={id:r.props.id||o.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&&(i.children=si(r.props.children,o)),n.push(i)}),n}/** - * React Router DOM v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function wh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xh(e,t){return e.button===0&&(!t||t==="_self")&&!wh(e)}const Sh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],kh="6";try{window.__reactRouterVersion=kh}catch{}const Eh="startTransition",xs=yf[Eh];function Ch(e){let{basename:t,children:n,future:r,window:l}=e,o=E.useRef();o.current==null&&(o.current=Lp({window:l,v5Compat:!0}));let i=o.current,[u,s]=E.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},h=E.useCallback(p=>{a&&xs?xs(()=>s(p)):s(p)},[s,a]);return E.useLayoutEffect(()=>i.listen(h),[i,h]),E.createElement(vh,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const Nh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ss=E.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:s,to:a,preventScrollReset:h,unstable_viewTransition:p}=t,m=gh(t,Sh),{basename:g}=E.useContext(Ut),w,x=!1;if(typeof a=="string"&&_h.test(a)&&(w=a,Nh))try{let d=new URL(window.location.href),y=a.startsWith("//")?new URL(d.protocol+a):new URL(a),k=lu(y.pathname,g);y.origin===d.origin&&k!=null?a=k+y.search+y.hash:x=!0}catch{}let C=th(a,{relative:l}),f=Ph(a,{replace:i,state:u,target:s,preventScrollReset:h,relative:l,unstable_viewTransition:p});function c(d){r&&r(d),d.defaultPrevented||f(d)}return E.createElement("a",ai({},m,{href:w||C,onClick:x||o?r:c,ref:n,target:s}))});var ks;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ks||(ks={}));var Es;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Es||(Es={}));function Ph(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u}=t===void 0?{}:t,s=Dl(),a=Ol(),h=Yc(e,{relative:i});return E.useCallback(p=>{if(xh(p,n)){p.preventDefault();let m=r!==void 0?r:dl(a)===dl(h);s(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:u})}},[a,s,h,r,l,n,e,o,i,u])}function lr({name:e,preIcon:t,postIcon:n,handler:r,color:l="blue"}){const o={blue:"bg-blue-500 hover:bg-blue-700 text-white",red:"bg-red-500 hover:bg-red-700 text-white",yellow:"bg-yellow-500 hover:bg-yellow-700 text-black",black:"bg-black hover:bg-gray-800 text-white",grey:"bg-gray-500 hover:bg-gray-700 text-white",green:"bg-green-500 hover:bg-green-700 text-white",orange:"bg-orange-500 hover:bg-orange-700 text-white"},i=o[l]||o.blue;return v.jsxs("button",{className:`${i} font-bold py-2 px-4 rounded flex w-min text-nowrap items-center focus:outline-none`,onClick:r,children:[t&&v.jsx("span",{children:t}),e&&v.jsx("span",{className:"mx-2",children:e}),n&&v.jsx("span",{children:n})]})}function Cs({name:e,contentArr:t,handleDropdown:n}){return v.jsx("div",{className:"flex justify-evenly",children:v.jsxs("select",{name:e,onChange:r=>n(r),className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded flex items-center",children:[v.jsxs("option",{value:"",children:["Please choose ",e]}),t==null?void 0:t.map((r,l)=>v.jsx("option",{value:r,children:r},l))]})})}const jh=()=>["Science","Geography","History","Mathematics","Pop Culture","Music","Literature","Favourited"],Lh=()=>["easy","medium","hard","all"];function po(){const e=jh(),t=Lh(),[n,r]=E.useState(void 0),[l,o]=E.useState(void 0);console.log("Category selected "+n),console.log("Difficulty selected "+l);const i=Dl(),u=()=>{i("/quiz")},s=h=>{r(h.target.value)},a=h=>{o(h.target.value)};return v.jsxs("div",{className:"container mx-auto flex flex-col items-center mt-10 p-5",children:[v.jsx("h1",{className:"text-4xl font-bold mb-4 text-white",children:"Take a Quiz"}),v.jsx("section",{className:"mb-6 text-gray-400 text-center",children:v.jsx("p",{children:"This is the main page for the quiz."})}),v.jsxs("div",{className:"flex flex-col md:flex-row space-y-4 md:space-y-0 md:space-x-4 mb-6",children:[v.jsx(Cs,{name:"Category",contentArr:e,handleDropdown:s}),v.jsx(Cs,{name:"Difficulty",contentArr:t,handleDropdown:a})]}),v.jsx(lr,{name:"START QUIZ",color:"orange",handler:u})]})}function zh(){return v.jsx(v.Fragment,{children:v.jsx("h1",{children:"Quiz component "})})}var Zc={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ns=He.createContext&&He.createContext(Zc),Th=["attr","size","title"];function Rh(e,t){if(e==null)return{};var n=Oh(e,t),r,l;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oh(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;tHe.createElement(t.tag,ml({key:n},t.attr),Jc(t.child)))}function Il(e){return t=>He.createElement(Fh,hl({attr:ml({},e.attr)},t),Jc(e.child))}function Fh(e){var t=n=>{var{attr:r,size:l,title:o}=e,i=Rh(e,Th),u=l||n.size||"1em",s;return n.className&&(s=n.className),e.className&&(s=(s?s+" ":"")+e.className),He.createElement("svg",hl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:s,style:ml(ml({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&He.createElement("title",null,o),e.children)};return Ns!==void 0?He.createElement(Ns.Consumer,null,n=>t(n)):t(Zc)}function Uh(e){return Il({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function $h(e){return Il({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"},child:[]}]})(e)}function Bh(e){return Il({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"},child:[]}]})(e)}function Ah(e){return Il({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"},child:[]},{tag:"line",attr:{x1:"18",y1:"9",x2:"12",y2:"15"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"18",y2:"15"},child:[]}]})(e)}function Vh({question:e,onDelete:t,onEdit:n}){return v.jsxs("div",{className:"flex justify-between items-center bg-gray-100 p-2 rounded border-b border-gray-600 w-full",children:[v.jsx("span",{className:"text-gray-700 mr-2 ml-2 justify-self-start",children:e.question}),v.jsxs("div",{className:"flex space-x-2",children:[v.jsx(lr,{preIcon:v.jsx(Bh,{}),handler:n,name:"Edit"}),v.jsx(lr,{color:"red",preIcon:v.jsx(Ah,{}),handler:t,name:"Delete"})]})]})}function Wh({questions:e,setAllQuestions:t}){const n=o=>{console.log(`Deleting question with id: ${o}`),fetch(`http://localhost:3000/delete-post/${o}`,{method:"DELETE",headers:{"Content-Type":"application/json"}}).then(i=>{if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return i.text()}).then(i=>{console.log("Delete response:",i),t(u=>u.filter(s=>s.id!==o))}).catch(i=>{console.error("Error:",i)})},r=Dl(),l=o=>{console.log(`Editing question with id: ${o}`),r(`/questionbank/editquestion/${o}`)};return v.jsx("div",{className:"question-bank-table",children:e.map(o=>v.jsx(Vh,{question:o,onDelete:()=>n(o.id),onEdit:()=>l(o.id)},o.id))})}var Qh={};function Hh(){const[e,t]=E.useState([]),n=Dl(),r=Qh.apiURL,l=()=>{n("/home")};function o(){n("/questionbank/addquestion")}return E.useEffect(()=>{console.log(`URL es: ${r}`),fetch(`${r}`,{method:"GET",headers:{"Content-Type":"application/json"}}).then(i=>i.json()).then(i=>{t(i)}).catch(i=>{console.error("Error:",i)})},[]),v.jsxs("div",{className:"container mx-auto flex flex-col items-center mt-10 p-5",children:[v.jsx("h1",{className:"text-4xl font-bold mb-4 text-white",children:"Question bank"}),v.jsx("section",{className:"mb-6 text-gray-400 text-center",children:v.jsx("p",{children:"Create - Edit - Delete questions."})}),v.jsxs("div",{className:"flex flex-col space-y-4",children:[v.jsx(lr,{name:"CREATE QUESTION",color:"blue",handler:o}),v.jsx(Wh,{questions:e,setAllQuestions:t}),v.jsx(lr,{name:"BACK",color:"orange",handler:l})]})]})}function Kh(){const[e,t]=E.useState({id:9,category:"test",difficulty:"easy",question:"How many",options:["01/07/1998","07/07/1998","02/02/1961","09/09/1990"],answer:"",favourited:!1,timestamp:new Date}),n=l=>{l.preventDefault(),fetch("http://localhost:3000/create-question",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(o=>o.json()).then(o=>{console.log(o)}).catch(o=>{console.error("Error:",o)})},r=l=>{const{name:o,type:i,checked:u,value:s}=l.target;t(a=>({...a,[o]:i==="checkbox"?u:s}))};return v.jsxs("form",{onSubmit:n,className:" text-black p-4 bg-gray-100 rounded shadow-md ",children:[v.jsxs("div",{className:"grid grid-cols-2 gap-2 auto-cols-min",children:[v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"ID:"}),v.jsx("input",{type:"text",name:"id",value:e.id,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 self-end font-bold mb-2",children:"Category:"}),v.jsx("input",{type:"text",name:"category",value:e.category,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Difficulty:"}),v.jsx("input",{type:"text",name:"difficulty",value:e.difficulty,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Question:"}),v.jsx("input",{type:"text",name:"question",value:e.question,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 0:"}),v.jsx("input",{type:"text",name:"options",value:e.options[0],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 1:"}),v.jsx("input",{type:"text",name:"options",value:e.options[1],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 2:"}),v.jsx("input",{type:"text",name:"options",value:e.options[2],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 3:"}),v.jsx("input",{type:"text",name:"options",value:e.options[3],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Answer:"}),v.jsx("input",{type:"text",name:"answer",value:e.answer,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Favourited:"}),v.jsx("input",{type:"checkbox",name:"favourited",checked:e.favourited,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Timestamp:"}),v.jsx("input",{type:"date",name:"timestamp",value:e.timestamp.toISOString().split("T")[0],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"})]}),v.jsx("button",{type:"submit",children:"Add question"})]})}function Yh(){return v.jsx(v.Fragment,{children:v.jsx(Kh,{})})}const Xh=({id:e})=>{const[t,n]=E.useState({id:0,category:"",difficulty:"medium",question:"Default start values",options:["a","b","c","d"],answer:"",favourited:!1,timestamp:new Date});E.useEffect(()=>{(async()=>{try{console.log("Fetched ID:",e);const i=Number(e);if(isNaN(i))throw new Error("Invalid ID");const a=(await(await fetch(`http://localhost:3000/get-question-by-id/${e}`)).json())[0];a.timestamp=new Date(a.timestamp),n(a)}catch(i){console.error("Error fetching data:",i)}})()},[e]);const r=o=>{const{name:i,type:u,checked:s,value:a}=o.currentTarget;n(h=>({...h,[i]:u==="checkbox"?s:a}))},l=o=>{o.preventDefault(),console.log(t)};return v.jsxs("form",{onSubmit:l,className:"text-black p-4 bg-gray-100 rounded shadow-md",children:[v.jsxs("div",{className:"grid grid-cols-2 gap-2 auto-cols-min",children:[v.jsx("label",{className:"block text-gray-700 self-end font-bold mb-2",children:"Category:"}),v.jsx("input",{type:"text",name:"category",value:t.category,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Difficulty:"}),v.jsx("input",{type:"text",name:"difficulty",value:t.difficulty,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Question:"}),v.jsx("input",{type:"text",name:"question",value:t.question,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 0:"}),v.jsx("input",{type:"text",name:"options",value:t.options[0],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 1:"}),v.jsx("input",{type:"text",name:"options",value:t.options[1],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 2:"}),v.jsx("input",{type:"text",name:"options",value:t.options[2],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Option 3:"}),v.jsx("input",{type:"text",name:"options",value:t.options[3],onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Answer:"}),v.jsx("input",{type:"text",name:"answer",value:t.answer,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Favourited:"}),v.jsx("input",{type:"checkbox",name:"favourited",checked:t.favourited,onChange:r,className:"w-full px-3 py-2 border rounded bg-white"}),v.jsx("label",{className:"block text-gray-700 font-bold mb-2 self-end",children:"Timestamp:"}),v.jsx("input",{type:"date",name:"timestamp",value:t.timestamp.toISOString().substr(0,10),onChange:r,className:"w-full px-3 py-2 border rounded bg-white"})]}),v.jsx("button",{type:"submit",className:"mt-4 px-4 py-2 bg-blue-500 text-white rounded",children:"Edit question"})]})},Gh=()=>{const{id:e}=rh();return v.jsx(Xh,{id:Number(e)})},Zh=()=>v.jsxs(yh,{children:[v.jsx(be,{path:"/",element:v.jsx(po,{})}),v.jsx(be,{path:"/home",element:v.jsx(po,{})}),v.jsx(be,{path:"/P1DAAF-Frontend/",element:v.jsx(po,{})}),v.jsx(be,{path:"/quiz",element:v.jsx(zh,{})}),v.jsx(be,{path:"/questionbank",element:v.jsx(Hh,{})}),v.jsx(be,{path:"/questionbank/addquestion",element:v.jsx(Yh,{})}),v.jsx(be,{path:"/questionbank/editquestion/:id",element:v.jsx(Gh,{})})]}),Jh=()=>v.jsx("nav",{className:"bg-gray-700 p-4 w-full top-0 z-50",children:v.jsxs("ul",{className:"flex space-x-8",children:[v.jsx("li",{children:v.jsxs(Ss,{to:"/home",className:"text-white flex items-center space-x-2 hover:text-gray-400",children:[v.jsx(Uh,{}),v.jsx("span",{children:"Home"})]})}),v.jsx("li",{children:v.jsxs(Ss,{to:"/questionbank",className:"text-white flex items-center space-x-2 hover:text-gray-400",children:[v.jsx($h,{}),v.jsx("span",{children:"Question Bank"})]})})]})});function qh(){return v.jsx(Ch,{children:v.jsxs("div",{children:[v.jsx(Jh,{}),v.jsx(Zh,{})]})})}ho.createRoot(document.getElementById("root")).render(v.jsx(He.StrictMode,{children:v.jsx(qh,{})})); diff --git a/index.html b/index.html index a86bafa..290633b 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +