const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OrbitControls-BJ-UXxdt.js","assets/three.module--MGUDD-H.js"])))=>i.map(i=>d[i]); (function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function n(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=n(o);fetch(o.href,u)}})();const mp="modulepreload",vp=function(t){return"/"+t},Gs={},xa=function(c,n,l){let o=Promise.resolve();if(n&&n.length>0){let v=function(g){return Promise.all(g.map(x=>Promise.resolve(x).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");o=v(n.map(g=>{if(g=vp(g),g in Gs)return;Gs[g]=!0;const x=g.endsWith(".css"),b=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const y=document.createElement("link");if(y.rel=x?"stylesheet":mp,x||(y.as="script"),y.crossOrigin="",y.href=g,m&&y.setAttribute("nonce",m),document.head.appendChild(y),x)return new Promise((M,H)=>{y.addEventListener("load",M),y.addEventListener("error",()=>H(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return o.then(d=>{for(const m of d||[])m.status==="rejected"&&u(m.reason);return c().catch(u)})};function pp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Sc={exports:{}},P8={};var Ys;function xp(){if(Ys)return P8;Ys=1;var t=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function n(l,o,u){var d=null;if(u!==void 0&&(d=""+u),o.key!==void 0&&(d=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:t,type:l,key:d,ref:o!==void 0?o:null,props:u}}return P8.Fragment=c,P8.jsx=n,P8.jsxs=n,P8}var Ks;function gp(){return Ks||(Ks=1,Sc.exports=xp()),Sc.exports}var r=gp(),Ac={exports:{}},P1={};var Qs;function zp(){if(Qs)return P1;Qs=1;var t=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),y=Symbol.iterator;function M(q){return q===null||typeof q!="object"?null:(q=y&&q[y]||q["@@iterator"],typeof q=="function"?q:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,w={};function B(q,G,i1){this.props=q,this.context=G,this.refs=w,this.updater=i1||H}B.prototype.isReactComponent={},B.prototype.setState=function(q,G){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,G,"setState")},B.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function S(){}S.prototype=B.prototype;function C(q,G,i1){this.props=q,this.context=G,this.refs=w,this.updater=i1||H}var j=C.prototype=new S;j.constructor=C,L(j,B.prototype),j.isPureReactComponent=!0;var E=Array.isArray;function F(){}var R={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function N(q,G,i1){var X=i1.ref;return{$$typeof:t,type:q,key:G,ref:X!==void 0?X:null,props:i1}}function D(q,G){return N(q.type,G,q.props)}function _(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function Z(q){var G={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(i1){return G[i1]})}var a1=/\/+/g;function K(q,G){return typeof q=="object"&&q!==null&&q.key!=null?Z(""+q.key):G.toString(36)}function I(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(F,F):(q.status="pending",q.then(function(G){q.status==="pending"&&(q.status="fulfilled",q.value=G)},function(G){q.status==="pending"&&(q.status="rejected",q.reason=G)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function T(q,G,i1,X,c1){var s1=typeof q;(s1==="undefined"||s1==="boolean")&&(q=null);var t1=!1;if(q===null)t1=!0;else switch(s1){case"bigint":case"string":case"number":t1=!0;break;case"object":switch(q.$$typeof){case t:case c:t1=!0;break;case x:return t1=q._init,T(t1(q._payload),G,i1,X,c1)}}if(t1)return c1=c1(q),t1=X===""?"."+K(q,0):X,E(c1)?(i1="",t1!=null&&(i1=t1.replace(a1,"$&/")+"/"),T(c1,G,i1,"",function(H1){return H1})):c1!=null&&(_(c1)&&(c1=D(c1,i1+(c1.key==null||q&&q.key===c1.key?"":(""+c1.key).replace(a1,"$&/")+"/")+t1)),G.push(c1)),1;t1=0;var y1=X===""?".":X+":";if(E(q))for(var z1=0;z1>>1,v1=T[n1];if(0>>1;n1o(i1,P))Xo(c1,i1)?(T[n1]=c1,T[X]=P,n1=X):(T[n1]=i1,T[G]=P,n1=G);else if(Xo(c1,P))T[n1]=c1,T[X]=P,n1=X;else break t}}return U}function o(T,U){var P=T.sortIndex-U.sortIndex;return P!==0?P:T.id-U.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var d=Date,m=d.now();t.unstable_now=function(){return d.now()-m}}var v=[],g=[],x=1,b=null,y=3,M=!1,H=!1,L=!1,w=!1,B=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function j(T){for(var U=n(g);U!==null;){if(U.callback===null)l(g);else if(U.startTime<=T)l(g),U.sortIndex=U.expirationTime,c(v,U);else break;U=n(g)}}function E(T){if(L=!1,j(T),!H)if(n(v)!==null)H=!0,F||(F=!0,Z());else{var U=n(g);U!==null&&I(E,U.startTime-T)}}var F=!1,R=-1,V=5,N=-1;function D(){return w?!0:!(t.unstable_now()-NT&&D());){var n1=b.callback;if(typeof n1=="function"){b.callback=null,y=b.priorityLevel;var v1=n1(b.expirationTime<=T);if(T=t.unstable_now(),typeof v1=="function"){b.callback=v1,j(T),U=!0;break e}b===n(v)&&l(v),j(T)}else l(v);b=n(v)}if(b!==null)U=!0;else{var q=n(g);q!==null&&I(E,q.startTime-T),U=!1}}break t}finally{b=null,y=P,M=!1}U=void 0}}finally{U?Z():F=!1}}}var Z;if(typeof C=="function")Z=function(){C(_)};else if(typeof MessageChannel<"u"){var a1=new MessageChannel,K=a1.port2;a1.port1.onmessage=_,Z=function(){K.postMessage(null)}}else Z=function(){B(_,0)};function I(T,U){R=B(function(){T(t.unstable_now())},U)}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(T){T.callback=null},t.unstable_forceFrameRate=function(T){0>T||125n1?(T.sortIndex=P,c(g,T),n(v)===null&&T===n(g)&&(L?(S(R),R=-1):L=!0,I(E,P-n1))):(T.sortIndex=v1,c(v,T),H||M||(H=!0,F||(F=!0,Z()))),T},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(T){var U=y;return function(){var P=y;y=U;try{return T.apply(this,arguments)}finally{y=P}}}})(Vc)),Vc}var Js;function yp(){return Js||(Js=1,Lc.exports=bp()),Lc.exports}var Bc={exports:{}},J2={};var to;function Mp(){if(to)return J2;to=1;var t=nn();function c(v){var g="https://react.dev/errors/"+v;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(c){console.error(c)}}return t(),Bc.exports=Mp(),Bc.exports}var co;function wp(){if(co)return $8;co=1;var t=yp(),c=nn(),n=lh();function l(e){var a="https://react.dev/errors/"+e;if(1v1||(e.current=n1[v1],n1[v1]=null,v1--)}function i1(e,a){v1++,n1[v1]=e.current,e.current=a}var X=q(null),c1=q(null),s1=q(null),t1=q(null);function y1(e,a){switch(i1(s1,a),i1(c1,e),i1(X,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?ps(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=ps(a),e=xs(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(X),i1(X,e)}function z1(){G(X),G(c1),G(s1)}function H1(e){e.memoizedState!==null&&i1(t1,e);var a=X.current,i=xs(a,e.type);a!==i&&(i1(c1,e),i1(X,i))}function x1(e){c1.current===e&&(G(X),G(c1)),t1.current===e&&(G(t1),_8._currentValue=P)}var w1,U1;function _1(e){if(w1===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);w1=a&&a[1]||"",U1=-1)":-1p||O[h]!==J[p]){var u1=` `+O[h].replace(" at new "," at ");return e.displayName&&u1.includes("")&&(u1=u1.replace("",e.displayName)),u1}while(1<=h&&0<=p);break}}}finally{a2=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?_1(i):""}function V1(e,a){switch(e.tag){case 26:case 27:case 5:return _1(e.type);case 16:return _1("Lazy");case 13:return e.child!==a&&a!==null?_1("Suspense Fallback"):_1("Suspense");case 19:return _1("SuspenseList");case 0:case 15:return B1(e.type,!1);case 11:return B1(e.type.render,!1);case 1:return B1(e.type,!0);case 31:return _1("Activity");default:return""}}function G1(e){try{var a="",i=null;do a+=V1(e,i),i=e,e=e.return;while(e);return a}catch(h){return` Error generating stack: `+h.message+` `+h.stack}}var Y1=Object.prototype.hasOwnProperty,S1=t.unstable_scheduleCallback,I1=t.unstable_cancelCallback,p1=t.unstable_shouldYield,A1=t.unstable_requestPaint,r1=t.unstable_now,b1=t.unstable_getCurrentPriorityLevel,g1=t.unstable_ImmediatePriority,C1=t.unstable_UserBlockingPriority,$1=t.unstable_NormalPriority,o1=t.unstable_LowPriority,d1=t.unstable_IdlePriority,R1=t.log,J1=t.unstable_setDisableYieldValue,b2=null,j1=null;function S2(e){if(typeof R1=="function"&&J1(e),j1&&typeof j1.setStrictMode=="function")try{j1.setStrictMode(b2,e)}catch{}}var p2=Math.clz32?Math.clz32:m1,q4=Math.log,L3=Math.LN2;function m1(e){return e>>>=0,e===0?32:31-(q4(e)/L3|0)|0}var N1=256,T1=262144,a4=4194304;function k1(e){var a=e&42;if(a!==0)return a;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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function d2(e,a,i){var h=e.pendingLanes;if(h===0)return 0;var p=0,z=e.suspendedLanes,A=e.pingedLanes;e=e.warmLanes;var k=h&134217727;return k!==0?(h=k&~z,h!==0?p=k1(h):(A&=k,A!==0?p=k1(A):i||(i=k&~e,i!==0&&(p=k1(i))))):(k=h&~z,k!==0?p=k1(k):A!==0?p=k1(A):i||(i=h&~e,i!==0&&(p=k1(i)))),p===0?0:a!==0&&a!==p&&(a&z)===0&&(z=p&-p,i=a&-a,z>=i||z===32&&(i&4194048)!==0)?a:p}function o2(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function n2(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 x2(){var e=a4;return a4<<=1,(a4&62914560)===0&&(a4=4194304),e}function d4(e){for(var a=[],i=0;31>i;i++)a.push(e);return a}function D4(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function I6(e,a,i,h,p,z){var A=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var k=e.entanglements,O=e.expirationTimes,J=e.hiddenUpdates;for(i=A&~i;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var sm=/[\n"\\]/g;function y4(e){return e.replace(sm,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function z7(e,a,i,h,p,z,A,k){e.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.type=A:e.removeAttribute("type"),a!=null?A==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+b4(a)):e.value!==""+b4(a)&&(e.value=""+b4(a)):A!=="submit"&&A!=="reset"||e.removeAttribute("value"),a!=null?b7(e,A,b4(a)):i!=null?b7(e,A,b4(i)):h!=null&&e.removeAttribute("value"),p==null&&z!=null&&(e.defaultChecked=!!z),p!=null&&(e.checked=p&&typeof p!="function"&&typeof p!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?e.name=""+b4(k):e.removeAttribute("name")}function ur(e,a,i,h,p,z,A,k){if(z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(e.type=z),a!=null||i!=null){if(!(z!=="submit"&&z!=="reset"||a!=null)){g7(e);return}i=i!=null?""+b4(i):"",a=a!=null?""+b4(a):i,k||a===e.value||(e.value=a),e.defaultValue=a}h=h??p,h=typeof h!="function"&&typeof h!="symbol"&&!!h,e.checked=k?e.checked:!!h,e.defaultChecked=!!h,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(e.name=A),g7(e)}function b7(e,a,i){a==="number"&&E5(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function K6(e,a,i,h){if(e=e.options,a){a={};for(var p=0;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S7=!1;if(n3)try{var n8={};Object.defineProperty(n8,"passive",{get:function(){S7=!0}}),window.addEventListener("test",n8,n8),window.removeEventListener("test",n8,n8)}catch{S7=!1}var j3=null,A7=null,q5=null;function xr(){if(q5)return q5;var e,a=A7,i=a.length,h,p="value"in j3?j3.value:j3.textContent,z=p.length;for(e=0;e=i8),wr=" ",Cr=!1;function Sr(e,a){switch(e){case"keyup":return Em.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ar(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var J6=!1;function qm(e,a){switch(e){case"compositionend":return Ar(a);case"keypress":return a.which!==32?null:(Cr=!0,wr);case"textInput":return e=a.data,e===wr&&Cr?null:e;default:return null}}function Dm(e,a){if(J6)return e==="compositionend"||!j7&&Sr(e,a)?(e=xr(),q5=A7=j3=null,J6=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:i,offset:a-e};e=h}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Fr(i)}}function Er(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Er(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Tr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=E5(e.document);a instanceof e.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)e=a.contentWindow;else break;a=E5(e.document)}return a}function F7(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var Gm=n3&&"documentMode"in document&&11>=document.documentMode,t0=null,R7=null,h8=null,E7=!1;function qr(e,a,i){var h=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;E7||t0==null||t0!==E5(h)||(h=t0,"selectionStart"in h&&F7(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),h8&&u8(h8,h)||(h8=h,h=jt(R7,"onSelect"),0>=A,p-=A,K4=1<<32-p2(a)+p|i<K1?(e2=F1,F1=null):e2=F1.sibling;var l2=e1(Y,F1,W[K1],h1);if(l2===null){F1===null&&(F1=e2);break}e&&F1&&l2.alternate===null&&a(Y,F1),$=z(l2,$,K1),r2===null?E1=l2:r2.sibling=l2,r2=l2,F1=e2}if(K1===W.length)return i(Y,F1),c2&&l3(Y,K1),E1;if(F1===null){for(;K1K1?(e2=F1,F1=null):e2=F1.sibling;var J3=e1(Y,F1,l2.value,h1);if(J3===null){F1===null&&(F1=e2);break}e&&F1&&J3.alternate===null&&a(Y,F1),$=z(J3,$,K1),r2===null?E1=J3:r2.sibling=J3,r2=J3,F1=e2}if(l2.done)return i(Y,F1),c2&&l3(Y,K1),E1;if(F1===null){for(;!l2.done;K1++,l2=W.next())l2=f1(Y,l2.value,h1),l2!==null&&($=z(l2,$,K1),r2===null?E1=l2:r2.sibling=l2,r2=l2);return c2&&l3(Y,K1),E1}for(F1=h(F1);!l2.done;K1++,l2=W.next())l2=l1(F1,Y,K1,l2.value,h1),l2!==null&&(e&&l2.alternate!==null&&F1.delete(l2.key===null?K1:l2.key),$=z(l2,$,K1),r2===null?E1=l2:r2.sibling=l2,r2=l2);return e&&F1.forEach(function(fp){return a(Y,fp)}),c2&&l3(Y,K1),E1}function v2(Y,$,W,h1){if(typeof W=="object"&&W!==null&&W.type===L&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case M:t:{for(var E1=W.key;$!==null;){if($.key===E1){if(E1=W.type,E1===L){if($.tag===7){i(Y,$.sibling),h1=p($,W.props.children),h1.return=Y,Y=h1;break t}}else if($.elementType===E1||typeof E1=="object"&&E1!==null&&E1.$$typeof===V&&x6(E1)===$.type){i(Y,$.sibling),h1=p($,W.props),x8(h1,W),h1.return=Y,Y=h1;break t}i(Y,$);break}else a(Y,$);$=$.sibling}W.type===L?(h1=d6(W.props.children,Y.mode,h1,W.key),h1.return=Y,Y=h1):(h1=Y5(W.type,W.key,W.props,null,Y.mode,h1),x8(h1,W),h1.return=Y,Y=h1)}return A(Y);case H:t:{for(E1=W.key;$!==null;){if($.key===E1)if($.tag===4&&$.stateNode.containerInfo===W.containerInfo&&$.stateNode.implementation===W.implementation){i(Y,$.sibling),h1=p($,W.children||[]),h1.return=Y,Y=h1;break t}else{i(Y,$);break}else a(Y,$);$=$.sibling}h1=I7(W,Y.mode,h1),h1.return=Y,Y=h1}return A(Y);case V:return W=x6(W),v2(Y,$,W,h1)}if(I(W))return L1(Y,$,W,h1);if(Z(W)){if(E1=Z(W),typeof E1!="function")throw Error(l(150));return W=E1.call(W),D1(Y,$,W,h1)}if(typeof W.then=="function")return v2(Y,$,et(W),h1);if(W.$$typeof===C)return v2(Y,$,X5(Y,W),h1);ct(Y,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,$!==null&&$.tag===6?(i(Y,$.sibling),h1=p($,W),h1.return=Y,Y=h1):(i(Y,$),h1=U7(W,Y.mode,h1),h1.return=Y,Y=h1),A(Y)):i(Y,$)}return function(Y,$,W,h1){try{p8=0;var E1=v2(Y,$,W,h1);return h0=null,E1}catch(F1){if(F1===u0||F1===J5)throw F1;var r2=m4(29,F1,null,Y.mode);return r2.lanes=h1,r2.return=Y,r2}finally{}}}var z6=il(!0),sl=il(!1),E3=!1;function e9(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function c9(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function T3(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function q3(e,a,i){var h=e.updateQueue;if(h===null)return null;if(h=h.shared,(s2&2)!==0){var p=h.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),h.pending=a,a=G5(e),$r(e,null,i),a}return Z5(e,h,a,i),G5(e)}function g8(e,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var h=a.lanes;h&=e.pendingLanes,i|=h,a.lanes=i,V3(e,i)}}function a9(e,a){var i=e.updateQueue,h=e.alternate;if(h!==null&&(h=h.updateQueue,i===h)){var p=null,z=null;if(i=i.firstBaseUpdate,i!==null){do{var A={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};z===null?p=z=A:z=z.next=A,i=i.next}while(i!==null);z===null?p=z=a:z=z.next=a}else p=z=a;i={baseState:h.baseState,firstBaseUpdate:p,lastBaseUpdate:z,shared:h.shared,callbacks:h.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=a:e.next=a,i.lastBaseUpdate=a}var n9=!1;function z8(){if(n9){var e=o0;if(e!==null)throw e}}function b8(e,a,i,h){n9=!1;var p=e.updateQueue;E3=!1;var z=p.firstBaseUpdate,A=p.lastBaseUpdate,k=p.shared.pending;if(k!==null){p.shared.pending=null;var O=k,J=O.next;O.next=null,A===null?z=J:A.next=J,A=O;var u1=e.alternate;u1!==null&&(u1=u1.updateQueue,k=u1.lastBaseUpdate,k!==A&&(k===null?u1.firstBaseUpdate=J:k.next=J,u1.lastBaseUpdate=O))}if(z!==null){var f1=p.baseState;A=0,u1=J=O=null,k=z;do{var e1=k.lane&-536870913,l1=e1!==k.lane;if(l1?(t2&e1)===e1:(h&e1)===e1){e1!==0&&e1===s0&&(n9=!0),u1!==null&&(u1=u1.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});t:{var L1=e,D1=k;e1=a;var v2=i;switch(D1.tag){case 1:if(L1=D1.payload,typeof L1=="function"){f1=L1.call(v2,f1,e1);break t}f1=L1;break t;case 3:L1.flags=L1.flags&-65537|128;case 0:if(L1=D1.payload,e1=typeof L1=="function"?L1.call(v2,f1,e1):L1,e1==null)break t;f1=b({},f1,e1);break t;case 2:E3=!0}}e1=k.callback,e1!==null&&(e.flags|=64,l1&&(e.flags|=8192),l1=p.callbacks,l1===null?p.callbacks=[e1]:l1.push(e1))}else l1={lane:e1,tag:k.tag,payload:k.payload,callback:k.callback,next:null},u1===null?(J=u1=l1,O=f1):u1=u1.next=l1,A|=e1;if(k=k.next,k===null){if(k=p.shared.pending,k===null)break;l1=k,k=l1.next,l1.next=null,p.lastBaseUpdate=l1,p.shared.pending=null}}while(!0);u1===null&&(O=f1),p.baseState=O,p.firstBaseUpdate=J,p.lastBaseUpdate=u1,z===null&&(p.shared.lanes=0),I3|=A,e.lanes=A,e.memoizedState=f1}}function ol(e,a){if(typeof e!="function")throw Error(l(191,e));e.call(a)}function ul(e,a){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;ez?z:8;var A=T.T,k={};T.T=k,w9(e,!1,a,i);try{var O=p(),J=T.S;if(J!==null&&J(k,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var u1=cv(O,h);w8(e,a,u1,z4(e))}else w8(e,a,h,z4(e))}catch(f1){w8(e,a,{then:function(){},status:"rejected",reason:f1},z4())}finally{U.p=z,A!==null&&k.types!==null&&(A.types=k.types),T.T=A}}function sv(){}function y9(e,a,i,h){if(e.tag!==5)throw Error(l(476));var p=Ul(e).queue;Ol(e,p,a,P,i===null?sv:function(){return Il(e),i(h)})}function Ul(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:u3,lastRenderedState:P},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:u3,lastRenderedState:i},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function Il(e){var a=Ul(e);a.next===null&&(a=e.alternate.memoizedState),w8(e,a.next.queue,{},z4())}function M9(){return Q2(_8)}function Pl(){return N2().memoizedState}function $l(){return N2().memoizedState}function ov(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var i=z4();e=T3(i);var h=q3(a,e,i);h!==null&&(u4(h,a,i),g8(h,a,i)),a={cache:X7()},e.payload=a;return}a=a.return}}function uv(e,a,i){var h=z4();i={lane:h,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},dt(e)?Gl(a,i):(i=_7(e,a,i,h),i!==null&&(u4(i,e,h),Yl(i,a,h)))}function Zl(e,a,i){var h=z4();w8(e,a,i,h)}function w8(e,a,i,h){var p={lane:h,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(dt(e))Gl(a,p);else{var z=e.alternate;if(e.lanes===0&&(z===null||z.lanes===0)&&(z=a.lastRenderedReducer,z!==null))try{var A=a.lastRenderedState,k=z(A,i);if(p.hasEagerState=!0,p.eagerState=k,f4(k,A))return Z5(e,a,p,0),g2===null&&$5(),!1}catch{}finally{}if(i=_7(e,a,p,h),i!==null)return u4(i,e,h),Yl(i,a,h),!0}return!1}function w9(e,a,i,h){if(h={lane:2,revertLane:ec(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},dt(e)){if(a)throw Error(l(479))}else a=_7(e,i,h,2),a!==null&&u4(a,e,2)}function dt(e){var a=e.alternate;return e===Z1||a!==null&&a===Z1}function Gl(e,a){f0=rt=!0;var i=e.pending;i===null?a.next=a:(a.next=i.next,i.next=a),e.pending=a}function Yl(e,a,i){if((i&4194048)!==0){var h=a.lanes;h&=e.pendingLanes,i|=h,a.lanes=i,V3(e,i)}}var C8={readContext:Q2,use:st,useCallback:V2,useContext:V2,useEffect:V2,useImperativeHandle:V2,useLayoutEffect:V2,useInsertionEffect:V2,useMemo:V2,useReducer:V2,useRef:V2,useState:V2,useDebugValue:V2,useDeferredValue:V2,useTransition:V2,useSyncExternalStore:V2,useId:V2,useHostTransitionStatus:V2,useFormState:V2,useActionState:V2,useOptimistic:V2,useMemoCache:V2,useCacheRefresh:V2};C8.useEffectEvent=V2;var Kl={readContext:Q2,use:st,useCallback:function(e,a){return e4().memoizedState=[e,a===void 0?null:a],e},useContext:Q2,useEffect:Nl,useImperativeHandle:function(e,a,i){i=i!=null?i.concat([e]):null,ut(4194308,4,El.bind(null,a,e),i)},useLayoutEffect:function(e,a){return ut(4194308,4,e,a)},useInsertionEffect:function(e,a){ut(4,2,e,a)},useMemo:function(e,a){var i=e4();a=a===void 0?null:a;var h=e();if(b6){S2(!0);try{e()}finally{S2(!1)}}return i.memoizedState=[h,a],h},useReducer:function(e,a,i){var h=e4();if(i!==void 0){var p=i(a);if(b6){S2(!0);try{i(a)}finally{S2(!1)}}}else p=a;return h.memoizedState=h.baseState=p,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:p},h.queue=e,e=e.dispatch=uv.bind(null,Z1,e),[h.memoizedState,e]},useRef:function(e){var a=e4();return e={current:e},a.memoizedState=e},useState:function(e){e=p9(e);var a=e.queue,i=Zl.bind(null,Z1,a);return a.dispatch=i,[e.memoizedState,i]},useDebugValue:z9,useDeferredValue:function(e,a){var i=e4();return b9(i,e,a)},useTransition:function(){var e=p9(!1);return e=Ol.bind(null,Z1,e.queue,!0,!1),e4().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,i){var h=Z1,p=e4();if(c2){if(i===void 0)throw Error(l(407));i=i()}else{if(i=a(),g2===null)throw Error(l(349));(t2&127)!==0||pl(h,a,i)}p.memoizedState=i;var z={value:i,getSnapshot:a};return p.queue=z,Nl(gl.bind(null,h,z,e),[e]),h.flags|=2048,v0(9,{destroy:void 0},xl.bind(null,h,z,i,a),null),i},useId:function(){var e=e4(),a=g2.identifierPrefix;if(c2){var i=Q4,h=K4;i=(h&~(1<<32-p2(h)-1)).toString(32)+i,a="_"+a+"R_"+i,i=lt++,0<\/script>",z=z.removeChild(z.firstChild);break;case"select":z=typeof h.is=="string"?A.createElement("select",{is:h.is}):A.createElement("select"),h.multiple?z.multiple=!0:h.size&&(z.size=h.size);break;default:z=typeof h.is=="string"?A.createElement(p,{is:h.is}):A.createElement(p)}}z[Y2]=a,z[n4]=h;t:for(A=a.child;A!==null;){if(A.tag===5||A.tag===6)z.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===a)break t;for(;A.sibling===null;){if(A.return===null||A.return===a)break t;A=A.return}A.sibling.return=A.return,A=A.sibling}a.stateNode=z;t:switch(W2(z,p,h),p){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break t;case"img":h=!0;break t;default:h=!1}h&&d3(a)}}return M2(a),T9(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,i),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==h&&d3(a);else{if(typeof h!="string"&&a.stateNode===null)throw Error(l(166));if(e=s1.current,l0(a)){if(e=a.stateNode,i=a.memoizedProps,h=null,p=K2,p!==null)switch(p.tag){case 27:case 5:h=p.memoizedProps}e[Y2]=a,e=!!(e.nodeValue===i||h!==null&&h.suppressHydrationWarning===!0||ms(e.nodeValue,i)),e||F3(a,!0)}else e=Nt(e).createTextNode(h),e[Y2]=a,a.stateNode=e}return M2(a),null;case 31:if(i=a.memoizedState,e===null||e.memoizedState!==null){if(h=l0(a),i!==null){if(e===null){if(!h)throw Error(l(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Y2]=a}else f6(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;M2(a),e=!1}else i=G7(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return a.flags&256?(p4(a),a):(p4(a),null);if((a.flags&128)!==0)throw Error(l(558))}return M2(a),null;case 13:if(h=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(p=l0(a),h!==null&&h.dehydrated!==null){if(e===null){if(!p)throw Error(l(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(l(317));p[Y2]=a}else f6(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;M2(a),p=!1}else p=G7(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(p4(a),a):(p4(a),null)}return p4(a),(a.flags&128)!==0?(a.lanes=i,a):(i=h!==null,e=e!==null&&e.memoizedState!==null,i&&(h=a.child,p=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(p=h.alternate.memoizedState.cachePool.pool),z=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(z=h.memoizedState.cachePool.pool),z!==p&&(h.flags|=2048)),i!==e&&i&&(a.child.flags|=8192),xt(a,a.updateQueue),M2(a),null);case 4:return z1(),e===null&&rc(a.stateNode.containerInfo),M2(a),null;case 10:return s3(a.type),M2(a),null;case 19:if(G(j2),h=a.memoizedState,h===null)return M2(a),null;if(p=(a.flags&128)!==0,z=h.rendering,z===null)if(p)A8(h,!1);else{if(B2!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(z=nt(e),z!==null){for(a.flags|=128,A8(h,!1),e=z.updateQueue,a.updateQueue=e,xt(a,e),a.subtreeFlags=0,e=i,i=a.child;i!==null;)Zr(i,e),i=i.sibling;return i1(j2,j2.current&1|2),c2&&l3(a,h.treeForkCount),a.child}e=e.sibling}h.tail!==null&&r1()>Mt&&(a.flags|=128,p=!0,A8(h,!1),a.lanes=4194304)}else{if(!p)if(e=nt(z),e!==null){if(a.flags|=128,p=!0,e=e.updateQueue,a.updateQueue=e,xt(a,e),A8(h,!0),h.tail===null&&h.tailMode==="hidden"&&!z.alternate&&!c2)return M2(a),null}else 2*r1()-h.renderingStartTime>Mt&&i!==536870912&&(a.flags|=128,p=!0,A8(h,!1),a.lanes=4194304);h.isBackwards?(z.sibling=a.child,a.child=z):(e=h.last,e!==null?e.sibling=z:a.child=z,h.last=z)}return h.tail!==null?(e=h.tail,h.rendering=e,h.tail=e.sibling,h.renderingStartTime=r1(),e.sibling=null,i=j2.current,i1(j2,p?i&1|2:i&1),c2&&l3(a,h.treeForkCount),e):(M2(a),null);case 22:case 23:return p4(a),l9(),h=a.memoizedState!==null,e!==null?e.memoizedState!==null!==h&&(a.flags|=8192):h&&(a.flags|=8192),h?(i&536870912)!==0&&(a.flags&128)===0&&(M2(a),a.subtreeFlags&6&&(a.flags|=8192)):M2(a),i=a.updateQueue,i!==null&&xt(a,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==i&&(a.flags|=2048),e!==null&&G(p6),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),s3(T2),M2(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function vv(e,a){switch($7(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return s3(T2),z1(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return x1(a),null;case 31:if(a.memoizedState!==null){if(p4(a),a.alternate===null)throw Error(l(340));f6()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(p4(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(l(340));f6()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return G(j2),null;case 4:return z1(),null;case 10:return s3(a.type),null;case 22:case 23:return p4(a),l9(),e!==null&&G(p6),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return s3(T2),null;case 25:return null;default:return null}}function zi(e,a){switch($7(a),a.tag){case 3:s3(T2),z1();break;case 26:case 27:case 5:x1(a);break;case 4:z1();break;case 31:a.memoizedState!==null&&p4(a);break;case 13:p4(a);break;case 19:G(j2);break;case 10:s3(a.type);break;case 22:case 23:p4(a),l9(),e!==null&&G(p6);break;case 24:s3(T2)}}function H8(e,a){try{var i=a.updateQueue,h=i!==null?i.lastEffect:null;if(h!==null){var p=h.next;i=p;do{if((i.tag&e)===e){h=void 0;var z=i.create,A=i.inst;h=z(),A.destroy=h}i=i.next}while(i!==p)}}catch(k){h2(a,a.return,k)}}function O3(e,a,i){try{var h=a.updateQueue,p=h!==null?h.lastEffect:null;if(p!==null){var z=p.next;h=z;do{if((h.tag&e)===e){var A=h.inst,k=A.destroy;if(k!==void 0){A.destroy=void 0,p=a;var O=i,J=k;try{J()}catch(u1){h2(p,O,u1)}}}h=h.next}while(h!==z)}}catch(u1){h2(a,a.return,u1)}}function bi(e){var a=e.updateQueue;if(a!==null){var i=e.stateNode;try{ul(a,i)}catch(h){h2(e,e.return,h)}}}function yi(e,a,i){i.props=y6(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(h){h2(e,a,h)}}function L8(e,a){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var h=e.stateNode;break;case 30:h=e.stateNode;break;default:h=e.stateNode}typeof i=="function"?e.refCleanup=i(h):i.current=h}}catch(p){h2(e,a,p)}}function X4(e,a){var i=e.ref,h=e.refCleanup;if(i!==null)if(typeof h=="function")try{h()}catch(p){h2(e,a,p)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(p){h2(e,a,p)}else i.current=null}function Mi(e){var a=e.type,i=e.memoizedProps,h=e.stateNode;try{t:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&h.focus();break t;case"img":i.src?h.src=i.src:i.srcSet&&(h.srcset=i.srcSet)}}catch(p){h2(e,e.return,p)}}function q9(e,a,i){try{var h=e.stateNode;Tv(h,e.type,i,a),h[n4]=a}catch(p){h2(e,e.return,p)}}function wi(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Y3(e.type)||e.tag===4}function D9(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||wi(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Y3(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _9(e,a,i){var h=e.tag;if(h===5||h===6)e=e.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(e),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=a3));else if(h!==4&&(h===27&&Y3(e.type)&&(i=e.stateNode,a=null),e=e.child,e!==null))for(_9(e,a,i),e=e.sibling;e!==null;)_9(e,a,i),e=e.sibling}function gt(e,a,i){var h=e.tag;if(h===5||h===6)e=e.stateNode,a?i.insertBefore(e,a):i.appendChild(e);else if(h!==4&&(h===27&&Y3(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(gt(e,a,i),e=e.sibling;e!==null;)gt(e,a,i),e=e.sibling}function Ci(e){var a=e.stateNode,i=e.memoizedProps;try{for(var h=e.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);W2(a,h,i),a[Y2]=e,a[n4]=i}catch(z){h2(e,e.return,z)}}var f3=!1,_2=!1,O9=!1,Si=typeof WeakSet=="function"?WeakSet:Set,G2=null;function pv(e,a){if(e=e.containerInfo,sc=Dt,e=Tr(e),F7(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else t:{i=(i=e.ownerDocument)&&i.defaultView||window;var h=i.getSelection&&i.getSelection();if(h&&h.rangeCount!==0){i=h.anchorNode;var p=h.anchorOffset,z=h.focusNode;h=h.focusOffset;try{i.nodeType,z.nodeType}catch{i=null;break t}var A=0,k=-1,O=-1,J=0,u1=0,f1=e,e1=null;e:for(;;){for(var l1;f1!==i||p!==0&&f1.nodeType!==3||(k=A+p),f1!==z||h!==0&&f1.nodeType!==3||(O=A+h),f1.nodeType===3&&(A+=f1.nodeValue.length),(l1=f1.firstChild)!==null;)e1=f1,f1=l1;for(;;){if(f1===e)break e;if(e1===i&&++J===p&&(k=A),e1===z&&++u1===h&&(O=A),(l1=f1.nextSibling)!==null)break;f1=e1,e1=f1.parentNode}f1=l1}i=k===-1||O===-1?null:{start:k,end:O}}else i=null}i=i||{start:0,end:0}}else i=null;for(oc={focusedElem:e,selectionRange:i},Dt=!1,G2=a;G2!==null;)if(a=G2,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,G2=e;else for(;G2!==null;){switch(a=G2,z=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i title"))),W2(z,h,i),z[Y2]=e,Z2(z),h=z;break t;case"link":var A=js("link","href",p).get(h+(i.href||""));if(A){for(var k=0;kv2&&(A=v2,v2=D1,D1=A);var Y=Rr(k,D1),$=Rr(k,v2);if(Y&&$&&(l1.rangeCount!==1||l1.anchorNode!==Y.node||l1.anchorOffset!==Y.offset||l1.focusNode!==$.node||l1.focusOffset!==$.offset)){var W=f1.createRange();W.setStart(Y.node,Y.offset),l1.removeAllRanges(),D1>v2?(l1.addRange(W),l1.extend($.node,$.offset)):(W.setEnd($.node,$.offset),l1.addRange(W))}}}}for(f1=[],l1=k;l1=l1.parentNode;)l1.nodeType===1&&f1.push({element:l1,left:l1.scrollLeft,top:l1.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;ki?32:i,T.T=null,i=Y9,Y9=null;var z=$3,A=g3;if(P2=0,b0=$3=null,g3=0,(s2&6)!==0)throw Error(l(331));var k=s2;if(s2|=4,Ei(z.current),ki(z,z.current,A,i),s2=k,F8(0,!1),j1&&typeof j1.onPostCommitFiberRoot=="function")try{j1.onPostCommitFiberRoot(b2,z)}catch{}return!0}finally{U.p=p,T.T=h,ts(e,a)}}function cs(e,a,i){a=w4(i,a),a=H9(e.stateNode,a,2),e=q3(e,a,2),e!==null&&(D4(e,2),W4(e))}function h2(e,a,i){if(e.tag===3)cs(e,e,i);else for(;a!==null;){if(a.tag===3){cs(a,e,i);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(P3===null||!P3.has(h))){e=w4(i,e),i=ai(2),h=q3(a,i,2),h!==null&&(ni(i,h,a,e),D4(h,2),W4(h));break}}a=a.return}}function W9(e,a,i){var h=e.pingCache;if(h===null){h=e.pingCache=new zv;var p=new Set;h.set(a,p)}else p=h.get(a),p===void 0&&(p=new Set,h.set(a,p));p.has(i)||(P9=!0,p.add(i),e=Cv.bind(null,e,a,i),a.then(e,e))}function Cv(e,a,i){var h=e.pingCache;h!==null&&h.delete(a),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,g2===e&&(t2&i)===i&&(B2===4||B2===3&&(t2&62914560)===t2&&300>r1()-yt?(s2&2)===0&&y0(e,0):$9|=i,z0===t2&&(z0=0)),W4(e)}function as(e,a){a===0&&(a=x2()),e=h6(e,a),e!==null&&(D4(e,a),W4(e))}function Sv(e){var a=e.memoizedState,i=0;a!==null&&(i=a.retryLane),as(e,i)}function Av(e,a){var i=0;switch(e.tag){case 31:case 13:var h=e.stateNode,p=e.memoizedState;p!==null&&(i=p.retryLane);break;case 19:h=e.stateNode;break;case 22:h=e.stateNode._retryCache;break;default:throw Error(l(314))}h!==null&&h.delete(a),as(e,i)}function Hv(e,a){return S1(e,a)}var Lt=null,w0=null,J9=!1,Vt=!1,tc=!1,G3=0;function W4(e){e!==w0&&e.next===null&&(w0===null?Lt=w0=e:w0=w0.next=e),Vt=!0,J9||(J9=!0,Vv())}function F8(e,a){if(!tc&&Vt){tc=!0;do for(var i=!1,h=Lt;h!==null;){if(e!==0){var p=h.pendingLanes;if(p===0)var z=0;else{var A=h.suspendedLanes,k=h.pingedLanes;z=(1<<31-p2(42|e)+1)-1,z&=p&~(A&~k),z=z&201326741?z&201326741|1:z?z|2:0}z!==0&&(i=!0,is(h,z))}else z=t2,z=d2(h,h===g2?z:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(z&3)===0||o2(h,z)||(i=!0,is(h,z));h=h.next}while(i);tc=!1}}function Lv(){ns()}function ns(){Vt=J9=!1;var e=0;G3!==0&&Dv()&&(e=G3);for(var a=r1(),i=null,h=Lt;h!==null;){var p=h.next,z=rs(h,a);z===0?(h.next=null,i===null?Lt=p:i.next=p,p===null&&(w0=i)):(i=h,(e!==0||(z&3)!==0)&&(Vt=!0)),h=p}P2!==0&&P2!==5||F8(e),G3!==0&&(G3=0)}function rs(e,a){for(var i=e.suspendedLanes,h=e.pingedLanes,p=e.expirationTimes,z=e.pendingLanes&-62914561;0k)break;var u1=O.transferSize,f1=O.initiatorType;u1&&vs(f1)&&(O=O.responseEnd,A+=u1*(O"u"?null:document;function Hs(e,a,i){var h=C0;if(h&&typeof a=="string"&&a){var p=y4(a);p='link[rel="'+e+'"][href="'+p+'"]',typeof i=="string"&&(p+='[crossorigin="'+i+'"]'),As.has(p)||(As.add(p),e={rel:e,crossOrigin:i,href:a},h.querySelector(p)===null&&(a=h.createElement("link"),W2(a,"link",e),Z2(a),h.head.appendChild(a)))}}function Yv(e){z3.D(e),Hs("dns-prefetch",e,null)}function Kv(e,a){z3.C(e,a),Hs("preconnect",e,a)}function Qv(e,a,i){z3.L(e,a,i);var h=C0;if(h&&e&&a){var p='link[rel="preload"][as="'+y4(a)+'"]';a==="image"&&i&&i.imageSrcSet?(p+='[imagesrcset="'+y4(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(p+='[imagesizes="'+y4(i.imageSizes)+'"]')):p+='[href="'+y4(e)+'"]';var z=p;switch(a){case"style":z=S0(e);break;case"script":z=A0(e)}V4.has(z)||(e=b({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:e,as:a},i),V4.set(z,e),h.querySelector(p)!==null||a==="style"&&h.querySelector(q8(z))||a==="script"&&h.querySelector(D8(z))||(a=h.createElement("link"),W2(a,"link",e),Z2(a),h.head.appendChild(a)))}}function Xv(e,a){z3.m(e,a);var i=C0;if(i&&e){var h=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+y4(h)+'"][href="'+y4(e)+'"]',z=p;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":z=A0(e)}if(!V4.has(z)&&(e=b({rel:"modulepreload",href:e},a),V4.set(z,e),i.querySelector(p)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(D8(z)))return}h=i.createElement("link"),W2(h,"link",e),Z2(h),i.head.appendChild(h)}}}function Wv(e,a,i){z3.S(e,a,i);var h=C0;if(h&&e){var p=G6(h).hoistableStyles,z=S0(e);a=a||"default";var A=p.get(z);if(!A){var k={loading:0,preload:null};if(A=h.querySelector(q8(z)))k.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":a},i),(i=V4.get(z))&&pc(e,i);var O=A=h.createElement("link");Z2(O),W2(O,"link",e),O._p=new Promise(function(J,u1){O.onload=J,O.onerror=u1}),O.addEventListener("load",function(){k.loading|=1}),O.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Ft(A,a,h)}A={type:"stylesheet",instance:A,count:1,state:k},p.set(z,A)}}}function Jv(e,a){z3.X(e,a);var i=C0;if(i&&e){var h=G6(i).hoistableScripts,p=A0(e),z=h.get(p);z||(z=i.querySelector(D8(p)),z||(e=b({src:e,async:!0},a),(a=V4.get(p))&&xc(e,a),z=i.createElement("script"),Z2(z),W2(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},h.set(p,z))}}function tp(e,a){z3.M(e,a);var i=C0;if(i&&e){var h=G6(i).hoistableScripts,p=A0(e),z=h.get(p);z||(z=i.querySelector(D8(p)),z||(e=b({src:e,async:!0,type:"module"},a),(a=V4.get(p))&&xc(e,a),z=i.createElement("script"),Z2(z),W2(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},h.set(p,z))}}function Ls(e,a,i,h){var p=(p=s1.current)?kt(p):null;if(!p)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=S0(i.href),i=G6(p).hoistableStyles,h=i.get(a),h||(h={type:"style",instance:null,count:0,state:null},i.set(a,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=S0(i.href);var z=G6(p).hoistableStyles,A=z.get(e);if(A||(p=p.ownerDocument||p,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},z.set(e,A),(z=p.querySelector(q8(e)))&&!z._p&&(A.instance=z,A.state.loading=5),V4.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},V4.set(e,i),z||ep(p,e,i,A.state))),a&&h===null)throw Error(l(528,""));return A}if(a&&h!==null)throw Error(l(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=A0(i),i=G6(p).hoistableScripts,h=i.get(a),h||(h={type:"script",instance:null,count:0,state:null},i.set(a,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function S0(e){return'href="'+y4(e)+'"'}function q8(e){return'link[rel="stylesheet"]['+e+"]"}function Vs(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function ep(e,a,i,h){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?h.loading=1:(a=e.createElement("link"),h.preload=a,a.addEventListener("load",function(){return h.loading|=1}),a.addEventListener("error",function(){return h.loading|=2}),W2(a,"link",i),Z2(a),e.head.appendChild(a))}function A0(e){return'[src="'+y4(e)+'"]'}function D8(e){return"script[async]"+e}function Bs(e,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var h=e.querySelector('style[data-href~="'+y4(i.href)+'"]');if(h)return a.instance=h,Z2(h),h;var p=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return h=(e.ownerDocument||e).createElement("style"),Z2(h),W2(h,"style",p),Ft(h,i.precedence,e),a.instance=h;case"stylesheet":p=S0(i.href);var z=e.querySelector(q8(p));if(z)return a.state.loading|=4,a.instance=z,Z2(z),z;h=Vs(i),(p=V4.get(p))&&pc(h,p),z=(e.ownerDocument||e).createElement("link"),Z2(z);var A=z;return A._p=new Promise(function(k,O){A.onload=k,A.onerror=O}),W2(z,"link",h),a.state.loading|=4,Ft(z,i.precedence,e),a.instance=z;case"script":return z=A0(i.src),(p=e.querySelector(D8(z)))?(a.instance=p,Z2(p),p):(h=i,(p=V4.get(z))&&(h=b({},i),xc(h,p)),e=e.ownerDocument||e,p=e.createElement("script"),Z2(p),W2(p,"link",h),e.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(l(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(h=a.instance,a.state.loading|=4,Ft(h,i.precedence,e));return a.instance}function Ft(e,a,i){for(var h=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=h.length?h[h.length-1]:null,z=p,A=0;A title"):null)}function cp(e,a,i){if(i===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function ks(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ap(e,a,i,h){if(i.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var p=S0(h.href),z=a.querySelector(q8(p));if(z){a=z._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=Et.bind(e),a.then(e,e)),i.state.loading|=4,i.instance=z,Z2(z);return}z=a.ownerDocument||a,h=Vs(h),(p=V4.get(p))&&pc(h,p),z=z.createElement("link"),Z2(z);var A=z;A._p=new Promise(function(k,O){A.onload=k,A.onerror=O}),W2(z,"link",h),i.instance=z}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Et.bind(e),a.addEventListener("load",i),a.addEventListener("error",i))}}var gc=0;function np(e,a){return e.stylesheets&&e.count===0&&qt(e,e.stylesheets),0gc?50:800)+a);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(h),clearTimeout(p)}}:null}function Et(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qt(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tt=null;function qt(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tt=new Map,a.forEach(rp,e),Tt=null,Et.call(e))}function rp(e,a){if(!(a.state.loading&4)){var i=Tt.get(e);if(i)var h=i.get(null);else{i=new Map,Tt.set(e,i);for(var p=e.querySelectorAll("link[data-precedence],style[data-precedence]"),z=0;z"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(c){console.error(c)}}return t(),Hc.exports=wp(),Hc.exports}var Sp=Cp();var no="popstate";function Ap(t={}){function c(l,o){let{pathname:u,search:d,hash:m}=l.location;return ga("",{pathname:u,search:d,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(l,o){return typeof o=="string"?o:u5(o)}return Lp(c,n,null,t)}function H2(t,c){if(t===!1||t===null||typeof t>"u")throw new Error(c)}function G4(t,c){if(!t){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Hp(){return Math.random().toString(36).substring(2,10)}function ro(t,c){return{usr:t.state,key:t.key,idx:c}}function ga(t,c,n=null,l){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof c=="string"?K0(c):c,state:n,key:c&&c.key||l||Hp()}}function u5({pathname:t="/",search:c="",hash:n=""}){return c&&c!=="?"&&(t+=c.charAt(0)==="?"?c:"?"+c),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function K0(t){let c={};if(t){let n=t.indexOf("#");n>=0&&(c.hash=t.substring(n),t=t.substring(0,n));let l=t.indexOf("?");l>=0&&(c.search=t.substring(l),t=t.substring(0,l)),t&&(c.pathname=t)}return c}function Lp(t,c,n,l={}){let{window:o=document.defaultView,v5Compat:u=!1}=l,d=o.history,m="POP",v=null,g=x();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function x(){return(d.state||{idx:null}).idx}function b(){m="POP";let w=x(),B=w==null?null:w-g;g=w,v&&v({action:m,location:L.location,delta:B})}function y(w,B){m="PUSH";let S=ga(L.location,w,B);g=x()+1;let C=ro(S,g),j=L.createHref(S);try{d.pushState(C,"",j)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(j)}u&&v&&v({action:m,location:L.location,delta:1})}function M(w,B){m="REPLACE";let S=ga(L.location,w,B);g=x();let C=ro(S,g),j=L.createHref(S);d.replaceState(C,"",j),u&&v&&v({action:m,location:L.location,delta:0})}function H(w){return Vp(w)}let L={get action(){return m},get location(){return t(o,d)},listen(w){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(no,b),v=w,()=>{o.removeEventListener(no,b),v=null}},createHref(w){return c(o,w)},createURL:H,encodeLocation(w){let B=H(w);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:y,replace:M,go(w){return d.go(w)}};return L}function Vp(t,c=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),H2(n,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:u5(t);return l=l.replace(/ $/,"%20"),!c&&l.startsWith("//")&&(l=n+l),new URL(l,n)}function ih(t,c,n="/"){return Bp(t,c,n,!1)}function Bp(t,c,n,l){let o=typeof c=="string"?K0(c):c,u=S3(o.pathname||"/",n);if(u==null)return null;let d=sh(t);jp(d);let m=null;for(let v=0;m==null&&v{let x={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(l)&&v)return;H2(x.relativePath.startsWith(l),`Absolute route path "${x.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(l.length)}let b=C3([l,x.relativePath]),y=n.concat(x);d.children&&d.children.length>0&&(H2(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),sh(d.children,c,y,b,v)),!(d.path==null&&!d.index)&&c.push({path:b,score:qp(b,d.index),routesMeta:y})};return t.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))u(d,m);else for(let v of oh(d.path))u(d,m,!0,v)}),c}function oh(t){let c=t.split("/");if(c.length===0)return[];let[n,...l]=c,o=n.endsWith("?"),u=n.replace(/\?$/,"");if(l.length===0)return o?[u,""]:[u];let d=oh(l.join("/")),m=[];return m.push(...d.map(v=>v===""?u:[u,v].join("/"))),o&&m.push(...d),m.map(v=>t.startsWith("/")&&v===""?"/":v)}function jp(t){t.sort((c,n)=>c.score!==n.score?n.score-c.score:Dp(c.routesMeta.map(l=>l.childrenIndex),n.routesMeta.map(l=>l.childrenIndex)))}var Np=/^:[\w-]+$/,kp=3,Fp=2,Rp=1,Ep=10,Tp=-2,lo=t=>t==="*";function qp(t,c){let n=t.split("/"),l=n.length;return n.some(lo)&&(l+=Tp),c&&(l+=Fp),n.filter(o=>!lo(o)).reduce((o,u)=>o+(Np.test(u)?kp:u===""?Rp:Ep),l)}function Dp(t,c){return t.length===c.length&&t.slice(0,-1).every((l,o)=>l===c[o])?t[t.length-1]-c[c.length-1]:0}function _p(t,c,n=!1){let{routesMeta:l}=t,o={},u="/",d=[];for(let m=0;m{if(x==="*"){let H=m[y]||"";d=u.slice(0,u.length-H.length).replace(/(.)\/+$/,"$1")}const M=m[y];return b&&!M?g[x]=void 0:g[x]=(M||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:d,pattern:t}}function Op(t,c=!1,n=!0){G4(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let l=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,v)=>(l.push({paramName:m,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(l.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,c?void 0:"i"),l]}function Up(t){try{return t.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return G4(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),t}}function S3(t,c){if(c==="/")return t;if(!t.toLowerCase().startsWith(c.toLowerCase()))return null;let n=c.endsWith("/")?c.length-1:c.length,l=t.charAt(n);return l&&l!=="/"?null:t.slice(n)||"/"}var Ip=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pp=t=>Ip.test(t);function $p(t,c="/"){let{pathname:n,search:l="",hash:o=""}=typeof t=="string"?K0(t):t,u;if(n)if(Pp(n))u=n;else{if(n.includes("//")){let d=n;n=n.replace(/\/\/+/g,"/"),G4(!1,`Pathnames cannot have embedded double slashes - normalizing ${d} -> ${n}`)}n.startsWith("/")?u=io(n.substring(1),"/"):u=io(n,c)}else u=c;return{pathname:u,search:Yp(l),hash:Kp(o)}}function io(t,c){let n=c.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function jc(t,c,n,l){return`Cannot include a '${t}' character in a manually specified \`to.${c}\` field [${JSON.stringify(l)}]. 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 Zp(t){return t.filter((c,n)=>n===0||c.route.path&&c.route.path.length>0)}function uh(t){let c=Zp(t);return c.map((n,l)=>l===c.length-1?n.pathname:n.pathnameBase)}function hh(t,c,n,l=!1){let o;typeof t=="string"?o=K0(t):(o={...t},H2(!o.pathname||!o.pathname.includes("?"),jc("?","pathname","search",o)),H2(!o.pathname||!o.pathname.includes("#"),jc("#","pathname","hash",o)),H2(!o.search||!o.search.includes("#"),jc("#","search","hash",o)));let u=t===""||o.pathname==="",d=u?"/":o.pathname,m;if(d==null)m=n;else{let b=c.length-1;if(!l&&d.startsWith("..")){let y=d.split("/");for(;y[0]==="..";)y.shift(),b-=1;o.pathname=y.join("/")}m=b>=0?c[b]:"/"}let v=$p(o,m),g=d&&d!=="/"&&d.endsWith("/"),x=(u||d===".")&&n.endsWith("/");return!v.pathname.endsWith("/")&&(g||x)&&(v.pathname+="/"),v}var C3=t=>t.join("/").replace(/\/\/+/g,"/"),Gp=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Yp=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Kp=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Qp(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var dh=["POST","PUT","PATCH","DELETE"];new Set(dh);var Xp=["GET",...dh];new Set(Xp);var Q0=f.createContext(null);Q0.displayName="DataRouter";var Ke=f.createContext(null);Ke.displayName="DataRouterState";f.createContext(!1);var fh=f.createContext({isTransitioning:!1});fh.displayName="ViewTransition";var Wp=f.createContext(new Map);Wp.displayName="Fetchers";var Jp=f.createContext(null);Jp.displayName="Await";var e3=f.createContext(null);e3.displayName="Navigation";var w5=f.createContext(null);w5.displayName="Location";var A3=f.createContext({outlet:null,matches:[],isDataRoute:!1});A3.displayName="Route";var rn=f.createContext(null);rn.displayName="RouteError";function tx(t,{relative:c}={}){H2(C5(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:l}=f.useContext(e3),{hash:o,pathname:u,search:d}=S5(t,{relative:c}),m=u;return n!=="/"&&(m=u==="/"?n:C3([n,u])),l.createHref({pathname:m,search:d,hash:o})}function C5(){return f.useContext(w5)!=null}function R6(){return H2(C5(),"useLocation() may be used only in the context of a component."),f.useContext(w5).location}var mh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vh(t){f.useContext(e3).static||f.useLayoutEffect(t)}function ln(){let{isDataRoute:t}=f.useContext(A3);return t?fx():ex()}function ex(){H2(C5(),"useNavigate() may be used only in the context of a component.");let t=f.useContext(Q0),{basename:c,navigator:n}=f.useContext(e3),{matches:l}=f.useContext(A3),{pathname:o}=R6(),u=JSON.stringify(uh(l)),d=f.useRef(!1);return vh(()=>{d.current=!0}),f.useCallback((v,g={})=>{if(G4(d.current,mh),!d.current)return;if(typeof v=="number"){n.go(v);return}let x=hh(v,JSON.parse(u),o,g.relative==="path");t==null&&c!=="/"&&(x.pathname=x.pathname==="/"?c:C3([c,x.pathname])),(g.replace?n.replace:n.push)(x,g.state,g)},[c,n,u,o,t])}f.createContext(null);function S5(t,{relative:c}={}){let{matches:n}=f.useContext(A3),{pathname:l}=R6(),o=JSON.stringify(uh(n));return f.useMemo(()=>hh(t,JSON.parse(o),l,c==="path"),[t,o,l,c])}function cx(t,c){return ph(t,c)}function ph(t,c,n,l,o){H2(C5(),"useRoutes() may be used only in the context of a component.");let{navigator:u}=f.useContext(e3),{matches:d}=f.useContext(A3),m=d[d.length-1],v=m?m.params:{},g=m?m.pathname:"/",x=m?m.pathnameBase:"/",b=m&&m.route;{let S=b&&b.path||"";xh(g,!b||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (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 y=R6(),M;if(c){let S=typeof c=="string"?K0(c):c;H2(x==="/"||S.pathname?.startsWith(x),`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 "${x}" but pathname "${S.pathname}" was given in the \`location\` prop.`),M=S}else M=y;let H=M.pathname||"/",L=H;if(x!=="/"){let S=x.replace(/^\//,"").split("/");L="/"+H.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=ih(t,{pathname:L});G4(b||w!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),G4(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${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 B=ix(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},v,S.params),pathname:C3([x,u.encodeLocation?u.encodeLocation(S.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?x:C3([x,u.encodeLocation?u.encodeLocation(S.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathnameBase])})),d,n,l,o);return c&&B?f.createElement(w5.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},B):B}function ax(){let t=dx(),c=Qp(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},u={padding:"2px 4px",backgroundColor:l},d=null;return console.error("Error handled by React Router default ErrorBoundary:",t),d=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:u},"ErrorBoundary")," or"," ",f.createElement("code",{style:u},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},c),n?f.createElement("pre",{style:o},n):null,d)}var nx=f.createElement(ax,null),rx=class extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,c){return c.location!==t.location||c.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:c.error,location:c.location,revalidation:t.revalidation||c.revalidation}}componentDidCatch(t,c){this.props.onError?this.props.onError(t,c):console.error("React Router caught the following error during render",t)}render(){return this.state.error!==void 0?f.createElement(A3.Provider,{value:this.props.routeContext},f.createElement(rn.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function lx({routeContext:t,match:c,children:n}){let l=f.useContext(Q0);return l&&l.static&&l.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=c.route.id),f.createElement(A3.Provider,{value:t},n)}function ix(t,c=[],n=null,l=null,o=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(c.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,d=n?.errors;if(d!=null){let x=u.findIndex(b=>b.route.id&&d?.[b.route.id]!==void 0);H2(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let m=!1,v=-1;if(n)for(let x=0;x=0?u=u.slice(0,v+1):u=[u[0]];break}}}let g=n&&l?(x,b)=>{l(x,{location:n.location,params:n.matches?.[0]?.params??{},errorInfo:b})}:void 0;return u.reduceRight((x,b,y)=>{let M,H=!1,L=null,w=null;n&&(M=d&&b.route.id?d[b.route.id]:void 0,L=b.route.errorElement||nx,m&&(v<0&&y===0?(xh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,w=null):v===y&&(H=!0,w=b.route.hydrateFallbackElement||null)));let B=c.concat(u.slice(0,y+1)),S=()=>{let C;return M?C=L:H?C=w:b.route.Component?C=f.createElement(b.route.Component,null):b.route.element?C=b.route.element:C=x,f.createElement(lx,{match:b,routeContext:{outlet:x,matches:B,isDataRoute:n!=null},children:C})};return n&&(b.route.ErrorBoundary||b.route.errorElement||y===0)?f.createElement(rx,{location:n.location,revalidation:n.revalidation,component:L,error:M,children:S(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:g}):S()},null)}function sn(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sx(t){let c=f.useContext(Q0);return H2(c,sn(t)),c}function ox(t){let c=f.useContext(Ke);return H2(c,sn(t)),c}function ux(t){let c=f.useContext(A3);return H2(c,sn(t)),c}function on(t){let c=ux(t),n=c.matches[c.matches.length-1];return H2(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function hx(){return on("useRouteId")}function dx(){let t=f.useContext(rn),c=ox("useRouteError"),n=on("useRouteError");return t!==void 0?t:c.errors?.[n]}function fx(){let{router:t}=sx("useNavigate"),c=on("useNavigate"),n=f.useRef(!1);return vh(()=>{n.current=!0}),f.useCallback(async(o,u={})=>{G4(n.current,mh),n.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:c,...u}))},[t,c])}var so={};function xh(t,c,n){!c&&!so[t]&&(so[t]=!0,G4(!1,n))}f.memo(mx);function mx({routes:t,future:c,state:n,unstable_onError:l}){return ph(t,void 0,n,l,c)}function b3(t){H2(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function vx({basename:t="/",children:c=null,location:n,navigationType:l="POP",navigator:o,static:u=!1}){H2(!C5(),"You cannot render a inside another . You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),m=f.useMemo(()=>({basename:d,navigator:o,static:u,future:{}}),[d,o,u]);typeof n=="string"&&(n=K0(n));let{pathname:v="/",search:g="",hash:x="",state:b=null,key:y="default"}=n,M=f.useMemo(()=>{let H=S3(v,d);return H==null?null:{location:{pathname:H,search:g,hash:x,state:b,key:y},navigationType:l}},[d,v,g,x,b,y,l]);return G4(M!=null,` is not able to match the URL "${v}${g}${x}" because it does not start with the basename, so the won't render anything.`),M==null?null:f.createElement(e3.Provider,{value:m},f.createElement(w5.Provider,{children:c,value:M}))}function px({children:t,location:c}){return cx(za(t),c)}function za(t,c=[]){let n=[];return f.Children.forEach(t,(l,o)=>{if(!f.isValidElement(l))return;let u=[...c,o];if(l.type===f.Fragment){n.push.apply(n,za(l.props.children,u));return}H2(l.type===b3,`[${typeof l.type=="string"?l.type:l.type.name}] is not a component. All component children of must be a or `),H2(!l.props.index||!l.props.children,"An index route cannot have child routes.");let d={id:l.props.id||u.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(d.children=za(l.props.children,u)),n.push(d)}),n}var xe="get",ge="application/x-www-form-urlencoded";function Qe(t){return t!=null&&typeof t.tagName=="string"}function xx(t){return Qe(t)&&t.tagName.toLowerCase()==="button"}function gx(t){return Qe(t)&&t.tagName.toLowerCase()==="form"}function zx(t){return Qe(t)&&t.tagName.toLowerCase()==="input"}function bx(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function yx(t,c){return t.button===0&&(!c||c==="_self")&&!bx(t)}var Zt=null;function Mx(){if(Zt===null)try{new FormData(document.createElement("form"),0),Zt=!1}catch{Zt=!0}return Zt}var wx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Nc(t){return t!=null&&!wx.has(t)?(G4(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ge}"`),null):t}function Cx(t,c){let n,l,o,u,d;if(gx(t)){let m=t.getAttribute("action");l=m?S3(m,c):null,n=t.getAttribute("method")||xe,o=Nc(t.getAttribute("enctype"))||ge,u=new FormData(t)}else if(xx(t)||zx(t)&&(t.type==="submit"||t.type==="image")){let m=t.form;if(m==null)throw new Error('Cannot submit a