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 fp="modulepreload",mp=function(t){return"/"+t},Gs={},xa=function(c,n,l){let o=Promise.resolve();if(n&&n.length>0){let p=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=p(n.map(g=>{if(g=mp(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 M=document.createElement("link");if(M.rel=x?"stylesheet":fp,x||(M.as="script"),M.crossOrigin="",M.href=g,m&&M.setAttribute("nonce",m),document.head.appendChild(M),x)return new Promise((y,H)=>{M.addEventListener("load",y),M.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 vp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Sc={exports:{}},I8={};var Ys;function pp(){if(Ys)return I8;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 I8.Fragment=c,I8.jsx=n,I8.jsxs=n,I8}var Ks;function xp(){return Ks||(Ks=1,Sc.exports=pp()),Sc.exports}var r=xp(),Ac={exports:{}},$1={};var Qs;function gp(){if(Qs)return $1;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"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),M=Symbol.iterator;function y(q){return q===null||typeof q!="object"?null:(q=M&&q[M]||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,l1){this.props=q,this.context=G,this.refs=w,this.updater=l1||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,l1){this.props=q,this.context=G,this.refs=w,this.updater=l1||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,l1){var X=l1.ref;return{$$typeof:t,type:q,key:G,ref:X!==void 0?X:null,props:l1}}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(l1){return G[l1]})}var a1=/\/+/g;function K(q,G){return typeof q=="object"&&q!==null&&q.key!=null?Z(""+q.key):G.toString(36)}function P(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,l1,X,c1){var i1=typeof q;(i1==="undefined"||i1==="boolean")&&(q=null);var t1=!1;if(q===null)t1=!0;else switch(i1){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,l1,X,c1)}}if(t1)return c1=c1(q),t1=X===""?"."+K(q,0):X,E(c1)?(l1="",t1!=null&&(l1=t1.replace(a1,"$&/")+"/"),T(c1,G,l1,"",function(A1){return A1})):c1!=null&&(_(c1)&&(c1=D(c1,l1+(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,p1=T[r1];if(0>>1;r1o(l1,I))Xo(c1,l1)?(T[r1]=c1,T[X]=I,r1=X):(T[r1]=l1,T[G]=I,r1=G);else if(Xo(c1,I))T[r1]=c1,T[X]=I,r1=X;else break t}}return U}function o(T,U){var I=T.sortIndex-U.sortIndex;return I!==0?I: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 p=[],g=[],x=1,b=null,M=3,y=!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(p,U);else break;U=n(g)}}function E(T){if(L=!1,j(T),!H)if(n(p)!==null)H=!0,F||(F=!0,Z());else{var U=n(g);U!==null&&P(E,U.startTime-T)}}var F=!1,R=-1,V=5,N=-1;function D(){return w?!0:!(t.unstable_now()-NT&&D());){var r1=b.callback;if(typeof r1=="function"){b.callback=null,M=b.priorityLevel;var p1=r1(b.expirationTime<=T);if(T=t.unstable_now(),typeof p1=="function"){b.callback=p1,j(T),U=!0;break e}b===n(p)&&l(p),j(T)}else l(p);b=n(p)}if(b!==null)U=!0;else{var q=n(g);q!==null&&P(E,q.startTime-T),U=!1}}break t}finally{b=null,M=I,y=!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 P(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||125r1?(T.sortIndex=I,c(g,T),n(p)===null&&T===n(g)&&(L?(S(R),R=-1):L=!0,P(E,I-r1))):(T.sortIndex=p1,c(p,T),H||y||(H=!0,F||(F=!0,Z()))),T},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(T){var U=M;return function(){var I=M;M=U;try{return T.apply(this,arguments)}finally{M=I}}}})(Vc)),Vc}var Js;function bp(){return Js||(Js=1,Lc.exports=zp()),Lc.exports}var Bc={exports:{}},J2={};var to;function yp(){if(to)return J2;to=1;var t=nn();function c(p){var g="https://react.dev/errors/"+p;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=yp(),Bc.exports}var co;function Mp(){if(co)return P8;co=1;var t=bp(),c=nn(),n=lh();function l(e){var a="https://react.dev/errors/"+e;if(1p1||(e.current=r1[p1],r1[p1]=null,p1--)}function l1(e,a){p1++,r1[p1]=e.current,e.current=a}var X=q(null),c1=q(null),i1=q(null),t1=q(null);function y1(e,a){switch(l1(i1,a),l1(c1,e),l1(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),l1(X,e)}function z1(){G(X),G(c1),G(i1)}function A1(e){e.memoizedState!==null&&l1(t1,e);var a=X.current,i=xs(a,e.type);a!==i&&(l1(c1,e),l1(X,i))}function I1(e){c1.current===e&&(G(X),G(c1)),t1.current===e&&(G(t1),D8._currentValue=I)}var D1,W1;function _1(e){if(D1===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);D1=a&&a[1]||"",W1=-1)":-1v||O[h]!==J[v]){var u1=` `+O[h].replace(" at new "," at ");return e.displayName&&u1.includes("")&&(u1=u1.replace("",e.displayName)),u1}while(1<=h&&0<=v);break}}}finally{a2=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?_1(i):""}function M1(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 d1(e.type,!1);case 11:return d1(e.type.render,!1);case 1:return d1(e.type,!0);case 31:return _1("Activity");default:return""}}function F1(e){try{var a="",i=null;do a+=M1(e,i),i=e,e=e.return;while(e);return a}catch(h){return` Error generating stack: `+h.message+` `+h.stack}}var P1=Object.prototype.hasOwnProperty,C1=t.unstable_scheduleCallback,O1=t.unstable_cancelCallback,x1=t.unstable_shouldYield,H1=t.unstable_requestPaint,n1=t.unstable_now,b1=t.unstable_getCurrentPriorityLevel,g1=t.unstable_ImmediatePriority,S1=t.unstable_UserBlockingPriority,Z1=t.unstable_NormalPriority,o1=t.unstable_LowPriority,f1=t.unstable_IdlePriority,k1=t.log,J1=t.unstable_setDisableYieldValue,z2=null,V1=null;function S2(e){if(typeof k1=="function"&&J1(e),V1&&typeof V1.setStrictMode=="function")try{V1.setStrictMode(z2,e)}catch{}}var p2=Math.clz32?Math.clz32:v1,q4=Math.log,L3=Math.LN2;function v1(e){return e>>>=0,e===0?32:31-(q4(e)/L3|0)|0}var B1=256,E1=262144,a4=4194304;function j1(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 v=0,z=e.suspendedLanes,A=e.pingedLanes;e=e.warmLanes;var k=h&134217727;return k!==0?(h=k&~z,h!==0?v=j1(h):(A&=k,A!==0?v=j1(A):i||(i=k&~e,i!==0&&(v=j1(i))))):(k=h&~z,k!==0?v=j1(k):A!==0?v=j1(A):i||(i=h&~e,i!==0&&(v=j1(i)))),v===0?0:a!==0&&a!==v&&(a&z)===0&&(z=v&-v,i=a&-a,z>=i||z===32&&(i&4194048)!==0)?a:v}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,v,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 im=/[\n"\\]/g;function y4(e){return e.replace(im,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function z7(e,a,i,h,v,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"),v==null&&z!=null&&(e.defaultChecked=!!z),v!=null&&(e.checked=v&&typeof v!="function"&&typeof v!="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,v,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??v,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 v=0;v"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S7=!1;if(n3)try{var a8={};Object.defineProperty(a8,"passive",{get:function(){S7=!0}}),window.addEventListener("test",a8,a8),window.removeEventListener("test",a8,a8)}catch{S7=!1}var j3=null,A7=null,q5=null;function xr(){if(q5)return q5;var e,a=A7,i=a.length,h,v="value"in j3?j3.value:j3.textContent,z=v.length;for(e=0;e=l8),wr=" ",Cr=!1;function Sr(e,a){switch(e){case"keyup":return Rm.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 Tm(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 qm(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 Zm=n3&&"documentMode"in document&&11>=document.documentMode,t0=null,R7=null,u8=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}),u8&&o8(u8,h)||(u8=h,h=jt(R7,"onSelect"),0>=A,v-=A,K4=1<<32-p2(a)+v|i<Y1?(e2=N1,N1=null):e2=N1.sibling;var l2=e1(Y,N1,W[Y1],h1);if(l2===null){N1===null&&(N1=e2);break}e&&N1&&l2.alternate===null&&a(Y,N1),$=z(l2,$,Y1),r2===null?R1=l2:r2.sibling=l2,r2=l2,N1=e2}if(Y1===W.length)return i(Y,N1),c2&&l3(Y,Y1),R1;if(N1===null){for(;Y1Y1?(e2=N1,N1=null):e2=N1.sibling;var J3=e1(Y,N1,l2.value,h1);if(J3===null){N1===null&&(N1=e2);break}e&&N1&&J3.alternate===null&&a(Y,N1),$=z(J3,$,Y1),r2===null?R1=J3:r2.sibling=J3,r2=J3,N1=e2}if(l2.done)return i(Y,N1),c2&&l3(Y,Y1),R1;if(N1===null){for(;!l2.done;Y1++,l2=W.next())l2=m1(Y,l2.value,h1),l2!==null&&($=z(l2,$,Y1),r2===null?R1=l2:r2.sibling=l2,r2=l2);return c2&&l3(Y,Y1),R1}for(N1=h(N1);!l2.done;Y1++,l2=W.next())l2=s1(N1,Y,Y1,l2.value,h1),l2!==null&&(e&&l2.alternate!==null&&N1.delete(l2.key===null?Y1:l2.key),$=z(l2,$,Y1),r2===null?R1=l2:r2.sibling=l2,r2=l2);return e&&N1.forEach(function(dp){return a(Y,dp)}),c2&&l3(Y,Y1),R1}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 y:t:{for(var R1=W.key;$!==null;){if($.key===R1){if(R1=W.type,R1===L){if($.tag===7){i(Y,$.sibling),h1=v($,W.props.children),h1.return=Y,Y=h1;break t}}else if($.elementType===R1||typeof R1=="object"&&R1!==null&&R1.$$typeof===V&&x6(R1)===$.type){i(Y,$.sibling),h1=v($,W.props),p8(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),p8(h1,W),h1.return=Y,Y=h1)}return A(Y);case H:t:{for(R1=W.key;$!==null;){if($.key===R1)if($.tag===4&&$.stateNode.containerInfo===W.containerInfo&&$.stateNode.implementation===W.implementation){i(Y,$.sibling),h1=v($,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(P(W))return L1(Y,$,W,h1);if(Z(W)){if(R1=Z(W),typeof R1!="function")throw Error(l(150));return W=R1.call(W),q1(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=v($,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{v8=0;var R1=v2(Y,$,W,h1);return h0=null,R1}catch(N1){if(N1===u0||N1===J5)throw N1;var r2=m4(29,N1,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 v=h.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),h.pending=a,a=G5(e),$r(e,null,i),a}return Z5(e,h,a,i),G5(e)}function x8(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 v=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?v=z=A:z=z.next=A,i=i.next}while(i!==null);z===null?v=z=a:z=z.next=a}else v=z=a;i={baseState:h.baseState,firstBaseUpdate:v,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 g8(){if(n9){var e=o0;if(e!==null)throw e}}function z8(e,a,i,h){n9=!1;var v=e.updateQueue;E3=!1;var z=v.firstBaseUpdate,A=v.lastBaseUpdate,k=v.shared.pending;if(k!==null){v.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 m1=v.baseState;A=0,u1=J=O=null,k=z;do{var e1=k.lane&-536870913,s1=e1!==k.lane;if(s1?(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,q1=k;e1=a;var v2=i;switch(q1.tag){case 1:if(L1=q1.payload,typeof L1=="function"){m1=L1.call(v2,m1,e1);break t}m1=L1;break t;case 3:L1.flags=L1.flags&-65537|128;case 0:if(L1=q1.payload,e1=typeof L1=="function"?L1.call(v2,m1,e1):L1,e1==null)break t;m1=b({},m1,e1);break t;case 2:E3=!0}}e1=k.callback,e1!==null&&(e.flags|=64,s1&&(e.flags|=8192),s1=v.callbacks,s1===null?v.callbacks=[e1]:s1.push(e1))}else s1={lane:e1,tag:k.tag,payload:k.payload,callback:k.callback,next:null},u1===null?(J=u1=s1,O=m1):u1=u1.next=s1,A|=e1;if(k=k.next,k===null){if(k=v.shared.pending,k===null)break;s1=k,k=s1.next,s1.next=null,v.lastBaseUpdate=s1,v.shared.pending=null}}while(!0);u1===null&&(O=m1),v.baseState=O,v.firstBaseUpdate=J,v.lastBaseUpdate=u1,z===null&&(v.shared.lanes=0),I3|=A,e.lanes=A,e.memoizedState=m1}}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=v(),J=T.S;if(J!==null&&J(k,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var u1=ev(O,h);M8(e,a,u1,z4(e))}else M8(e,a,h,z4(e))}catch(m1){M8(e,a,{then:function(){},status:"rejected",reason:m1},z4())}finally{U.p=z,A!==null&&k.types!==null&&(A.types=k.types),T.T=A}}function iv(){}function y9(e,a,i,h){if(e.tag!==5)throw Error(l(476));var v=Ul(e).queue;Ol(e,v,a,I,i===null?iv:function(){return Il(e),i(h)})}function Ul(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:u3,lastRenderedState:I},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),M8(e,a.next.queue,{},z4())}function M9(){return Q2(D8)}function Pl(){return N2().memoizedState}function $l(){return N2().memoizedState}function sv(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),x8(h,a,i)),a={cache:X7()},e.payload=a;return}a=a.return}}function ov(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();M8(e,a,i,h)}function M8(e,a,i,h){var v={lane:h,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(dt(e))Gl(a,v);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(v.hasEagerState=!0,v.eagerState=k,f4(k,A))return Z5(e,a,v,0),g2===null&&$5(),!1}catch{}finally{}if(i=_7(e,a,v,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===G1||a!==null&&a===G1}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 w8={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};w8.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 v=i(a);if(b6){S2(!0);try{i(a)}finally{S2(!1)}}}else v=a;return h.memoizedState=h.baseState=v,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:v},h.queue=e,e=e.dispatch=ov.bind(null,G1,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,G1,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,G1,e.queue,!0,!1),e4().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,i){var h=G1,v=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)}v.memoizedState=i;var z={value:i,getSnapshot:a};return v.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(v,{is:h.is}):A.createElement(v)}}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,v,h),v){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 y2(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=i1.current,l0(a)){if(e=a.stateNode,i=a.memoizedProps,h=null,v=K2,v!==null)switch(v.tag){case 27:case 5:h=v.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 y2(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;y2(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 y2(a),null;case 13:if(h=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(v=l0(a),h!==null&&h.dehydrated!==null){if(e===null){if(!v)throw Error(l(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(l(317));v[Y2]=a}else f6(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;y2(a),v=!1}else v=G7(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=v),v=!0;if(!v)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,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),z=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(z=h.memoizedState.cachePool.pool),z!==v&&(h.flags|=2048)),i!==e&&i&&(a.child.flags|=8192),xt(a,a.updateQueue),y2(a),null);case 4:return z1(),e===null&&rc(a.stateNode.containerInfo),y2(a),null;case 10:return s3(a.type),y2(a),null;case 19:if(G(j2),h=a.memoizedState,h===null)return y2(a),null;if(v=(a.flags&128)!==0,z=h.rendering,z===null)if(v)S8(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,S8(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 l1(j2,j2.current&1|2),c2&&l3(a,h.treeForkCount),a.child}e=e.sibling}h.tail!==null&&n1()>Mt&&(a.flags|=128,v=!0,S8(h,!1),a.lanes=4194304)}else{if(!v)if(e=nt(z),e!==null){if(a.flags|=128,v=!0,e=e.updateQueue,a.updateQueue=e,xt(a,e),S8(h,!0),h.tail===null&&h.tailMode==="hidden"&&!z.alternate&&!c2)return y2(a),null}else 2*n1()-h.renderingStartTime>Mt&&i!==536870912&&(a.flags|=128,v=!0,S8(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=n1(),e.sibling=null,i=j2.current,l1(j2,v?i&1|2:i&1),c2&&l3(a,h.treeForkCount),e):(y2(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&&(y2(a),a.subtreeFlags&6&&(a.flags|=8192)):y2(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),y2(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function mv(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 I1(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:I1(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 A8(e,a){try{var i=a.updateQueue,h=i!==null?i.lastEffect:null;if(h!==null){var v=h.next;i=v;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!==v)}}catch(k){h2(a,a.return,k)}}function O3(e,a,i){try{var h=a.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var z=v.next;h=z;do{if((h.tag&e)===e){var A=h.inst,k=A.destroy;if(k!==void 0){A.destroy=void 0,v=a;var O=i,J=k;try{J()}catch(u1){h2(v,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 H8(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(v){h2(e,a,v)}}function X4(e,a){var i=e.ref,h=e.refCleanup;if(i!==null)if(typeof h=="function")try{h()}catch(v){h2(e,a,v)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(v){h2(e,a,v)}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(v){h2(e,e.return,v)}}function q9(e,a,i){try{var h=e.stateNode;Ev(h,e.type,i,a),h[n4]=a}catch(v){h2(e,e.return,v)}}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,v=a.attributes;v.length;)a.removeAttributeNode(v[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 vv(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 v=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,m1=e,e1=null;e:for(;;){for(var s1;m1!==i||v!==0&&m1.nodeType!==3||(k=A+v),m1!==z||h!==0&&m1.nodeType!==3||(O=A+h),m1.nodeType===3&&(A+=m1.nodeValue.length),(s1=m1.firstChild)!==null;)e1=m1,m1=s1;for(;;){if(m1===e)break e;if(e1===i&&++J===v&&(k=A),e1===z&&++u1===h&&(O=A),(s1=m1.nextSibling)!==null)break;m1=e1,e1=m1.parentNode}m1=s1}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",v).get(h+(i.href||""));if(A){for(var k=0;kv2&&(A=v2,v2=q1,q1=A);var Y=Rr(k,q1),$=Rr(k,v2);if(Y&&$&&(s1.rangeCount!==1||s1.anchorNode!==Y.node||s1.anchorOffset!==Y.offset||s1.focusNode!==$.node||s1.focusOffset!==$.offset)){var W=m1.createRange();W.setStart(Y.node,Y.offset),s1.removeAllRanges(),q1>v2?(s1.addRange(W),s1.extend($.node,$.offset)):(W.setEnd($.node,$.offset),s1.addRange(W))}}}}for(m1=[],s1=k;s1=s1.parentNode;)s1.nodeType===1&&m1.push({element:s1,left:s1.scrollLeft,top:s1.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,k8(0,!1),V1&&typeof V1.onPostCommitFiberRoot=="function")try{V1.onPostCommitFiberRoot(z2,z)}catch{}return!0}finally{U.p=v,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 gv;var v=new Set;h.set(a,v)}else v=h.get(a),v===void 0&&(v=new Set,h.set(a,v));v.has(i)||(P9=!0,v.add(i),e=wv.bind(null,e,a,i),a.then(e,e))}function wv(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>n1()-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 Cv(e){var a=e.memoizedState,i=0;a!==null&&(i=a.retryLane),as(e,i)}function Sv(e,a){var i=0;switch(e.tag){case 31:case 13:var h=e.stateNode,v=e.memoizedState;v!==null&&(i=v.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 Av(e,a){return C1(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,Lv())}function k8(e,a){if(!tc&&Vt){tc=!0;do for(var i=!1,h=Lt;h!==null;){if(e!==0){var v=h.pendingLanes;if(v===0)var z=0;else{var A=h.suspendedLanes,k=h.pingedLanes;z=(1<<31-p2(42|e)+1)-1,z&=v&~(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 Hv(){ns()}function ns(){Vt=J9=!1;var e=0;G3!==0&&qv()&&(e=G3);for(var a=n1(),i=null,h=Lt;h!==null;){var v=h.next,z=rs(h,a);z===0?(h.next=null,i===null?Lt=v:i.next=v,v===null&&(w0=i)):(i=h,(e!==0||(z&3)!==0)&&(Vt=!0)),h=v}P2!==0&&P2!==5||k8(e),G3!==0&&(G3=0)}function rs(e,a){for(var i=e.suspendedLanes,h=e.pingedLanes,v=e.expirationTimes,z=e.pendingLanes&-62914561;0k)break;var u1=O.transferSize,m1=O.initiatorType;u1&&vs(m1)&&(O=O.responseEnd,A+=u1*(O"u"?null:document;function Hs(e,a,i){var h=C0;if(h&&typeof a=="string"&&a){var v=y4(a);v='link[rel="'+e+'"][href="'+v+'"]',typeof i=="string"&&(v+='[crossorigin="'+i+'"]'),As.has(v)||(As.add(v),e={rel:e,crossOrigin:i,href:a},h.querySelector(v)===null&&(a=h.createElement("link"),W2(a,"link",e),Z2(a),h.head.appendChild(a)))}}function Gv(e){z3.D(e),Hs("dns-prefetch",e,null)}function Yv(e,a){z3.C(e,a),Hs("preconnect",e,a)}function Kv(e,a,i){z3.L(e,a,i);var h=C0;if(h&&e&&a){var v='link[rel="preload"][as="'+y4(a)+'"]';a==="image"&&i&&i.imageSrcSet?(v+='[imagesrcset="'+y4(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(v+='[imagesizes="'+y4(i.imageSizes)+'"]')):v+='[href="'+y4(e)+'"]';var z=v;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(v)!==null||a==="style"&&h.querySelector(T8(z))||a==="script"&&h.querySelector(q8(z))||(a=h.createElement("link"),W2(a,"link",e),Z2(a),h.head.appendChild(a)))}}function Qv(e,a){z3.m(e,a);var i=C0;if(i&&e){var h=a&&typeof a.as=="string"?a.as:"script",v='link[rel="modulepreload"][as="'+y4(h)+'"][href="'+y4(e)+'"]',z=v;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(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(q8(z)))return}h=i.createElement("link"),W2(h,"link",e),Z2(h),i.head.appendChild(h)}}}function Xv(e,a,i){z3.S(e,a,i);var h=C0;if(h&&e){var v=G6(h).hoistableStyles,z=S0(e);a=a||"default";var A=v.get(z);if(!A){var k={loading:0,preload:null};if(A=h.querySelector(T8(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},v.set(z,A)}}}function Wv(e,a){z3.X(e,a);var i=C0;if(i&&e){var h=G6(i).hoistableScripts,v=A0(e),z=h.get(v);z||(z=i.querySelector(q8(v)),z||(e=b({src:e,async:!0},a),(a=V4.get(v))&&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(v,z))}}function Jv(e,a){z3.M(e,a);var i=C0;if(i&&e){var h=G6(i).hoistableScripts,v=A0(e),z=h.get(v);z||(z=i.querySelector(q8(v)),z||(e=b({src:e,async:!0,type:"module"},a),(a=V4.get(v))&&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(v,z))}}function Ls(e,a,i,h){var v=(v=i1.current)?kt(v):null;if(!v)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(v).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(v).hoistableStyles,A=z.get(e);if(A||(v=v.ownerDocument||v,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},z.set(e,A),(z=v.querySelector(T8(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||tp(v,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(v).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 T8(e){return'link[rel="stylesheet"]['+e+"]"}function Vs(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function tp(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 q8(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 v=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",v),Ft(h,i.precedence,e),a.instance=h;case"stylesheet":v=S0(i.href);var z=e.querySelector(T8(v));if(z)return a.state.loading|=4,a.instance=z,Z2(z),z;h=Vs(i),(v=V4.get(v))&&pc(h,v),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),(v=e.querySelector(q8(z)))?(a.instance=v,Z2(v),v):(h=i,(v=V4.get(z))&&(h=b({},i),xc(h,v)),e=e.ownerDocument||e,v=e.createElement("script"),Z2(v),W2(v,"link",h),e.head.appendChild(v),a.instance=v);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]'),v=h.length?h[h.length-1]:null,z=v,A=0;A title"):null)}function ep(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 cp(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 v=S0(h.href),z=a.querySelector(T8(v));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),(v=V4.get(v))&&pc(h,v),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 ap(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(v)}}: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(np,e),Tt=null,Et.call(e))}function np(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 v=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=Mp(),Hc.exports}var Cp=wp();var no="popstate";function Sp(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 Hp(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 Ap(){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"?Y0(c):c,state:n,key:c&&c.key||l||Ap()}}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 Y0(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 Hp(t,c,n,l={}){let{window:o=document.defaultView,v5Compat:u=!1}=l,d=o.history,m="POP",p=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,p&&p({action:m,location:L.location,delta:B})}function M(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&&p&&p({action:m,location:L.location,delta:1})}function y(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&&p&&p({action:m,location:L.location,delta:0})}function H(w){return Lp(w)}let L={get action(){return m},get location(){return t(o,d)},listen(w){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(no,b),p=w,()=>{o.removeEventListener(no,b),p=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:M,replace:y,go(w){return d.go(w)}};return L}function Lp(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 Vp(t,c,n,!1)}function Vp(t,c,n,l){let o=typeof c=="string"?Y0(c):c,u=S3(o.pathname||"/",n);if(u==null)return null;let d=sh(t);Bp(d);let m=null;for(let p=0;m==null&&p{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)&&p)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]),M=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,M,b,p)),!(d.path==null&&!d.index)&&c.push({path:b,score:Tp(b,d.index),routesMeta:M})};return t.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))u(d,m);else for(let p of oh(d.path))u(d,m,!0,p)}),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(p=>p===""?u:[u,p].join("/"))),o&&m.push(...d),m.map(p=>t.startsWith("/")&&p===""?"/":p)}function Bp(t){t.sort((c,n)=>c.score!==n.score?n.score-c.score:qp(c.routesMeta.map(l=>l.childrenIndex),n.routesMeta.map(l=>l.childrenIndex)))}var jp=/^:[\w-]+$/,Np=3,kp=2,Fp=1,Rp=10,Ep=-2,lo=t=>t==="*";function Tp(t,c){let n=t.split("/"),l=n.length;return n.some(lo)&&(l+=Ep),c&&(l+=kp),n.filter(o=>!lo(o)).reduce((o,u)=>o+(jp.test(u)?Np:u===""?Fp:Rp),l)}function qp(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 Dp(t,c,n=!1){let{routesMeta:l}=t,o={},u="/",d=[];for(let m=0;m{if(x==="*"){let H=m[M]||"";d=u.slice(0,u.length-H.length).replace(/(.)\/+$/,"$1")}const y=m[M];return b&&!y?g[x]=void 0:g[x]=(y||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:d,pattern:t}}function _p(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,p)=>(l.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).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 Op(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 Up=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ip=t=>Up.test(t);function Pp(t,c="/"){let{pathname:n,search:l="",hash:o=""}=typeof t=="string"?Y0(t):t,u;if(n)if(Ip(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:Gp(l),hash:Yp(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 $p(t){return t.filter((c,n)=>n===0||c.route.path&&c.route.path.length>0)}function uh(t){let c=$p(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=Y0(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 M=d.split("/");for(;M[0]==="..";)M.shift(),b-=1;o.pathname=M.join("/")}m=b>=0?c[b]:"/"}let p=Pp(o,m),g=d&&d!=="/"&&d.endsWith("/"),x=(u||d===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(g||x)&&(p.pathname+="/"),p}var C3=t=>t.join("/").replace(/\/\/+/g,"/"),Zp=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Gp=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Yp=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Kp(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 Qp=["GET",...dh];new Set(Qp);var K0=f.createContext(null);K0.displayName="DataRouter";var Ke=f.createContext(null);Ke.displayName="DataRouterState";f.createContext(!1);var fh=f.createContext({isTransitioning:!1});fh.displayName="ViewTransition";var Xp=f.createContext(new Map);Xp.displayName="Fetchers";var Wp=f.createContext(null);Wp.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 Jp(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?dx():tx()}function tx(){H2(C5(),"useNavigate() may be used only in the context of a component.");let t=f.useContext(K0),{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((p,g={})=>{if(G4(d.current,mh),!d.current)return;if(typeof p=="number"){n.go(p);return}let x=hh(p,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 ex(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],p=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 M=R6(),y;if(c){let S=typeof c=="string"?Y0(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.`),y=S}else y=M;let H=y.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 "${y.pathname}${y.search}${y.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 "${y.pathname}${y.search}${y.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=lx(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},p,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",...y},navigationType:"POP"}},B):B}function cx(){let t=hx(),c=Kp(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 ax=f.createElement(cx,null),nx=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 rx({routeContext:t,match:c,children:n}){let l=f.useContext(K0);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 lx(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,p=-1;if(n)for(let x=0;x=0?u=u.slice(0,p+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,M)=>{let y,H=!1,L=null,w=null;n&&(y=d&&b.route.id?d[b.route.id]:void 0,L=b.route.errorElement||ax,m&&(p<0&&M===0?(xh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,w=null):p===M&&(H=!0,w=b.route.hydrateFallbackElement||null)));let B=c.concat(u.slice(0,M+1)),S=()=>{let C;return y?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(rx,{match:b,routeContext:{outlet:x,matches:B,isDataRoute:n!=null},children:C})};return n&&(b.route.ErrorBoundary||b.route.errorElement||M===0)?f.createElement(nx,{location:n.location,revalidation:n.revalidation,component:L,error:y,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 ix(t){let c=f.useContext(K0);return H2(c,sn(t)),c}function sx(t){let c=f.useContext(Ke);return H2(c,sn(t)),c}function ox(t){let c=f.useContext(A3);return H2(c,sn(t)),c}function on(t){let c=ox(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 ux(){return on("useRouteId")}function hx(){let t=f.useContext(rn),c=sx("useRouteError"),n=on("useRouteError");return t!==void 0?t:c.errors?.[n]}function dx(){let{router:t}=ix("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(fx);function fx({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 mx({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=Y0(n));let{pathname:p="/",search:g="",hash:x="",state:b=null,key:M="default"}=n,y=f.useMemo(()=>{let H=S3(p,d);return H==null?null:{location:{pathname:H,search:g,hash:x,state:b,key:M},navigationType:l}},[d,p,g,x,b,M,l]);return G4(y!=null,` is not able to match the URL "${p}${g}${x}" because it does not start with the basename, so the won't render anything.`),y==null?null:f.createElement(e3.Provider,{value:m},f.createElement(w5.Provider,{children:c,value:y}))}function vx({children:t,location:c}){return ex(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 px(t){return Qe(t)&&t.tagName.toLowerCase()==="button"}function xx(t){return Qe(t)&&t.tagName.toLowerCase()==="form"}function gx(t){return Qe(t)&&t.tagName.toLowerCase()==="input"}function zx(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function bx(t,c){return t.button===0&&(!c||c==="_self")&&!zx(t)}var Zt=null;function yx(){if(Zt===null)try{new FormData(document.createElement("form"),0),Zt=!1}catch{Zt=!0}return Zt}var Mx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Nc(t){return t!=null&&!Mx.has(t)?(G4(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ge}"`),null):t}function wx(t,c){let n,l,o,u,d;if(xx(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(px(t)||gx(t)&&(t.type==="submit"||t.type==="image")){let m=t.form;if(m==null)throw new Error('Cannot submit a