/*! For license information please see main.8f8a9459.js.LICENSE.txt */ (()=>{"use strict";var e={4(e,t,n){var r=n(853),o=n(43),a=n(950);function i(e){var t="https://react.dev/errors/"+e;if(1)":-1--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{T=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?O(n):""}function z(e){switch(e.tag){case 26:case 27:case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 15:return e=A(e.type,!1);case 11:return e=A(e.type.render,!1);case 1:return e=A(e.type,!0);default:return""}}function L(e){try{var t="";do{t+=z(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function D(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function F(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function I(e){if(D(e)!==e)throw Error(i(188))}function U(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=U(e)))return t;e=e.sibling}return null}var B=Array.isArray,q=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},W=[],V=-1;function K(e){return{current:e}}function $(e){0>V||(e.current=W[V],W[V]=null,V--)}function G(e,t){V++,W[V]=e.current,e.current=t}var Q=K(null),Y=K(null),X=K(null),J=K(null);function Z(e,t){switch(G(X,t),G(Y,e),G(Q,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Yu(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Xu(e=Yu(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}$(Q),G(Q,t)}function ee(){$(Q),$(Y),$(X)}function te(e){null!==e.memoizedState&&G(J,e);var t=Q.current,n=Xu(t,e.type);t!==n&&(G(Y,e),G(Q,n))}function ne(e){Y.current===e&&($(Q),$(Y)),J.current===e&&($(J),Ld._currentValue=H)}var re=Object.prototype.hasOwnProperty,oe=r.unstable_scheduleCallback,ae=r.unstable_cancelCallback,ie=r.unstable_shouldYield,se=r.unstable_requestPaint,le=r.unstable_now,ce=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,fe=r.unstable_NormalPriority,pe=r.unstable_LowPriority,me=r.unstable_IdlePriority,he=r.log,ve=r.unstable_setDisableYieldValue,ge=null,ye=null;function be(e){if("function"===typeof he&&ve(e),ye&&"function"===typeof ye.setStrictMode)try{ye.setStrictMode(ge,e)}catch(t){}}var xe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(we(e)/ke|0)|0},we=Math.log,ke=Math.LN2;var je=128,Se=4194304;function Ne(e){var t=42&e;if(0!==t)return t;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:return 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 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ee(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=e.warmLanes;e=0!==e.finishedLanes;var s=134217727&n;return 0!==s?0!==(n=s&~o)?r=Ne(n):0!==(a&=s)?r=Ne(a):e||0!==(i=s&~i)&&(r=Ne(i)):0!==(s=n&~o)?r=Ne(s):0!==a?r=Ne(a):e||0!==(i=n&~i)&&(r=Ne(i)),0===r?0:0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||32===o&&0!==(4194176&i))?t:r}function Ce(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function _e(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 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 t+5e3;default:return-1}}function Re(){var e=je;return 0===(4194176&(je<<=1))&&(je=128),e}function Pe(){var e=Se;return 0===(62914560&(Se<<=1))&&(Se=4194304),e}function Me(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Oe(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Te(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-xe(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function Ae(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xe(n),o=1<=kn),Nn=String.fromCharCode(32),En=!1;function Cn(e,t){switch(e){case"keyup":return-1!==xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _n(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Rn=!1;var Pn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Pn[e.type]:"textarea"===t}function On(e,t,n,r){Ot?Tt?Tt.push(r):Tt=[r]:Ot=r,0<(t=Lu(t,"onChange")).length&&(n=new Jt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Tn=null,An=null;function zn(e){_u(e,0)}function Ln(e){if(ft(Qe(e)))return e}function Dn(e,t){if("change"===e)return t}var Fn=!1;if(nt){var In;if(nt){var Un="oninput"in document;if(!Un){var Bn=document.createElement("div");Bn.setAttribute("oninput","return;"),Un="function"===typeof Bn.oninput}In=Un}else In=!1;Fn=In&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Yn(r)}}function Jn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Jn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Zn(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function tr(e,t){var n=Zn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Jn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var o=t.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!n.extend&&a>r&&(o=r,r=a,a=o),o=Xn(t,a);var i=Xn(t,r);o&&i&&(1!==n.rangeCount||n.anchorNode!==o.node||n.anchorOffset!==o.offset||n.focusNode!==i.node||n.focusOffset!==i.offset)&&((e=e.createRange()).setStart(o.node,o.offset),n.removeAllRanges(),a>r?(n.addRange(e),n.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"===typeof t.focus&&t.focus(),t=0;t=document.documentMode,rr=null,or=null,ar=null,ir=!1;function sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ir||null==rr||rr!==pt(r)||("selectionStart"in(r=rr)&&er(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ar&&Qn(ar,r)||(ar=r,0<(r=Lu(or,"onSelect")).length&&(t=new Jt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cr={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},ur={},dr={};function fr(e){if(ur[e])return ur[e];if(!cr[e])return e;var t,n=cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in dr)return ur[e]=n[t];return e}nt&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete cr.animationend.animation,delete cr.animationiteration.animation,delete cr.animationstart.animation),"TransitionEvent"in window||delete cr.transitionend.transition);var pr=fr("animationend"),mr=fr("animationiteration"),hr=fr("animationstart"),vr=fr("transitionrun"),gr=fr("transitionstart"),yr=fr("transitioncancel"),br=fr("transitionend"),xr=new Map,wr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function kr(e,t){xr.set(e,t),et(t,[e])}var jr=[],Sr=0,Nr=0;function Er(){for(var e=Sr,t=Nr=Sr=0;t>=i,o-=i,qr=1<<32-xe(t)+o|n<f?(p=d,d=null):p=d.sibling;var m=g(o,d,s[f],l);if(null===m){null===d&&(d=p);break}e&&d&&null===m.alternate&&t(o,d),i=a(m,i,f),null===u?c=m:u.sibling=m,u=m,d=p}if(f===s.length)return n(o,d),Yr&&Wr(o,f),c;if(null===d){for(;fp?(m=f,f=null):m=f.sibling;var b=g(o,f,v.value,c);if(null===b){null===f&&(f=m);break}e&&f&&null===b.alternate&&t(o,f),s=a(b,s,p),null===d?u=b:d.sibling=b,d=b,f=m}if(v.done)return n(o,f),Yr&&Wr(o,p),u;if(null===f){for(;!v.done;p++,v=l.next())null!==(v=h(o,v.value,c))&&(s=a(v,s,p),null===d?u=v:d.sibling=v,d=v);return Yr&&Wr(o,p),u}for(f=r(f);!v.done;p++,v=l.next())null!==(v=y(f,o,p,v.value,c))&&(e&&null!==v.alternate&&f.delete(null===v.key?p:v.key),s=a(v,s,p),null===d?u=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return t(o,e)}),Yr&&Wr(o,p),u}(l,f,p=x.call(p),m)}if("function"===typeof p.then)return b(l,f,go(p),m);if(p.$$typeof===v)return b(l,f,Es(l,p),m);bo(l,p)}return"string"===typeof p&&""!==p||"number"===typeof p||"bigint"===typeof p?(p=""+p,null!==f&&6===f.tag?(n(l,f.sibling),(m=o(f,p)).return=l,l=m):(n(l,f),(m=ql(p,l.mode,m)).return=l,l=m),s(l)):n(l,f)}return function(e,t,n,r){try{vo=0;var o=b(e,t,n,r);return ho=null,o}catch(i){if(i===io)throw i;var a=zl(29,i,null,e.mode);return a.lanes=r,a.return=e,a}}}var ko=wo(!0),jo=wo(!1),So=K(null),No=K(0);function Eo(e,t){G(No,e=cc),G(So,t),cc=e|t.baseLanes}function Co(){G(No,cc),G(So,So.current)}function _o(){cc=No.current,$(So),$(No)}var Ro=K(null),Po=null;function Mo(e){var t=e.alternate;G(zo,1&zo.current),G(Ro,e),null===Po&&(null===t||null!==So.current||null!==t.memoizedState)&&(Po=e)}function Oo(e){if(22===e.tag){if(G(zo,zo.current),G(Ro,e),null===Po){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Po=e)}}else To()}function To(){G(zo,zo.current),G(Ro,Ro.current)}function Ao(e){$(Ro),Po===e&&(Po=null),$(zo)}var zo=K(0);function Lo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Do="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Fo=r.unstable_scheduleCallback,Io=r.unstable_NormalPriority,Uo={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bo(){return{controller:new Do,data:new Map,refCount:0}}function qo(e){e.refCount--,0===e.refCount&&Fo(Io,function(){e.controller.abort()})}var Ho=null,Wo=0,Vo=0,Ko=null;function $o(){if(0===--Wo&&null!==Ho){null!==Ko&&(Ko.status="fulfilled");var e=Ho;Ho=null,Vo=0,Ko=null;for(var t=0;ta?a:8;var i=P.T,s={};P.T=s,wi(e,!1,t,n);try{var l=o(),c=P.S;if(null!==c&&c(s,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)xi(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e title"))),Ku(a,r,n),a[Fe]=e,Xe(a),r=a;break e;case"link":var s=Cd("link","href",o).get(r+(n.href||""));if(s)for(var l=0;l<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"===typeof r.is?o.createElement(n,{is:r.is}):o.createElement(n)}}e[Fe]=t,e[Ie]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(Ku(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Wl(t)}}return Gl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Wl(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(e=X.current,ro(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=Gr))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Fe]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||qu(e.nodeValue,n)))||eo(t)}else(e=Qu(e).createTextNode(r))[Fe]=t,t.stateNode=e}return Gl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=ro(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[Fe]=t}else oo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),o=!1}else null!==Xr&&(Ac(Xr),Xr=null),o=!0;if(!o)return 256&t.flags?(Ao(t),t):(Ao(t),null)}if(Ao(t),0!==(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==o&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Kl(t,t.updateQueue),Gl(t),null;case 4:return ee(),null===e&&Ou(t.stateNode.containerInfo),Gl(t),null;case 10:return bs(t.type),Gl(t),null;case 19:if($(zo),null===(o=t.memoizedState))return Gl(t),null;if(r=0!==(128&t.flags),null===(a=o.rendering))if(r)$l(o,!1);else{if(0!==uc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Lo(e))){for(t.flags|=128,$l(o,!1),e=a.updateQueue,t.updateQueue=e,Kl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Fl(n,e),n=n.sibling;return G(zo,1&zo.current|2),t.child}e=e.sibling}null!==o.tail&&le()>xc&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Lo(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Kl(t,e),$l(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Yr)return Gl(t),null}else 2*le()-o.renderingStartTime>xc&&536870912!==n&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=le(),t.sibling=null,e=zo.current,G(zo,r?1&e|2:1&e),t):(Gl(t),null);case 22:case 23:return Ao(t),_o(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null!==(n=t.updateQueue)&&Kl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&$(Qo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bs(Uo),Gl(t),null;case 25:return null}throw Error(i(156,t.tag))}function Yl(e,t){switch($r(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return bs(Uo),ee(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(Ao(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));oo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $(zo),null;case 4:return ee(),null;case 10:return bs(t.type),null;case 22:case 23:return Ao(t),_o(),null!==e&&$(Qo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return bs(Uo),null;default:return null}}function Xl(e,t){switch($r(t),t.tag){case 3:bs(Uo),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:Ao(t);break;case 19:$(zo);break;case 10:bs(t.type);break;case 22:case 23:Ao(t),_o(),null!==e&&$(Qo);break;case 24:bs(Uo)}}var Jl={getCacheForType:function(e){var t=Ns(Uo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Zl="function"===typeof WeakMap?WeakMap:Map,ec=0,tc=null,nc=null,rc=0,oc=0,ac=null,ic=!1,sc=!1,lc=!1,cc=0,uc=0,dc=0,fc=0,pc=0,mc=0,hc=0,vc=null,gc=null,yc=!1,bc=0,xc=1/0,wc=null,kc=null,jc=!1,Sc=null,Nc=0,Ec=0,Cc=null,_c=0,Rc=null;function Pc(){if(0!==(2&ec)&&0!==rc)return rc&-rc;if(null!==P.T){return 0!==Vo?Vo:wu()}return Le()}function Mc(){0===mc&&(mc=0===(536870912&rc)||Yr?Re():536870912);var e=Ro.current;return null!==e&&(e.flags|=32),mc}function Oc(e,t,n){(e===tc&&2===oc||null!==e.cancelPendingCommit)&&(Uc(e,0),Dc(e,rc,mc,!1)),Oe(e,n),0!==(2&ec)&&e===tc||(e===tc&&(0===(2&ec)&&(fc|=n),4===uc&&Dc(e,rc,mc,!1)),hu(e))}function Tc(e,t,n){if(0!==(6&ec))throw Error(i(327));for(var r=!n&&0===(60&t)&&0===(t&e.expiredLanes)||Ce(e,t),o=r?function(e,t){var n=ec;ec|=2;var r=qc(),o=Hc();tc!==e||rc!==t?(wc=null,xc=le()+500,Uc(e,t)):sc=Ce(e,t);e:for(;;)try{if(0!==oc&&null!==nc){t=nc;var a=ac;t:switch(oc){case 1:oc=0,ac=null,Yc(e,t,a,1);break;case 2:if(co(a)){oc=0,ac=null,Qc(t);break}t=function(){2===oc&&tc===e&&(oc=7),hu(e)},a.then(t,t);break e;case 3:oc=7;break e;case 4:oc=5;break e;case 7:co(a)?(oc=0,ac=null,Qc(t)):(oc=0,ac=null,Yc(e,t,a,7));break;case 5:var s=null;switch(nc.tag){case 26:s=nc.memoizedState;case 5:case 27:var l=nc;if(!s||Rd(s)){oc=0,ac=null;var c=l.sibling;if(null!==c)nc=c;else{var u=l.return;null!==u?(nc=u,Xc(u)):nc=null}break t}}oc=0,ac=null,Yc(e,t,a,5);break;case 6:oc=0,ac=null,Yc(e,t,a,6);break;case 8:Ic(),uc=6;break e;default:throw Error(i(462))}}$c();break}catch(d){Bc(e,d)}return gs=vs=null,P.H=r,P.A=o,ec=n,null!==nc?0:(tc=null,rc=0,Er(),uc)}(e,t):Vc(e,t,!0),a=r;;){if(0===o){sc&&!r&&Dc(e,t,0,!1);break}if(6===o)Dc(e,t,0,!ic);else{if(n=e.current.alternate,a&&!Lc(n)){o=Vc(e,t,!1),a=!1;continue}if(2===o){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=vc;var c=l.current.memoizedState.isDehydrated;if(c&&(Uc(l,s).flags|=256),2!==(s=Vc(l,s,!1))){if(lc&&!c){l.errorRecoveryDisabledLanes|=a,fc|=a,o=4;break e}a=gc,gc=o,null!==a&&Ac(a)}o=s}if(a=!1,2!==o)continue}}if(1===o){Uc(e,0),Dc(e,t,0,!0);break}e:{switch(r=e,o){case 0:case 1:throw Error(i(345));case 4:if((4194176&t)===t){Dc(r,t,mc,!ic);break e}break;case 2:gc=null;break;case 3:case 5:break;default:throw Error(i(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(a=bc+300-le())){if(Dc(r,t,mc,!ic),0!==Ee(r,0))break e;r.timeoutHandle=ed(zc.bind(null,r,n,gc,wc,yc,t,mc,fc,hc,ic,2,-0,0),a)}else zc(r,n,gc,wc,yc,t,mc,fc,hc,ic,0,-0,0)}}break}hu(e)}function Ac(e){null===gc?gc=e:gc.push.apply(gc,e)}function zc(e,t,n,r,o,a,s,l,c,u,d,f,p){var m=t.subtreeFlags;if((8192&m||16785408===(16785408&m))&&(Pd={stylesheets:null,count:0,unsuspend:Md},_l(t),null!==(t=function(){if(null===Pd)throw Error(i(475));var e=Pd;return e.stylesheets&&0===e.count&&Ad(e,e.stylesheets),0n?32:n,P.T=null,null===Sc)var a=!1;else{n=Cc,Cc=null;var s=Sc,l=Nc;if(Sc=null,Nc=0,0!==(6&ec))throw Error(i(331));var c=ec;if(ec|=4,Ml(s.current),jl(s,s.current,l,n),ec=c,vu(0,!1),ye&&"function"===typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(ge,s)}catch(u){}a=!0}return a}finally{q.p=o,P.T=r,eu(e,t)}}return!1}function nu(e,t,n){t=Ar(n,t),null!==(e=Os(e,t=Ui(e.stateNode,t,2),2))&&(Oe(e,2),hu(e))}function ru(e,t,n){if(3===e.tag)nu(e,e,n);else for(;null!==t;){if(3===t.tag){nu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===kc||!kc.has(r))){e=Ar(n,e),null!==(r=Os(t,n=Bi(2),2))&&(qi(n,r,t,e),Oe(r,2),hu(r));break}}t=t.return}}function ou(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Zl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(lc=!0,o.add(n),e=au.bind(null,e,t,n),t.then(e,e))}function au(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tc===e&&(rc&n)===n&&(4===uc||3===uc&&(62914560&rc)===rc&&300>le()-bc?0===(2&ec)&&Uc(e,0):pc|=n,hc===rc&&(hc=0)),hu(e)}function iu(e,t){0===t&&(t=Pe()),null!==(e=Rr(e,t))&&(Oe(e,t),hu(e))}function su(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),iu(e,n)}function lu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),iu(e,n)}var cu=null,uu=null,du=!1,fu=!1,pu=!1,mu=0;function hu(e){var t;e!==uu&&null===e.next&&(null===uu?cu=uu=e:uu=uu.next=e),fu=!0,du||(du=!0,t=gu,rd(function(){0!==(6&ec)?oe(ue,t):t()}))}function vu(e,t){if(!pu&&fu){pu=!0;do{for(var n=!1,r=cu;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var a=0;else{var i=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-xe(42|e)+1)-1,a=201326677&(a&=o&~(i&~s))?201326677&a|1:a?2|a:0}0!==a&&(n=!0,xu(r,a))}else a=rc,0===(3&(a=Ee(r,r===tc?a:0)))||Ce(r,a)||(n=!0,xu(r,a));r=r.next}}while(n);pu=!1}}function gu(){fu=du=!1;var e=0;0!==mu&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Zu&&(Zu=e,!0);return Zu=null,!1}()&&(e=mu),mu=0);for(var t=le(),n=null,r=cu;null!==r;){var o=r.next,a=yu(r,t);0===a?(r.next=null,null===n?cu=o:n.next=o,null===o&&(uu=n)):(n=r,(0!==e||0!==(3&a))&&(fu=!0)),r=o}vu(e,!1)}function yu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=-62914561&e.pendingLanes;0 title"):null)}function Rd(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Pd=null;function Md(){}function Od(){if(this.count--,0===this.count)if(this.stylesheets)Ad(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Td=null;function Ad(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Td=new Map,t.forEach(zd,e),Td=null,Od.call(e))}function zd(e,t){if(!(4&t.state.loading)){var n=Td.get(e);if(n)var r=n.get(null);else{n=new Map,Td.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a>>1,o=e[r];if(!(0>>1;ra(l,n))ca(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(ca(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,m=!1,h=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(v=!1,x(e),!h)if(null!==r(c))h=!0,M();else{var t=r(u);null!==t&&O(w,t.startTime-e)}}var k,j=!1,S=-1,N=5,E=-1;function C(){return!(t.unstable_now()-Ee&&C());){var i=f.callback;if("function"===typeof i){f.callback=null,p=f.priorityLevel;var s=i(f.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof s){f.callback=s,x(e),n=!0;break t}f===r(c)&&o(c),x(e)}else o(c);f=r(c)}if(null!==f)n=!0;else{var l=r(u);null!==l&&O(w,l.startTime-e),n=!1}}break e}finally{f=null,p=a,m=!1}n=void 0}}finally{n?k():j=!1}}}if("function"===typeof b)k=function(){b(_)};else if("undefined"!==typeof MessageChannel){var R=new MessageChannel,P=R.port2;R.port1.onmessage=_,k=function(){P.postMessage(null)}}else k=function(){g(_,0)};function M(){j||(j=!0,k())}function O(e,n){S=g(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,M())},t.unstable_forceFrameRate=function(e){0>e||125i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(v?(y(S),S=-1):v=!0,O(w,a-i))):(e.sortIndex=s,n(c,e),h||m||(h=!0,M())),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},950(e,t,n){!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(672)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>r[e]);return i.default=()=>r,n.d(a,i),a}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>zo,hasStandardBrowserEnv:()=>Do,hasStandardBrowserWebWorkerEnv:()=>Fo,navigator:()=>Lo,origin:()=>Io});var o=n(43),a=n.t(o,2),i=n(391);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function c(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;tC(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function S(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some(n=>!S(e[n],t[n])))}function N(e,t){if(e===t)return e;const n=E(e)&&E(t);if(n||C(e)&&C(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),i=a.length,s=n?[]:{};let l=0;for(let c=0;c2&&void 0!==arguments[2]?arguments[2]:0;const r=[...e,t];return n&&r.length>n?r.slice(1):r}function M(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var O=Symbol();function T(e,t){return!e.queryFn&&null!==t&&void 0!==t&&t.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==O?e.queryFn:()=>Promise.reject(new Error("Missing queryFn: '".concat(e.queryHash,"'")))}function A(e,t){f(e,t),t.add(e)}var z,L,D,F,I,U,B=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=e=>setTimeout(e,0);const a=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r{e(...n)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),q=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},H=new(z=new WeakMap,L=new WeakMap,D=new WeakMap,class extends q{constructor(){super(),p(this,z,void 0),p(this,L,void 0),p(this,D,void 0),v(D,this,e=>{if(!g&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){h(L,this)||this.setEventListener(h(D,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=h(L,this))||void 0===e||e.call(this),v(L,this,void 0))}setEventListener(e){var t;v(D,this,e),null===(t=h(L,this))||void 0===t||t.call(this),v(L,this,e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){h(z,this)!==e&&(v(z,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return"boolean"===typeof h(z,this)?h(z,this):"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}}),W=new(F=new WeakMap,I=new WeakMap,U=new WeakMap,class extends q{constructor(){super(),p(this,F,!0),p(this,I,void 0),p(this,U,void 0),v(U,this,e=>{if(!g&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){h(I,this)||this.setEventListener(h(U,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=h(I,this))||void 0===e||e.call(this),v(I,this,void 0))}setEventListener(e){var t;v(U,this,e),null===(t=h(I,this))||void 0===t||t.call(this),v(I,this,e(this.setOnline.bind(this)))}setOnline(e){h(F,this)!==e&&(v(F,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return h(F,this)}});function V(e){return Math.min(1e3*2**e,3e4)}function K(e){return"online"!==(null!==e&&void 0!==e?e:"online")||W.isOnline()}var $,G=class extends Error{constructor(e){super("CancelledError"),this.revert=null===e||void 0===e?void 0:e.revert,this.silent=null===e||void 0===e?void 0:e.silent}};function Q(e){return e instanceof G}function Y(e){let t,n,r,o=!1,a=0,i=!1;const s=new Promise((e,t)=>{n=e,r=t}),l=()=>H.isFocused()&&("always"===e.networkMode||W.isOnline())&&e.canRun(),c=()=>K(e.networkMode)&&e.canRun(),u=r=>{var o,a;i||(i=!0,null===(o=e.onSuccess)||void 0===o||o.call(e,r),null===(a=t)||void 0===a||a(),n(r))},d=n=>{var o,a;i||(i=!0,null===(o=e.onError)||void 0===o||o.call(e,n),null===(a=t)||void 0===a||a(),r(n))},f=()=>new Promise(n=>{var r;t=e=>{(i||l())&&n(e)},null===(r=e.onPause)||void 0===r||r.call(e)}).then(()=>{var n;(t=void 0,i)||(null===(n=e.onContinue)||void 0===n||n.call(e))}),p=()=>{if(i)return;let t;const n=0===a?e.initialPromise:void 0;try{t=null!==n&&void 0!==n?n:e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(u).catch(t=>{var n,r,s;if(i)return;const c=null!==(n=e.retry)&&void 0!==n?n:g?0:3,u=null!==(r=e.retryDelay)&&void 0!==r?r:V,m="function"===typeof u?u(a,t):u,h=!0===c||"number"===typeof c&&a{setTimeout(e,v)})).then(()=>l()?void 0:f()).then(()=>{o?d(t):p()})):d(t)})};return{promise:s,cancel:t=>{var n;i||(d(new G(t)),null===(n=e.abort)||void 0===n||n.call(e))},continue:()=>{var e;return null===(e=t)||void 0===e||e(),s},cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:c,start:()=>(c()?p():f().then(p),s)}}var X,J,Z,ee,te,ne,re,oe,ae=($=new WeakMap,class{constructor(){p(this,$,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"===typeof(e=this.gcTime)&&e>=0&&e!==1/0&&v($,this,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!==e&&void 0!==e?e:g?1/0:3e5)}clearGcTimeout(){h($,this)&&(clearTimeout(h($,this)),v($,this,void 0))}}),ie=(X=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakSet,class extends ae{constructor(e){var t;super(),A(this,re),p(this,X,void 0),p(this,J,void 0),p(this,Z,void 0),p(this,ee,void 0),p(this,te,void 0),p(this,ne,void 0),v(ne,this,!1),v(te,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],v(Z,this,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,v(X,this,function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!==r&&void 0!==r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=null!==(t=e.state)&&void 0!==t?t:h(X,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null===(e=h(ee,this))||void 0===e?void 0:e.promise}setOptions(e){this.options=d(d({},h(te,this)),e),this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||h(Z,this).remove(this)}setData(e,t){const n=R(this.state.data,e,this.options);return m(re,this,se).call(this,{data:n,type:"success",dataUpdatedAt:null===t||void 0===t?void 0:t.updatedAt,manual:null===t||void 0===t?void 0:t.manual}),n}setState(e,t){m(re,this,se).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null===(t=h(ee,this))||void 0===t?void 0:t.promise;return null===(n=h(ee,this))||void 0===n||n.cancel(e),r?r.then(y).catch(y):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(h(X,this))}isActive(){return this.observers.some(e=>{return!1!==(t=e.options.enabled,n=this,"function"===typeof t?t(n):t);var t,n})}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||void 0===this.state.data||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=h(ee,this))||void 0===e||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=h(ee,this))||void 0===e||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),h(Z,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(h(ee,this)&&(h(ne,this)?h(ee,this).cancel({revert:!0}):h(ee,this).cancelRetry()),this.scheduleGc()),h(Z,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||m(re,this,se).call(this,{type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&null!==t&&void 0!==t&&t.cancelRefetch)this.cancel({silent:!0});else if(h(ee,this))return h(ee,this).continueRetry(),h(ee,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const o=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(v(ne,this,!0),o.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=T(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return a(n),v(ne,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};var s;(a(i),null===(n=this.options.behavior)||void 0===n||n.onFetch(i,this),v(J,this,this.state),"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(r=i.fetchOptions)||void 0===r?void 0:r.meta))&&m(re,this,se).call(this,{type:"fetch",meta:null===(s=i.fetchOptions)||void 0===s?void 0:s.meta});const l=e=>{var t,n,r,o;(Q(e)&&e.silent||m(re,this,se).call(this,{type:"error",error:e}),Q(e))||(null===(t=(n=h(Z,this).config).onError)||void 0===t||t.call(n,e,this),null===(r=(o=h(Z,this).config).onSettled)||void 0===r||r.call(o,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return v(ee,this,Y({initialPromise:null===t||void 0===t?void 0:t.initialPromise,fn:i.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,r,o;if(void 0!==e){try{this.setData(e)}catch(a){return void l(a)}null===(t=(n=h(Z,this).config).onSuccess)||void 0===t||t.call(n,e,this),null===(r=(o=h(Z,this).config).onSettled)||void 0===r||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else l(new Error("".concat(this.queryHash," data is undefined")))},onError:l,onFail:(e,t)=>{m(re,this,se).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{m(re,this,se).call(this,{type:"pause"})},onContinue:()=>{m(re,this,se).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),h(ee,this).start()}});function se(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return d(d({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return d(d({},t),{},{fetchStatus:"paused"});case"continue":return d(d({},t),{},{fetchStatus:"fetching"});case"fetch":return d(d(d({},t),function(e,t){return d({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:K(t.networkMode)?"fetching":"paused"},void 0===e&&{error:null,status:"pending"})}(t.data,this.options)),{},{fetchMeta:null!==(n=e.meta)&&void 0!==n?n:null});case"success":return d(d({},t),{},{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!==(r=e.dataUpdatedAt)&&void 0!==r?r:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const o=e.error;return Q(o)&&o.revert&&h(J,this)?d(d({},h(J,this)),{},{fetchStatus:"idle"}):d(d({},t),{},{error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return d(d({},t),{},{isInvalidated:!0});case"setState":return d(d({},t),e.state)}})(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),h(Z,this).notify({query:this,type:"updated",action:e})})}var le,ce,ue,de,fe,pe,me=(oe=new WeakMap,class extends q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),p(this,oe,void 0),this.config=e,v(oe,this,new Map)}build(e,t,n){var r;const o=t.queryKey,a=null!==(r=t.queryHash)&&void 0!==r?r:k(o,t);let i=this.get(a);return i||(i=new ie({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(i)),i}add(e){h(oe,this).has(e.queryHash)||(h(oe,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=h(oe,this).get(e.queryHash);t&&(e.destroy(),t===e&&h(oe,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){B.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return h(oe,this).get(e)}getAll(){return[...h(oe,this).values()]}find(e){const t=d({exact:!0},e);return this.getAll().find(e=>x(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>x(e,t)):t}notify(e){B.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){B.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){B.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),he=(le=new WeakMap,ce=new WeakMap,ue=new WeakMap,de=new WeakSet,class extends ae{constructor(e){super(),A(this,de),p(this,le,void 0),p(this,ce,void 0),p(this,ue,void 0),this.mutationId=e.mutationId,v(ce,this,e.mutationCache),v(le,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){h(le,this).includes(e)||(h(le,this).push(e),this.clearGcTimeout(),h(ce,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){v(le,this,h(le,this).filter(t=>t!==e)),this.scheduleGc(),h(ce,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){h(le,this).length||("pending"===this.state.status?this.scheduleGc():h(ce,this).remove(this))}continue(){var e,t;return null!==(e=null===(t=h(ue,this))||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}async execute(e){var t;v(ue,this,Y({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{m(de,this,ve).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{m(de,this,ve).call(this,{type:"pause"})},onContinue:()=>{m(de,this,ve).call(this,{type:"continue"})},retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>h(ce,this).canRun(this)}));const n="pending"===this.state.status,r=!h(ue,this).canStart();try{var o,a,i,s,l,c,u,d;if(!n){var f,p,g,y;m(de,this,ve).call(this,{type:"pending",variables:e,isPaused:r}),await(null===(f=(p=h(ce,this).config).onMutate)||void 0===f?void 0:f.call(p,e,this));const t=await(null===(g=(y=this.options).onMutate)||void 0===g?void 0:g.call(y,e));t!==this.state.context&&m(de,this,ve).call(this,{type:"pending",context:t,variables:e,isPaused:r})}const t=await h(ue,this).start();return await(null===(o=(a=h(ce,this).config).onSuccess)||void 0===o?void 0:o.call(a,t,e,this.state.context,this)),await(null===(i=(s=this.options).onSuccess)||void 0===i?void 0:i.call(s,t,e,this.state.context)),await(null===(l=(c=h(ce,this).config).onSettled)||void 0===l?void 0:l.call(c,t,null,this.state.variables,this.state.context,this)),await(null===(u=(d=this.options).onSettled)||void 0===u?void 0:u.call(d,t,null,e,this.state.context)),m(de,this,ve).call(this,{type:"success",data:t}),t}catch(C){try{var b,x,w,k,j,S,N,E;throw await(null===(b=(x=h(ce,this).config).onError)||void 0===b?void 0:b.call(x,C,e,this.state.context,this)),await(null===(w=(k=this.options).onError)||void 0===w?void 0:w.call(k,C,e,this.state.context)),await(null===(j=(S=h(ce,this).config).onSettled)||void 0===j?void 0:j.call(S,void 0,C,this.state.variables,this.state.context,this)),await(null===(N=(E=this.options).onSettled)||void 0===N?void 0:N.call(E,void 0,C,e,this.state.context)),C}finally{m(de,this,ve).call(this,{type:"error",error:C})}}finally{h(ce,this).runNext(this)}}});function ve(e){this.state=(t=>{switch(e.type){case"failed":return d(d({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return d(d({},t),{},{isPaused:!0});case"continue":return d(d({},t),{},{isPaused:!1});case"pending":return d(d({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return d(d({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return d(d({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),B.batch(()=>{h(le,this).forEach(t=>{t.onMutationUpdate(e)}),h(ce,this).notify({mutation:this,type:"updated",action:e})})}var ge,ye,be,xe,we,ke,je,Se,Ne=(fe=new WeakMap,pe=new WeakMap,class extends q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),p(this,fe,void 0),p(this,pe,void 0),this.config=e,v(fe,this,new Map),v(pe,this,Date.now())}build(e,t,n){var r;const o=new he({mutationCache:this,mutationId:v(pe,this,(r=h(pe,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(o),o}add(e){var t;const n=Ee(e),r=null!==(t=h(fe,this).get(n))&&void 0!==t?t:[];r.push(e),h(fe,this).set(n,r),this.notify({type:"added",mutation:e})}remove(e){const t=Ee(e);if(h(fe,this).has(t)){var n;const r=null===(n=h(fe,this).get(t))||void 0===n?void 0:n.filter(t=>t!==e);r&&(0===r.length?h(fe,this).delete(t):h(fe,this).set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null===(t=h(fe,this).get(Ee(e)))||void 0===t?void 0:t.find(e=>"pending"===e.state.status);return!n||n===e}runNext(e){var t,n;const r=null===(t=h(fe,this).get(Ee(e)))||void 0===t?void 0:t.find(t=>t!==e&&t.state.isPaused);return null!==(n=null===r||void 0===r?void 0:r.continue())&&void 0!==n?n:Promise.resolve()}clear(){B.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...h(fe,this).values()].flat()}find(e){const t=d({exact:!0},e);return this.getAll().find(e=>w(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(t=>w(e,t))}notify(e){B.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return B.batch(()=>Promise.all(e.map(e=>e.continue().catch(y))))}});function Ee(e){var t,n;return null!==(t=null===(n=e.options.scope)||void 0===n?void 0:n.id)&&void 0!==t?t:String(e.mutationId)}function Ce(e){return{onFetch:(t,n)=>{var r,o,a;const i=t.options,s=null===(r=t.fetchOptions)||void 0===r||null===(r=r.meta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction,l=(null===(o=t.state.data)||void 0===o?void 0:o.pages)||[],c=(null===(a=t.state.data)||void 0===a?void 0:a.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let n=!1;const r=T(t.options,t.fetchOptions),o=async(e,o,a)=>{if(n)return Promise.reject();if(null==o&&e.pages.length)return Promise.resolve(e);const i={queryKey:t.queryKey,pageParam:o,direction:a?"backward":"forward",meta:t.options.meta};var s;s=i,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)});const l=await r(i),{maxPages:c}=t.options,u=a?M:P;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,o,c)}};if(s&&l.length){const e="backward"===s,t={pages:l,pageParams:c},n=(e?Re:_e)(i,t);u=await o(t,n,e)}else{const t=null!==e&&void 0!==e?e:l.length;do{var a;const e=0===d?null!==(a=c[0])&&void 0!==a?a:i.initialPageParam:_e(i,u);if(d>0&&null==e)break;u=await o(u,e),d++}while(d{var e,r;return null===(e=(r=t.options).persister)||void 0===e?void 0:e.call(r,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function _e(e,t){let{pages:n,pageParams:r}=t;const o=n.length-1;return n.length>0?e.getNextPageParam(n[o],n,r[o],r):void 0}function Re(e,t){var n;let{pages:r,pageParams:o}=t;return r.length>0?null===(n=e.getPreviousPageParam)||void 0===n?void 0:n.call(e,r[0],r,o[0],o):void 0}var Pe=(ge=new WeakMap,ye=new WeakMap,be=new WeakMap,xe=new WeakMap,we=new WeakMap,ke=new WeakMap,je=new WeakMap,Se=new WeakMap,class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,ge,void 0),p(this,ye,void 0),p(this,be,void 0),p(this,xe,void 0),p(this,we,void 0),p(this,ke,void 0),p(this,je,void 0),p(this,Se,void 0),v(ge,this,e.queryCache||new me),v(ye,this,e.mutationCache||new Ne),v(be,this,e.defaultOptions||{}),v(xe,this,new Map),v(we,this,new Map),v(ke,this,0)}mount(){var e;v(ke,this,(e=h(ke,this),e++,e)),1===h(ke,this)&&(v(je,this,H.subscribe(async e=>{e&&(await this.resumePausedMutations(),h(ge,this).onFocus())})),v(Se,this,W.subscribe(async e=>{e&&(await this.resumePausedMutations(),h(ge,this).onOnline())})))}unmount(){var e,t,n;v(ke,this,(e=h(ke,this),e--,e)),0===h(ke,this)&&(null===(t=h(je,this))||void 0===t||t.call(this),v(je,this,void 0),null===(n=h(Se,this))||void 0===n||n.call(this),v(Se,this,void 0))}isFetching(e){return h(ge,this).findAll(d(d({},e),{},{fetchStatus:"fetching"})).length}isMutating(e){return h(ye,this).findAll(d(d({},e),{},{status:"pending"})).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=h(ge,this).get(n.queryHash))||void 0===t?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=h(ge,this).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(b(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return h(ge,this).findAll(e).map(e=>{let{queryKey:t,state:n}=e;return[t,n.data]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=h(ge,this).get(r.queryHash),a=function(e,t){return"function"===typeof e?e(t):e}(t,null===o||void 0===o?void 0:o.state.data);if(void 0!==a)return h(ge,this).build(this,r).setData(a,d(d({},n),{},{manual:!0}))}setQueriesData(e,t,n){return B.batch(()=>h(ge,this).findAll(e).map(e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=h(ge,this).get(n.queryHash))||void 0===t?void 0:t.state}removeQueries(e){const t=h(ge,this);B.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=h(ge,this),r=d({type:"active"},e);return B.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=d({revert:!0},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=B.batch(()=>h(ge,this).findAll(e).map(e=>e.cancel(t)));return Promise.all(n).then(y).catch(y)}invalidateQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B.batch(()=>{var n,r;if(h(ge,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();const o=d(d({},e),{},{type:null!==(n=null!==(r=e.refetchType)&&void 0!==r?r:e.type)&&void 0!==n?n:"active"});return this.refetchQueries(o,t)})}refetchQueries(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const r=d(d({},n),{},{cancelRefetch:null===(e=null===n||void 0===n?void 0:n.cancelRefetch)||void 0===e||e}),o=B.batch(()=>h(ge,this).findAll(t).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(y)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(o).then(y)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=h(ge,this).build(this,t);return n.isStaleByTime(b(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(y).catch(y)}fetchInfiniteQuery(e){return e.behavior=Ce(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(y).catch(y)}ensureInfiniteQueryData(e){return e.behavior=Ce(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return W.isOnline()?h(ye,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return h(ge,this)}getMutationCache(){return h(ye,this)}getDefaultOptions(){return h(be,this)}setDefaultOptions(e){v(be,this,e)}setQueryDefaults(e,t){h(xe,this).set(j(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...h(xe,this).values()];let n={};return t.forEach(t=>{S(e,t.queryKey)&&(n=d(d({},n),t.defaultOptions))}),n}setMutationDefaults(e,t){h(we,this).set(j(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...h(we,this).values()];let n={};return t.forEach(t=>{S(e,t.mutationKey)&&(n=d(d({},n),t.defaultOptions))}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=d(d(d(d({},h(be,this).queries),this.getQueryDefaults(e.queryKey)),e),{},{_defaulted:!0});return t.queryHash||(t.queryHash=k(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===O&&(t.enabled=!1),t}defaultMutationOptions(e){return null!==e&&void 0!==e&&e._defaulted?e:d(d(d(d({},h(be,this).mutations),(null===e||void 0===e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{},{_defaulted:!0})}clear(){h(ge,this).clear(),h(ye,this).clear()}}),Me=n(579),Oe=o.createContext(void 0),Te=e=>{let{client:t,children:n}=e;return o.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,Me.jsx)(Oe.Provider,{value:t,children:n})};function Ae(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{})}function He(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function We(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function Ve(e,t){return{usr:e.state,key:e.key,idx:t}}function Ke(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return d(d({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?Ge(t):t),{},{state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)})}function $e(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 Ge(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Qe(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",l=null,c=u();function u(){return(i.state||{idx:null}).idx}function f(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:m.location,delta:t})}function p(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"===typeof e?e:$e(e);return n=n.replace(/ $/,"%20"),He(t,"No window.location.(origin|href) available to create URL for href: ".concat(n)),new URL(n,t)}null==c&&(c=0,i.replaceState(d(d({},i.state),{},{idx:c}),""));let m={get action(){return s},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Be,f),l=e,()=>{o.removeEventListener(Be,f),l=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=Ke(m.location,e,t);n&&n(r,e),c=u()+1;let d=Ve(r,c),f=m.createHref(r);try{i.pushState(d,"",f)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;o.location.assign(f)}a&&l&&l({action:s,location:m.location,delta:1})},replace:function(e,t){s="REPLACE";let r=Ke(m.location,e,t);n&&n(r,e),c=u();let o=Ve(r,c),d=m.createHref(r);i.replaceState(o,"",d),a&&l&&l({action:s,location:m.location,delta:0})},go:e=>i.go(e)};return m}new WeakMap;function Ye(e,t){return Xe(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function Xe(e,t,n,r){let o=ft(("string"===typeof t?Ge(t):t).pathname||"/",n);if(null==o)return null;let a=Je(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let i=null;for(let s=0;null==i&&s1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(He(i.relativePath.startsWith(r),'Absolute route path "'.concat(i.relativePath,'" nested under path "').concat(r,'" is not valid. An absolute child route path must start with the combined path of all its parent routes.')),i.relativePath=i.relativePath.slice(r.length));let s=gt([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(He(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(s,'".')),Je(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:st(s,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let r of Ze(e.path))o(e,t,r);else o(e,t)}),t}function Ze(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=Ze(r.join("/")),s=[];return s.push(...i.map(e=>""===e?a:[a,e].join("/"))),o&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var et=/^:[\w-]+$/,tt=3,nt=2,rt=1,ot=10,at=-2,it=e=>"*"===e;function st(e,t){let n=e.split("/"),r=n.length;return n.some(it)&&(r+=at),t&&(r+=nt),n.filter(e=>!it(e)).reduce((e,t)=>e+(et.test(t)?tt:""===t?rt:ot),r)}function lt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:a,pathnameBase:i,pattern:e}}function ut(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];We("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function dt(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return We(!1,'The URL path "'.concat(e,'" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function ft(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 pt(e,t,n,r){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(r),"]. Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.')}function mt(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function ht(e){let t=mt(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function vt(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?r=Ge(e):(r=d({},e),He(!r.pathname||!r.pathname.includes("?"),pt("?","pathname","search",r)),He(!r.pathname||!r.pathname.includes("#"),pt("#","pathname","hash",r)),He(!r.search||!r.search.includes("#"),pt("#","search","hash",r)));let a,i=""===e||""===r.pathname,s=i?"/":r.pathname;if(null==s)a=n;else{let e=t.length-1;if(!o&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",{pathname:n,search:r="",hash:o=""}="string"===typeof e?Ge(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:bt(r),hash:xt(o)}}(r,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var gt=e=>e.join("/").replace(/\/\/+/g,"/"),yt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bt=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",xt=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function wt(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var kt=["POST","PUT","PATCH","DELETE"],jt=(new Set(kt),["GET",...kt]);new Set(jt),Symbol("ResetLoaderData");var St=o.createContext(null);St.displayName="DataRouter";var Nt=o.createContext(null);Nt.displayName="DataRouterState";var Et=o.createContext({isTransitioning:!1});Et.displayName="ViewTransition";var Ct=o.createContext(new Map);Ct.displayName="Fetchers";var _t=o.createContext(null);_t.displayName="Await";var Rt=o.createContext(null);Rt.displayName="Navigation";var Pt=o.createContext(null);Pt.displayName="Location";var Mt=o.createContext({outlet:null,matches:[],isDataRoute:!1});Mt.displayName="Route";var Ot=o.createContext(null);Ot.displayName="RouteError";function Tt(){return null!=o.useContext(Pt)}function At(){return He(Tt(),"useLocation() may be used only in the context of a component."),o.useContext(Pt).location}var zt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Lt(e){o.useContext(Rt).static||o.useLayoutEffect(e)}function Dt(){let{isDataRoute:e}=o.useContext(Mt);return e?function(){let{router:e}=Kt("useNavigate"),t=Gt("useNavigate"),n=o.useRef(!1);Lt(()=>{n.current=!0});let r=o.useCallback(async function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};We(n.current,zt),n.current&&("number"===typeof r?e.navigate(r):await e.navigate(r,d({fromRouteId:t},o)))},[e,t]);return r}():function(){He(Tt(),"useNavigate() may be used only in the context of a component.");let e=o.useContext(St),{basename:t,navigator:n}=o.useContext(Rt),{matches:r}=o.useContext(Mt),{pathname:a}=At(),i=JSON.stringify(ht(r)),s=o.useRef(!1);Lt(()=>{s.current=!0});let l=o.useCallback(function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(We(s.current,zt),!s.current)return;if("number"===typeof r)return void n.go(r);let l=vt(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:gt([t,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)},[t,n,i,a,e]);return l}()}o.createContext(null);function Ft(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{matches:n}=o.useContext(Mt),{pathname:r}=At(),a=JSON.stringify(ht(n));return o.useMemo(()=>vt(e,JSON.parse(a),r,"path"===t),[e,a,r,t])}function It(e,t,n,r){He(Tt(),"useRoutes() may be used only in the context of a component.");let{navigator:a,static:i}=o.useContext(Rt),{matches:s}=o.useContext(Mt),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",f=l?l.pathnameBase:"/",p=l&&l.route;{let e=p&&p.path||"";Xt(u,!p||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant (or called `useRoutes()`) at "'.concat(u,'" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won\'t match anymore and therefore the child routes will never render.\n\nPlease change the parent to .'))}let m,h=At();if(t){var v;let e="string"===typeof t?Ge(t):t;He("/"===f||(null===(v=e.pathname)||void 0===v?void 0:v.startsWith(f)),'When overriding the location using `` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "'.concat(f,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),m=e}else m=h;let g=m.pathname||"/",y=g;if("/"!==f){let e=f.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=!i&&n&&n.matches&&n.matches.length>0?n.matches:Ye(e,{pathname:y});We(p||null!=b,'No routes matched location "'.concat(m.pathname).concat(m.search).concat(m.hash,'" ')),We(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,'Matched leaf route at location "'.concat(m.pathname).concat(m.search).concat(m.hash,'" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.'));let x=Wt(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:gt([f,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:gt([f,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,n,r);return t&&x?o.createElement(Pt.Provider,{value:{location:d({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:"POP"}},x):x}function Ut(){let e=Qt(),t=wt(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=o.createElement(o.Fragment,null,o.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:i},"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"errorElement")," prop on your route.")),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:a},n):null,s)}var Bt=o.createElement(Ut,null),qt=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(Mt.Provider,{value:this.props.routeContext},o.createElement(Ot.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ht(e){let{routeContext:t,match:n,children:r}=e,a=o.useContext(St);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(Mt.Provider,{value:t},r)}function Wt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let r=e,a=null===n||void 0===n?void 0:n.errors;if(null!=a){let e=r.findIndex(e=>e.route.id&&void 0!==(null===a||void 0===a?void 0:a[e.route.id]));He(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(a).join(","))),r=r.slice(0,Math.min(r.length,e+1))}let i=!1,s=-1;if(n)for(let o=0;o=0?r.slice(0,s+1):[r[0]];break}}}return r.reduceRight((e,l,c)=>{let u,d=!1,f=null,p=null;n&&(u=a&&l.route.id?a[l.route.id]:void 0,f=l.route.errorElement||Bt,i&&(s<0&&0===c?(Xt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=l.route.hydrateFallbackElement||null)));let m=t.concat(r.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:l.route.Component?o.createElement(l.route.Component,null):l.route.element?l.route.element:e,o.createElement(Ht,{match:l,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(l.route.ErrorBoundary||l.route.errorElement||0===c)?o.createElement(qt,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}function Vt(e){return"".concat(e," must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.")}function Kt(e){let t=o.useContext(St);return He(t,Vt(e)),t}function $t(e){let t=o.useContext(Nt);return He(t,Vt(e)),t}function Gt(e){let t=function(e){let t=o.useContext(Mt);return He(t,Vt(e)),t}(e),n=t.matches[t.matches.length-1];return He(n.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),n.route.id}function Qt(){var e;let t=o.useContext(Ot),n=$t("useRouteError"),r=Gt("useRouteError");return void 0!==t?t:null===(e=n.errors)||void 0===e?void 0:e[r]}var Yt={};function Xt(e,t,n){t||Yt[e]||(Yt[e]=!0,We(!1,n))}o.memo(function(e){let{routes:t,future:n,state:r}=e;return It(t,void 0,r,n)});function Jt(e){let{to:t,replace:n,state:r,relative:a}=e;He(Tt()," may be used only in the context of a component.");let{static:i}=o.useContext(Rt);We(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:s}=o.useContext(Mt),{pathname:l}=At(),c=Dt(),u=vt(t,ht(s),l,"path"===a),d=JSON.stringify(u);return o.useEffect(()=>{c(JSON.parse(d),{replace:n,state:r,relative:a})},[c,d,a,n,r]),null}function Zt(e){He(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function en(e){let{basename:t="/",children:n=null,location:r,navigationType:a="POP",navigator:i,static:s=!1}=e;He(!Tt(),"You cannot render a inside another . You should never have more than one in your app.");let l=t.replace(/^\/*/,"/"),c=o.useMemo(()=>({basename:l,navigator:i,static:s,future:{}}),[l,i,s]);"string"===typeof r&&(r=Ge(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,h=o.useMemo(()=>{let e=ft(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:p,key:m},navigationType:a}},[l,u,d,f,p,m,a]);return We(null!=h,' is not able to match the URL "').concat(u).concat(d).concat(f,"\" because it does not start with the basename, so the won't render anything.")),null==h?null:o.createElement(Rt.Provider,{value:c},o.createElement(Pt.Provider,{children:n,value:h}))}function tn(e){let{children:t,location:n}=e;return It(nn(t),n)}o.Component;function nn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return o.Children.forEach(e,(e,r)=>{if(!o.isValidElement(e))return;let a=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,nn(e.props.children,a));He(e.type===Zt,"[".concat("string"===typeof e.type?e.type:e.type.name,"] is not a component. All component children of must be a or ")),He(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=nn(e.props.children,a)),n.push(i)}),n}var rn="get",on="application/x-www-form-urlencoded";function an(e){return null!=e&&"string"===typeof e.tagName}function sn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var ln=null;var cn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function un(e){return null==e||cn.has(e)?e:(We(!1,'"'.concat(e,'" is not a valid `encType` for `
`/`` and will default to "').concat(on,'"')),null)}function dn(e,t){let n,r,o,a,i;if(an(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?ft(i,t):null,n=e.getAttribute("method")||rn,o=un(e.getAttribute("enctype"))||on,a=new FormData(e)}else if(function(e){return an(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return an(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a