var n2=Object.defineProperty;var i2=(e,t,n)=>t in e?n2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pi=(e,t,n)=>i2(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function W_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={exports:{}},gc={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _x;function a2(){if(_x)return gc;_x=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,r,s){var u=null;if(s!==void 0&&(u=""+s),r.key!==void 0&&(u=""+r.key),"key"in r){s={};for(var f in r)f!=="key"&&(s[f]=r[f])}else s=r;return r=s.ref,{$$typeof:e,type:a,key:u,ref:r!==void 0?r:null,props:s}}return gc.Fragment=t,gc.jsx=n,gc.jsxs=n,gc}var gx;function l2(){return gx||(gx=1,ph.exports=a2()),ph.exports}var c=l2(),mh={exports:{}},Ve={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var yx;function r2(){if(yx)return Ve;yx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),v=Symbol.iterator;function k(M){return M===null||typeof M!="object"?null:(M=v&&M[v]||M["@@iterator"],typeof M=="function"?M:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,A={};function x(M,J,$){this.props=M,this.context=J,this.refs=A,this.updater=$||C}x.prototype.isReactComponent={},x.prototype.setState=function(M,J){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,J,"setState")},x.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function T(){}T.prototype=x.prototype;function N(M,J,$){this.props=M,this.context=J,this.refs=A,this.updater=$||C}var F=N.prototype=new T;F.constructor=N,D(F,x.prototype),F.isPureReactComponent=!0;var L=Array.isArray;function B(){}var P={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function se(M,J,$){var _e=$.ref;return{$$typeof:e,type:M,key:J,ref:_e!==void 0?_e:null,props:$}}function I(M,J){return se(M.type,J,M.props)}function q(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Z(M){var J={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function($){return J[$]})}var Q=/\/+/g;function R(M,J){return typeof M=="object"&&M!==null&&M.key!=null?Z(""+M.key):J.toString(36)}function U(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(B,B):(M.status="pending",M.then(function(J){M.status==="pending"&&(M.status="fulfilled",M.value=J)},function(J){M.status==="pending"&&(M.status="rejected",M.reason=J)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function O(M,J,$,_e,we){var be=typeof M;(be==="undefined"||be==="boolean")&&(M=null);var Ee=!1;if(M===null)Ee=!0;else switch(be){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(M.$$typeof){case e:case t:Ee=!0;break;case g:return Ee=M._init,O(Ee(M._payload),J,$,_e,we)}}if(Ee)return we=we(M),Ee=_e===""?"."+R(M,0):_e,L(we)?($="",Ee!=null&&($=Ee.replace(Q,"$&/")+"/"),O(we,J,$,"",function(me){return me})):we!=null&&(q(we)&&(we=I(we,$+(we.key==null||M&&M.key===we.key?"":(""+we.key).replace(Q,"$&/")+"/")+Ee)),J.push(we)),1;Ee=0;var Ie=_e===""?".":_e+":";if(L(M))for(var ue=0;ue>>1,z=O[ie];if(0>>1;ier($,ae))_er(we,$)?(O[ie]=we,O[_e]=ae,ie=_e):(O[ie]=$,O[J]=ae,ie=J);else if(_er(we,ae))O[ie]=we,O[_e]=ae,ie=_e;else break e}}return G}function r(O,G){var ae=O.sortIndex-G.sortIndex;return ae!==0?ae:O.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],m=[],g=1,b=null,v=3,k=!1,C=!1,D=!1,A=!1,x=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function F(O){for(var G=n(m);G!==null;){if(G.callback===null)a(m);else if(G.startTime<=O)a(m),G.sortIndex=G.expirationTime,t(p,G);else break;G=n(m)}}function L(O){if(D=!1,F(O),!C)if(n(p)!==null)C=!0,B||(B=!0,Z());else{var G=n(m);G!==null&&U(L,G.startTime-O)}}var B=!1,P=-1,K=5,se=-1;function I(){return A?!0:!(e.unstable_now()-seO&&I());){var ie=b.callback;if(typeof ie=="function"){b.callback=null,v=b.priorityLevel;var z=ie(b.expirationTime<=O);if(O=e.unstable_now(),typeof z=="function"){b.callback=z,F(O),G=!0;break t}b===n(p)&&a(p),F(O)}else a(p);b=n(p)}if(b!==null)G=!0;else{var M=n(m);M!==null&&U(L,M.startTime-O),G=!1}}break e}finally{b=null,v=ae,k=!1}G=void 0}}finally{G?Z():B=!1}}}var Z;if(typeof N=="function")Z=function(){N(q)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,R=Q.port2;Q.port1.onmessage=q,Z=function(){R.postMessage(null)}}else Z=function(){x(q,0)};function U(O,G){P=x(function(){O(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125ie?(O.sortIndex=ae,t(m,O),n(p)===null&&O===n(m)&&(D?(T(P),P=-1):D=!0,U(L,ae-ie))):(O.sortIndex=z,t(p,O),C||k||(C=!0,B||(B=!0,Z()))),O},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(O){var G=v;return function(){var ae=v;v=G;try{return O.apply(this,arguments)}finally{v=ae}}}})(gh)),gh}var xx;function c2(){return xx||(xx=1,_h.exports=o2()),_h.exports}var yh={exports:{}},Vn={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var kx;function u2(){if(kx)return Vn;kx=1;var e=eg();function t(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yh.exports=u2(),yh.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var wx;function f2(){if(wx)return yc;wx=1;var e=c2(),t=eg(),n=d2();function a(i){var l="https://react.dev/errors/"+i;if(1z||(i.current=ie[z],ie[z]=null,z--)}function $(i,l){z++,ie[z]=i.current,i.current=l}var _e=M(null),we=M(null),be=M(null),Ee=M(null);function Ie(i,l){switch($(be,l),$(we,i),$(_e,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?Bv(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=Bv(l),i=qv(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}J(_e),$(_e,i)}function ue(){J(_e),J(we),J(be)}function me(i){i.memoizedState!==null&&$(Ee,i);var l=_e.current,o=qv(l,i.type);l!==o&&($(we,i),$(_e,o))}function Xe(i){we.current===i&&(J(_e),J(we)),Ee.current===i&&(J(Ee),pc._currentValue=ae)}var it,bt;function Lt(i){if(it===void 0)try{throw Error()}catch(o){var l=o.stack.trim().match(/\n( *(at )?)/);it=l&&l[1]||"",bt=-1)":-1_||H[d]!==ee[_]){var re=` `+H[d].replace(" at new "," at ");return i.displayName&&re.includes("")&&(re=re.replace("",i.displayName)),re}while(1<=d&&0<=_);break}}}finally{vt=!1,Error.prepareStackTrace=o}return(o=i?i.displayName||i.name:"")?Lt(o):""}function ft(i,l){switch(i.tag){case 26:case 27:case 5:return Lt(i.type);case 16:return Lt("Lazy");case 13:return i.child!==l&&l!==null?Lt("Suspense Fallback"):Lt("Suspense");case 19:return Lt("SuspenseList");case 0:case 15:return Ue(i.type,!1);case 11:return Ue(i.type.render,!1);case 1:return Ue(i.type,!0);case 31:return Lt("Activity");default:return""}}function wt(i){try{var l="",o=null;do l+=ft(i,o),o=i,i=i.return;while(i);return l}catch(d){return` Error generating stack: `+d.message+` `+d.stack}}var at=Object.prototype.hasOwnProperty,qe=e.unstable_scheduleCallback,xt=e.unstable_cancelCallback,lt=e.unstable_shouldYield,ia=e.unstable_requestPaint,It=e.unstable_now,Oa=e.unstable_getCurrentPriorityLevel,le=e.unstable_ImmediatePriority,ge=e.unstable_UserBlockingPriority,ze=e.unstable_NormalPriority,He=e.unstable_LowPriority,Pe=e.unstable_IdlePriority,Gt=e.log,fn=e.unstable_setDisableYieldValue,rn=null,kt=null;function wn(i){if(typeof Gt=="function"&&fn(i),kt&&typeof kt.setStrictMode=="function")try{kt.setStrictMode(rn,i)}catch{}}var pt=Math.clz32?Math.clz32:yl,Zn=Math.log,Bt=Math.LN2;function yl(i){return i>>>=0,i===0?32:31-(Zn(i)/Bt|0)|0}var La=256,Vt=262144,ya=4194304;function Ze(i){var l=i&42;if(l!==0)return l;switch(i&-i){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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function ve(i,l,o){var d=i.pendingLanes;if(d===0)return 0;var _=0,y=i.suspendedLanes,S=i.pingedLanes;i=i.warmLanes;var E=d&134217727;return E!==0?(d=E&~y,d!==0?_=Ze(d):(S&=E,S!==0?_=Ze(S):o||(o=E&~i,o!==0&&(_=Ze(o))))):(E=d&~y,E!==0?_=Ze(E):S!==0?_=Ze(S):o||(o=d&~i,o!==0&&(_=Ze(o)))),_===0?0:l!==0&&l!==_&&(l&y)===0&&(y=_&-_,o=l&-l,y>=o||y===32&&(o&4194048)!==0)?l:_}function li(i,l){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&l)===0}function mr(i,l){switch(i){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32: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 l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bo(){var i=ya;return ya<<=1,(ya&62914560)===0&&(ya=4194304),i}function bl(i){for(var l=[],o=0;31>o;o++)l.push(i);return l}function ba(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function du(i,l,o,d,_,y){var S=i.pendingLanes;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=o,i.entangledLanes&=o,i.errorRecoveryDisabledLanes&=o,i.shellSuspendCounter=0;var E=i.entanglements,H=i.expirationTimes,ee=i.hiddenUpdates;for(o=S&~o;0"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var vl=/[\n"\\]/g;function Gn(i){return i.replace(vl,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function $i(i,l,o,d,_,y,S,E){i.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?i.type=S:i.removeAttribute("type"),l!=null?S==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+Wn(l)):i.value!==""+Wn(l)&&(i.value=""+Wn(l)):S!=="submit"&&S!=="reset"||i.removeAttribute("value"),l!=null?wo(i,S,Wn(l)):o!=null?wo(i,S,Wn(o)):d!=null&&i.removeAttribute("value"),_==null&&y!=null&&(i.defaultChecked=!!y),_!=null&&(i.checked=_&&typeof _!="function"&&typeof _!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?i.name=""+Wn(E):i.removeAttribute("name")}function tn(i,l,o,d,_,y,S,E){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(i.type=y),l!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||l!=null)){ki(i);return}o=o!=null?""+Wn(o):"",l=l!=null?""+Wn(l):o,E||l===i.value||(i.value=l),i.defaultValue=l}d=d??_,d=typeof d!="function"&&typeof d!="symbol"&&!!d,i.checked=E?i.checked:!!d,i.defaultChecked=!!d,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(i.name=S),ki(i)}function wo(i,l,o){l==="number"&&Ua(i.ownerDocument)===i||i.defaultValue===""+o||(i.defaultValue=""+o)}function zi(i,l,o,d){if(i=i.options,l){l={};for(var _=0;_"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ao=!1;if(Oi)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){Ao=!0}}),window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,yr)}catch{Ao=!1}var Li=null,Ha=null,Pa=null;function ts(){if(Pa)return Pa;var i,l=Ha,o=l.length,d,_="value"in Li?Li.value:Li.textContent,y=_.length;for(i=0;i=Cl),Eu=" ",zo=!1;function os(i,l){switch(i){case"keyup":return Tu.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oo(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Tl=!1;function vp(i,l){switch(i){case"compositionend":return Oo(l);case"keypress":return l.which!==32?null:(zo=!0,Eu);case"textInput":return i=l.data,i===Eu&&zo?null:i;default:return null}}function Au(i,l){if(Tl)return i==="compositionend"||!ss&&os(i,l)?(i=ts(),Pa=Ha=Li=null,Tl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:o,offset:l-i};i=d}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=iy(o)}}function ly(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?ly(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function ry(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=Ua(i.document);l instanceof i.HTMLIFrameElement;){try{var o=typeof l.contentWindow.location.href=="string"}catch{o=!1}if(o)i=l.contentWindow;else break;l=Ua(i.document)}return l}function kp(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}var zj=Oi&&"documentMode"in document&&11>=document.documentMode,cs=null,Sp=null,Io=null,wp=!1;function sy(i,l,o){var d=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;wp||cs==null||cs!==Ua(d)||(d=cs,"selectionStart"in d&&kp(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Io&&Lo(Io,d)||(Io=d,d=yd(Sp,"onSelect"),0>=S,_-=S,wa=1<<32-pt(l)+_|o<<_|d,ja=y+i}else wa=1<Ke?(st=Te,Te=null):st=Te.sibling;var _t=te(X,Te,W[Ke],ce);if(_t===null){Te===null&&(Te=st);break}i&&Te&&_t.alternate===null&&l(X,Te),V=y(_t,V,Ke),ht===null?Ne=_t:ht.sibling=_t,ht=_t,Te=st}if(Ke===W.length)return o(X,Te),ct&&Ya(X,Ke),Ne;if(Te===null){for(;KeKe?(st=Te,Te=null):st=Te.sibling;var Ql=te(X,Te,_t.value,ce);if(Ql===null){Te===null&&(Te=st);break}i&&Te&&Ql.alternate===null&&l(X,Te),V=y(Ql,V,Ke),ht===null?Ne=Ql:ht.sibling=Ql,ht=Ql,Te=st}if(_t.done)return o(X,Te),ct&&Ya(X,Ke),Ne;if(Te===null){for(;!_t.done;Ke++,_t=W.next())_t=pe(X,_t.value,ce),_t!==null&&(V=y(_t,V,Ke),ht===null?Ne=_t:ht.sibling=_t,ht=_t);return ct&&Ya(X,Ke),Ne}for(Te=d(Te);!_t.done;Ke++,_t=W.next())_t=ne(Te,X,Ke,_t.value,ce),_t!==null&&(i&&_t.alternate!==null&&Te.delete(_t.key===null?Ke:_t.key),V=y(_t,V,Ke),ht===null?Ne=_t:ht.sibling=_t,ht=_t);return i&&Te.forEach(function(t2){return l(X,t2)}),ct&&Ya(X,Ke),Ne}function Rt(X,V,W,ce){if(typeof W=="object"&&W!==null&&W.type===D&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case k:e:{for(var Ne=W.key;V!==null;){if(V.key===Ne){if(Ne=W.type,Ne===D){if(V.tag===7){o(X,V.sibling),ce=_(V,W.props.children),ce.return=X,X=ce;break e}}else if(V.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===K&&Tr(Ne)===V.type){o(X,V.sibling),ce=_(V,W.props),Fo(ce,W),ce.return=X,X=ce;break e}o(X,V);break}else l(X,V);V=V.sibling}W.type===D?(ce=kr(W.props.children,X.mode,ce,W.key),ce.return=X,X=ce):(ce=zu(W.type,W.key,W.props,null,X.mode,ce),Fo(ce,W),ce.return=X,X=ce)}return S(X);case C:e:{for(Ne=W.key;V!==null;){if(V.key===Ne)if(V.tag===4&&V.stateNode.containerInfo===W.containerInfo&&V.stateNode.implementation===W.implementation){o(X,V.sibling),ce=_(V,W.children||[]),ce.return=X,X=ce;break e}else{o(X,V);break}else l(X,V);V=V.sibling}ce=Rp(W,X.mode,ce),ce.return=X,X=ce}return S(X);case K:return W=Tr(W),Rt(X,V,W,ce)}if(U(W))return Ce(X,V,W,ce);if(Z(W)){if(Ne=Z(W),typeof Ne!="function")throw Error(a(150));return W=Ne.call(W),Le(X,V,W,ce)}if(typeof W.then=="function")return Rt(X,V,Hu(W),ce);if(W.$$typeof===N)return Rt(X,V,Iu(X,W),ce);Pu(X,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,V!==null&&V.tag===6?(o(X,V.sibling),ce=_(V,W),ce.return=X,X=ce):(o(X,V),ce=Np(W,X.mode,ce),ce.return=X,X=ce),S(X)):o(X,V)}return function(X,V,W,ce){try{Po=0;var Ne=Rt(X,V,W,ce);return vs=null,Ne}catch(Te){if(Te===bs||Te===qu)throw Te;var ht=wi(29,Te,null,X.mode);return ht.lanes=ce,ht.return=X,ht}finally{}}}var Ar=Ny(!0),Ry=Ny(!1),Dl=!1;function Pp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fp(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Ml(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function $l(i,l,o){var d=i.updateQueue;if(d===null)return null;if(d=d.shared,(gt&2)!==0){var _=d.pending;return _===null?l.next=l:(l.next=_.next,_.next=l),d.pending=l,l=$u(i),my(i,null,o),l}return Mu(i,d,l,o),$u(i)}function Go(i,l,o){if(l=l.updateQueue,l!==null&&(l=l.shared,(o&4194048)!==0)){var d=l.lanes;d&=i.pendingLanes,o|=d,l.lanes=o,Xr(i,o)}}function Gp(i,l){var o=i.updateQueue,d=i.alternate;if(d!==null&&(d=d.updateQueue,o===d)){var _=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var S={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?_=y=S:y=y.next=S,o=o.next}while(o!==null);y===null?_=y=l:y=y.next=l}else _=y=l;o={baseState:d.baseState,firstBaseUpdate:_,lastBaseUpdate:y,shared:d.shared,callbacks:d.callbacks},i.updateQueue=o;return}i=o.lastBaseUpdate,i===null?o.firstBaseUpdate=l:i.next=l,o.lastBaseUpdate=l}var Vp=!1;function Vo(){if(Vp){var i=ys;if(i!==null)throw i}}function Yo(i,l,o,d){Vp=!1;var _=i.updateQueue;Dl=!1;var y=_.firstBaseUpdate,S=_.lastBaseUpdate,E=_.shared.pending;if(E!==null){_.shared.pending=null;var H=E,ee=H.next;H.next=null,S===null?y=ee:S.next=ee,S=H;var re=i.alternate;re!==null&&(re=re.updateQueue,E=re.lastBaseUpdate,E!==S&&(E===null?re.firstBaseUpdate=ee:E.next=ee,re.lastBaseUpdate=H))}if(y!==null){var pe=_.baseState;S=0,re=ee=H=null,E=y;do{var te=E.lane&-536870913,ne=te!==E.lane;if(ne?(rt&te)===te:(d&te)===te){te!==0&&te===gs&&(Vp=!0),re!==null&&(re=re.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Ce=i,Le=E;te=l;var Rt=o;switch(Le.tag){case 1:if(Ce=Le.payload,typeof Ce=="function"){pe=Ce.call(Rt,pe,te);break e}pe=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Le.payload,te=typeof Ce=="function"?Ce.call(Rt,pe,te):Ce,te==null)break e;pe=b({},pe,te);break e;case 2:Dl=!0}}te=E.callback,te!==null&&(i.flags|=64,ne&&(i.flags|=8192),ne=_.callbacks,ne===null?_.callbacks=[te]:ne.push(te))}else ne={lane:te,tag:E.tag,payload:E.payload,callback:E.callback,next:null},re===null?(ee=re=ne,H=pe):re=re.next=ne,S|=te;if(E=E.next,E===null){if(E=_.shared.pending,E===null)break;ne=E,E=ne.next,ne.next=null,_.lastBaseUpdate=ne,_.shared.pending=null}}while(!0);re===null&&(H=pe),_.baseState=H,_.firstBaseUpdate=ee,_.lastBaseUpdate=re,y===null&&(_.shared.lanes=0),Bl|=S,i.lanes=S,i.memoizedState=pe}}function Dy(i,l){if(typeof i!="function")throw Error(a(191,i));i.call(l)}function My(i,l){var o=i.callbacks;if(o!==null)for(i.callbacks=null,i=0;iy?y:8;var S=O.T,E={};O.T=E,dm(i,!1,l,o);try{var H=_(),ee=O.S;if(ee!==null&&ee(E,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var re=Fj(H,d);Xo(i,l,re,Ai(i))}else Xo(i,l,d,Ai(i))}catch(pe){Xo(i,l,{then:function(){},status:"rejected",reason:pe},Ai())}finally{G.p=y,S!==null&&E.types!==null&&(S.types=E.types),O.T=S}}function Xj(){}function cm(i,l,o,d){if(i.tag!==5)throw Error(a(476));var _=db(i).queue;ub(i,_,l,ae,o===null?Xj:function(){return fb(i),o(d)})}function db(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Za,lastRenderedState:ae},next:null};var o={};return l.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Za,lastRenderedState:o},next:null},i.memoizedState=l,i=i.alternate,i!==null&&(i.memoizedState=l),l}function fb(i){var l=db(i);l.next===null&&(l=i.alternate.memoizedState),Xo(i,l.next.queue,{},Ai())}function um(){return $n(pc)}function pb(){return on().memoizedState}function mb(){return on().memoizedState}function Zj(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var o=Ai();i=Ml(o);var d=$l(l,i,o);d!==null&&(fi(d,l,o),Go(d,l,o)),l={cache:Bp()},i.payload=l;return}l=l.return}}function Jj(i,l,o){var d=Ai();o={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Wu(i)?_b(l,o):(o=Ep(i,l,o,d),o!==null&&(fi(o,i,d),gb(o,l,d)))}function hb(i,l,o){var d=Ai();Xo(i,l,o,d)}function Xo(i,l,o,d){var _={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Wu(i))_b(l,_);else{var y=i.alternate;if(i.lanes===0&&(y===null||y.lanes===0)&&(y=l.lastRenderedReducer,y!==null))try{var S=l.lastRenderedState,E=y(S,o);if(_.hasEagerState=!0,_.eagerState=E,Si(E,S))return Mu(i,l,_,0),Mt===null&&Du(),!1}catch{}finally{}if(o=Ep(i,l,_,d),o!==null)return fi(o,i,d),gb(o,l,d),!0}return!1}function dm(i,l,o,d){if(d={lane:2,revertLane:Pm(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Wu(i)){if(l)throw Error(a(479))}else l=Ep(i,o,d,2),l!==null&&fi(l,i,2)}function Wu(i){var l=i.alternate;return i===Ye||l!==null&&l===Ye}function _b(i,l){ks=Vu=!0;var o=i.pending;o===null?l.next=l:(l.next=o.next,o.next=l),i.pending=l}function gb(i,l,o){if((o&4194048)!==0){var d=l.lanes;d&=i.pendingLanes,o|=d,l.lanes=o,Xr(i,o)}}var Zo={readContext:$n,use:Qu,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useLayoutEffect:nn,useInsertionEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useSyncExternalStore:nn,useId:nn,useHostTransitionStatus:nn,useFormState:nn,useActionState:nn,useOptimistic:nn,useMemoCache:nn,useCacheRefresh:nn};Zo.useEffectEvent=nn;var yb={readContext:$n,use:Qu,useCallback:function(i,l){return ei().memoizedState=[i,l===void 0?null:l],i},useContext:$n,useEffect:tb,useImperativeHandle:function(i,l,o){o=o!=null?o.concat([i]):null,Zu(4194308,4,lb.bind(null,l,i),o)},useLayoutEffect:function(i,l){return Zu(4194308,4,i,l)},useInsertionEffect:function(i,l){Zu(4,2,i,l)},useMemo:function(i,l){var o=ei();l=l===void 0?null:l;var d=i();if(Nr){wn(!0);try{i()}finally{wn(!1)}}return o.memoizedState=[d,l],d},useReducer:function(i,l,o){var d=ei();if(o!==void 0){var _=o(l);if(Nr){wn(!0);try{o(l)}finally{wn(!1)}}}else _=l;return d.memoizedState=d.baseState=_,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:_},d.queue=i,i=i.dispatch=Jj.bind(null,Ye,i),[d.memoizedState,i]},useRef:function(i){var l=ei();return i={current:i},l.memoizedState=i},useState:function(i){i=am(i);var l=i.queue,o=hb.bind(null,Ye,l);return l.dispatch=o,[i.memoizedState,o]},useDebugValue:sm,useDeferredValue:function(i,l){var o=ei();return om(o,i,l)},useTransition:function(){var i=am(!1);return i=ub.bind(null,Ye,i.queue,!0,!1),ei().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,o){var d=Ye,_=ei();if(ct){if(o===void 0)throw Error(a(407));o=o()}else{if(o=l(),Mt===null)throw Error(a(349));(rt&127)!==0||By(d,l,o)}_.memoizedState=o;var y={value:o,getSnapshot:l};return _.queue=y,tb(Uy.bind(null,d,y,i),[i]),d.flags|=2048,ws(9,{destroy:void 0},qy.bind(null,d,y,o,l),null),o},useId:function(){var i=ei(),l=Mt.identifierPrefix;if(ct){var o=ja,d=wa;o=(d&~(1<<32-pt(d)-1)).toString(32)+o,l="_"+l+"R_"+o,o=Yu++,0<\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof d.is=="string"?S.createElement("select",{is:d.is}):S.createElement("select"),d.multiple?y.multiple=!0:d.size&&(y.size=d.size);break;default:y=typeof d.is=="string"?S.createElement(_,{is:d.is}):S.createElement(_)}}y[en]=l,y[xn]=d;e:for(S=l.child;S!==null;){if(S.tag===5||S.tag===6)y.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===l)break e;for(;S.sibling===null;){if(S.return===null||S.return===l)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}l.stateNode=y;e:switch(On(y,_,d),_){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Wa(l)}}return Pt(l),jm(l,l.type,i===null?null:i.memoizedProps,l.pendingProps,o),null;case 6:if(i&&l.stateNode!=null)i.memoizedProps!==d&&Wa(l);else{if(typeof d!="string"&&l.stateNode===null)throw Error(a(166));if(i=be.current,hs(l)){if(i=l.stateNode,o=l.memoizedProps,d=null,_=Mn,_!==null)switch(_.tag){case 27:case 5:d=_.memoizedProps}i[en]=l,i=!!(i.nodeValue===o||d!==null&&d.suppressHydrationWarning===!0||Lv(i.nodeValue,o)),i||Nl(l,!0)}else i=bd(i).createTextNode(d),i[en]=l,l.stateNode=i}return Pt(l),null;case 31:if(o=l.memoizedState,i===null||i.memoizedState!==null){if(d=hs(l),o!==null){if(i===null){if(!d)throw Error(a(318));if(i=l.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(a(557));i[en]=l}else Sr(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Pt(l),i=!1}else o=zp(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=o),i=!0;if(!i)return l.flags&256?(Ci(l),l):(Ci(l),null);if((l.flags&128)!==0)throw Error(a(558))}return Pt(l),null;case 13:if(d=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(_=hs(l),d!==null&&d.dehydrated!==null){if(i===null){if(!_)throw Error(a(318));if(_=l.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(a(317));_[en]=l}else Sr(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Pt(l),_=!1}else _=zp(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=_),_=!0;if(!_)return l.flags&256?(Ci(l),l):(Ci(l),null)}return Ci(l),(l.flags&128)!==0?(l.lanes=o,l):(o=d!==null,i=i!==null&&i.memoizedState!==null,o&&(d=l.child,_=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(_=d.alternate.memoizedState.cachePool.pool),y=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(y=d.memoizedState.cachePool.pool),y!==_&&(d.flags|=2048)),o!==i&&o&&(l.child.flags|=8192),ad(l,l.updateQueue),Pt(l),null);case 4:return ue(),i===null&&Ym(l.stateNode.containerInfo),Pt(l),null;case 10:return Qa(l.type),Pt(l),null;case 19:if(J(sn),d=l.memoizedState,d===null)return Pt(l),null;if(_=(l.flags&128)!==0,y=d.rendering,y===null)if(_)Wo(d,!1);else{if(an!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(y=Gu(i),y!==null){for(l.flags|=128,Wo(d,!1),i=y.updateQueue,l.updateQueue=i,ad(l,i),l.subtreeFlags=0,i=o,o=l.child;o!==null;)hy(o,i),o=o.sibling;return $(sn,sn.current&1|2),ct&&Ya(l,d.treeForkCount),l.child}i=i.sibling}d.tail!==null&&It()>cd&&(l.flags|=128,_=!0,Wo(d,!1),l.lanes=4194304)}else{if(!_)if(i=Gu(y),i!==null){if(l.flags|=128,_=!0,i=i.updateQueue,l.updateQueue=i,ad(l,i),Wo(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!ct)return Pt(l),null}else 2*It()-d.renderingStartTime>cd&&o!==536870912&&(l.flags|=128,_=!0,Wo(d,!1),l.lanes=4194304);d.isBackwards?(y.sibling=l.child,l.child=y):(i=d.last,i!==null?i.sibling=y:l.child=y,d.last=y)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=It(),i.sibling=null,o=sn.current,$(sn,_?o&1|2:o&1),ct&&Ya(l,d.treeForkCount),i):(Pt(l),null);case 22:case 23:return Ci(l),Kp(),d=l.memoizedState!==null,i!==null?i.memoizedState!==null!==d&&(l.flags|=8192):d&&(l.flags|=8192),d?(o&536870912)!==0&&(l.flags&128)===0&&(Pt(l),l.subtreeFlags&6&&(l.flags|=8192)):Pt(l),o=l.updateQueue,o!==null&&ad(l,o.retryQueue),o=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==o&&(l.flags|=2048),i!==null&&J(Cr),null;case 24:return o=null,i!==null&&(o=i.memoizedState.cache),l.memoizedState.cache!==o&&(l.flags|=2048),Qa(mn),Pt(l),null;case 25:return null;case 30:return null}throw Error(a(156,l.tag))}function iC(i,l){switch(Mp(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return Qa(mn),ue(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 26:case 27:case 5:return Xe(l),null;case 31:if(l.memoizedState!==null){if(Ci(l),l.alternate===null)throw Error(a(340));Sr()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 13:if(Ci(l),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(a(340));Sr()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return J(sn),null;case 4:return ue(),null;case 10:return Qa(l.type),null;case 22:case 23:return Ci(l),Kp(),i!==null&&J(Cr),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return Qa(mn),null;case 25:return null;default:return null}}function Hb(i,l){switch(Mp(l),l.tag){case 3:Qa(mn),ue();break;case 26:case 27:case 5:Xe(l);break;case 4:ue();break;case 31:l.memoizedState!==null&&Ci(l);break;case 13:Ci(l);break;case 19:J(sn);break;case 10:Qa(l.type);break;case 22:case 23:Ci(l),Kp(),i!==null&&J(Cr);break;case 24:Qa(mn)}}function ec(i,l){try{var o=l.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var _=d.next;o=_;do{if((o.tag&i)===i){d=void 0;var y=o.create,S=o.inst;d=y(),S.destroy=d}o=o.next}while(o!==_)}}catch(E){Tt(l,l.return,E)}}function Ll(i,l,o){try{var d=l.updateQueue,_=d!==null?d.lastEffect:null;if(_!==null){var y=_.next;d=y;do{if((d.tag&i)===i){var S=d.inst,E=S.destroy;if(E!==void 0){S.destroy=void 0,_=l;var H=o,ee=E;try{ee()}catch(re){Tt(_,H,re)}}}d=d.next}while(d!==y)}}catch(re){Tt(l,l.return,re)}}function Pb(i){var l=i.updateQueue;if(l!==null){var o=i.stateNode;try{My(l,o)}catch(d){Tt(i,i.return,d)}}}function Fb(i,l,o){o.props=Rr(i.type,i.memoizedProps),o.state=i.memoizedState;try{o.componentWillUnmount()}catch(d){Tt(i,l,d)}}function tc(i,l){try{var o=i.ref;if(o!==null){switch(i.tag){case 26:case 27:case 5:var d=i.stateNode;break;case 30:d=i.stateNode;break;default:d=i.stateNode}typeof o=="function"?i.refCleanup=o(d):o.current=d}}catch(_){Tt(i,l,_)}}function Ca(i,l){var o=i.ref,d=i.refCleanup;if(o!==null)if(typeof d=="function")try{d()}catch(_){Tt(i,l,_)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(_){Tt(i,l,_)}else o.current=null}function Gb(i){var l=i.type,o=i.memoizedProps,d=i.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":o.autoFocus&&d.focus();break e;case"img":o.src?d.src=o.src:o.srcSet&&(d.srcset=o.srcSet)}}catch(_){Tt(i,i.return,_)}}function Cm(i,l,o){try{var d=i.stateNode;jC(d,i.type,o,l),d[xn]=l}catch(_){Tt(i,i.return,_)}}function Vb(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Fl(i.type)||i.tag===4}function Tm(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Vb(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Fl(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Em(i,l,o){var d=i.tag;if(d===5||d===6)i=i.stateNode,l?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(i,l):(l=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.appendChild(i),o=o._reactRootContainer,o!=null||l.onclick!==null||(l.onclick=la));else if(d!==4&&(d===27&&Fl(i.type)&&(o=i.stateNode,l=null),i=i.child,i!==null))for(Em(i,l,o),i=i.sibling;i!==null;)Em(i,l,o),i=i.sibling}function ld(i,l,o){var d=i.tag;if(d===5||d===6)i=i.stateNode,l?o.insertBefore(i,l):o.appendChild(i);else if(d!==4&&(d===27&&Fl(i.type)&&(o=i.stateNode),i=i.child,i!==null))for(ld(i,l,o),i=i.sibling;i!==null;)ld(i,l,o),i=i.sibling}function Yb(i){var l=i.stateNode,o=i.memoizedProps;try{for(var d=i.type,_=l.attributes;_.length;)l.removeAttributeNode(_[0]);On(l,d,o),l[en]=i,l[xn]=o}catch(y){Tt(i,i.return,y)}}var el=!1,gn=!1,Am=!1,Kb=typeof WeakSet=="function"?WeakSet:Set,Cn=null;function aC(i,l){if(i=i.containerInfo,Xm=Cd,i=ry(i),kp(i)){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else e:{o=(o=i.ownerDocument)&&o.defaultView||window;var d=o.getSelection&&o.getSelection();if(d&&d.rangeCount!==0){o=d.anchorNode;var _=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var S=0,E=-1,H=-1,ee=0,re=0,pe=i,te=null;t:for(;;){for(var ne;pe!==o||_!==0&&pe.nodeType!==3||(E=S+_),pe!==y||d!==0&&pe.nodeType!==3||(H=S+d),pe.nodeType===3&&(S+=pe.nodeValue.length),(ne=pe.firstChild)!==null;)te=pe,pe=ne;for(;;){if(pe===i)break t;if(te===o&&++ee===_&&(E=S),te===y&&++re===d&&(H=S),(ne=pe.nextSibling)!==null)break;pe=te,te=pe.parentNode}pe=ne}o=E===-1||H===-1?null:{start:E,end:H}}else o=null}o=o||{start:0,end:0}}else o=null;for(Zm={focusedElem:i,selectionRange:o},Cd=!1,Cn=l;Cn!==null;)if(l=Cn,i=l.child,(l.subtreeFlags&1028)!==0&&i!==null)i.return=l,Cn=i;else for(;Cn!==null;){switch(l=Cn,y=l.alternate,i=l.flags,l.tag){case 0:if((i&4)!==0&&(i=l.updateQueue,i=i!==null?i.events:null,i!==null))for(o=0;o title"))),On(y,d,o),y[en]=i,Me(y),d=y;break e;case"link":var S=ex("link","href",_).get(d+(o.href||""));if(S){for(var E=0;ERt&&(S=Rt,Rt=Le,Le=S);var X=ay(E,Le),V=ay(E,Rt);if(X&&V&&(ne.rangeCount!==1||ne.anchorNode!==X.node||ne.anchorOffset!==X.offset||ne.focusNode!==V.node||ne.focusOffset!==V.offset)){var W=pe.createRange();W.setStart(X.node,X.offset),ne.removeAllRanges(),Le>Rt?(ne.addRange(W),ne.extend(V.node,V.offset)):(W.setEnd(V.node,V.offset),ne.addRange(W))}}}}for(pe=[],ne=E;ne=ne.parentNode;)ne.nodeType===1&&pe.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;Eo?32:o,O.T=null,o=Om,Om=null;var y=Ul,S=ll;if(kn=0,As=Ul=null,ll=0,(gt&6)!==0)throw Error(a(331));var E=gt;if(gt|=4,lv(y.current),nv(y,y.current,S,o),gt=E,sc(0,!1),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(rn,y)}catch{}return!0}finally{G.p=_,O.T=d,Sv(i,l)}}function jv(i,l,o){l=Ui(o,l),l=hm(i.stateNode,l,2),i=$l(i,l,2),i!==null&&(ba(i,2),Ta(i))}function Tt(i,l,o){if(i.tag===3)jv(i,i,o);else for(;l!==null;){if(l.tag===3){jv(l,i,o);break}else if(l.tag===1){var d=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(ql===null||!ql.has(d))){i=Ui(o,i),o=Cb(2),d=$l(l,o,2),d!==null&&(Tb(o,d,l,i),ba(d,2),Ta(d));break}}l=l.return}}function qm(i,l,o){var d=i.pingCache;if(d===null){d=i.pingCache=new sC;var _=new Set;d.set(l,_)}else _=d.get(l),_===void 0&&(_=new Set,d.set(l,_));_.has(o)||(Dm=!0,_.add(o),i=fC.bind(null,i,l,o),l.then(i,i))}function fC(i,l,o){var d=i.pingCache;d!==null&&d.delete(l),i.pingedLanes|=i.suspendedLanes&o,i.warmLanes&=~o,Mt===i&&(rt&o)===o&&(an===4||an===3&&(rt&62914560)===rt&&300>It()-od?(gt&2)===0&&Ns(i,0):Mm|=o,Es===rt&&(Es=0)),Ta(i)}function Cv(i,l){l===0&&(l=bo()),i=xr(i,l),i!==null&&(ba(i,l),Ta(i))}function pC(i){var l=i.memoizedState,o=0;l!==null&&(o=l.retryLane),Cv(i,o)}function mC(i,l){var o=0;switch(i.tag){case 31:case 13:var d=i.stateNode,_=i.memoizedState;_!==null&&(o=_.retryLane);break;case 19:d=i.stateNode;break;case 22:d=i.stateNode._retryCache;break;default:throw Error(a(314))}d!==null&&d.delete(l),Cv(i,o)}function hC(i,l){return qe(i,l)}var hd=null,Ds=null,Um=!1,_d=!1,Hm=!1,Pl=0;function Ta(i){i!==Ds&&i.next===null&&(Ds===null?hd=Ds=i:Ds=Ds.next=i),_d=!0,Um||(Um=!0,gC())}function sc(i,l){if(!Hm&&_d){Hm=!0;do for(var o=!1,d=hd;d!==null;){if(i!==0){var _=d.pendingLanes;if(_===0)var y=0;else{var S=d.suspendedLanes,E=d.pingedLanes;y=(1<<31-pt(42|i)+1)-1,y&=_&~(S&~E),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,Nv(d,y))}else y=rt,y=ve(d,d===Mt?y:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(y&3)===0||li(d,y)||(o=!0,Nv(d,y));d=d.next}while(o);Hm=!1}}function _C(){Tv()}function Tv(){_d=Um=!1;var i=0;Pl!==0&&TC()&&(i=Pl);for(var l=It(),o=null,d=hd;d!==null;){var _=d.next,y=Ev(d,l);y===0?(d.next=null,o===null?hd=_:o.next=_,_===null&&(Ds=o)):(o=d,(i!==0||(y&3)!==0)&&(_d=!0)),d=_}kn!==0&&kn!==5||sc(i),Pl!==0&&(Pl=0)}function Ev(i,l){for(var o=i.suspendedLanes,d=i.pingedLanes,_=i.expirationTimes,y=i.pendingLanes&-62914561;0E)break;var re=H.transferSize,pe=H.initiatorType;re&&Iv(pe)&&(H=H.responseEnd,S+=re*(H"u"?null:document;function Xv(i,l,o){var d=Ms;if(d&&typeof l=="string"&&l){var _=Gn(l);_='link[rel="'+i+'"][href="'+_+'"]',typeof o=="string"&&(_+='[crossorigin="'+o+'"]'),Qv.has(_)||(Qv.add(_),i={rel:i,crossOrigin:o,href:l},d.querySelector(_)===null&&(l=d.createElement("link"),On(l,"link",i),Me(l),d.head.appendChild(l)))}}function OC(i){rl.D(i),Xv("dns-prefetch",i,null)}function LC(i,l){rl.C(i,l),Xv("preconnect",i,l)}function IC(i,l,o){rl.L(i,l,o);var d=Ms;if(d&&i&&l){var _='link[rel="preload"][as="'+Gn(l)+'"]';l==="image"&&o&&o.imageSrcSet?(_+='[imagesrcset="'+Gn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(_+='[imagesizes="'+Gn(o.imageSizes)+'"]')):_+='[href="'+Gn(i)+'"]';var y=_;switch(l){case"style":y=$s(i);break;case"script":y=zs(i)}Yi.has(y)||(i=b({rel:"preload",href:l==="image"&&o&&o.imageSrcSet?void 0:i,as:l},o),Yi.set(y,i),d.querySelector(_)!==null||l==="style"&&d.querySelector(dc(y))||l==="script"&&d.querySelector(fc(y))||(l=d.createElement("link"),On(l,"link",i),Me(l),d.head.appendChild(l)))}}function BC(i,l){rl.m(i,l);var o=Ms;if(o&&i){var d=l&&typeof l.as=="string"?l.as:"script",_='link[rel="modulepreload"][as="'+Gn(d)+'"][href="'+Gn(i)+'"]',y=_;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=zs(i)}if(!Yi.has(y)&&(i=b({rel:"modulepreload",href:i},l),Yi.set(y,i),o.querySelector(_)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(fc(y)))return}d=o.createElement("link"),On(d,"link",i),Me(d),o.head.appendChild(d)}}}function qC(i,l,o){rl.S(i,l,o);var d=Ms;if(d&&i){var _=Ut(d).hoistableStyles,y=$s(i);l=l||"default";var S=_.get(y);if(!S){var E={loading:0,preload:null};if(S=d.querySelector(dc(y)))E.loading=5;else{i=b({rel:"stylesheet",href:i,"data-precedence":l},o),(o=Yi.get(y))&&ah(i,o);var H=S=d.createElement("link");Me(H),On(H,"link",i),H._p=new Promise(function(ee,re){H.onload=ee,H.onerror=re}),H.addEventListener("load",function(){E.loading|=1}),H.addEventListener("error",function(){E.loading|=2}),E.loading|=4,xd(S,l,d)}S={type:"stylesheet",instance:S,count:1,state:E},_.set(y,S)}}}function UC(i,l){rl.X(i,l);var o=Ms;if(o&&i){var d=Ut(o).hoistableScripts,_=zs(i),y=d.get(_);y||(y=o.querySelector(fc(_)),y||(i=b({src:i,async:!0},l),(l=Yi.get(_))&&lh(i,l),y=o.createElement("script"),Me(y),On(y,"link",i),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(_,y))}}function HC(i,l){rl.M(i,l);var o=Ms;if(o&&i){var d=Ut(o).hoistableScripts,_=zs(i),y=d.get(_);y||(y=o.querySelector(fc(_)),y||(i=b({src:i,async:!0,type:"module"},l),(l=Yi.get(_))&&lh(i,l),y=o.createElement("script"),Me(y),On(y,"link",i),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(_,y))}}function Zv(i,l,o,d){var _=(_=be.current)?vd(_):null;if(!_)throw Error(a(446));switch(i){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(l=$s(o.href),o=Ut(_).hoistableStyles,d=o.get(l),d||(d={type:"style",instance:null,count:0,state:null},o.set(l,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){i=$s(o.href);var y=Ut(_).hoistableStyles,S=y.get(i);if(S||(_=_.ownerDocument||_,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(i,S),(y=_.querySelector(dc(i)))&&!y._p&&(S.instance=y,S.state.loading=5),Yi.has(i)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Yi.set(i,o),y||PC(_,i,o,S.state))),l&&d===null)throw Error(a(528,""));return S}if(l&&d!==null)throw Error(a(529,""));return null;case"script":return l=o.async,o=o.src,typeof o=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=zs(o),o=Ut(_).hoistableScripts,d=o.get(l),d||(d={type:"script",instance:null,count:0,state:null},o.set(l,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,i))}}function $s(i){return'href="'+Gn(i)+'"'}function dc(i){return'link[rel="stylesheet"]['+i+"]"}function Jv(i){return b({},i,{"data-precedence":i.precedence,precedence:null})}function PC(i,l,o,d){i.querySelector('link[rel="preload"][as="style"]['+l+"]")?d.loading=1:(l=i.createElement("link"),d.preload=l,l.addEventListener("load",function(){return d.loading|=1}),l.addEventListener("error",function(){return d.loading|=2}),On(l,"link",o),Me(l),i.head.appendChild(l))}function zs(i){return'[src="'+Gn(i)+'"]'}function fc(i){return"script[async]"+i}function Wv(i,l,o){if(l.count++,l.instance===null)switch(l.type){case"style":var d=i.querySelector('style[data-href~="'+Gn(o.href)+'"]');if(d)return l.instance=d,Me(d),d;var _=b({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return d=(i.ownerDocument||i).createElement("style"),Me(d),On(d,"style",_),xd(d,o.precedence,i),l.instance=d;case"stylesheet":_=$s(o.href);var y=i.querySelector(dc(_));if(y)return l.state.loading|=4,l.instance=y,Me(y),y;d=Jv(o),(_=Yi.get(_))&&ah(d,_),y=(i.ownerDocument||i).createElement("link"),Me(y);var S=y;return S._p=new Promise(function(E,H){S.onload=E,S.onerror=H}),On(y,"link",d),l.state.loading|=4,xd(y,o.precedence,i),l.instance=y;case"script":return y=zs(o.src),(_=i.querySelector(fc(y)))?(l.instance=_,Me(_),_):(d=o,(_=Yi.get(y))&&(d=b({},o),lh(d,_)),i=i.ownerDocument||i,_=i.createElement("script"),Me(_),On(_,"link",d),i.head.appendChild(_),l.instance=_);case"void":return null;default:throw Error(a(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(d=l.instance,l.state.loading|=4,xd(d,o.precedence,i));return l.instance}function xd(i,l,o){for(var d=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=d.length?d[d.length-1]:null,y=_,S=0;S title"):null)}function FC(i,l,o){if(o===1||l.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return i=l.disabled,typeof l.precedence=="string"&&i==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function nx(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function GC(i,l,o,d){if(o.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var _=$s(d.href),y=l.querySelector(dc(_));if(y){l=y._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(i.count++,i=Sd.bind(i),l.then(i,i)),o.state.loading|=4,o.instance=y,Me(y);return}y=l.ownerDocument||l,d=Jv(d),(_=Yi.get(_))&&ah(d,_),y=y.createElement("link"),Me(y);var S=y;S._p=new Promise(function(E,H){S.onload=E,S.onerror=H}),On(y,"link",d),o.instance=y}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(o,l),(l=o.state.preload)&&(o.state.loading&3)===0&&(i.count++,o=Sd.bind(i),l.addEventListener("load",o),l.addEventListener("error",o))}}var rh=0;function VC(i,l){return i.stylesheets&&i.count===0&&jd(i,i.stylesheets),0rh?50:800)+l);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(d),clearTimeout(_)}}:null}function Sd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var wd=null;function jd(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,wd=new Map,l.forEach(YC,i),wd=null,Sd.call(i))}function YC(i,l){if(!(l.state.loading&4)){var o=wd.get(i);if(o)var d=o.get(null);else{o=new Map,wd.set(i,o);for(var _=i.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<_.length;y++){var S=_[y];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(o.set(S.dataset.precedence,S),d=S)}d&&o.set(null,d)}_=l.instance,S=_.getAttribute("data-precedence"),y=o.get(S)||d,y===d&&o.set(null,_),o.set(S,_),this.count++,d=Sd.bind(this),_.addEventListener("load",d),_.addEventListener("error",d),y?y.parentNode.insertBefore(_,y.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(_,i.firstChild)),l.state.loading|=4}}var pc={$$typeof:N,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function KC(i,l,o,d,_,y,S,E,H){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bl(0),this.hiddenUpdates=bl(null),this.identifierPrefix=d,this.onUncaughtError=_,this.onCaughtError=y,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function ix(i,l,o,d,_,y,S,E,H,ee,re,pe){return i=new KC(i,l,o,S,H,ee,re,pe,E),l=1,y===!0&&(l|=24),y=wi(3,null,null,l),i.current=y,y.stateNode=i,l=Bp(),l.refCount++,i.pooledCache=l,l.refCount++,y.memoizedState={element:d,isDehydrated:o,cache:l},Pp(y),i}function ax(i){return i?(i=fs,i):fs}function lx(i,l,o,d,_,y){_=ax(_),d.context===null?d.context=_:d.pendingContext=_,d=Ml(l),d.payload={element:o},y=y===void 0?null:y,y!==null&&(d.callback=y),o=$l(i,d,l),o!==null&&(fi(o,i,l),Go(o,i,l))}function rx(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var o=i.retryLane;i.retryLane=o!==0&&o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),hh.exports=f2(),hh.exports}var m2=p2();/** * react-router v7.17.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Cx="popstate";function Tx(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function h2(e={}){function t(r,s){let{pathname:u="/",search:f="",hash:p=""}=Fr(r.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),u_("",{pathname:u,search:f,hash:p},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){let u=r.document.querySelector("base"),f="";if(u&&u.getAttribute("href")){let p=r.location.href,m=p.indexOf("#");f=m===-1?p:p.slice(0,m)}return f+"#"+(typeof s=="string"?s:Fc(s))}function a(r,s){Wi(r.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(s)})`)}return g2(t,n,a,e)}function Qt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _2(){return Math.random().toString(36).substring(2,10)}function Ex(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function u_(e,t,n=null,a,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Fr(t):t,state:n,key:t&&t.key||a||_2(),mask:r}}function Fc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Fr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function g2(e,t,n,a={}){let{window:r=document.defaultView,v5Compat:s=!1}=a,u=r.history,f="POP",p=null,m=g();m==null&&(m=0,u.replaceState({...u.state,idx:m},""));function g(){return(u.state||{idx:null}).idx}function b(){f="POP";let A=g(),x=A==null?null:A-m;m=A,p&&p({action:f,location:D.location,delta:x})}function v(A,x){f="PUSH";let T=Tx(A)?A:u_(D.location,A,x);n&&n(T,A),m=g()+1;let N=Ex(T,m),F=D.createHref(T.mask||T);try{u.pushState(N,"",F)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;r.location.assign(F)}s&&p&&p({action:f,location:D.location,delta:1})}function k(A,x){f="REPLACE";let T=Tx(A)?A:u_(D.location,A,x);n&&n(T,A),m=g();let N=Ex(T,m),F=D.createHref(T.mask||T);u.replaceState(N,"",F),s&&p&&p({action:f,location:D.location,delta:0})}function C(A){return y2(r,A)}let D={get action(){return f},get location(){return e(r,u)},listen(A){if(p)throw new Error("A history only accepts one active listener");return r.addEventListener(Cx,b),p=A,()=>{r.removeEventListener(Cx,b),p=null}},createHref(A){return t(r,A)},createURL:C,encodeLocation(A){let x=C(A);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:v,replace:k,go(A){return u.go(A)}};return D}function y2(e,t,n=!1){let a="http://localhost";e&&(a=e.location.origin!=="null"?e.location.origin:e.location.href),Qt(a,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:Fc(t);return r=r.replace(/ $/,"%20"),!n&&r.startsWith("//")&&(r=a+r),new URL(r,a)}function Z0(e,t,n="/"){return b2(e,t,n,!1)}function b2(e,t,n,a,r){let s=typeof t=="string"?Fr(t):t,u=dl(s.pathname||"/",n);if(u==null)return null;let f=v2(e),p=null,m=D2(u);for(let g=0;p==null&&g{let g={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(a)&&p)return;Qt(g.relativePath.startsWith(a),`Absolute route path "${g.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(a.length)}let b=pa([a,g.relativePath]),v=n.concat(g);u.children&&u.children.length>0&&(Qt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),J0(u.children,t,v,b,p)),!(u.path==null&&!u.index)&&t.push({path:b,score:E2(b,u.index),routesMeta:v})};return e.forEach((u,f)=>{var p;if(u.path===""||!((p=u.path)!=null&&p.includes("?")))s(u,f);else for(let m of W0(u.path))s(u,f,!0,m)}),t}function W0(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return r?[s,""]:[s];let u=W0(a.join("/")),f=[];return f.push(...u.map(p=>p===""?s:[s,p].join("/"))),r&&f.push(...u),f.map(p=>e.startsWith("/")&&p===""?"/":p)}function x2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:A2(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var k2=/^:[\w-]+$/,S2=3,w2=2,j2=1,C2=10,T2=-2,Ax=e=>e==="*";function E2(e,t){let n=e.split("/"),a=n.length;return n.some(Ax)&&(a+=T2),t&&(a+=w2),n.filter(r=>!Ax(r)).reduce((r,s)=>r+(k2.test(s)?S2:s===""?j2:C2),a)}function A2(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function N2(e,t,n=!1){let{routesMeta:a}=e,r={},s="/",u=[];for(let f=0;f{if(g==="*"){let C=f[v]||"";u=s.slice(0,s.length-C.length).replace(/(.)\/+$/,"$1")}const k=f[v];return b&&!k?m[g]=void 0:m[g]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:s,pathnameBase:u,pattern:e}}function R2(e,t=!1,n=!0){Wi(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 a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,p,m,g)=>{if(a.push({paramName:f,isOptional:p!=null}),p){let b=g.charAt(m+u.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function D2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function dl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}var M2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function $2(e,t="/"){let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?Fr(e):e,s;return n?(n=e1(n),n.startsWith("/")?s=Nx(n.substring(1),"/"):s=Nx(n,t)):s=t,{pathname:s,search:L2(a),hash:I2(r)}}function Nx(e,t){let n=df(t).split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function bh(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. 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 z2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function tg(e){let t=z2(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function zf(e,t,n,a=!1){let r;typeof e=="string"?r=Fr(e):(r={...e},Qt(!r.pathname||!r.pathname.includes("?"),bh("?","pathname","search",r)),Qt(!r.pathname||!r.pathname.includes("#"),bh("#","pathname","hash",r)),Qt(!r.search||!r.search.includes("#"),bh("#","search","hash",r)));let s=e===""||r.pathname==="",u=s?"/":r.pathname,f;if(u==null)f=n;else{let b=t.length-1;if(!a&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),b-=1;r.pathname=v.join("/")}f=b>=0?t[b]:"/"}let p=$2(r,f),m=u&&u!=="/"&&u.endsWith("/"),g=(s||u===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}var e1=e=>e.replace(/\/\/+/g,"/"),pa=e=>e1(e.join("/")),df=e=>e.replace(/\/+$/,""),O2=e=>df(e).replace(/^\/*/,"/"),L2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,I2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,B2=class{constructor(e,t,n,a=!1){this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function q2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function U2(e){let t=e.map(n=>n.route.path).filter(Boolean);return pa(t)||"/"}var t1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function n1(e,t){let n=e;if(typeof n!="string"||!M2.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let a=n,r=!1;if(t1)try{let s=new URL(window.location.href),u=n.startsWith("//")?new URL(s.protocol+n):new URL(n),f=dl(u.pathname,t);u.origin===s.origin&&f!=null?n=f+u.search+u.hash:r=!0}catch{Wi(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:r,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var i1=["POST","PUT","PATCH","DELETE"];new Set(i1);var H2=["GET",...i1];new Set(H2);var uo=w.createContext(null);uo.displayName="DataRouter";var Of=w.createContext(null);Of.displayName="DataRouterState";var a1=w.createContext(!1);function P2(){return w.useContext(a1)}var l1=w.createContext({isTransitioning:!1});l1.displayName="ViewTransition";var F2=w.createContext(new Map);F2.displayName="Fetchers";var G2=w.createContext(null);G2.displayName="Await";var Di=w.createContext(null);Di.displayName="Navigation";var eu=w.createContext(null);eu.displayName="Location";var $a=w.createContext({outlet:null,matches:[],isDataRoute:!1});$a.displayName="Route";var ng=w.createContext(null);ng.displayName="RouteError";var r1="REACT_ROUTER_ERROR",V2="REDIRECT",Y2="ROUTE_ERROR_RESPONSE";function K2(e){if(e.startsWith(`${r1}:${V2}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Q2(e){if(e.startsWith(`${r1}:${Y2}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new B2(t.status,t.statusText,t.data)}catch{}}function X2(e,{relative:t}={}){Qt(fo(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:a}=w.useContext(Di),{hash:r,pathname:s,search:u}=tu(e,{relative:t}),f=s;return n!=="/"&&(f=s==="/"?n:pa([n,s])),a.createHref({pathname:f,search:u,hash:r})}function fo(){return w.useContext(eu)!=null}function _a(){return Qt(fo(),"useLocation() may be used only in the context of a component."),w.useContext(eu).location}var s1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function o1(e){w.useContext(Di).static||w.useLayoutEffect(e)}function ig(){let{isDataRoute:e}=w.useContext($a);return e?cT():Z2()}function Z2(){Qt(fo(),"useNavigate() may be used only in the context of a component.");let e=w.useContext(uo),{basename:t,navigator:n}=w.useContext(Di),{matches:a}=w.useContext($a),{pathname:r}=_a(),s=JSON.stringify(tg(a)),u=w.useRef(!1);return o1(()=>{u.current=!0}),w.useCallback((p,m={})=>{if(Wi(u.current,s1),!u.current)return;if(typeof p=="number"){n.go(p);return}let g=zf(p,JSON.parse(s),r,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:pa([t,g.pathname])),(m.replace?n.replace:n.push)(g,m.state,m)},[t,n,s,r,e])}w.createContext(null);function tu(e,{relative:t}={}){let{matches:n}=w.useContext($a),{pathname:a}=_a(),r=JSON.stringify(tg(n));return w.useMemo(()=>zf(e,JSON.parse(r),a,t==="path"),[e,r,a,t])}function J2(e,t){return c1(e,t)}function c1(e,t,n){var A;Qt(fo(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=w.useContext(Di),{matches:r}=w.useContext($a),s=r[r.length-1],u=s?s.params:{},f=s?s.pathname:"/",p=s?s.pathnameBase:"/",m=s&&s.route;{let x=m&&m.path||"";d1(f,!m||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${f}" (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. Please change the parent to .`)}let g=_a(),b;if(t){let x=typeof t=="string"?Fr(t):t;Qt(p==="/"||((A=x.pathname)==null?void 0:A.startsWith(p)),`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 "${p}" but pathname "${x.pathname}" was given in the \`location\` prop.`),b=x}else b=g;let v=b.pathname||"/",k=v;if(p!=="/"){let x=p.replace(/^\//,"").split("/");k="/"+v.replace(/^\//,"").split("/").slice(x.length).join("/")}let C=n&&n.state.matches.length?n.state.matches.map(x=>Object.assign(x,{route:n.manifest[x.route.id]||x.route})):Z0(e,{pathname:k});Wi(m||C!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Wi(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 D=iT(C&&C.map(x=>Object.assign({},x,{params:Object.assign({},u,x.params),pathname:pa([p,a.encodeLocation?a.encodeLocation(x.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?p:pa([p,a.encodeLocation?a.encodeLocation(x.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),r,n);return t&&D?w.createElement(eu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...b},navigationType:"POP"}},D):D}function W2(){let e=oT(),t=q2(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:s},"ErrorBoundary")," or"," ",w.createElement("code",{style:s},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:r},n):null,u)}var eT=w.createElement(W2,null),u1=class extends w.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||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Q2(e.digest);n&&(e=n)}let t=e!==void 0?w.createElement($a.Provider,{value:this.props.routeContext},w.createElement(ng.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?w.createElement(tT,{error:e},t):t}};u1.contextType=a1;var vh=new WeakMap;function tT({children:e,error:t}){let{basename:n}=w.useContext(Di);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=K2(t.digest);if(a){let r=vh.get(t);if(r)throw r;let s=n1(a.location,n);if(t1&&!vh.get(t))if(s.isExternal||a.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw vh.set(t,u),u}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function nT({routeContext:e,match:t,children:n}){let a=w.useContext(uo);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement($a.Provider,{value:e},n)}function iT(e,t=[],n){let a=n==null?void 0:n.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let r=e,s=a==null?void 0:a.errors;if(s!=null){let g=r.findIndex(b=>b.route.id&&(s==null?void 0:s[b.route.id])!==void 0);Qt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),r=r.slice(0,Math.min(r.length,g+1))}let u=!1,f=-1;if(n&&a){u=a.renderFallback;for(let g=0;g=0?r=r.slice(0,f+1):r=[r[0]];break}}}}let p=n==null?void 0:n.onError,m=a&&p?(g,b)=>{var v,k;p(g,{location:a.location,params:((k=(v=a.matches)==null?void 0:v[0])==null?void 0:k.params)??{},pattern:U2(a.matches),errorInfo:b})}:void 0;return r.reduceRight((g,b,v)=>{let k,C=!1,D=null,A=null;a&&(k=s&&b.route.id?s[b.route.id]:void 0,D=b.route.errorElement||eT,u&&(f<0&&v===0?(d1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,A=null):f===v&&(C=!0,A=b.route.hydrateFallbackElement||null)));let x=t.concat(r.slice(0,v+1)),T=()=>{let N;return k?N=D:C?N=A:b.route.Component?N=w.createElement(b.route.Component,null):b.route.element?N=b.route.element:N=g,w.createElement(nT,{match:b,routeContext:{outlet:g,matches:x,isDataRoute:a!=null},children:N})};return a&&(b.route.ErrorBoundary||b.route.errorElement||v===0)?w.createElement(u1,{location:a.location,revalidation:a.revalidation,component:D,error:k,children:T(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:m}):T()},null)}function ag(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function aT(e){let t=w.useContext(uo);return Qt(t,ag(e)),t}function lT(e){let t=w.useContext(Of);return Qt(t,ag(e)),t}function rT(e){let t=w.useContext($a);return Qt(t,ag(e)),t}function lg(e){let t=rT(e),n=t.matches[t.matches.length-1];return Qt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function sT(){return lg("useRouteId")}function oT(){var a;let e=w.useContext(ng),t=lT("useRouteError"),n=lg("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function cT(){let{router:e}=aT("useNavigate"),t=lg("useNavigate"),n=w.useRef(!1);return o1(()=>{n.current=!0}),w.useCallback(async(r,s={})=>{Wi(n.current,s1),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...s}))},[e,t])}var Rx={};function d1(e,t,n){!t&&!Rx[e]&&(Rx[e]=!0,Wi(!1,n))}w.memo(uT);function uT({routes:e,manifest:t,future:n,state:a,isStatic:r,onError:s}){return c1(e,void 0,{manifest:t,state:a,isStatic:r,onError:s})}function dT({to:e,replace:t,state:n,relative:a}){Qt(fo()," may be used only in the context of a component.");let{static:r}=w.useContext(Di);Wi(!r," 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}=w.useContext($a),{pathname:u}=_a(),f=ig(),p=zf(e,tg(s),u,a==="path"),m=JSON.stringify(p);return w.useEffect(()=>{f(JSON.parse(m),{replace:t,state:n,relative:a})},[f,m,a,t,n]),null}function d_(e){Qt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function fT({basename:e="/",children:t=null,location:n,navigationType:a="POP",navigator:r,static:s=!1,useTransitions:u}){Qt(!fo(),"You cannot render a inside another . You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),p=w.useMemo(()=>({basename:f,navigator:r,static:s,useTransitions:u,future:{}}),[f,r,s,u]);typeof n=="string"&&(n=Fr(n));let{pathname:m="/",search:g="",hash:b="",state:v=null,key:k="default",mask:C}=n,D=w.useMemo(()=>{let A=dl(m,f);return A==null?null:{location:{pathname:A,search:g,hash:b,state:v,key:k,mask:C},navigationType:a}},[f,m,g,b,v,k,a,C]);return Wi(D!=null,` is not able to match the URL "${m}${g}${b}" because it does not start with the basename, so the won't render anything.`),D==null?null:w.createElement(Di.Provider,{value:p},w.createElement(eu.Provider,{children:t,value:D}))}function pT({children:e,location:t}){return J2(f_(e),t)}function f_(e,t=[]){let n=[];return w.Children.forEach(e,(a,r)=>{if(!w.isValidElement(a))return;let s=[...t,r];if(a.type===w.Fragment){n.push.apply(n,f_(a.props.children,s));return}Qt(a.type===d_,`[${typeof a.type=="string"?a.type:a.type.name}] is not a component. All component children of must be a or `),Qt(!a.props.index||!a.props.children,"An index route cannot have child routes.");let u={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(u.children=f_(a.props.children,s)),n.push(u)}),n}var Wd="get",ef="application/x-www-form-urlencoded";function Lf(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function mT(e){return Lf(e)&&e.tagName.toLowerCase()==="button"}function hT(e){return Lf(e)&&e.tagName.toLowerCase()==="form"}function _T(e){return Lf(e)&&e.tagName.toLowerCase()==="input"}function gT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yT(e,t){return e.button===0&&(!t||t==="_self")&&!gT(e)}var Md=null;function bT(){if(Md===null)try{new FormData(document.createElement("form"),0),Md=!1}catch{Md=!0}return Md}var vT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xh(e){return e!=null&&!vT.has(e)?(Wi(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ef}"`),null):e}function xT(e,t){let n,a,r,s,u;if(hT(e)){let f=e.getAttribute("action");a=f?dl(f,t):null,n=e.getAttribute("method")||Wd,r=xh(e.getAttribute("enctype"))||ef,s=new FormData(e)}else if(mT(e)||_T(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a