diff --git a/assets/index-C2c6cWFS.js b/assets/index-BPW6ToxG.js similarity index 90% rename from assets/index-C2c6cWFS.js rename to assets/index-BPW6ToxG.js index d6caf3a..e7b7d7d 100644 --- a/assets/index-C2c6cWFS.js +++ b/assets/index-BPW6ToxG.js @@ -1,4 +1,4 @@ -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:{}},O={};/** +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 * @@ -6,7 +6,7 @@ function bc(e,t){for(var n=0;n>>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,R=-1;function je(){return!(e.unstable_now()-R_||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;/** + */(function(e){function t(_,z){var T=_.length;_.push(z);e:for(;0>>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 * @@ -34,10 +34,10 @@ function bc(e,t){for(var n=0;nu||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 Of(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=Of(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},Rf=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){Rf.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-Re(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=On),_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(),Rr=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=Ou(n,o);var i=Ou(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 Ru(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-Re(t)+l|n<L?(Q=j,j=null):Q=j.sibling;var R=m(f,j,d[L],y);if(R===null){j===null&&(j=Q);break}e&&j&&R.alternate===null&&t(f,j),c=o(R,c,L),P===null?k=R:P.sibling=R,P=R,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,R.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(R.done)return n(f,j),$&&Ct(f,L),k;if(j===null){for(;!R.done;L++,R=d.next())R=p(f,R.value,y),R!==null&&(c=o(R,c,L),P===null?k=R:P.sibling=R,P=R);return $&&Ct(f,L),k}for(j=r(f,j);!R.done;L++,R=d.next())R=g(j,f,L,R.value,y),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?L:R.key),c=o(R,c,L),P===null?k=R:P.sibling=R,P=R);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,Ri=null;function Di(){Ri=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,Ri=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(Ri!==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));Rt&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-Re(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qn++,0")&&(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 Oc(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),Oc(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),Oc(e,n)}var Rc;Rc=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,Oe=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;/** +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function uo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Yo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rp=typeof WeakMap=="function"?WeakMap:Map;function fc(e,t,n){n=Ke(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sl||(sl=!0,ri=r),Yo(e,t)},n}function dc(e,t,n){n=Ke(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Yo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Yo(e,t),typeof r!="function"&&(dt===null?dt=new Set([this]):dt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ju(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rp;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yp.bind(null,e,t,n),t.then(e,e))}function qu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function bu(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ke(-1,1),t.tag=2,ft(n,t,1))),n.lanes|=1),e)}var lp=Je.ReactCurrentOwner,de=!1;function ue(e,t,n,r){t.child=e===null?Aa(t,null,n,r):sn(t,e.child,n,r)}function es(e,t,n,r,l){n=n.render;var o=t.ref;return nn(t,l),r=Vi(e,t,n,r,o,l),n=Wi(),e!==null&&!de?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ze(e,t,l)):($&&n&&zi(t),t.flags|=1,ue(e,t,r,l),t.child)}function ts(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!bi(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,pc(e,t,o,r,l)):(e=Ar(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Kn,n(i,r)&&e.ref===t.ref)return Ze(e,t,l)}return t.flags|=1,e=ht(o,r),e.ref=t.ref,e.return=t,t.child=e}function pc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Kn(o,r)&&e.ref===t.ref)if(de=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(de=!0);else return t.lanes=e.lanes,Ze(e,t,l)}return Xo(e,t,n,r,l)}function hc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},M(Jt,ve),ve|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,M(Jt,ve),ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,M(Jt,ve),ve|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,M(Jt,ve),ve|=r;return ue(e,t,l,n),t.child}function mc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xo(e,t,n,r,l){var o=he(n)?Tt:ie.current;return o=on(t,o),nn(t,l),n=Vi(e,t,n,r,o,l),r=Wi(),e!==null&&!de?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ze(e,t,l)):($&&r&&zi(t),t.flags|=1,ue(e,t,n,l),t.child)}function ns(e,t,n,r,l){if(he(n)){var o=!0;qr(t)}else o=!1;if(nn(t,l),t.stateNode===null)Ur(e,t),cc(t,n,r),Ko(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=_e(a):(a=he(n)?Tt:ie.current,a=on(t,a));var h=n.getDerivedStateFromProps,p=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==a)&&Zu(t,i,r,a),tt=!1;var m=t.memoizedState;i.state=m,rl(t,r,i,l),s=t.memoizedState,u!==r||m!==s||pe.current||tt?(typeof h=="function"&&(Ho(t,n,h,r),s=t.memoizedState),(u=tt||Gu(t,n,u,r,m,s,a))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=a,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Wa(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:ze(t.type,u),i.props=a,p=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=_e(s):(s=he(n)?Tt:ie.current,s=on(t,s));var g=n.getDerivedStateFromProps;(h=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==p||m!==s)&&Zu(t,i,r,s),tt=!1,m=t.memoizedState,i.state=m,rl(t,r,i,l);var w=t.memoizedState;u!==p||m!==w||pe.current||tt?(typeof g=="function"&&(Ho(t,n,g,r),w=t.memoizedState),(a=tt||Gu(t,n,a,r,m,w,s)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=s,r=a):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Go(e,t,n,r,o,l)}function Go(e,t,n,r,l,o){mc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Au(t,n,!1),Ze(e,t,o);r=t.stateNode,lp.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=sn(t,e.child,null,o),t.child=sn(t,null,u,o)):ue(e,t,u,o),t.memoizedState=r.state,l&&Au(t,n,!0),t.child}function vc(e){var t=e.stateNode;t.pendingContext?Bu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bu(e,t.context,!1),Ui(e,t.containerInfo)}function rs(e,t,n,r,l){return un(),Ri(l),t.flags|=256,ue(e,t,n,r),t.child}var Zo={dehydrated:null,treeContext:null,retryLane:0};function Jo(e){return{baseLanes:e,cachePool:null,transitions:null}}function yc(e,t,n){var r=t.pendingProps,l=B.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),M(B,l&1),e===null)return Wo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Pl(i,r,0,null),e=zt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Jo(n),t.memoizedState=Zo,e):Ki(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return op(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=ht(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=ht(u,o):(o=zt(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Jo(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Zo,r}return o=e.child,e=o.sibling,r=ht(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ki(e,t){return t=Pl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _r(e,t,n,r){return r!==null&&Ri(r),sn(t,e.child,null,n),e=Ki(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function op(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=uo(Error(S(422))),_r(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Pl({mode:"visible",children:r.children},l,0,null),o=zt(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&sn(t,e.child,null,i),t.child.memoizedState=Jo(i),t.memoizedState=Zo,o);if(!(t.mode&1))return _r(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(S(419)),r=uo(o,r,void 0),_r(e,t,i,r)}if(u=(i&e.childLanes)!==0,de||u){if(r=b,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Ge(e,l),De(r,e,l,-1))}return qi(),r=uo(Error(S(421))),_r(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=gp.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ye=ct(l.nextSibling),ge=t,$=!0,Re=null,e!==null&&(ke[Ee++]=We,ke[Ee++]=Qe,ke[Ee++]=Rt,We=e.id,Qe=e.overflow,Rt=t),t=Ki(t,r.children),t.flags|=4096,t)}function ls(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qo(e.return,t,n)}function so(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function gc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ue(e,t,r.children,n),r=B.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ls(e,n,t);else if(e.tag===19)ls(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(M(B,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&ll(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),so(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ll(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}so(t,!0,n,null,o);break;case"together":so(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ur(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=ht(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ht(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ip(e,t,n){switch(t.tag){case 3:vc(t),un();break;case 5:Qa(t);break;case 1:he(t.type)&&qr(t);break;case 4:Ui(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;M(tl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(M(B,B.current&1),t.flags|=128,null):n&t.child.childLanes?yc(e,t,n):(M(B,B.current&1),e=Ze(e,t,n),e!==null?e.sibling:null);M(B,B.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return gc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),M(B,B.current),r)break;return null;case 22:case 23:return t.lanes=0,hc(e,t,n)}return Ze(e,t,n)}var wc,qo,xc,Sc;wc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};qo=function(){};xc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,jt(Be.current);var o=null;switch(n){case"input":l=xo(e,l),r=xo(e,r),o=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":l=Eo(e,l),r=Eo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zr)}No(n,r);var i;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var u=l[a];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&($n.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var s=r[a];if(u=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&($n.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&F("scroll",e),o||u===s||(o=[])):(o=o||[]).push(a,s))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Sc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Cn(e,t){if(!$)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function up(e,t,n){var r=t.pendingProps;switch(Ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return le(t),null;case 1:return he(t.type)&&Jr(),le(t),null;case 3:return r=t.stateNode,an(),U(pe),U(ie),Bi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Cr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Re!==null&&(ii(Re),Re=null))),qo(e,t),le(t),null;case 5:$i(t);var l=jt(Jn.current);if(n=t.type,e!==null&&t.stateNode!=null)xc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return le(t),null}if(e=jt(Be.current),Cr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ue]=t,r[Gn]=o,e=(t.mode&1)!==0,n){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(l=0;l<\/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. @@ -46,7 +46,7 @@ Error generating stack: `+o.message+` * 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 Op(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);Rp(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 Rp(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);/** + */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. @@ -55,7 +55,7 @@ Error generating stack: `+o.message+` * 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}=Rl(),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=Rl(),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=Op(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(Ol.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(Ol.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}/** + */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. @@ -64,4 +64,4 @@ Error generating stack: `+o.message+` * 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=Rl(),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 Oh(e,t){if(e==null)return{};var n=Rh(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 Rh(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=Oh(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(()=>{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,{})})); + */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(`${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 144162a..fece27f 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +