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 s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function l(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();const Xx="modulepreload",Qx=function(t){return"/"+t},Io={},Ya=function(c,r,l){let s=Promise.resolve();if(r&&r.length>0){let v=function(g){return Promise.all(g.map(p=>Promise.resolve(p).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");s=v(r.map(g=>{if(g=Qx(g),g in Io)return;Io[g]=!0;const p=g.endsWith(".css"),b=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":Xx,p||(y.as="script"),y.crossOrigin="",y.href=g,m&&y.setAttribute("nonce",m),document.head.appendChild(y),p)return new Promise((w,S)=>{y.addEventListener("load",w),y.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${g}`)))})}))}function o(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return s.then(h=>{for(const m of h||[])m.status==="rejected"&&o(m.reason);return c().catch(o)})};function bh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yn={exports:{}},re={};var $o;function Wx(){if($o)return re;$o=1;var t=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(l,s,o){var h=null;if(o!==void 0&&(h=""+o),s.key!==void 0&&(h=""+s.key),"key"in s){o={};for(var m in s)m!=="key"&&(o[m]=s[m])}else o=s;return s=o.ref,{$$typeof:t,type:l,key:h,ref:s!==void 0?s:null,props:o}}return re.Fragment=c,re.jsx=r,re.jsxs=r,re}var Zo;function Jx(){return Zo||(Zo=1,Yn.exports=Wx()),Yn.exports}var a=Jx(),Kn={exports:{}},X1={};var Go;function tg(){if(Go)return X1;Go=1;var t=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),y=Symbol.iterator;function w(D){return D===null||typeof D!="object"?null:(D=y&&D[y]||D["@@iterator"],typeof D=="function"?D:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,M={};function V(D,P,c1){this.props=D,this.context=P,this.refs=M,this.updater=c1||S}V.prototype.isReactComponent={},V.prototype.setState=function(D,P){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,P,"setState")},V.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function A(){}A.prototype=V.prototype;function C(D,P,c1){this.props=D,this.context=P,this.refs=M,this.updater=c1||S}var j=C.prototype=new A;j.constructor=C,H(j,V.prototype),j.isPureReactComponent=!0;var F=Array.isArray;function E(){}var N={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function k(D,P,c1){var W=c1.ref;return{$$typeof:t,type:D,key:P,ref:W!==void 0?W:null,props:c1}}function _(D,P){return k(D.type,P,D.props)}function T(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function q(D){var P={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(c1){return P[c1]})}var J=/\/+/g;function t1(D,P){return typeof D=="object"&&D!==null&&D.key!=null?q(""+D.key):P.toString(36)}function Y(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(E,E):(D.status="pending",D.then(function(P){D.status==="pending"&&(D.status="fulfilled",D.value=P)},function(P){D.status==="pending"&&(D.status="rejected",D.reason=P)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function O(D,P,c1,W,G){var K=typeof D;(K==="undefined"||K==="boolean")&&(D=null);var o1=!1;if(D===null)o1=!0;else switch(K){case"bigint":case"string":case"number":o1=!0;break;case"object":switch(D.$$typeof){case t:case c:o1=!0;break;case p:return o1=D._init,O(o1(D._payload),P,c1,W,G)}}if(o1)return G=G(D),o1=W===""?"."+t1(D,0):W,F(G)?(c1="",o1!=null&&(c1=o1.replace(J,"$&/")+"/"),O(G,P,c1,"",function(N1){return N1})):G!=null&&(T(G)&&(G=_(G,c1+(G.key==null||D&&D.key===G.key?"":(""+G.key).replace(J,"$&/")+"/")+o1)),P.push(G)),1;o1=0;var y1=W===""?".":W+":";if(F(D))for(var C1=0;C1>>1,p1=O[s1];if(0>>1;s1s(c1,Q))Ws(G,c1)?(O[s1]=G,O[W]=Q,s1=W):(O[s1]=c1,O[P]=Q,s1=P);else if(Ws(G,Q))O[s1]=G,O[W]=Q,s1=W;else break t}}return I}function s(O,I){var Q=O.sortIndex-I.sortIndex;return Q!==0?Q:O.id-I.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var h=Date,m=h.now();t.unstable_now=function(){return h.now()-m}}var v=[],g=[],p=1,b=null,y=3,w=!1,S=!1,H=!1,M=!1,V=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function j(O){for(var I=r(g);I!==null;){if(I.callback===null)l(g);else if(I.startTime<=O)l(g),I.sortIndex=I.expirationTime,c(v,I);else break;I=r(g)}}function F(O){if(H=!1,j(O),!S)if(r(v)!==null)S=!0,E||(E=!0,q());else{var I=r(g);I!==null&&Y(F,I.startTime-O)}}var E=!1,N=-1,B=5,k=-1;function _(){return M?!0:!(t.unstable_now()-kO&&_());){var s1=b.callback;if(typeof s1=="function"){b.callback=null,y=b.priorityLevel;var p1=s1(b.expirationTime<=O);if(O=t.unstable_now(),typeof p1=="function"){b.callback=p1,j(O),I=!0;break e}b===r(v)&&l(v),j(O)}else l(v);b=r(v)}if(b!==null)I=!0;else{var D=r(g);D!==null&&Y(F,D.startTime-O),I=!1}}break t}finally{b=null,y=Q,w=!1}I=void 0}}finally{I?q():E=!1}}}var q;if(typeof C=="function")q=function(){C(T)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,t1=J.port2;J.port1.onmessage=T,q=function(){t1.postMessage(null)}}else q=function(){V(T,0)};function Y(O,I){N=V(function(){O(t.unstable_now())},I)}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(O){O.callback=null},t.unstable_forceFrameRate=function(O){0>O||125s1?(O.sortIndex=Q,c(g,O),r(v)===null&&O===r(g)&&(H?(A(N),N=-1):H=!0,Y(F,Q-s1))):(O.sortIndex=p1,c(v,O),S||w||(S=!0,E||(E=!0,q()))),O},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(O){var I=y;return function(){var Q=y;y=I;try{return O.apply(this,arguments)}finally{y=Q}}}})(Wn)),Wn}var Xo;function cg(){return Xo||(Xo=1,Qn.exports=eg()),Qn.exports}var Jn={exports:{}},n4={};var Qo;function ng(){if(Qo)return n4;Qo=1;var t=q9();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(),Jn.exports=ng(),Jn.exports}var Jo;function ag(){if(Jo)return le;Jo=1;var t=cg(),c=q9(),r=zh();function l(e){var n="https://react.dev/errors/"+e;if(1p1||(e.current=s1[p1],s1[p1]=null,p1--)}function c1(e,n){p1++,s1[p1]=e.current,e.current=n}var W=D(null),G=D(null),K=D(null),o1=D(null);function y1(e,n){switch(c1(K,n),c1(G,e),c1(W,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?mo(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=mo(n),e=fo(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}P(W),c1(W,e)}function C1(){P(W),P(G),P(K)}function N1(e){e.memoizedState!==null&&c1(o1,e);var n=W.current,i=fo(n,e.type);n!==i&&(c1(G,e),c1(W,i))}function u1(e){G.current===e&&(P(W),P(G)),o1.current===e&&(P(o1),ee._currentValue=Q)}var j1,O1;function P1(e){if(j1===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);j1=n&&n[1]||"",O1=-1)":-1x||U[d]!==a1[x]){var d1=` `+U[d].replace(" at new "," at ");return e.displayName&&d1.includes("")&&(d1=d1.replace("",e.displayName)),d1}while(1<=d&&0<=x);break}}}finally{k1=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?P1(i):""}function g1(e,n){switch(e.tag){case 26:case 27:case 5:return P1(e.type);case 16:return P1("Lazy");case 13:return e.child!==n&&n!==null?P1("Suspense Fallback"):P1("Suspense");case 19:return P1("SuspenseList");case 0:case 15:return w1(e.type,!1);case 11:return w1(e.type.render,!1);case 1:return w1(e.type,!0);case 31:return P1("Activity");default:return""}}function F1(e){try{var n="",i=null;do n+=g1(e,i),i=e,e=e.return;while(e);return n}catch(d){return` Error generating stack: `+d.message+` `+d.stack}}var M1=Object.prototype.hasOwnProperty,B1=t.unstable_scheduleCallback,G1=t.unstable_cancelCallback,x1=t.unstable_shouldYield,m1=t.unstable_requestPaint,r1=t.unstable_now,b1=t.unstable_getCurrentPriorityLevel,z1=t.unstable_ImmediatePriority,H1=t.unstable_UserBlockingPriority,Z1=t.unstable_NormalPriority,W1=t.unstable_LowPriority,e1=t.unstable_IdlePriority,A1=t.log,D1=t.unstable_setDisableYieldValue,K1=null,L1=null;function Y1(e){if(typeof A1=="function"&&D1(e),L1&&typeof L1.setStrictMode=="function")try{L1.setStrictMode(K1,e)}catch{}}var u2=Math.clz32?Math.clz32:I1,v1=Math.log,_1=Math.LN2;function I1(e){return e>>>=0,e===0?32:31-(v1(e)/_1|0)|0}var F2=256,c4=262144,K0=4194304;function E1(e){var n=e&42;if(n!==0)return n;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 v2(e,n,i){var d=e.pendingLanes;if(d===0)return 0;var x=0,z=e.suspendedLanes,L=e.pingedLanes;e=e.warmLanes;var R=d&134217727;return R!==0?(d=R&~z,d!==0?x=E1(d):(L&=R,L!==0?x=E1(L):i||(i=R&~e,i!==0&&(x=E1(i))))):(R=d&~z,R!==0?x=E1(R):L!==0?x=E1(L):i||(i=d&~e,i!==0&&(x=E1(i)))),x===0?0:n!==0&&n!==x&&(n&z)===0&&(z=x&-x,i=n&-n,z>=i||z===32&&(i&4194048)!==0)?n:x}function h2(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function l2(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 b2(){var e=K0;return K0<<=1,(K0&62914560)===0&&(K0=4194304),e}function x4(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function P4(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function X0(e,n,i,d,x,z){var L=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 R=e.entanglements,U=e.expirationTimes,a1=e.hiddenUpdates;for(i=L&~i;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Iv=/[\n"\\]/g;function L4(e){return e.replace(Iv,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function q7(e,n,i,d,x,z,L,R){e.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?e.type=L:e.removeAttribute("type"),n!=null?L==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+H4(n)):e.value!==""+H4(n)&&(e.value=""+H4(n)):L!=="submit"&&L!=="reset"||e.removeAttribute("value"),n!=null?U7(e,L,H4(n)):i!=null?U7(e,L,H4(i)):d!=null&&e.removeAttribute("value"),x==null&&z!=null&&(e.defaultChecked=!!z),x!=null&&(e.checked=x&&typeof x!="function"&&typeof x!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+H4(R):e.removeAttribute("name")}function ll(e,n,i,d,x,z,L,R){if(z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(e.type=z),n!=null||i!=null){if(!(z!=="submit"&&z!=="reset"||n!=null)){_7(e);return}i=i!=null?""+H4(i):"",n=n!=null?""+H4(n):i,R||n===e.value||(e.value=n),e.defaultValue=n}d=d??x,d=typeof d!="function"&&typeof d!="symbol"&&!!d,e.checked=R?e.checked:!!d,e.defaultChecked=!!d,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(e.name=L),_7(e)}function U7(e,n,i){n==="number"&&We(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function c6(e,n,i,d){if(e=e.options,n){n={};for(var x=0;x"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),G7=!1;if(v3)try{var bt={};Object.defineProperty(bt,"passive",{get:function(){G7=!0}}),window.addEventListener("test",bt,bt),window.removeEventListener("test",bt,bt)}catch{G7=!1}var _3=null,Y7=null,t8=null;function ml(){if(t8)return t8;var e,n=Y7,i=n.length,d,x="value"in _3?_3.value:_3.textContent,z=x.length;for(e=0;e=wt),bl=" ",zl=!1;function yl(e,n){switch(e){case"keyup":return gp.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wl(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var l6=!1;function zp(e,n){switch(e){case"compositionend":return wl(n);case"keypress":return n.which!==32?null:(zl=!0,bl);case"textInput":return e=n.data,e===bl&&zl?null:e;default:return null}}function yp(e,n){if(l6)return e==="compositionend"||!J7&&yl(e,n)?(e=ml(),t8=Y7=_3=null,l6=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:i,offset:n-e};e=d}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Nl(i)}}function Bl(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Bl(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function kl(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=We(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=We(e.document)}return n}function cc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var jp=v3&&"documentMode"in document&&11>=document.documentMode,i6=null,nc=null,At=null,ac=!1;function Fl(e,n,i){var d=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ac||i6==null||i6!==We(d)||(d=i6,"selectionStart"in d&&cc(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),At&&St(At,d)||(At=d,d=G8(nc,"onSelect"),0>=L,x-=L,e3=1<<32-u2(n)+x|i<J1?(a2=R1,R1=null):a2=R1.sibling;var s2=l1(X,R1,n1[J1],h1);if(s2===null){R1===null&&(R1=a2);break}e&&R1&&s2.alternate===null&&n(X,R1),$=z(s2,$,J1),i2===null?q1=s2:i2.sibling=s2,i2=s2,R1=a2}if(J1===n1.length)return i(X,R1),r2&&x3(X,J1),q1;if(R1===null){for(;J1J1?(a2=R1,R1=null):a2=R1.sibling;var s0=l1(X,R1,s2.value,h1);if(s0===null){R1===null&&(R1=a2);break}e&&R1&&s0.alternate===null&&n(X,R1),$=z(s0,$,J1),i2===null?q1=s0:i2.sibling=s0,i2=s0,R1=a2}if(s2.done)return i(X,R1),r2&&x3(X,J1),q1;if(R1===null){for(;!s2.done;J1++,s2=n1.next())s2=f1(X,s2.value,h1),s2!==null&&($=z(s2,$,J1),i2===null?q1=s2:i2.sibling=s2,i2=s2);return r2&&x3(X,J1),q1}for(R1=d(R1);!s2.done;J1++,s2=n1.next())s2=i1(R1,X,J1,s2.value,h1),s2!==null&&(e&&s2.alternate!==null&&R1.delete(s2.key===null?J1:s2.key),$=z(s2,$,J1),i2===null?q1=s2:i2.sibling=s2,i2=s2);return e&&R1.forEach(function(Kx){return n(X,Kx)}),r2&&x3(X,J1),q1}function g2(X,$,n1,h1){if(typeof n1=="object"&&n1!==null&&n1.type===H&&n1.key===null&&(n1=n1.props.children),typeof n1=="object"&&n1!==null){switch(n1.$$typeof){case w:t:{for(var q1=n1.key;$!==null;){if($.key===q1){if(q1=n1.type,q1===H){if($.tag===7){i(X,$.sibling),h1=x($,n1.props.children),h1.return=X,X=h1;break t}}else if($.elementType===q1||typeof q1=="object"&&q1!==null&&q1.$$typeof===B&&j0(q1)===$.type){i(X,$.sibling),h1=x($,n1.props),Bt(h1,n1),h1.return=X,X=h1;break t}i(X,$);break}else n(X,$);$=$.sibling}n1.type===H?(h1=C0(n1.props.children,X.mode,h1,n1.key),h1.return=X,X=h1):(h1=u8(n1.type,n1.key,n1.props,null,X.mode,h1),Bt(h1,n1),h1.return=X,X=h1)}return L(X);case S:t:{for(q1=n1.key;$!==null;){if($.key===q1)if($.tag===4&&$.stateNode.containerInfo===n1.containerInfo&&$.stateNode.implementation===n1.implementation){i(X,$.sibling),h1=x($,n1.children||[]),h1.return=X,X=h1;break t}else{i(X,$);break}else n(X,$);$=$.sibling}h1=dc(n1,X.mode,h1),h1.return=X,X=h1}return L(X);case B:return n1=j0(n1),g2(X,$,n1,h1)}if(Y(n1))return V1(X,$,n1,h1);if(q(n1)){if(q1=q(n1),typeof q1!="function")throw Error(l(150));return n1=q1.call(n1),$1(X,$,n1,h1)}if(typeof n1.then=="function")return g2(X,$,x8(n1),h1);if(n1.$$typeof===C)return g2(X,$,m8(X,n1),h1);g8(X,n1)}return typeof n1=="string"&&n1!==""||typeof n1=="number"||typeof n1=="bigint"?(n1=""+n1,$!==null&&$.tag===6?(i(X,$.sibling),h1=x($,n1),h1.return=X,X=h1):(i(X,$),h1=uc(n1,X.mode,h1),h1.return=X,X=h1),L(X)):i(X,$)}return function(X,$,n1,h1){try{Vt=0;var q1=g2(X,$,n1,h1);return g6=null,q1}catch(R1){if(R1===x6||R1===v8)throw R1;var i2=b4(29,R1,null,X.mode);return i2.lanes=h1,i2.return=X,i2}finally{}}}var V0=ni(!0),ai=ni(!1),$3=!1;function Mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Z3(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function G3(e,n,i){var d=e.updateQueue;if(d===null)return null;if(d=d.shared,(d2&2)!==0){var x=d.pending;return x===null?n.next=n:(n.next=x.next,x.next=n),d.pending=n,n=o8(e),ql(e,null,i),n}return s8(e,d,n,i),o8(e)}function kt(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var d=n.lanes;d&=e.pendingLanes,i|=d,n.lanes=i,D3(e,i)}}function Sc(e,n){var i=e.updateQueue,d=e.alternate;if(d!==null&&(d=d.updateQueue,i===d)){var x=null,z=null;if(i=i.firstBaseUpdate,i!==null){do{var L={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};z===null?x=z=L:z=z.next=L,i=i.next}while(i!==null);z===null?x=z=n:z=z.next=n}else x=z=n;i={baseState:d.baseState,firstBaseUpdate:x,lastBaseUpdate:z,shared:d.shared,callbacks:d.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Ac=!1;function Ft(){if(Ac){var e=p6;if(e!==null)throw e}}function Rt(e,n,i,d){Ac=!1;var x=e.updateQueue;$3=!1;var z=x.firstBaseUpdate,L=x.lastBaseUpdate,R=x.shared.pending;if(R!==null){x.shared.pending=null;var U=R,a1=U.next;U.next=null,L===null?z=a1:L.next=a1,L=U;var d1=e.alternate;d1!==null&&(d1=d1.updateQueue,R=d1.lastBaseUpdate,R!==L&&(R===null?d1.firstBaseUpdate=a1:R.next=a1,d1.lastBaseUpdate=U))}if(z!==null){var f1=x.baseState;L=0,d1=a1=U=null,R=z;do{var l1=R.lane&-536870913,i1=l1!==R.lane;if(i1?(n2&l1)===l1:(d&l1)===l1){l1!==0&&l1===v6&&(Ac=!0),d1!==null&&(d1=d1.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});t:{var V1=e,$1=R;l1=n;var g2=i;switch($1.tag){case 1:if(V1=$1.payload,typeof V1=="function"){f1=V1.call(g2,f1,l1);break t}f1=V1;break t;case 3:V1.flags=V1.flags&-65537|128;case 0:if(V1=$1.payload,l1=typeof V1=="function"?V1.call(g2,f1,l1):V1,l1==null)break t;f1=b({},f1,l1);break t;case 2:$3=!0}}l1=R.callback,l1!==null&&(e.flags|=64,i1&&(e.flags|=8192),i1=x.callbacks,i1===null?x.callbacks=[l1]:i1.push(l1))}else i1={lane:l1,tag:R.tag,payload:R.payload,callback:R.callback,next:null},d1===null?(a1=d1=i1,U=f1):d1=d1.next=i1,L|=l1;if(R=R.next,R===null){if(R=x.shared.pending,R===null)break;i1=R,R=i1.next,i1.next=null,x.lastBaseUpdate=i1,x.shared.pending=null}}while(!0);d1===null&&(U=f1),x.baseState=U,x.firstBaseUpdate=a1,x.lastBaseUpdate=d1,z===null&&(x.shared.lanes=0),W3|=L,e.lanes=L,e.memoizedState=f1}}function ri(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function li(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;ez?z:8;var L=O.T,R={};O.T=R,$c(e,!1,n,i);try{var U=x(),a1=O.S;if(a1!==null&&a1(R,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var d1=Dp(U,d);Dt(e,n,d1,C4(e))}else Dt(e,n,d,C4(e))}catch(f1){Dt(e,n,{then:function(){},status:"rejected",reason:f1},C4())}finally{I.p=z,L!==null&&R.types!==null&&(L.types=R.types),O.T=L}}function Ip(){}function Pc(e,n,i,d){if(e.tag!==5)throw Error(l(476));var x=Di(e).queue;Ti(e,x,n,Q,i===null?Ip:function(){return Oi(e),i(d)})}function Di(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:y3,lastRenderedState:Q},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:y3,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Oi(e){var n=Di(e);n.next===null&&(n=e.alternate.memoizedState),Dt(e,n.next.queue,{},C4())}function Ic(){return J2(ee)}function _i(){return E2().memoizedState}function qi(){return E2().memoizedState}function $p(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=C4();e=Z3(i);var d=G3(n,e,i);d!==null&&(f4(d,n,i),kt(d,n,i)),n={cache:bc()},e.payload=n;return}n=n.return}}function Zp(e,n,i){var d=C4();i={lane:d,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},L8(e)?Pi(n,i):(i=sc(e,n,i,d),i!==null&&(f4(i,e,d),Ii(i,n,d)))}function Ui(e,n,i){var d=C4();Dt(e,n,i,d)}function Dt(e,n,i,d){var x={lane:d,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(L8(e))Pi(n,x);else{var z=e.alternate;if(e.lanes===0&&(z===null||z.lanes===0)&&(z=n.lastRenderedReducer,z!==null))try{var L=n.lastRenderedState,R=z(L,i);if(x.hasEagerState=!0,x.eagerState=R,g4(R,L))return s8(e,n,x,0),z2===null&&i8(),!1}catch{}finally{}if(i=sc(e,n,x,d),i!==null)return f4(i,e,d),Ii(i,n,d),!0}return!1}function $c(e,n,i,d){if(d={lane:2,revertLane:Cn(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},L8(e)){if(n)throw Error(l(479))}else n=sc(e,i,d,2),n!==null&&f4(n,e,2)}function L8(e){var n=e.alternate;return e===Q1||n!==null&&n===Q1}function Pi(e,n){z6=y8=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function Ii(e,n,i){if((i&4194048)!==0){var d=n.lanes;d&=e.pendingLanes,i|=d,n.lanes=i,D3(e,i)}}var Ot={readContext:J2,use:C8,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};Ot.useEffectEvent=V2;var $i={readContext:J2,use:C8,useCallback:function(e,n){return l4().memoizedState=[e,n===void 0?null:n],e},useContext:J2,useEffect:Li,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,A8(4194308,4,Bi.bind(null,n,e),i)},useLayoutEffect:function(e,n){return A8(4194308,4,e,n)},useInsertionEffect:function(e,n){A8(4,2,e,n)},useMemo:function(e,n){var i=l4();n=n===void 0?null:n;var d=e();if(B0){Y1(!0);try{e()}finally{Y1(!1)}}return i.memoizedState=[d,n],d},useReducer:function(e,n,i){var d=l4();if(i!==void 0){var x=i(n);if(B0){Y1(!0);try{i(n)}finally{Y1(!1)}}}else x=n;return d.memoizedState=d.baseState=x,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:x},d.queue=e,e=e.dispatch=Zp.bind(null,Q1,e),[d.memoizedState,e]},useRef:function(e){var n=l4();return e={current:e},n.memoizedState=e},useState:function(e){e=Dc(e);var n=e.queue,i=Ui.bind(null,Q1,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:qc,useDeferredValue:function(e,n){var i=l4();return Uc(i,e,n)},useTransition:function(){var e=Dc(!1);return e=Ti.bind(null,Q1,e.queue,!0,!1),l4().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var d=Q1,x=l4();if(r2){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),z2===null)throw Error(l(349));(n2&127)!==0||hi(d,n,i)}x.memoizedState=i;var z={value:i,getSnapshot:n};return x.queue=z,Li(fi.bind(null,d,z,e),[e]),d.flags|=2048,w6(9,{destroy:void 0},mi.bind(null,d,z,i,n),null),i},useId:function(){var e=l4(),n=z2.identifierPrefix;if(r2){var i=c3,d=e3;i=(d&~(1<<32-u2(d)-1)).toString(32)+i,n="_"+n+"R_"+i,i=w8++,0<\/script>",z=z.removeChild(z.firstChild);break;case"select":z=typeof d.is=="string"?L.createElement("select",{is:d.is}):L.createElement("select"),d.multiple?z.multiple=!0:d.size&&(z.size=d.size);break;default:z=typeof d.is=="string"?L.createElement(x,{is:d.is}):L.createElement(x)}}z[Q2]=n,z[s4]=d;t:for(L=n.child;L!==null;){if(L.tag===5||L.tag===6)z.appendChild(L.stateNode);else if(L.tag!==4&&L.tag!==27&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===n)break t;for(;L.sibling===null;){if(L.return===null||L.return===n)break t;L=L.return}L.sibling.return=L.return,L=L.sibling}n.stateNode=z;t:switch(e4(z,x,d),x){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break t;case"img":d=!0;break t;default:d=!1}d&&M3(n)}}return S2(n),rn(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==d&&M3(n);else{if(typeof d!="string"&&n.stateNode===null)throw Error(l(166));if(e=K.current,m6(n)){if(e=n.stateNode,i=n.memoizedProps,d=null,x=W2,x!==null)switch(x.tag){case 27:case 5:d=x.memoizedProps}e[Q2]=n,e=!!(e.nodeValue===i||d!==null&&d.suppressHydrationWarning===!0||uo(e.nodeValue,i)),e||P3(n,!0)}else e=Y8(e).createTextNode(d),e[Q2]=n,n.stateNode=e}return S2(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(d=m6(n),i!==null){if(e===null){if(!d)throw Error(l(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Q2]=n}else S0(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;S2(n),e=!1}else i=vc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(y4(n),n):(y4(n),null);if((n.flags&128)!==0)throw Error(l(558))}return S2(n),null;case 13:if(d=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(x=m6(n),d!==null&&d.dehydrated!==null){if(e===null){if(!x)throw Error(l(318));if(x=n.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(l(317));x[Q2]=n}else S0(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;S2(n),x=!1}else x=vc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=x),x=!0;if(!x)return n.flags&256?(y4(n),n):(y4(n),null)}return y4(n),(n.flags&128)!==0?(n.lanes=i,n):(i=d!==null,e=e!==null&&e.memoizedState!==null,i&&(d=n.child,x=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(x=d.alternate.memoizedState.cachePool.pool),z=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(z=d.memoizedState.cachePool.pool),z!==x&&(d.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),k8(n,n.updateQueue),S2(n),null);case 4:return C1(),e===null&&Ln(n.stateNode.containerInfo),S2(n),null;case 10:return b3(n.type),S2(n),null;case 19:if(P(R2),d=n.memoizedState,d===null)return S2(n),null;if(x=(n.flags&128)!==0,z=d.rendering,z===null)if(x)qt(d,!1);else{if(B2!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(z=z8(e),z!==null){for(n.flags|=128,qt(d,!1),e=z.updateQueue,n.updateQueue=e,k8(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)Ul(i,e),i=i.sibling;return c1(R2,R2.current&1|2),r2&&x3(n,d.treeForkCount),n.child}e=e.sibling}d.tail!==null&&r1()>D8&&(n.flags|=128,x=!0,qt(d,!1),n.lanes=4194304)}else{if(!x)if(e=z8(z),e!==null){if(n.flags|=128,x=!0,e=e.updateQueue,n.updateQueue=e,k8(n,e),qt(d,!0),d.tail===null&&d.tailMode==="hidden"&&!z.alternate&&!r2)return S2(n),null}else 2*r1()-d.renderingStartTime>D8&&i!==536870912&&(n.flags|=128,x=!0,qt(d,!1),n.lanes=4194304);d.isBackwards?(z.sibling=n.child,n.child=z):(e=d.last,e!==null?e.sibling=z:n.child=z,d.last=z)}return d.tail!==null?(e=d.tail,d.rendering=e,d.tail=e.sibling,d.renderingStartTime=r1(),e.sibling=null,i=R2.current,c1(R2,x?i&1|2:i&1),r2&&x3(n,d.treeForkCount),e):(S2(n),null);case 22:case 23:return y4(n),Lc(),d=n.memoizedState!==null,e!==null?e.memoizedState!==null!==d&&(n.flags|=8192):d&&(n.flags|=8192),d?(i&536870912)!==0&&(n.flags&128)===0&&(S2(n),n.subtreeFlags&6&&(n.flags|=8192)):S2(n),i=n.updateQueue,i!==null&&k8(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),d=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(d=n.memoizedState.cachePool.pool),d!==i&&(n.flags|=2048),e!==null&&P(L0),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),b3(_2),S2(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function Qp(e,n){switch(mc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return b3(_2),C1(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return u1(n),null;case 31:if(n.memoizedState!==null){if(y4(n),n.alternate===null)throw Error(l(340));S0()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(y4(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));S0()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return P(R2),null;case 4:return C1(),null;case 10:return b3(n.type),null;case 22:case 23:return y4(n),Lc(),e!==null&&P(L0),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return b3(_2),null;case 25:return null;default:return null}}function vs(e,n){switch(mc(n),n.tag){case 3:b3(_2),C1();break;case 26:case 27:case 5:u1(n);break;case 4:C1();break;case 31:n.memoizedState!==null&&y4(n);break;case 13:y4(n);break;case 19:P(R2);break;case 10:b3(n.type);break;case 22:case 23:y4(n),Lc(),e!==null&&P(L0);break;case 24:b3(_2)}}function Ut(e,n){try{var i=n.updateQueue,d=i!==null?i.lastEffect:null;if(d!==null){var x=d.next;i=x;do{if((i.tag&e)===e){d=void 0;var z=i.create,L=i.inst;d=z(),L.destroy=d}i=i.next}while(i!==x)}}catch(R){f2(n,n.return,R)}}function X3(e,n,i){try{var d=n.updateQueue,x=d!==null?d.lastEffect:null;if(x!==null){var z=x.next;d=z;do{if((d.tag&e)===e){var L=d.inst,R=L.destroy;if(R!==void 0){L.destroy=void 0,x=n;var U=i,a1=R;try{a1()}catch(d1){f2(x,U,d1)}}}d=d.next}while(d!==z)}}catch(d1){f2(n,n.return,d1)}}function ps(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{li(n,i)}catch(d){f2(e,e.return,d)}}}function xs(e,n,i){i.props=k0(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(d){f2(e,n,d)}}function Pt(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var d=e.stateNode;break;case 30:d=e.stateNode;break;default:d=e.stateNode}typeof i=="function"?e.refCleanup=i(d):i.current=d}}catch(x){f2(e,n,x)}}function n3(e,n){var i=e.ref,d=e.refCleanup;if(i!==null)if(typeof d=="function")try{d()}catch(x){f2(e,n,x)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(x){f2(e,n,x)}else i.current=null}function gs(e){var n=e.type,i=e.memoizedProps,d=e.stateNode;try{t:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&d.focus();break t;case"img":i.src?d.src=i.src:i.srcSet&&(d.srcset=i.srcSet)}}catch(x){f2(e,e.return,x)}}function ln(e,n,i){try{var d=e.stateNode;bx(d,e.type,i,n),d[s4]=n}catch(x){f2(e,e.return,x)}}function bs(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&n0(e.type)||e.tag===4}function sn(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||bs(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&&n0(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 on(e,n,i){var d=e.tag;if(d===5||d===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=f3));else if(d!==4&&(d===27&&n0(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(on(e,n,i),e=e.sibling;e!==null;)on(e,n,i),e=e.sibling}function F8(e,n,i){var d=e.tag;if(d===5||d===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(d!==4&&(d===27&&n0(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(F8(e,n,i),e=e.sibling;e!==null;)F8(e,n,i),e=e.sibling}function zs(e){var n=e.stateNode,i=e.memoizedProps;try{for(var d=e.type,x=n.attributes;x.length;)n.removeAttributeNode(x[0]);e4(n,d,i),n[Q2]=e,n[s4]=i}catch(z){f2(e,e.return,z)}}var C3=!1,P2=!1,un=!1,ys=typeof WeakSet=="function"?WeakSet:Set,K2=null;function Wp(e,n){if(e=e.containerInfo,Vn=e5,e=kl(e),cc(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else t:{i=(i=e.ownerDocument)&&i.defaultView||window;var d=i.getSelection&&i.getSelection();if(d&&d.rangeCount!==0){i=d.anchorNode;var x=d.anchorOffset,z=d.focusNode;d=d.focusOffset;try{i.nodeType,z.nodeType}catch{i=null;break t}var L=0,R=-1,U=-1,a1=0,d1=0,f1=e,l1=null;e:for(;;){for(var i1;f1!==i||x!==0&&f1.nodeType!==3||(R=L+x),f1!==z||d!==0&&f1.nodeType!==3||(U=L+d),f1.nodeType===3&&(L+=f1.nodeValue.length),(i1=f1.firstChild)!==null;)l1=f1,f1=i1;for(;;){if(f1===e)break e;if(l1===i&&++a1===x&&(R=L),l1===z&&++d1===d&&(U=L),(i1=f1.nextSibling)!==null)break;f1=l1,l1=f1.parentNode}f1=i1}i=R===-1||U===-1?null:{start:R,end:U}}else i=null}i=i||{start:0,end:0}}else i=null;for(Bn={focusedElem:e,selectionRange:i},e5=!1,K2=n;K2!==null;)if(n=K2,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,K2=e;else for(;K2!==null;){switch(n=K2,z=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i title"))),e4(z,d,i),z[Q2]=e,Y2(z),d=z;break t;case"link":var L=Lo("link","href",x).get(d+(i.href||""));if(L){for(var R=0;Rg2&&(L=g2,g2=$1,$1=L);var X=Vl(R,$1),$=Vl(R,g2);if(X&&$&&(i1.rangeCount!==1||i1.anchorNode!==X.node||i1.anchorOffset!==X.offset||i1.focusNode!==$.node||i1.focusOffset!==$.offset)){var n1=f1.createRange();n1.setStart(X.node,X.offset),i1.removeAllRanges(),$1>g2?(i1.addRange(n1),i1.extend($.node,$.offset)):(n1.setEnd($.node,$.offset),i1.addRange(n1))}}}}for(f1=[],i1=R;i1=i1.parentNode;)i1.nodeType===1&&f1.push({element:i1,left:i1.scrollLeft,top:i1.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;Ri?32:i,O.T=null,i=xn,xn=null;var z=t0,L=j3;if(G2=0,H6=t0=null,j3=0,(d2&6)!==0)throw Error(l(331));var R=d2;if(d2|=4,Bs(z.current),js(z,z.current,L,i),d2=R,Kt(0,!1),L1&&typeof L1.onPostCommitFiberRoot=="function")try{L1.onPostCommitFiberRoot(K1,z)}catch{}return!0}finally{I.p=x,O.T=d,Xs(e,n)}}function Ws(e,n,i){n=N4(i,n),n=Kc(e.stateNode,n,2),e=G3(e,n,2),e!==null&&(P4(e,2),a3(e))}function f2(e,n,i){if(e.tag===3)Ws(e,e,i);else for(;n!==null;){if(n.tag===3){Ws(n,e,i);break}else if(n.tag===1){var d=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(J3===null||!J3.has(d))){e=N4(i,e),i=Ji(2),d=G3(n,i,2),d!==null&&(ts(i,d,n,e),P4(d,2),a3(d));break}}n=n.return}}function yn(e,n,i){var d=e.pingCache;if(d===null){d=e.pingCache=new ex;var x=new Set;d.set(n,x)}else x=d.get(n),x===void 0&&(x=new Set,d.set(n,x));x.has(i)||(mn=!0,x.add(i),e=lx.bind(null,e,n,i),n.then(e,e))}function lx(e,n,i){var d=e.pingCache;d!==null&&d.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,z2===e&&(n2&i)===i&&(B2===4||B2===3&&(n2&62914560)===n2&&300>r1()-T8?(d2&2)===0&&L6(e,0):fn|=i,A6===n2&&(A6=0)),a3(e)}function Js(e,n){n===0&&(n=b2()),e=M0(e,n),e!==null&&(P4(e,n),a3(e))}function ix(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Js(e,i)}function sx(e,n){var i=0;switch(e.tag){case 31:case 13:var d=e.stateNode,x=e.memoizedState;x!==null&&(i=x.retryLane);break;case 19:d=e.stateNode;break;case 22:d=e.stateNode._retryCache;break;default:throw Error(l(314))}d!==null&&d.delete(n),Js(e,i)}function ox(e,n){return B1(e,n)}var I8=null,N6=null,wn=!1,$8=!1,Mn=!1,c0=0;function a3(e){e!==N6&&e.next===null&&(N6===null?I8=N6=e:N6=N6.next=e),$8=!0,wn||(wn=!0,dx())}function Kt(e,n){if(!Mn&&$8){Mn=!0;do for(var i=!1,d=I8;d!==null;){if(e!==0){var x=d.pendingLanes;if(x===0)var z=0;else{var L=d.suspendedLanes,R=d.pingedLanes;z=(1<<31-u2(42|e)+1)-1,z&=x&~(L&~R),z=z&201326741?z&201326741|1:z?z|2:0}z!==0&&(i=!0,no(d,z))}else z=n2,z=v2(d,d===z2?z:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(z&3)===0||h2(d,z)||(i=!0,no(d,z));d=d.next}while(i);Mn=!1}}function ux(){to()}function to(){$8=wn=!1;var e=0;c0!==0&&yx()&&(e=c0);for(var n=r1(),i=null,d=I8;d!==null;){var x=d.next,z=eo(d,n);z===0?(d.next=null,i===null?I8=x:i.next=x,x===null&&(N6=i)):(i=d,(e!==0||(z&3)!==0)&&($8=!0)),d=x}G2!==0&&G2!==5||Kt(e),c0!==0&&(c0=0)}function eo(e,n){for(var i=e.suspendedLanes,d=e.pingedLanes,x=e.expirationTimes,z=e.pendingLanes&-62914561;0R)break;var d1=U.transferSize,f1=U.initiatorType;d1&&ho(f1)&&(U=U.responseEnd,L+=d1*(U"u"?null:document;function Co(e,n,i){var d=V6;if(d&&typeof n=="string"&&n){var x=L4(n);x='link[rel="'+e+'"][href="'+x+'"]',typeof i=="string"&&(x+='[crossorigin="'+i+'"]'),Mo.has(x)||(Mo.add(x),e={rel:e,crossOrigin:i,href:n},d.querySelector(x)===null&&(n=d.createElement("link"),e4(n,"link",e),Y2(n),d.head.appendChild(n)))}}function Nx(e){N3.D(e),Co("dns-prefetch",e,null)}function Vx(e,n){N3.C(e,n),Co("preconnect",e,n)}function Bx(e,n,i){N3.L(e,n,i);var d=V6;if(d&&e&&n){var x='link[rel="preload"][as="'+L4(n)+'"]';n==="image"&&i&&i.imageSrcSet?(x+='[imagesrcset="'+L4(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(x+='[imagesizes="'+L4(i.imageSizes)+'"]')):x+='[href="'+L4(e)+'"]';var z=x;switch(n){case"style":z=B6(e);break;case"script":z=k6(e)}E4.has(z)||(e=b({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),E4.set(z,e),d.querySelector(x)!==null||n==="style"&&d.querySelector(Jt(z))||n==="script"&&d.querySelector(te(z))||(n=d.createElement("link"),e4(n,"link",e),Y2(n),d.head.appendChild(n)))}}function kx(e,n){N3.m(e,n);var i=V6;if(i&&e){var d=n&&typeof n.as=="string"?n.as:"script",x='link[rel="modulepreload"][as="'+L4(d)+'"][href="'+L4(e)+'"]',z=x;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":z=k6(e)}if(!E4.has(z)&&(e=b({rel:"modulepreload",href:e},n),E4.set(z,e),i.querySelector(x)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(te(z)))return}d=i.createElement("link"),e4(d,"link",e),Y2(d),i.head.appendChild(d)}}}function Fx(e,n,i){N3.S(e,n,i);var d=V6;if(d&&e){var x=t6(d).hoistableStyles,z=B6(e);n=n||"default";var L=x.get(z);if(!L){var R={loading:0,preload:null};if(L=d.querySelector(Jt(z)))R.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},i),(i=E4.get(z))&&On(e,i);var U=L=d.createElement("link");Y2(U),e4(U,"link",e),U._p=new Promise(function(a1,d1){U.onload=a1,U.onerror=d1}),U.addEventListener("load",function(){R.loading|=1}),U.addEventListener("error",function(){R.loading|=2}),R.loading|=4,X8(L,n,d)}L={type:"stylesheet",instance:L,count:1,state:R},x.set(z,L)}}}function Rx(e,n){N3.X(e,n);var i=V6;if(i&&e){var d=t6(i).hoistableScripts,x=k6(e),z=d.get(x);z||(z=i.querySelector(te(x)),z||(e=b({src:e,async:!0},n),(n=E4.get(x))&&_n(e,n),z=i.createElement("script"),Y2(z),e4(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},d.set(x,z))}}function Ex(e,n){N3.M(e,n);var i=V6;if(i&&e){var d=t6(i).hoistableScripts,x=k6(e),z=d.get(x);z||(z=i.querySelector(te(x)),z||(e=b({src:e,async:!0,type:"module"},n),(n=E4.get(x))&&_n(e,n),z=i.createElement("script"),Y2(z),e4(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},d.set(x,z))}}function So(e,n,i,d){var x=(x=K.current)?K8(x):null;if(!x)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=B6(i.href),i=t6(x).hoistableStyles,d=i.get(n),d||(d={type:"style",instance:null,count:0,state:null},i.set(n,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=B6(i.href);var z=t6(x).hoistableStyles,L=z.get(e);if(L||(x=x.ownerDocument||x,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},z.set(e,L),(z=x.querySelector(Jt(e)))&&!z._p&&(L.instance=z,L.state.loading=5),E4.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},E4.set(e,i),z||Tx(x,e,i,L.state))),n&&d===null)throw Error(l(528,""));return L}if(n&&d!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=k6(i),i=t6(x).hoistableScripts,d=i.get(n),d||(d={type:"script",instance:null,count:0,state:null},i.set(n,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function B6(e){return'href="'+L4(e)+'"'}function Jt(e){return'link[rel="stylesheet"]['+e+"]"}function Ao(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Tx(e,n,i,d){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?d.loading=1:(n=e.createElement("link"),d.preload=n,n.addEventListener("load",function(){return d.loading|=1}),n.addEventListener("error",function(){return d.loading|=2}),e4(n,"link",i),Y2(n),e.head.appendChild(n))}function k6(e){return'[src="'+L4(e)+'"]'}function te(e){return"script[async]"+e}function Ho(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var d=e.querySelector('style[data-href~="'+L4(i.href)+'"]');if(d)return n.instance=d,Y2(d),d;var x=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return d=(e.ownerDocument||e).createElement("style"),Y2(d),e4(d,"style",x),X8(d,i.precedence,e),n.instance=d;case"stylesheet":x=B6(i.href);var z=e.querySelector(Jt(x));if(z)return n.state.loading|=4,n.instance=z,Y2(z),z;d=Ao(i),(x=E4.get(x))&&On(d,x),z=(e.ownerDocument||e).createElement("link"),Y2(z);var L=z;return L._p=new Promise(function(R,U){L.onload=R,L.onerror=U}),e4(z,"link",d),n.state.loading|=4,X8(z,i.precedence,e),n.instance=z;case"script":return z=k6(i.src),(x=e.querySelector(te(z)))?(n.instance=x,Y2(x),x):(d=i,(x=E4.get(z))&&(d=b({},i),_n(d,x)),e=e.ownerDocument||e,x=e.createElement("script"),Y2(x),e4(x,"link",d),e.head.appendChild(x),n.instance=x);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(d=n.instance,n.state.loading|=4,X8(d,i.precedence,e));return n.instance}function X8(e,n,i){for(var d=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=d.length?d[d.length-1]:null,z=x,L=0;L title"):null)}function Dx(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function No(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ox(e,n,i,d){if(i.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var x=B6(d.href),z=n.querySelector(Jt(x));if(z){n=z._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=W8.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=z,Y2(z);return}z=n.ownerDocument||n,d=Ao(d),(x=E4.get(x))&&On(d,x),z=z.createElement("link"),Y2(z);var L=z;L._p=new Promise(function(R,U){L.onload=R,L.onerror=U}),e4(z,"link",d),i.instance=z}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=W8.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var qn=0;function _x(e,n){return e.stylesheets&&e.count===0&&t5(e,e.stylesheets),0qn?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(d),clearTimeout(x)}}:null}function W8(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)t5(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var J8=null;function t5(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,J8=new Map,n.forEach(qx,e),J8=null,W8.call(e))}function qx(e,n){if(!(n.state.loading&4)){var i=J8.get(e);if(i)var d=i.get(null);else{i=new Map,J8.set(e,i);for(var x=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(),Xn.exports=ag(),Xn.exports}var lg=rg();var eu="popstate";function ig(t={}){function c(l,s){let{pathname:o,search:h,hash:m}=l.location;return Ka("",{pathname:o,search:h,hash:m},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(l,s){return typeof s=="string"?s:Ae(s)}return og(c,r,null,t)}function j2(t,c){if(t===!1||t===null||typeof t>"u")throw new Error(c)}function W4(t,c){if(!t){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function sg(){return Math.random().toString(36).substring(2,10)}function cu(t,c){return{usr:t.state,key:t.key,idx:c}}function Ka(t,c,r=null,l){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof c=="string"?nt(c):c,state:r,key:c&&c.key||l||sg()}}function Ae({pathname:t="/",search:c="",hash:r=""}){return c&&c!=="?"&&(t+=c.charAt(0)==="?"?c:"?"+c),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function nt(t){let c={};if(t){let r=t.indexOf("#");r>=0&&(c.hash=t.substring(r),t=t.substring(0,r));let l=t.indexOf("?");l>=0&&(c.search=t.substring(l),t=t.substring(0,l)),t&&(c.pathname=t)}return c}function og(t,c,r,l={}){let{window:s=document.defaultView,v5Compat:o=!1}=l,h=s.history,m="POP",v=null,g=p();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function p(){return(h.state||{idx:null}).idx}function b(){m="POP";let M=p(),V=M==null?null:M-g;g=M,v&&v({action:m,location:H.location,delta:V})}function y(M,V){m="PUSH";let A=Ka(H.location,M,V);g=p()+1;let C=cu(A,g),j=H.createHref(A);try{h.pushState(C,"",j)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;s.location.assign(j)}o&&v&&v({action:m,location:H.location,delta:1})}function w(M,V){m="REPLACE";let A=Ka(H.location,M,V);g=p();let C=cu(A,g),j=H.createHref(A);h.replaceState(C,"",j),o&&v&&v({action:m,location:H.location,delta:0})}function S(M){return ug(M)}let H={get action(){return m},get location(){return t(s,h)},listen(M){if(v)throw new Error("A history only accepts one active listener");return s.addEventListener(eu,b),v=M,()=>{s.removeEventListener(eu,b),v=null}},createHref(M){return c(s,M)},createURL:S,encodeLocation(M){let V=S(M);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:y,replace:w,go(M){return h.go(M)}};return H}function ug(t,c=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),j2(r,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:Ae(t);return l=l.replace(/ $/,"%20"),!c&&l.startsWith("//")&&(l=r+l),new URL(l,r)}function yh(t,c,r="/"){return dg(t,c,r,!1)}function dg(t,c,r,l){let s=typeof c=="string"?nt(c):c,o=F3(s.pathname||"/",r);if(o==null)return null;let h=wh(t);hg(h);let m=null;for(let v=0;m==null&&v{let p={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(l)&&v)return;j2(p.relativePath.startsWith(l),`Absolute route path "${p.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(l.length)}let b=k3([l,p.relativePath]),y=r.concat(p);h.children&&h.children.length>0&&(j2(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),wh(h.children,c,y,b,v)),!(h.path==null&&!h.index)&&c.push({path:b,score:bg(b,h.index),routesMeta:y})};return t.forEach((h,m)=>{if(h.path===""||!h.path?.includes("?"))o(h,m);else for(let v of Mh(h.path))o(h,m,!0,v)}),c}function Mh(t){let c=t.split("/");if(c.length===0)return[];let[r,...l]=c,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(l.length===0)return s?[o,""]:[o];let h=Mh(l.join("/")),m=[];return m.push(...h.map(v=>v===""?o:[o,v].join("/"))),s&&m.push(...h),m.map(v=>t.startsWith("/")&&v===""?"/":v)}function hg(t){t.sort((c,r)=>c.score!==r.score?r.score-c.score:zg(c.routesMeta.map(l=>l.childrenIndex),r.routesMeta.map(l=>l.childrenIndex)))}var mg=/^:[\w-]+$/,fg=3,vg=2,pg=1,xg=10,gg=-2,nu=t=>t==="*";function bg(t,c){let r=t.split("/"),l=r.length;return r.some(nu)&&(l+=gg),c&&(l+=vg),r.filter(s=>!nu(s)).reduce((s,o)=>s+(mg.test(o)?fg:o===""?pg:xg),l)}function zg(t,c){return t.length===c.length&&t.slice(0,-1).every((l,s)=>l===c[s])?t[t.length-1]-c[c.length-1]:0}function yg(t,c,r=!1){let{routesMeta:l}=t,s={},o="/",h=[];for(let m=0;m{if(p==="*"){let S=m[y]||"";h=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const w=m[y];return b&&!w?g[p]=void 0:g[p]=(w||"").replace(/%2F/g,"/"),g},{}),pathname:o,pathnameBase:h,pattern:t}}function wg(t,c=!1,r=!0){W4(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=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,v)=>(l.push({paramName:m,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(l.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,c?void 0:"i"),l]}function Mg(t){try{return t.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return W4(!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 F3(t,c){if(c==="/")return t;if(!t.toLowerCase().startsWith(c.toLowerCase()))return null;let r=c.endsWith("/")?c.length-1:c.length,l=t.charAt(r);return l&&l!=="/"?null:t.slice(r)||"/"}var Cg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sg=t=>Cg.test(t);function Ag(t,c="/"){let{pathname:r,search:l="",hash:s=""}=typeof t=="string"?nt(t):t,o;if(r)if(Sg(r))o=r;else{if(r.includes("//")){let h=r;r=r.replace(/\/\/+/g,"/"),W4(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${r}`)}r.startsWith("/")?o=au(r.substring(1),"/"):o=au(r,c)}else o=c;return{pathname:o,search:jg(l),hash:Ng(s)}}function au(t,c){let r=c.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function ta(t,c,r,l){return`Cannot include a '${t}' character in a manually specified \`to.${c}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Hg(t){return t.filter((c,r)=>r===0||c.route.path&&c.route.path.length>0)}function Ch(t){let c=Hg(t);return c.map((r,l)=>l===c.length-1?r.pathname:r.pathnameBase)}function Sh(t,c,r,l=!1){let s;typeof t=="string"?s=nt(t):(s={...t},j2(!s.pathname||!s.pathname.includes("?"),ta("?","pathname","search",s)),j2(!s.pathname||!s.pathname.includes("#"),ta("#","pathname","hash",s)),j2(!s.search||!s.search.includes("#"),ta("#","search","hash",s)));let o=t===""||s.pathname==="",h=o?"/":s.pathname,m;if(h==null)m=r;else{let b=c.length-1;if(!l&&h.startsWith("..")){let y=h.split("/");for(;y[0]==="..";)y.shift(),b-=1;s.pathname=y.join("/")}m=b>=0?c[b]:"/"}let v=Ag(s,m),g=h&&h!=="/"&&h.endsWith("/"),p=(o||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(g||p)&&(v.pathname+="/"),v}var k3=t=>t.join("/").replace(/\/\/+/g,"/"),Lg=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),jg=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Ng=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Vg(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 Ah=["POST","PUT","PATCH","DELETE"];new Set(Ah);var Bg=["GET",...Ah];new Set(Bg);var at=f.createContext(null);at.displayName="DataRouter";var v7=f.createContext(null);v7.displayName="DataRouterState";f.createContext(!1);var Hh=f.createContext({isTransitioning:!1});Hh.displayName="ViewTransition";var kg=f.createContext(new Map);kg.displayName="Fetchers";var Fg=f.createContext(null);Fg.displayName="Await";var d3=f.createContext(null);d3.displayName="Navigation";var _e=f.createContext(null);_e.displayName="Location";var E3=f.createContext({outlet:null,matches:[],isDataRoute:!1});E3.displayName="Route";var U9=f.createContext(null);U9.displayName="RouteError";function Rg(t,{relative:c}={}){j2(qe(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:l}=f.useContext(d3),{hash:s,pathname:o,search:h}=Ue(t,{relative:c}),m=o;return r!=="/"&&(m=o==="/"?r:k3([r,o])),l.createHref({pathname:m,search:h,hash:s})}function qe(){return f.useContext(_e)!=null}function $0(){return j2(qe(),"useLocation() may be used only in the context of a component."),f.useContext(_e).location}var Lh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function jh(t){f.useContext(d3).static||f.useLayoutEffect(t)}function P9(){let{isDataRoute:t}=f.useContext(E3);return t?Yg():Eg()}function Eg(){j2(qe(),"useNavigate() may be used only in the context of a component.");let t=f.useContext(at),{basename:c,navigator:r}=f.useContext(d3),{matches:l}=f.useContext(E3),{pathname:s}=$0(),o=JSON.stringify(Ch(l)),h=f.useRef(!1);return jh(()=>{h.current=!0}),f.useCallback((v,g={})=>{if(W4(h.current,Lh),!h.current)return;if(typeof v=="number"){r.go(v);return}let p=Sh(v,JSON.parse(o),s,g.relative==="path");t==null&&c!=="/"&&(p.pathname=p.pathname==="/"?c:k3([c,p.pathname])),(g.replace?r.replace:r.push)(p,g.state,g)},[c,r,o,s,t])}f.createContext(null);function Ue(t,{relative:c}={}){let{matches:r}=f.useContext(E3),{pathname:l}=$0(),s=JSON.stringify(Ch(r));return f.useMemo(()=>Sh(t,JSON.parse(s),l,c==="path"),[t,s,l,c])}function Tg(t,c){return Nh(t,c)}function Nh(t,c,r,l,s){j2(qe(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=f.useContext(d3),{matches:h}=f.useContext(E3),m=h[h.length-1],v=m?m.params:{},g=m?m.pathname:"/",p=m?m.pathnameBase:"/",b=m&&m.route;{let A=b&&b.path||"";Vh(g,!b||A.endsWith("*")||A.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=$0(),w;if(c){let A=typeof c=="string"?nt(c):c;j2(p==="/"||A.pathname?.startsWith(p),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${A.pathname}" was given in the \`location\` prop.`),w=A}else w=y;let S=w.pathname||"/",H=S;if(p!=="/"){let A=p.replace(/^\//,"").split("/");H="/"+S.replace(/^\//,"").split("/").slice(A.length).join("/")}let M=yh(t,{pathname:H});W4(b||M!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),W4(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 V=Ug(M&&M.map(A=>Object.assign({},A,{params:Object.assign({},v,A.params),pathname:k3([p,o.encodeLocation?o.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:k3([p,o.encodeLocation?o.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),h,r,l,s);return c&&V?f.createElement(_e.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},V):V}function Dg(){let t=Gg(),c=Vg(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:l},o={padding:"2px 4px",backgroundColor:l},h=null;return console.error("Error handled by React Router default ErrorBoundary:",t),h=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:o},"ErrorBoundary")," or"," ",f.createElement("code",{style:o},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},c),r?f.createElement("pre",{style:s},r):null,h)}var Og=f.createElement(Dg,null),_g=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(E3.Provider,{value:this.props.routeContext},f.createElement(U9.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qg({routeContext:t,match:c,children:r}){let l=f.useContext(at);return l&&l.static&&l.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=c.route.id),f.createElement(E3.Provider,{value:t},r)}function Ug(t,c=[],r=null,l=null,s=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(c.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,h=r?.errors;if(h!=null){let p=o.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);j2(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let m=!1,v=-1;if(r)for(let p=0;p=0?o=o.slice(0,v+1):o=[o[0]];break}}}let g=r&&l?(p,b)=>{l(p,{location:r.location,params:r.matches?.[0]?.params??{},errorInfo:b})}:void 0;return o.reduceRight((p,b,y)=>{let w,S=!1,H=null,M=null;r&&(w=h&&b.route.id?h[b.route.id]:void 0,H=b.route.errorElement||Og,m&&(v<0&&y===0?(Vh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,M=null):v===y&&(S=!0,M=b.route.hydrateFallbackElement||null)));let V=c.concat(o.slice(0,y+1)),A=()=>{let C;return w?C=H:S?C=M:b.route.Component?C=f.createElement(b.route.Component,null):b.route.element?C=b.route.element:C=p,f.createElement(qg,{match:b,routeContext:{outlet:p,matches:V,isDataRoute:r!=null},children:C})};return r&&(b.route.ErrorBoundary||b.route.errorElement||y===0)?f.createElement(_g,{location:r.location,revalidation:r.revalidation,component:H,error:w,children:A(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:g}):A()},null)}function I9(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pg(t){let c=f.useContext(at);return j2(c,I9(t)),c}function Ig(t){let c=f.useContext(v7);return j2(c,I9(t)),c}function $g(t){let c=f.useContext(E3);return j2(c,I9(t)),c}function $9(t){let c=$g(t),r=c.matches[c.matches.length-1];return j2(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Zg(){return $9("useRouteId")}function Gg(){let t=f.useContext(U9),c=Ig("useRouteError"),r=$9("useRouteError");return t!==void 0?t:c.errors?.[r]}function Yg(){let{router:t}=Pg("useNavigate"),c=$9("useNavigate"),r=f.useRef(!1);return jh(()=>{r.current=!0}),f.useCallback(async(s,o={})=>{W4(r.current,Lh),r.current&&(typeof s=="number"?t.navigate(s):await t.navigate(s,{fromRouteId:c,...o}))},[t,c])}var ru={};function Vh(t,c,r){!c&&!ru[t]&&(ru[t]=!0,W4(!1,r))}f.memo(Kg);function Kg({routes:t,future:c,state:r,unstable_onError:l}){return Nh(t,void 0,r,l,c)}function r3(t){j2(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Xg({basename:t="/",children:c=null,location:r,navigationType:l="POP",navigator:s,static:o=!1}){j2(!qe(),"You cannot render a inside another . You should never have more than one in your app.");let h=t.replace(/^\/*/,"/"),m=f.useMemo(()=>({basename:h,navigator:s,static:o,future:{}}),[h,s,o]);typeof r=="string"&&(r=nt(r));let{pathname:v="/",search:g="",hash:p="",state:b=null,key:y="default"}=r,w=f.useMemo(()=>{let S=F3(v,h);return S==null?null:{location:{pathname:S,search:g,hash:p,state:b,key:y},navigationType:l}},[h,v,g,p,b,y,l]);return W4(w!=null,` is not able to match the URL "${v}${g}${p}" because it does not start with the basename, so the won't render anything.`),w==null?null:f.createElement(d3.Provider,{value:m},f.createElement(_e.Provider,{children:c,value:w}))}function Qg({children:t,location:c}){return Tg(Xa(t),c)}function Xa(t,c=[]){let r=[];return f.Children.forEach(t,(l,s)=>{if(!f.isValidElement(l))return;let o=[...c,s];if(l.type===f.Fragment){r.push.apply(r,Xa(l.props.children,o));return}j2(l.type===r3,`[${typeof l.type=="string"?l.type:l.type.name}] is not a component. All component children of must be a or `),j2(!l.props.index||!l.props.children,"An index route cannot have child routes.");let h={id:l.props.id||o.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&&(h.children=Xa(l.props.children,o)),r.push(h)}),r}var R5="get",E5="application/x-www-form-urlencoded";function p7(t){return t!=null&&typeof t.tagName=="string"}function Wg(t){return p7(t)&&t.tagName.toLowerCase()==="button"}function Jg(t){return p7(t)&&t.tagName.toLowerCase()==="form"}function tb(t){return p7(t)&&t.tagName.toLowerCase()==="input"}function eb(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function cb(t,c){return t.button===0&&(!c||c==="_self")&&!eb(t)}var s5=null;function nb(){if(s5===null)try{new FormData(document.createElement("form"),0),s5=!1}catch{s5=!0}return s5}var ab=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ea(t){return t!=null&&!ab.has(t)?(W4(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${E5}"`),null):t}function rb(t,c){let r,l,s,o,h;if(Jg(t)){let m=t.getAttribute("action");l=m?F3(m,c):null,r=t.getAttribute("method")||R5,s=ea(t.getAttribute("enctype"))||E5,o=new FormData(t)}else if(Wg(t)||tb(t)&&(t.type==="submit"||t.type==="image")){let m=t.form;if(m==null)throw new Error('Cannot submit a