From 95dcb62b413ac5d72aea1cacdb13a4cf534257c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Pereira=20Mu=C3=B1oz?= Date: Mon, 20 Jan 2025 02:17:43 +0100 Subject: [PATCH] Build demo bundle --- docs/assets/{index-CVLzYa-V.js => index-DAQ-VrIo.js} | 6 +++--- docs/index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename docs/assets/{index-CVLzYa-V.js => index-DAQ-VrIo.js} (99%) diff --git a/docs/assets/index-CVLzYa-V.js b/docs/assets/index-DAQ-VrIo.js similarity index 99% rename from docs/assets/index-CVLzYa-V.js rename to docs/assets/index-DAQ-VrIo.js index 384c03e..46085b8 100644 --- a/docs/assets/index-CVLzYa-V.js +++ b/docs/assets/index-DAQ-VrIo.js @@ -47,7 +47,7 @@ var vR=(a,i)=>()=>(i||a((i={exports:{}}).exports,i),i.exports);var G5=vR((P5,dg) Error generating stack: `+n.message+` `+n.stack}}function Q(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ce(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function w(e){if(Q(e)!==e)throw Error(l(188))}function $(e){var t=e.alternate;if(!t){if(t=Q(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return w(s),e;if(u===r)return w(s),t;u=u.sibling}throw Error(l(188))}if(n.return!==r.return)n=s,r=u;else{for(var g=!1,y=s.child;y;){if(y===n){g=!0,n=s,r=u;break}if(y===r){g=!0,r=s,n=u;break}y=y.sibling}if(!g){for(y=u.child;y;){if(y===n){g=!0,n=u,r=s;break}if(y===r){g=!0,r=u,n=s;break}y=y.sibling}if(!g)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function re(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=re(e),t!==null)return t;e=e.sibling}return null}var ne=Array.isArray,ee=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},de=[],he=-1;function ye(e){return{current:e}}function q(e){0>he||(e.current=de[he],de[he]=null,he--)}function N(e,t){he++,de[he]=e.current,e.current=t}var P=ye(null),Z=ye(null),V=ye(null),be=ye(null);function Oe(e,t){switch(N(V,t),N(Z,e),N(P,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Fb(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=Fb(e),t=Bb(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(P),N(P,t)}function we(){q(P),q(Z),q(V)}function it(e){e.memoizedState!==null&&N(be,e);var t=P.current,n=Bb(t,e.type);t!==n&&(N(Z,e),N(P,n))}function ze(e){Z.current===e&&(q(P),q(Z)),be.current===e&&(q(be),fi._currentValue=ue)}var Ut=Object.prototype.hasOwnProperty,mt=a.unstable_scheduleCallback,Ft=a.unstable_cancelCallback,ut=a.unstable_shouldYield,_t=a.unstable_requestPaint,Ge=a.unstable_now,Qe=a.unstable_getCurrentPriorityLevel,ct=a.unstable_ImmediatePriority,je=a.unstable_UserBlockingPriority,De=a.unstable_NormalPriority,yt=a.unstable_LowPriority,ga=a.unstable_IdlePriority,cn=a.log,Ot=a.unstable_setDisableYieldValue,Xt=null,Je=null;function Qt(e){if(Je&&typeof Je.onCommitFiberRoot=="function")try{Je.onCommitFiberRoot(Xt,e,void 0,(e.current.flags&128)===128)}catch{}}function Jt(e){if(typeof cn=="function"&&Ot(e),Je&&typeof Je.setStrictMode=="function")try{Je.setStrictMode(Xt,e)}catch{}}var ot=Math.clz32?Math.clz32:tt,Mn=Math.log,Bt=Math.LN2;function tt(e){return e>>>=0,e===0?32:31-(Mn(e)/Bt|0)|0}var ra=128,Un=4194304;function ia(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;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 dn(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,u=e.pingedLanes,g=e.warmLanes;e=e.finishedLanes!==0;var y=n&134217727;return y!==0?(n=y&~s,n!==0?r=ia(n):(u&=y,u!==0?r=ia(u):e||(g=y&~g,g!==0&&(r=ia(g))))):(y=n&~s,y!==0?r=ia(y):u!==0?r=ia(u):e||(g=n&~g,g!==0&&(r=ia(g)))),r===0?0:t!==0&&t!==r&&!(t&s)&&(s=r&-r,g=t&-t,s>=g||s===32&&(g&4194176)!==0)?t:r}function Ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ar(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;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 xg(){var e=ra;return ra<<=1,!(ra&4194176)&&(ra=128),e}function Og(){var e=Un;return Un<<=1,!(Un&62914560)&&(Un=4194304),e}function il(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uT(e,t,n,r,s,u){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,A=e.expirationTimes,L=e.hiddenUpdates;for(n=g&~n;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fT=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Bg={},qg={};function gT(e){return Ut.call(qg,e)?!0:Ut.call(Bg,e)?!1:fT.test(e)?qg[e]=!0:(Bg[e]=!0,!1)}function Oi(e,t,n){if(gT(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ki(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ba(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mT(e){var t=zg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(g){r=""+g,u.call(this,g)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(g){r=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ii(e){e._valueTracker||(e._valueTracker=mT(e))}function Gg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Li(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var bT=/[\n"\\]/g;function zt(e){return e.replace(bT,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function sl(e,t,n,r,s,u,g,y){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?ul(e,g,qt(t)):n!=null?ul(e,g,qt(n)):r!=null&&e.removeAttribute("value"),s==null&&u!=null&&(e.defaultChecked=!!u),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+qt(y):e.removeAttribute("name")}function jg(e,t,n,r,s,u,g,y){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null))return;n=n!=null?""+qt(n):"",t=t!=null?""+qt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}r=r??s,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=y?e.checked:!!r,e.defaultChecked=!!r,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function ul(e,t,n){t==="number"&&Li(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Gn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s=kr),tm=" ",am=!1;function nm(e,t){switch(e){case"keyup":return HT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function VT(e,t){switch(e){case"compositionend":return rm(t);case"keypress":return t.which!==32?null:(am=!0,tm);case"textInput":return e=t.data,e===tm&&am?null:e;default:return null}}function YT(e,t){if($n)return e==="compositionend"||!vl&&nm(e,t)?(e=Kg(),Mi=ml=Ba=null,$n=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pm(n)}}function gm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Li(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Li(e.document)}return t}function Al(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tA(e,t){var n=mm(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&gm(t.ownerDocument.documentElement,t)){if(r!==null&&Al(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var s=t.textContent.length,u=Math.min(r.start,s);r=r.end===void 0?u:Math.min(r.end,s),!n.extend&&u>r&&(s=r,r=u,u=s),s=fm(t,u);var g=fm(t,r);s&&g&&(n.rangeCount!==1||n.anchorNode!==s.node||n.anchorOffset!==s.offset||n.focusNode!==g.node||n.focusOffset!==g.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),n.removeAllRanges(),u>r?(n.addRange(e),n.extend(g.node,g.offset)):(e.setEnd(g.node,g.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Vn=null,Rl=null,Mr=null,_l=!1;function bm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_l||Vn==null||Vn!==Li(r)||(r=Vn,"selectionStart"in r&&Al(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Dr(Mr,r)||(Mr=r,r=Ao(Rl,"onSelect"),0>=g,s-=g,ha=1<<32-ot(t)+s|n<me?(gt=fe,fe=null):gt=fe.sibling;var Ie=j(F,fe,z[me],K);if(Ie===null){fe===null&&(fe=gt);break}e&&fe&&Ie.alternate===null&&t(F,fe),I=u(Ie,I,me),Te===null?le=Ie:Te.sibling=Ie,Te=Ie,fe=gt}if(me===z.length)return n(F,fe),ke&&En(F,me),le;if(fe===null){for(;meme?(gt=fe,fe=null):gt=fe.sibling;var rn=j(F,fe,Ie.value,K);if(rn===null){fe===null&&(fe=gt);break}e&&fe&&rn.alternate===null&&t(F,fe),I=u(rn,I,me),Te===null?le=rn:Te.sibling=rn,Te=rn,fe=gt}if(Ie.done)return n(F,fe),ke&&En(F,me),le;if(fe===null){for(;!Ie.done;me++,Ie=z.next())Ie=X(F,Ie.value,K),Ie!==null&&(I=u(Ie,I,me),Te===null?le=Ie:Te.sibling=Ie,Te=Ie);return ke&&En(F,me),le}for(fe=r(fe);!Ie.done;me++,Ie=z.next())Ie=Y(fe,F,me,Ie.value,K),Ie!==null&&(e&&Ie.alternate!==null&&fe.delete(Ie.key===null?me:Ie.key),I=u(Ie,I,me),Te===null?le=Ie:Te.sibling=Ie,Te=Ie);return e&&fe.forEach(function(yR){return t(F,yR)}),ke&&En(F,me),le}function Ze(F,I,z,K){if(typeof z=="object"&&z!==null&&z.type===E&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case f:e:{for(var le=z.key;I!==null;){if(I.key===le){if(le=z.type,le===E){if(I.tag===7){n(F,I.sibling),K=s(I,z.props.children),K.return=F,F=K;break e}}else if(I.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===R&&Lm(le)===I.type){n(F,I.sibling),K=s(I,z.props),jr(K,z),K.return=F,F=K;break e}n(F,I);break}else t(F,I);I=I.sibling}z.type===E?(K=xn(z.props.children,F.mode,K,z.key),K.return=F,F=K):(K=fo(z.type,z.key,z.props,null,F.mode,K),jr(K,z),K.return=F,F=K)}return g(F);case m:e:{for(le=z.key;I!==null;){if(I.key===le)if(I.tag===4&&I.stateNode.containerInfo===z.containerInfo&&I.stateNode.implementation===z.implementation){n(F,I.sibling),K=s(I,z.children||[]),K.return=F,F=K;break e}else{n(F,I);break}else t(F,I);I=I.sibling}K=ws(z,F.mode,K),K.return=F,F=K}return g(F);case R:return le=z._init,z=le(z._payload),Ze(F,I,z,K)}if(ne(z))return pe(F,I,z,K);if(O(z)){if(le=O(z),typeof le!="function")throw Error(l(150));return z=le.call(z),Ee(F,I,z,K)}if(typeof z.then=="function")return Ze(F,I,Yi(z),K);if(z.$$typeof===C)return Ze(F,I,uo(F,z),K);Wi(F,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,I!==null&&I.tag===6?(n(F,I.sibling),K=s(I,z),K.return=F,F=K):(n(F,I),K=Ns(z,F.mode,K),K.return=F,F=K),g(F)):n(F,I)}return function(F,I,z,K){try{Gr=0;var le=Ze(F,I,z,K);return Qn=null,le}catch(fe){if(fe===qr)throw fe;var Te=Wt(29,fe,null,F.mode);return Te.lanes=K,Te.return=F,Te}finally{}}}var vn=Dm(!0),Mm=Dm(!1),Jn=ye(null),Ki=ye(0);function Um(e,t){e=xa,N(Ki,e),N(Jn,t),xa=e|t.baseLanes}function Ll(){N(Ki,xa),N(Jn,Jn.current)}function Dl(){xa=Ki.current,q(Jn),q(Ki)}var $t=ye(null),la=null;function za(e){var t=e.alternate;N(lt,lt.current&1),N($t,e),la===null&&(t===null||Jn.current!==null||t.memoizedState!==null)&&(la=e)}function Fm(e){if(e.tag===22){if(N(lt,lt.current),N($t,e),la===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(la=e)}}else Ga()}function Ga(){N(lt,lt.current),N($t,$t.current)}function ya(e){q($t),la===e&&(la=null),q(lt)}var lt=ye(0);function Zi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oA=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},lA=a.unstable_scheduleCallback,sA=a.unstable_NormalPriority,st={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ml(){return{controller:new oA,data:new Map,refCount:0}}function Pr(e){e.refCount--,e.refCount===0&&lA(sA,function(){e.controller.abort()})}var Hr=null,Ul=0,er=0,tr=null;function uA(e,t){if(Hr===null){var n=Hr=[];Ul=0,er=js(),tr={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Ul++,t.then(Bm,Bm),t}function Bm(){if(--Ul===0&&Hr!==null){tr!==null&&(tr.status="fulfilled");var e=Hr;Hr=null,er=0,tr=null;for(var t=0;tu?u:8;var g=M.T,y={};M.T=y,Jl(e,!1,t,n);try{var A=s(),L=M.S;if(L!==null&&L(y,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var W=cA(A,r);Yr(e,t,W,Mt(e))}else Yr(e,t,r,Mt(e))}catch(X){Yr(e,t,{then:function(){},status:"rejected",reason:X},Mt())}finally{ee.p=u,M.T=g}}function mA(){}function Xl(e,t,n,r){if(e.tag!==5)throw Error(l(476));var s=m1(e).queue;g1(e,s,t,ue,n===null?mA:function(){return b1(e),n(r)})}function m1(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:ue},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function b1(e){var t=m1(e).next.queue;Yr(e,t,{},Mt())}function Ql(){return St(fi)}function h1(){return nt().memoizedState}function E1(){return nt().memoizedState}function bA(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Mt();e=Va(n);var r=Ya(t,e,n);r!==null&&(Rt(r,t,n),Zr(r,t,n)),t={cache:Ml()},e.payload=t;return}t=t.return}}function hA(e,t,n){var r=Mt();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},io(e)?v1(t,n):(n=Cl(e,t,n,r),n!==null&&(Rt(n,e,r),S1(n,t,r)))}function y1(e,t,n){var r=Mt();Yr(e,t,n,r)}function Yr(e,t,n,r){var s={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(io(e))v1(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var g=t.lastRenderedState,y=u(g,n);if(s.hasEagerState=!0,s.eagerState=y,kt(y,g))return ji(e,t,s,0),Be===null&&Gi(),!1}catch{}finally{}if(n=Cl(e,t,s,r),n!==null)return Rt(n,e,r),S1(n,t,r),!0}return!1}function Jl(e,t,n,r){if(r={lane:2,revertLane:js(),action:r,hasEagerState:!1,eagerState:null,next:null},io(e)){if(t)throw Error(l(479))}else t=Cl(e,n,r,2),t!==null&&Rt(t,e,2)}function io(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function v1(e,t){ar=Qi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function S1(e,t,n){if(n&4194176){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ig(e,n)}}var sa={readContext:St,use:to,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et};sa.useCacheRefresh=et,sa.useMemoCache=et,sa.useHostTransitionStatus=et,sa.useFormState=et,sa.useActionState=et,sa.useOptimistic=et;var An={readContext:St,use:to,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:o1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,no(4194308,4,u1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return no(4194308,4,e,t)},useInsertionEffect:function(e,t){no(4,2,e,t)},useMemo:function(e,t){var n=Ct();t=t===void 0?null:t;var r=e();if(Tn){Jt(!0);try{e()}finally{Jt(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ct();if(n!==void 0){var s=n(t);if(Tn){Jt(!0);try{n(t)}finally{Jt(!1)}}}else s=t;return r.memoizedState=r.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},r.queue=e,e=e.dispatch=hA.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Vl(e);var t=e.queue,n=y1.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Kl,useDeferredValue:function(e,t){var n=Ct();return Zl(n,e,t)},useTransition:function(){var e=Vl(!1);return e=g1.bind(null,Se,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Se,s=Ct();if(ke){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),Be===null)throw Error(l(349));xe&60||Hm(r,t,n)}s.memoizedState=n;var u={value:n,getSnapshot:t};return s.queue=u,o1(Vm.bind(null,r,u,e),[e]),r.flags|=2048,rr(9,$m.bind(null,r,u,n,t),{destroy:void 0},null),n},useId:function(){var e=Ct(),t=Be.identifierPrefix;if(ke){var n=Ea,r=ha;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ji++,0 title"))),Et(u,r,n),u[vt]=e,dt(u),r=u;break e;case"link":var g=Wb("link","href",s).get(r+(n.href||""));if(g){for(var y=0;y<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?s.createElement(n,{is:r.is}):s.createElement(n)}}e[vt]=t,e[Nt]=r;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=e;e:switch(Et(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&wa(t)}}return Pe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&wa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(l(166));if(e=V.current,Ur(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,s=At,s!==null)switch(s.tag){case 27:case 5:r=s.memoizedProps}e[vt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||Ub(e.nodeValue,n)),e||yn(t)}else e=_o(e).createTextNode(r),e[vt]=t,t.stateNode=e}return Pe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Ur(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(l(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(l(317));s[vt]=t}else Fr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pe(t),s=!1}else ta!==null&&(Ms(ta),ta=null),s=!0;if(!s)return t.flags&256?(ya(t),t):(ya(t),null)}if(ya(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,s=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(s=r.alternate.memoizedState.cachePool.pool);var u=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==s&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),go(t,t.updateQueue),Pe(t),null;case 4:return we(),e===null&&Vs(t.stateNode.containerInfo),Pe(t),null;case 10:return Aa(t.type),Pe(t),null;case 19:if(q(lt),s=t.memoizedState,s===null)return Pe(t),null;if(r=(t.flags&128)!==0,u=s.rendering,u===null)if(r)ni(s,!1);else{if(Ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Zi(e),u!==null){for(t.flags|=128,ni(s,!1),e=u.updateQueue,t.updateQueue=e,go(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)cb(n,e),n=n.sibling;return N(lt,lt.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ge()>mo&&(t.flags|=128,r=!0,ni(s,!1),t.lanes=4194304)}else{if(!r)if(e=Zi(u),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,go(t,e),ni(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!ke)return Pe(t),null}else 2*Ge()-s.renderingStartTime>mo&&n!==536870912&&(t.flags|=128,r=!0,ni(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ge(),t.sibling=null,e=lt.current,N(lt,r?e&1|2:e&1),t):(Pe(t),null);case 22:case 23:return ya(t),Dl(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),n=t.updateQueue,n!==null&&go(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&q(Sn),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Aa(st),Pe(t),null;case 25:return null}throw Error(l(156,t.tag))}function RA(e,t){switch(Ol(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Aa(st),we(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ze(t),null;case 13:if(ya(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(lt),null;case 4:return we(),null;case 10:return Aa(t.type),null;case 22:case 23:return ya(t),Dl(),e!==null&&q(Sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Aa(st),null;case 25:return null;default:return null}}function fb(e,t){switch(Ol(t),t.tag){case 3:Aa(st),we();break;case 26:case 27:case 5:ze(t);break;case 4:we();break;case 13:ya(t);break;case 19:q(lt);break;case 10:Aa(t.type);break;case 22:case 23:ya(t),Dl(),e!==null&&q(Sn);break;case 24:Aa(st)}}var _A={getCacheForType:function(e){var t=St(st),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},NA=typeof WeakMap=="function"?WeakMap:Map,He=0,Be=null,Ae=null,xe=0,qe=0,Dt=null,Ca=!1,sr=!1,Cs=!1,xa=0,Ke=0,Qa=0,On=0,xs=0,Kt=0,ur=0,ri=null,ua=null,Os=!1,ks=0,mo=1/0,bo=null,Ja=null,ho=!1,kn=null,ii=0,Is=0,Ls=null,oi=0,Ds=null;function Mt(){if(He&2&&xe!==0)return xe&-xe;if(M.T!==null){var e=er;return e!==0?e:js()}return Dg()}function gb(){Kt===0&&(Kt=!(xe&536870912)||ke?xg():536870912);var e=$t.current;return e!==null&&(e.flags|=32),Kt}function Rt(e,t,n){(e===Be&&qe===2||e.cancelPendingCommit!==null)&&(cr(e,0),Oa(e,xe,Kt,!1)),Rr(e,n),(!(He&2)||e!==Be)&&(e===Be&&(!(He&2)&&(On|=n),Ke===4&&Oa(e,xe,Kt,!1)),ca(e))}function mb(e,t,n){if(He&6)throw Error(l(327));var r=!n&&(t&60)===0&&(t&e.expiredLanes)===0||Ua(e,t),s=r?xA(e,t):Bs(e,t,!0),u=r;do{if(s===0){sr&&!r&&Oa(e,t,0,!1);break}else if(s===6)Oa(e,t,0,!Ca);else{if(n=e.current.alternate,u&&!wA(n)){s=Bs(e,t,!1),u=!1;continue}if(s===2){if(u=t,e.errorRecoveryDisabledLanes&u)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var y=e;s=ri;var A=y.current.memoizedState.isDehydrated;if(A&&(cr(y,g).flags|=256),g=Bs(y,g,!1),g!==2){if(Cs&&!A){y.errorRecoveryDisabledLanes|=u,On|=u,s=4;break e}u=ua,ua=s,u!==null&&Ms(u)}s=g}if(u=!1,s!==2)continue}}if(s===1){cr(e,0),Oa(e,t,0,!0);break}e:{switch(r=e,s){case 0:case 1:throw Error(l(345));case 4:if((t&4194176)===t){Oa(r,t,Kt,!Ca);break e}break;case 2:ua=null;break;case 3:case 5:break;default:throw Error(l(329))}if(r.finishedWork=n,r.finishedLanes=t,(t&62914560)===t&&(u=ks+300-Ge(),10n?32:n,M.T=null,kn===null)var u=!1;else{n=Ls,Ls=null;var g=kn,y=ii;if(kn=null,ii=0,He&6)throw Error(l(331));var A=He;if(He|=4,sb(g.current),ib(g,g.current,y,n),He=A,li(0,!1),Je&&typeof Je.onPostCommitFiberRoot=="function")try{Je.onPostCommitFiberRoot(Xt,g)}catch{}u=!0}return u}finally{ee.p=s,M.T=r,Rb(e,t)}}return!1}function _b(e,t,n){t=jt(n,t),t=as(e.stateNode,t,2),e=Ya(e,t,2),e!==null&&(Rr(e,2),ca(e))}function Fe(e,t,n){if(e.tag===3)_b(e,e,n);else for(;t!==null;){if(t.tag===3){_b(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ja===null||!Ja.has(r))){e=jt(n,e),n=C1(2),r=Ya(t,n,2),r!==null&&(x1(n,r,t,e),Rr(r,2),ca(r));break}}t=t.return}}function qs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new NA;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(Cs=!0,s.add(n),e=IA.bind(null,e,t,n),t.then(e,e))}function IA(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(xe&n)===n&&(Ke===4||Ke===3&&(xe&62914560)===xe&&300>Ge()-ks?!(He&2)&&cr(e,0):xs|=n,ur===xe&&(ur=0)),ca(e)}function Nb(e,t){t===0&&(t=Og()),e=qa(e,t),e!==null&&(Rr(e,t),ca(e))}function LA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nb(e,n)}function DA(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}r!==null&&r.delete(t),Nb(e,n)}function MA(e,t){return mt(e,t)}var vo=null,fr=null,zs=!1,So=!1,Gs=!1,In=0;function ca(e){e!==fr&&e.next===null&&(fr===null?vo=fr=e:fr=fr.next=e),So=!0,zs||(zs=!0,FA(UA))}function li(e,t){if(!Gs&&So){Gs=!0;do for(var n=!1,r=vo;r!==null;){if(e!==0){var s=r.pendingLanes;if(s===0)var u=0;else{var g=r.suspendedLanes,y=r.pingedLanes;u=(1<<31-ot(42|e)+1)-1,u&=s&~(g&~y),u=u&201326677?u&201326677|1:u?u|2:0}u!==0&&(n=!0,xb(r,u))}else u=xe,u=dn(r,r===Be?u:0),!(u&3)||Ua(r,u)||(n=!0,xb(r,u));r=r.next}while(n);Gs=!1}}function UA(){So=zs=!1;var e=0;In!==0&&($A()&&(e=In),In=0);for(var t=Ge(),n=null,r=vo;r!==null;){var s=r.next,u=wb(r,t);u===0?(r.next=null,n===null?vo=s:n.next=s,s===null&&(fr=n)):(n=r,(e!==0||u&3)&&(So=!0)),r=s}li(e)}function wb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes&-62914561;0"u"?null:document;function Hb(e,t,n){var r=mr;if(r&&typeof t=="string"&&t){var s=zt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Pb.has(s)||(Pb.add(s),e={rel:e,crossOrigin:n,href:t},r.querySelector(s)===null&&(t=r.createElement("link"),Et(t,"link",e),dt(t),r.head.appendChild(t)))}}function JA(e){ka.D(e),Hb("dns-prefetch",e,null)}function eR(e,t){ka.C(e,t),Hb("preconnect",e,t)}function tR(e,t,n){ka.L(e,t,n);var r=mr;if(r&&e&&t){var s='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+zt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+zt(n.imageSizes)+'"]')):s+='[href="'+zt(e)+'"]';var u=s;switch(t){case"style":u=br(e);break;case"script":u=hr(e)}Zt.has(u)||(e=te({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zt.set(u,e),r.querySelector(s)!==null||t==="style"&&r.querySelector(ci(u))||t==="script"&&r.querySelector(di(u))||(t=r.createElement("link"),Et(t,"link",e),dt(t),r.head.appendChild(t)))}}function aR(e,t){ka.m(e,t);var n=mr;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+zt(r)+'"][href="'+zt(e)+'"]',u=s;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=hr(e)}if(!Zt.has(u)&&(e=te({rel:"modulepreload",href:e},t),Zt.set(u,e),n.querySelector(s)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(di(u)))return}r=n.createElement("link"),Et(r,"link",e),dt(r),n.head.appendChild(r)}}}function nR(e,t,n){ka.S(e,t,n);var r=mr;if(r&&e){var s=qn(r).hoistableStyles,u=br(e);t=t||"default";var g=s.get(u);if(!g){var y={loading:0,preload:null};if(g=r.querySelector(ci(u)))y.loading=5;else{e=te({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zt.get(u))&&tu(e,n);var A=g=r.createElement("link");dt(A),Et(A,"link",e),A._p=new Promise(function(L,W){A.onload=L,A.onerror=W}),A.addEventListener("load",function(){y.loading|=1}),A.addEventListener("error",function(){y.loading|=2}),y.loading|=4,wo(g,t,r)}g={type:"stylesheet",instance:g,count:1,state:y},s.set(u,g)}}}function rR(e,t){ka.X(e,t);var n=mr;if(n&&e){var r=qn(n).hoistableScripts,s=hr(e),u=r.get(s);u||(u=n.querySelector(di(s)),u||(e=te({src:e,async:!0},t),(t=Zt.get(s))&&au(e,t),u=n.createElement("script"),dt(u),Et(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(s,u))}}function iR(e,t){ka.M(e,t);var n=mr;if(n&&e){var r=qn(n).hoistableScripts,s=hr(e),u=r.get(s);u||(u=n.querySelector(di(s)),u||(e=te({src:e,async:!0,type:"module"},t),(t=Zt.get(s))&&au(e,t),u=n.createElement("script"),dt(u),Et(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(s,u))}}function $b(e,t,n,r){var s=(s=V.current)?No(s):null;if(!s)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=br(n.href),n=qn(s).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=br(n.href);var u=qn(s).hoistableStyles,g=u.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=s.querySelector(ci(e)))&&!u._p&&(g.instance=u,g.state.loading=5),Zt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zt.set(e,n),u||oR(s,e,n,g.state))),t&&r===null)throw Error(l(528,""));return g}if(t&&r!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=hr(n),n=qn(s).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function br(e){return'href="'+zt(e)+'"'}function ci(e){return'link[rel="stylesheet"]['+e+"]"}function Vb(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function oR(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Et(t,"link",n),dt(t),e.head.appendChild(t))}function hr(e){return'[src="'+zt(e)+'"]'}function di(e){return"script[async]"+e}function Yb(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+zt(n.href)+'"]');if(r)return t.instance=r,dt(r),r;var s=te({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),dt(r),Et(r,"style",s),wo(r,n.precedence,e),t.instance=r;case"stylesheet":s=br(n.href);var u=e.querySelector(ci(s));if(u)return t.state.loading|=4,t.instance=u,dt(u),u;r=Vb(n),(s=Zt.get(s))&&tu(r,s),u=(e.ownerDocument||e).createElement("link"),dt(u);var g=u;return g._p=new Promise(function(y,A){g.onload=y,g.onerror=A}),Et(u,"link",r),t.state.loading|=4,wo(u,n.precedence,e),t.instance=u;case"script":return u=hr(n.src),(s=e.querySelector(di(u)))?(t.instance=s,dt(s),s):(r=n,(s=Zt.get(u))&&(r=te({},n),au(r,s)),e=e.ownerDocument||e,s=e.createElement("script"),dt(s),Et(s,"link",r),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,wo(r,n.precedence,e));return t.instance}function wo(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=r.length?r[r.length-1]:null,u=s,g=0;g title"):null)}function lR(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Zb(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var pi=null;function sR(){}function uR(e,t,n){if(pi===null)throw Error(l(475));var r=pi;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var s=br(n.href),u=e.querySelector(ci(s));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=xo.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=u,dt(u);return}u=e.ownerDocument||e,n=Vb(n),(s=Zt.get(s))&&tu(n,s),u=u.createElement("link"),dt(u);var g=u;g._p=new Promise(function(y,A){g.onload=y,g.onerror=A}),Et(u,"link",n),t.instance=u}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=xo.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function cR(){if(pi===null)throw Error(l(475));var e=pi;return e.stylesheets&&e.count===0&&nu(e,e.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),pu.exports=CR(),pu.exports}var OR=xR();const kR=pg(OR);var vi={},Eh;function IR(){if(Eh)return vi;Eh=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.parse=f,vi.serialize=b;const a=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,i=/^[\u0021-\u003A\u003C-\u007E]*$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,l=/^[\u0020-\u003A\u003D-\u007E]*$/,c=Object.prototype.toString,d=(()=>{const T=function(){};return T.prototype=Object.create(null),T})();function f(T,C){const _=new d,k=T.length;if(k<2)return _;const U=(C==null?void 0:C.decode)||v;let D=0;do{const R=T.indexOf("=",D);if(R===-1)break;const x=T.indexOf(";",D),G=x===-1?k:x;if(R>G){D=T.lastIndexOf(";",R-1)+1;continue}const B=m(T,D,R),O=E(T,R,B),H=T.slice(B,O);if(_[H]===void 0){let J=m(T,R+1,G),M=E(T,G,J);const te=U(T.slice(J,M));_[H]=te}D=G+1}while(D_;){const k=T.charCodeAt(--C);if(k!==32&&k!==9)return C+1}return _}function b(T,C,_){const k=(_==null?void 0:_.encode)||encodeURIComponent;if(!a.test(T))throw new TypeError(`argument name is invalid: ${T}`);const U=k(C);if(!i.test(U))throw new TypeError(`argument val is invalid: ${C}`);let D=T+"="+U;if(!_)return D;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);D+="; Max-Age="+_.maxAge}if(_.domain){if(!o.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);D+="; Domain="+_.domain}if(_.path){if(!l.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);D+="; Path="+_.path}if(_.expires){if(!S(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);D+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(D+="; HttpOnly"),_.secure&&(D+="; Secure"),_.partitioned&&(D+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":D+="; Priority=Low";break;case"medium":D+="; Priority=Medium";break;case"high":D+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":D+="; SameSite=Strict";break;case"lax":D+="; SameSite=Lax";break;case"none":D+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return D}function v(T){if(T.indexOf("%")===-1)return T;try{return decodeURIComponent(T)}catch{return T}}function S(T){return c.call(T)==="[object Date]"}return vi}IR();/** - * react-router v7.1.1 + * react-router v7.1.3 * * Copyright (c) Remix Software Inc. * @@ -55,9 +55,9 @@ Error generating stack: `+n.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */var yh="popstate";function LR(a={}){function i(l,c){let{pathname:d,search:f,hash:m}=l.location;return ig("",{pathname:d,search:f,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function o(l,c){return typeof c=="string"?c:Ri(c)}return MR(i,o,null,a)}function Ye(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function pa(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function DR(){return Math.random().toString(36).substring(2,10)}function vh(a,i){return{usr:a.state,key:a.key,idx:i}}function ig(a,i,o=null,l){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Sr(i):i,state:o,key:i&&i.key||l||DR()}}function Ri({pathname:a="/",search:i="",hash:o=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(a+=o.charAt(0)==="#"?o:"#"+o),a}function Sr(a){let i={};if(a){let o=a.indexOf("#");o>=0&&(i.hash=a.substring(o),a=a.substring(0,o));let l=a.indexOf("?");l>=0&&(i.search=a.substring(l),a=a.substring(0,l)),a&&(i.pathname=a)}return i}function MR(a,i,o,l={}){let{window:c=document.defaultView,v5Compat:d=!1}=l,f=c.history,m="POP",E=null,b=v();b==null&&(b=0,f.replaceState({...f.state,idx:b},""));function v(){return(f.state||{idx:null}).idx}function S(){m="POP";let U=v(),D=U==null?null:U-b;b=U,E&&E({action:m,location:k.location,delta:D})}function T(U,D){m="PUSH";let R=ig(k.location,U,D);b=v()+1;let x=vh(R,b),G=k.createHref(R);try{f.pushState(x,"",G)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;c.location.assign(G)}d&&E&&E({action:m,location:k.location,delta:1})}function C(U,D){m="REPLACE";let R=ig(k.location,U,D);b=v();let x=vh(R,b),G=k.createHref(R);f.replaceState(x,"",G),d&&E&&E({action:m,location:k.location,delta:0})}function _(U){let D=c.location.origin!=="null"?c.location.origin:c.location.href,R=typeof U=="string"?U:Ri(U);return R=R.replace(/ $/,"%20"),Ye(D,`No window.location.(origin|href) available to create URL for href: ${R}`),new URL(R,D)}let k={get action(){return m},get location(){return a(c,f)},listen(U){if(E)throw new Error("A history only accepts one active listener");return c.addEventListener(yh,S),E=U,()=>{c.removeEventListener(yh,S),E=null}},createHref(U){return i(c,U)},createURL:_,encodeLocation(U){let D=_(U);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:T,replace:C,go(U){return f.go(U)}};return k}function A3(a,i,o="/"){return UR(a,i,o,!1)}function UR(a,i,o,l){let c=typeof i=="string"?Sr(i):i,d=sn(c.pathname||"/",o);if(d==null)return null;let f=R3(a);FR(f);let m=null;for(let E=0;m==null&&E{let E={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:f,route:d};E.relativePath.startsWith("/")&&(Ye(E.relativePath.startsWith(l),`Absolute route path "${E.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(l.length));let b=La([l,E.relativePath]),v=o.concat(E);d.children&&d.children.length>0&&(Ye(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),R3(d.children,i,v,b)),!(d.path==null&&!d.index)&&i.push({path:b,score:HR(b,d.index),routesMeta:v})};return a.forEach((d,f)=>{var m;if(d.path===""||!((m=d.path)!=null&&m.includes("?")))c(d,f);else for(let E of _3(d.path))c(d,f,E)}),i}function _3(a){let i=a.split("/");if(i.length===0)return[];let[o,...l]=i,c=o.endsWith("?"),d=o.replace(/\?$/,"");if(l.length===0)return c?[d,""]:[d];let f=_3(l.join("/")),m=[];return m.push(...f.map(E=>E===""?d:[d,E].join("/"))),c&&m.push(...f),m.map(E=>a.startsWith("/")&&E===""?"/":E)}function FR(a){a.sort((i,o)=>i.score!==o.score?o.score-i.score:$R(i.routesMeta.map(l=>l.childrenIndex),o.routesMeta.map(l=>l.childrenIndex)))}var BR=/^:[\w-]+$/,qR=3,zR=2,GR=1,jR=10,PR=-2,Sh=a=>a==="*";function HR(a,i){let o=a.split("/"),l=o.length;return o.some(Sh)&&(l+=PR),i&&(l+=zR),o.filter(c=>!Sh(c)).reduce((c,d)=>c+(BR.test(d)?qR:d===""?GR:jR),l)}function $R(a,i){return a.length===i.length&&a.slice(0,-1).every((l,c)=>l===i[c])?a[a.length-1]-i[i.length-1]:0}function VR(a,i,o=!1){let{routesMeta:l}=a,c={},d="/",f=[];for(let m=0;m{if(v==="*"){let _=m[T]||"";f=d.slice(0,d.length-_.length).replace(/(.)\/+$/,"$1")}const C=m[T];return S&&!C?b[v]=void 0:b[v]=(C||"").replace(/%2F/g,"/"),b},{}),pathname:d,pathnameBase:f,pattern:a}}function YR(a,i=!1,o=!0){pa(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let l=[],c="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,m,E)=>(l.push({paramName:m,isOptional:E!=null}),E?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(l.push({paramName:"*"}),c+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":a!==""&&a!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),l]}function WR(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return pa(!1,`The URL path "${a}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function sn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,l=a.charAt(o);return l&&l!=="/"?null:a.slice(o)||"/"}function KR(a,i="/"){let{pathname:o,search:l="",hash:c=""}=typeof a=="string"?Sr(a):a;return{pathname:o?o.startsWith("/")?o:ZR(o,i):i,search:JR(l),hash:e_(c)}}function ZR(a,i){let o=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function bu(a,i,o,l){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function XR(a){return a.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function N3(a){let i=XR(a);return i.map((o,l)=>l===i.length-1?o.pathname:o.pathnameBase)}function w3(a,i,o,l=!1){let c;typeof a=="string"?c=Sr(a):(c={...a},Ye(!c.pathname||!c.pathname.includes("?"),bu("?","pathname","search",c)),Ye(!c.pathname||!c.pathname.includes("#"),bu("#","pathname","hash",c)),Ye(!c.search||!c.search.includes("#"),bu("#","search","hash",c)));let d=a===""||c.pathname==="",f=d?"/":c.pathname,m;if(f==null)m=o;else{let S=i.length-1;if(!l&&f.startsWith("..")){let T=f.split("/");for(;T[0]==="..";)T.shift(),S-=1;c.pathname=T.join("/")}m=S>=0?i[S]:"/"}let E=KR(c,m),b=f&&f!=="/"&&f.endsWith("/"),v=(d||f===".")&&o.endsWith("/");return!E.pathname.endsWith("/")&&(b||v)&&(E.pathname+="/"),E}var La=a=>a.join("/").replace(/\/\/+/g,"/"),QR=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),JR=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,e_=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function t_(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}var C3=["POST","PUT","PATCH","DELETE"];new Set(C3);var a_=["GET",...C3];new Set(a_);var Tr=p.createContext(null);Tr.displayName="DataRouter";var Qo=p.createContext(null);Qo.displayName="DataRouterState";var x3=p.createContext({isTransitioning:!1});x3.displayName="ViewTransition";var n_=p.createContext(new Map);n_.displayName="Fetchers";var r_=p.createContext(null);r_.displayName="Await";var fa=p.createContext(null);fa.displayName="Navigation";var Ni=p.createContext(null);Ni.displayName="Location";var Ma=p.createContext({outlet:null,matches:[],isDataRoute:!1});Ma.displayName="Route";var gg=p.createContext(null);gg.displayName="RouteError";function i_(a,{relative:i}={}){Ye(wi(),"useHref() may be used only in the context of a component.");let{basename:o,navigator:l}=p.useContext(fa),{hash:c,pathname:d,search:f}=Ci(a,{relative:i}),m=d;return o!=="/"&&(m=d==="/"?o:La([o,d])),l.createHref({pathname:m,search:f,hash:c})}function wi(){return p.useContext(Ni)!=null}function un(){return Ye(wi(),"useLocation() may be used only in the context of a component."),p.useContext(Ni).location}var O3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function k3(a){p.useContext(fa).static||p.useLayoutEffect(a)}function o_(){let{isDataRoute:a}=p.useContext(Ma);return a?y_():l_()}function l_(){Ye(wi(),"useNavigate() may be used only in the context of a component.");let a=p.useContext(Tr),{basename:i,navigator:o}=p.useContext(fa),{matches:l}=p.useContext(Ma),{pathname:c}=un(),d=JSON.stringify(N3(l)),f=p.useRef(!1);return k3(()=>{f.current=!0}),p.useCallback((E,b={})=>{if(pa(f.current,O3),!f.current)return;if(typeof E=="number"){o.go(E);return}let v=w3(E,JSON.parse(d),c,b.relative==="path");a==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:La([i,v.pathname])),(b.replace?o.replace:o.push)(v,b.state,b)},[i,o,d,c,a])}p.createContext(null);function Ci(a,{relative:i}={}){let{matches:o}=p.useContext(Ma),{pathname:l}=un(),c=JSON.stringify(N3(o));return p.useMemo(()=>w3(a,JSON.parse(c),l,i==="path"),[a,c,l,i])}function s_(a,i){return I3(a,i)}function I3(a,i,o,l){var D;Ye(wi(),"useRoutes() may be used only in the context of a component.");let{navigator:c}=p.useContext(fa),{matches:d}=p.useContext(Ma),f=d[d.length-1],m=f?f.params:{},E=f?f.pathname:"/",b=f?f.pathnameBase:"/",v=f&&f.route;{let R=v&&v.path||"";L3(E,!v||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${E}" (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. + */var yh="popstate";function LR(a={}){function i(l,c){let{pathname:d,search:f,hash:m}=l.location;return ig("",{pathname:d,search:f,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function o(l,c){return typeof c=="string"?c:Ri(c)}return MR(i,o,null,a)}function Ye(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function pa(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function DR(){return Math.random().toString(36).substring(2,10)}function vh(a,i){return{usr:a.state,key:a.key,idx:i}}function ig(a,i,o=null,l){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Sr(i):i,state:o,key:i&&i.key||l||DR()}}function Ri({pathname:a="/",search:i="",hash:o=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(a+=o.charAt(0)==="#"?o:"#"+o),a}function Sr(a){let i={};if(a){let o=a.indexOf("#");o>=0&&(i.hash=a.substring(o),a=a.substring(0,o));let l=a.indexOf("?");l>=0&&(i.search=a.substring(l),a=a.substring(0,l)),a&&(i.pathname=a)}return i}function MR(a,i,o,l={}){let{window:c=document.defaultView,v5Compat:d=!1}=l,f=c.history,m="POP",E=null,b=v();b==null&&(b=0,f.replaceState({...f.state,idx:b},""));function v(){return(f.state||{idx:null}).idx}function S(){m="POP";let U=v(),D=U==null?null:U-b;b=U,E&&E({action:m,location:k.location,delta:D})}function T(U,D){m="PUSH";let R=ig(k.location,U,D);b=v()+1;let x=vh(R,b),G=k.createHref(R);try{f.pushState(x,"",G)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;c.location.assign(G)}d&&E&&E({action:m,location:k.location,delta:1})}function C(U,D){m="REPLACE";let R=ig(k.location,U,D);b=v();let x=vh(R,b),G=k.createHref(R);f.replaceState(x,"",G),d&&E&&E({action:m,location:k.location,delta:0})}function _(U){let D=c.location.origin!=="null"?c.location.origin:c.location.href,R=typeof U=="string"?U:Ri(U);return R=R.replace(/ $/,"%20"),Ye(D,`No window.location.(origin|href) available to create URL for href: ${R}`),new URL(R,D)}let k={get action(){return m},get location(){return a(c,f)},listen(U){if(E)throw new Error("A history only accepts one active listener");return c.addEventListener(yh,S),E=U,()=>{c.removeEventListener(yh,S),E=null}},createHref(U){return i(c,U)},createURL:_,encodeLocation(U){let D=_(U);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:T,replace:C,go(U){return f.go(U)}};return k}function A3(a,i,o="/"){return UR(a,i,o,!1)}function UR(a,i,o,l){let c=typeof i=="string"?Sr(i):i,d=sn(c.pathname||"/",o);if(d==null)return null;let f=R3(a);FR(f);let m=null;for(let E=0;m==null&&E{let E={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:f,route:d};E.relativePath.startsWith("/")&&(Ye(E.relativePath.startsWith(l),`Absolute route path "${E.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(l.length));let b=La([l,E.relativePath]),v=o.concat(E);d.children&&d.children.length>0&&(Ye(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),R3(d.children,i,v,b)),!(d.path==null&&!d.index)&&i.push({path:b,score:HR(b,d.index),routesMeta:v})};return a.forEach((d,f)=>{var m;if(d.path===""||!((m=d.path)!=null&&m.includes("?")))c(d,f);else for(let E of _3(d.path))c(d,f,E)}),i}function _3(a){let i=a.split("/");if(i.length===0)return[];let[o,...l]=i,c=o.endsWith("?"),d=o.replace(/\?$/,"");if(l.length===0)return c?[d,""]:[d];let f=_3(l.join("/")),m=[];return m.push(...f.map(E=>E===""?d:[d,E].join("/"))),c&&m.push(...f),m.map(E=>a.startsWith("/")&&E===""?"/":E)}function FR(a){a.sort((i,o)=>i.score!==o.score?o.score-i.score:$R(i.routesMeta.map(l=>l.childrenIndex),o.routesMeta.map(l=>l.childrenIndex)))}var BR=/^:[\w-]+$/,qR=3,zR=2,GR=1,jR=10,PR=-2,Sh=a=>a==="*";function HR(a,i){let o=a.split("/"),l=o.length;return o.some(Sh)&&(l+=PR),i&&(l+=zR),o.filter(c=>!Sh(c)).reduce((c,d)=>c+(BR.test(d)?qR:d===""?GR:jR),l)}function $R(a,i){return a.length===i.length&&a.slice(0,-1).every((l,c)=>l===i[c])?a[a.length-1]-i[i.length-1]:0}function VR(a,i,o=!1){let{routesMeta:l}=a,c={},d="/",f=[];for(let m=0;m{if(v==="*"){let _=m[T]||"";f=d.slice(0,d.length-_.length).replace(/(.)\/+$/,"$1")}const C=m[T];return S&&!C?b[v]=void 0:b[v]=(C||"").replace(/%2F/g,"/"),b},{}),pathname:d,pathnameBase:f,pattern:a}}function YR(a,i=!1,o=!0){pa(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let l=[],c="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,m,E)=>(l.push({paramName:m,isOptional:E!=null}),E?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(l.push({paramName:"*"}),c+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":a!==""&&a!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),l]}function WR(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return pa(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function sn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,l=a.charAt(o);return l&&l!=="/"?null:a.slice(o)||"/"}function KR(a,i="/"){let{pathname:o,search:l="",hash:c=""}=typeof a=="string"?Sr(a):a;return{pathname:o?o.startsWith("/")?o:ZR(o,i):i,search:JR(l),hash:e_(c)}}function ZR(a,i){let o=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function bu(a,i,o,l){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function XR(a){return a.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function N3(a){let i=XR(a);return i.map((o,l)=>l===i.length-1?o.pathname:o.pathnameBase)}function w3(a,i,o,l=!1){let c;typeof a=="string"?c=Sr(a):(c={...a},Ye(!c.pathname||!c.pathname.includes("?"),bu("?","pathname","search",c)),Ye(!c.pathname||!c.pathname.includes("#"),bu("#","pathname","hash",c)),Ye(!c.search||!c.search.includes("#"),bu("#","search","hash",c)));let d=a===""||c.pathname==="",f=d?"/":c.pathname,m;if(f==null)m=o;else{let S=i.length-1;if(!l&&f.startsWith("..")){let T=f.split("/");for(;T[0]==="..";)T.shift(),S-=1;c.pathname=T.join("/")}m=S>=0?i[S]:"/"}let E=KR(c,m),b=f&&f!=="/"&&f.endsWith("/"),v=(d||f===".")&&o.endsWith("/");return!E.pathname.endsWith("/")&&(b||v)&&(E.pathname+="/"),E}var La=a=>a.join("/").replace(/\/\/+/g,"/"),QR=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),JR=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,e_=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function t_(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}var C3=["POST","PUT","PATCH","DELETE"];new Set(C3);var a_=["GET",...C3];new Set(a_);var Tr=p.createContext(null);Tr.displayName="DataRouter";var Qo=p.createContext(null);Qo.displayName="DataRouterState";var x3=p.createContext({isTransitioning:!1});x3.displayName="ViewTransition";var n_=p.createContext(new Map);n_.displayName="Fetchers";var r_=p.createContext(null);r_.displayName="Await";var fa=p.createContext(null);fa.displayName="Navigation";var Ni=p.createContext(null);Ni.displayName="Location";var Ma=p.createContext({outlet:null,matches:[],isDataRoute:!1});Ma.displayName="Route";var gg=p.createContext(null);gg.displayName="RouteError";function i_(a,{relative:i}={}){Ye(wi(),"useHref() may be used only in the context of a component.");let{basename:o,navigator:l}=p.useContext(fa),{hash:c,pathname:d,search:f}=Ci(a,{relative:i}),m=d;return o!=="/"&&(m=d==="/"?o:La([o,d])),l.createHref({pathname:m,search:f,hash:c})}function wi(){return p.useContext(Ni)!=null}function un(){return Ye(wi(),"useLocation() may be used only in the context of a component."),p.useContext(Ni).location}var O3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function k3(a){p.useContext(fa).static||p.useLayoutEffect(a)}function o_(){let{isDataRoute:a}=p.useContext(Ma);return a?y_():l_()}function l_(){Ye(wi(),"useNavigate() may be used only in the context of a component.");let a=p.useContext(Tr),{basename:i,navigator:o}=p.useContext(fa),{matches:l}=p.useContext(Ma),{pathname:c}=un(),d=JSON.stringify(N3(l)),f=p.useRef(!1);return k3(()=>{f.current=!0}),p.useCallback((E,b={})=>{if(pa(f.current,O3),!f.current)return;if(typeof E=="number"){o.go(E);return}let v=w3(E,JSON.parse(d),c,b.relative==="path");a==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:La([i,v.pathname])),(b.replace?o.replace:o.push)(v,b.state,b)},[i,o,d,c,a])}p.createContext(null);function Ci(a,{relative:i}={}){let{matches:o}=p.useContext(Ma),{pathname:l}=un(),c=JSON.stringify(N3(o));return p.useMemo(()=>w3(a,JSON.parse(c),l,i==="path"),[a,c,l,i])}function s_(a,i){return I3(a,i)}function I3(a,i,o,l){var D;Ye(wi(),"useRoutes() may be used only in the context of a component.");let{navigator:c}=p.useContext(fa),{matches:d}=p.useContext(Ma),f=d[d.length-1],m=f?f.params:{},E=f?f.pathname:"/",b=f?f.pathnameBase:"/",v=f&&f.route;{let R=v&&v.path||"";L3(E,!v||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${E}" (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 S=un(),T;if(i){let R=typeof i=="string"?Sr(i):i;Ye(b==="/"||((D=R.pathname)==null?void 0:D.startsWith(b)),`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 "${b}" but pathname "${R.pathname}" was given in the \`location\` prop.`),T=R}else T=S;let C=T.pathname||"/",_=C;if(b!=="/"){let R=b.replace(/^\//,"").split("/");_="/"+C.replace(/^\//,"").split("/").slice(R.length).join("/")}let k=A3(a,{pathname:_});pa(v||k!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),pa(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.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 U=f_(k&&k.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:La([b,c.encodeLocation?c.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?b:La([b,c.encodeLocation?c.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),d,o,l);return i&&U?p.createElement(Ni.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},U):U}function u_(){let a=E_(),i=t_(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.stack:null,l="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:l},d={padding:"2px 4px",backgroundColor:l},f=null;return console.error("Error handled by React Router default ErrorBoundary:",a),f=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:d},"ErrorBoundary")," or"," ",p.createElement("code",{style:d},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},i),o?p.createElement("pre",{style:c},o):null,f)}var c_=p.createElement(u_,null),d_=class extends p.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){console.error("React Router caught the following error during render",a,i)}render(){return this.state.error!==void 0?p.createElement(Ma.Provider,{value:this.props.routeContext},p.createElement(gg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function p_({routeContext:a,match:i,children:o}){let l=p.useContext(Tr);return l&&l.static&&l.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=i.route.id),p.createElement(Ma.Provider,{value:a},o)}function f_(a,i=[],o=null,l=null){if(a==null){if(!o)return null;if(o.errors)a=o.matches;else if(i.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let c=a,d=o==null?void 0:o.errors;if(d!=null){let E=c.findIndex(b=>b.route.id&&(d==null?void 0:d[b.route.id])!==void 0);Ye(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,E+1))}let f=!1,m=-1;if(o)for(let E=0;E=0?c=c.slice(0,m+1):c=[c[0]];break}}}return c.reduceRight((E,b,v)=>{let S,T=!1,C=null,_=null;o&&(S=d&&b.route.id?d[b.route.id]:void 0,C=b.route.errorElement||c_,f&&(m<0&&v===0?(L3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,_=null):m===v&&(T=!0,_=b.route.hydrateFallbackElement||null)));let k=i.concat(c.slice(0,v+1)),U=()=>{let D;return S?D=C:T?D=_:b.route.Component?D=p.createElement(b.route.Component,null):b.route.element?D=b.route.element:D=E,p.createElement(p_,{match:b,routeContext:{outlet:E,matches:k,isDataRoute:o!=null},children:D})};return o&&(b.route.ErrorBoundary||b.route.errorElement||v===0)?p.createElement(d_,{location:o.location,revalidation:o.revalidation,component:C,error:S,children:U(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):U()},null)}function mg(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function g_(a){let i=p.useContext(Tr);return Ye(i,mg(a)),i}function m_(a){let i=p.useContext(Qo);return Ye(i,mg(a)),i}function b_(a){let i=p.useContext(Ma);return Ye(i,mg(a)),i}function bg(a){let i=b_(a),o=i.matches[i.matches.length-1];return Ye(o.route.id,`${a} can only be used on routes that contain a unique "id"`),o.route.id}function h_(){return bg("useRouteId")}function E_(){var l;let a=p.useContext(gg),i=m_("useRouteError"),o=bg("useRouteError");return a!==void 0?a:(l=i.errors)==null?void 0:l[o]}function y_(){let{router:a}=g_("useNavigate"),i=bg("useNavigate"),o=p.useRef(!1);return k3(()=>{o.current=!0}),p.useCallback(async(c,d={})=>{pa(o.current,O3),o.current&&(typeof c=="number"?a.navigate(c):await a.navigate(c,{fromRouteId:i,...d}))},[a,i])}var Th={};function L3(a,i,o){!i&&!Th[a]&&(Th[a]=!0,pa(!1,o))}p.memo(v_);function v_({routes:a,future:i,state:o}){return I3(a,void 0,o,i)}function Er(a){Ye(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function S_({basename:a="/",children:i=null,location:o,navigationType:l="POP",navigator:c,static:d=!1}){Ye(!wi(),"You cannot render a inside another . You should never have more than one in your app.");let f=a.replace(/^\/*/,"/"),m=p.useMemo(()=>({basename:f,navigator:c,static:d,future:{}}),[f,c,d]);typeof o=="string"&&(o=Sr(o));let{pathname:E="/",search:b="",hash:v="",state:S=null,key:T="default"}=o,C=p.useMemo(()=>{let _=sn(E,f);return _==null?null:{location:{pathname:_,search:b,hash:v,state:S,key:T},navigationType:l}},[f,E,b,v,S,T,l]);return pa(C!=null,` is not able to match the URL "${E}${b}${v}" because it does not start with the basename, so the won't render anything.`),C==null?null:p.createElement(fa.Provider,{value:m},p.createElement(Ni.Provider,{children:i,value:C}))}function T_({children:a,location:i}){return s_(og(a),i)}function og(a,i=[]){let o=[];return p.Children.forEach(a,(l,c)=>{if(!p.isValidElement(l))return;let d=[...i,c];if(l.type===p.Fragment){o.push.apply(o,og(l.props.children,d));return}Ye(l.type===Er,`[${typeof l.type=="string"?l.type:l.type.name}] is not a component. All component children of must be a or `),Ye(!l.props.index||!l.props.children,"An index route cannot have child routes.");let f={id:l.props.id||d.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,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&&(f.children=og(l.props.children,d)),o.push(f)}),o}var Yo="get",Wo="application/x-www-form-urlencoded";function Jo(a){return a!=null&&typeof a.tagName=="string"}function A_(a){return Jo(a)&&a.tagName.toLowerCase()==="button"}function R_(a){return Jo(a)&&a.tagName.toLowerCase()==="form"}function __(a){return Jo(a)&&a.tagName.toLowerCase()==="input"}function N_(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function w_(a,i){return a.button===0&&(!i||i==="_self")&&!N_(a)}var Bo=null;function C_(){if(Bo===null)try{new FormData(document.createElement("form"),0),Bo=!1}catch{Bo=!0}return Bo}var x_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hu(a){return a!=null&&!x_.has(a)?(pa(!1,`"${a}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Wo}"`),null):a}function O_(a,i){let o,l,c,d,f;if(R_(a)){let m=a.getAttribute("action");l=m?sn(m,i):null,o=a.getAttribute("method")||Yo,c=hu(a.getAttribute("enctype"))||Wo,d=new FormData(a)}else if(A_(a)||__(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a