From 485d8546bab1a1dfbd8897860215858c893f86cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Pereira=20Mu=C3=B1oz?= Date: Sun, 18 Aug 2024 18:10:03 +0200 Subject: [PATCH] Generate demo bundle --- docs/assets/{index-DWuraMcj.js => index-CGyUMALa.js} | 6 +++--- docs/index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename docs/assets/{index-DWuraMcj.js => index-CGyUMALa.js} (99%) diff --git a/docs/assets/index-DWuraMcj.js b/docs/assets/index-CGyUMALa.js similarity index 99% rename from docs/assets/index-DWuraMcj.js rename to docs/assets/index-CGyUMALa.js index 5440bd4..f677e8e 100644 --- a/docs/assets/index-DWuraMcj.js +++ b/docs/assets/index-CGyUMALa.js @@ -38,7 +38,7 @@ var mS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var bL=mS((vL,Ud) `).replace(rT,"")}function Ia(e,t,n){if(t=Ff(t),Ff(e)!==t&&n)throw Error(M(425))}function di(){}var ad=null,id=null;function od(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sd=typeof setTimeout=="function"?setTimeout:void 0,aT=typeof clearTimeout=="function"?clearTimeout:void 0,Pf=typeof Promise=="function"?Promise:void 0,iT=typeof queueMicrotask=="function"?queueMicrotask:typeof Pf<"u"?function(e){return Pf.resolve(null).then(e).catch(oT)}:sd;function oT(e){setTimeout(function(){throw e})}function Eo(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(r===0){e.removeChild(a),Wr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=a}while(n);Wr(t)}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Uf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ur=Math.random().toString(36).slice(2),St="__reactFiber$"+ur,Qr="__reactProps$"+ur,Lt="__reactContainer$"+ur,ld="__reactEvents$"+ur,sT="__reactListeners$"+ur,lT="__reactHandles$"+ur;function fn(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lt]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Uf(e);e!==null;){if(n=e[St])return n;e=Uf(e)}return t}e=n,n=e.parentNode}return null}function pa(e){return e=e[St]||e[Lt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function Di(e){return e[Qr]||null}var ud=[],$n=-1;function sn(e){return{current:e}}function oe(e){0>$n||(e.current=ud[$n],ud[$n]=null,$n--)}function re(e,t){$n++,ud[$n]=e.current,e.current=t}var an={},Me=sn(an),qe=sn(!1),En=an;function tr(e,t){var n=e.type.contextTypes;if(!n)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function He(e){return e=e.childContextTypes,e!=null}function pi(){oe(qe),oe(Me)}function Bf(e,t,n){if(Me.current!==an)throw Error(M(168));re(Me,t),re(qe,n)}function cy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(M(108,VS(e)||"Unknown",a));return ge({},n,r)}function fi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,En=Me.current,re(Me,e),re(qe,qe.current),!0}function $f(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=cy(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,oe(qe),oe(Me),re(Me,e)):oe(qe),re(qe,n)}var kt=null,Mi=!1,vo=!1;function dy(e){kt===null?kt=[e]:kt.push(e)}function uT(e){Mi=!0,dy(e)}function ln(){if(!vo&&kt!==null){vo=!0;var e=0,t=Q;try{var n=kt;for(Q=1;e>=o,a-=o,It=1<<32-mt(t)+a|n<C?(x=k,k=null):x=k.sibling;var F=b(E,k,f[C],v);if(F===null){k===null&&(k=x);break}e&&k&&F.alternate===null&&t(E,k),p=i(F,p,C),R===null?w=F:R.sibling=F,R=F,k=x}if(C===f.length)return n(E,k),le&&dn(E,C),w;if(k===null){for(;CC?(x=k,k=null):x=k.sibling;var z=b(E,k,F.value,v);if(z===null){k===null&&(k=x);break}e&&k&&z.alternate===null&&t(E,k),p=i(z,p,C),R===null?w=z:R.sibling=z,R=z,k=x}if(F.done)return n(E,k),le&&dn(E,C),w;if(k===null){for(;!F.done;C++,F=f.next())F=m(E,F.value,v),F!==null&&(p=i(F,p,C),R===null?w=F:R.sibling=F,R=F);return le&&dn(E,C),w}for(k=r(E,k);!F.done;C++,F=f.next())F=y(k,E,C,F.value,v),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?C:F.key),p=i(F,p,C),R===null?w=F:R.sibling=F,R=F);return e&&k.forEach(function(q){return t(E,q)}),le&&dn(E,C),w}function A(E,p,f,v){if(typeof f=="object"&&f!==null&&f.type===Mn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case ya:e:{for(var w=f.key,R=p;R!==null;){if(R.key===w){if(w=f.type,w===Mn){if(R.tag===7){n(E,R.sibling),p=a(R,f.props.children),p.return=E,E=p;break e}}else if(R.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===$t&&Gf(w)===R.type){n(E,R.sibling),p=a(R,f.props),p.ref=Sr(E,R,f),p.return=E,E=p;break e}n(E,R);break}else t(E,R);R=R.sibling}f.type===Mn?(p=bn(f.props.children,E.mode,v,f.key),p.return=E,E=p):(v=ti(f.type,f.key,f.props,null,E.mode,v),v.ref=Sr(E,p,f),v.return=E,E=v)}return o(E);case Dn:e:{for(R=f.key;p!==null;){if(p.key===R)if(p.tag===4&&p.stateNode.containerInfo===f.containerInfo&&p.stateNode.implementation===f.implementation){n(E,p.sibling),p=a(p,f.children||[]),p.return=E,E=p;break e}else{n(E,p);break}else t(E,p);p=p.sibling}p=No(f,E.mode,v),p.return=E,E=p}return o(E);case $t:return R=f._init,A(E,p,R(f._payload),v)}if(Nr(f))return _(E,p,f,v);if(hr(f))return T(E,p,f,v);xa(E,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,p!==null&&p.tag===6?(n(E,p.sibling),p=a(p,f),p.return=E,E=p):(n(E,p),p=Ao(f,E.mode,v),p.return=E,E=p),o(E)):n(E,p)}return A}var rr=my(!0),hy=my(!1),hi=sn(null),bi=null,Gn=null,lp=null;function up(){lp=Gn=bi=null}function cp(e){var t=hi.current;oe(hi),e._currentValue=t}function pd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Qn(e,t){bi=e,lp=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ge=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(lp!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(bi===null)throw Error(M(308));Gn=e,bi.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var gn=null;function dp(e){gn===null?gn=[e]:gn.push(e)}function by(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,dp(t)):(n.next=a.next,a.next=n),t.interleaved=n,Dt(e,r)}function Dt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jt=!1;function pp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ey(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Dt(e,n)}return a=r.interleaved,a===null?(t.next=t,dp(r)):(t.next=a.next,a.next=t),r.interleaved=t,Dt(e,n)}function Ka(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xd(e,n)}}function qf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ei(e,t,n,r){var a=e.updateQueue;jt=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var l=s,d=l.next;l.next=null,o===null?i=d:o.next=d,o=l;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==o&&(s===null?g.firstBaseUpdate=d:s.next=d,g.lastBaseUpdate=l))}if(i!==null){var m=a.baseState;o=0,g=d=l=null,s=i;do{var b=s.lane,y=s.eventTime;if((r&b)===b){g!==null&&(g=g.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var _=e,T=s;switch(b=t,y=n,T.tag){case 1:if(_=T.payload,typeof _=="function"){m=_.call(y,m,b);break e}m=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=T.payload,b=typeof _=="function"?_.call(y,m,b):_,b==null)break e;m=ge({},m,b);break e;case 2:jt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,b=a.effects,b===null?a.effects=[s]:b.push(s))}else y={eventTime:y,lane:b,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(d=g=y,l=m):g=g.next=y,o|=b;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;b=s,s=b.next,b.next=null,a.lastBaseUpdate=b,a.shared.pending=null}}while(!0);if(g===null&&(l=m),a.baseState=l,a.firstBaseUpdate=d,a.lastBaseUpdate=g,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);Sn|=o,e.lanes=o,e.memoizedState=m}}function Hf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=So.transition;So.transition={};try{e(!1),t()}finally{Q=n,So.transition=r}}function My(){return lt().memoizedState}function fT(e,t,n){var r=en(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fy(e))Py(t,n);else if(n=by(e,t,n,r),n!==null){var a=Ue();ht(n,e,r,a),Uy(n,t,r)}}function gT(e,t,n){var r=en(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fy(e))Py(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,bt(s,o)){var l=t.interleaved;l===null?(a.next=a,dp(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=by(e,t,a,r),n!==null&&(a=Ue(),ht(n,e,r,a),Uy(n,t,r))}}function Fy(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Py(e,t){Pr=yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xd(e,n)}}var Si={readContext:st,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useInsertionEffect:Oe,useLayoutEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useMutableSource:Oe,useSyncExternalStore:Oe,useId:Oe,unstable_isNewReconciler:!1},mT={readContext:st,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:Wf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xa(4194308,4,Cy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xa(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=fT.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:Vf,useDebugValue:yp,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=Vf(!1),t=e[0];return e=pT.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,a=vt();if(le){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),ke===null)throw Error(M(349));yn&30||Ty(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Wf(_y.bind(null,r,i,e),[e]),r.flags|=2048,ra(9,wy.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=vt(),t=ke.identifierPrefix;if(le){var n=Ct,r=It;n=(r&~(1<<32-mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ta++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[St]=t,e[Qr]=r,Yy(e,t,!1,!1),t.stateNode=e;e:{switch(o=Y0(n,r),n){case"dialog":ie("cancel",e),ie("close",e),a=r;break;case"iframe":case"object":case"embed":ie("load",e),a=r;break;case"video":case"audio":for(a=0;aor&&(t.flags|=128,r=!0,Tr(i,!1),t.lanes=4194304)}else{if(!r)if(e=vi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!le)return Le(t),null}else 2*Ee()-i.renderingStartTime>or&&n!==1073741824&&(t.flags|=128,r=!0,Tr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ee(),t.sibling=null,n=de.current,re(de,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return Ap(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function wT(e,t){switch(op(t),t.tag){case 1:return He(t.type)&&pi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),oe(qe),oe(Me),mp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gp(t),null;case 13:if(oe(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(de),null;case 4:return ar(),null;case 10:return cp(t.type._context),null;case 22:case 23:return Ap(),null;case 24:return null;default:return null}}var La=!1,De=!1,_T=typeof WeakSet=="function"?WeakSet:Set,j=null;function qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function Sd(e,t,n){try{n()}catch(r){be(e,t,r)}}var ag=!1;function RT(e,t){if(ad=li,e=ty(),ap(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,d=0,g=0,m=e,b=null;t:for(;;){for(var y;m!==n||a!==0&&m.nodeType!==3||(s=o+a),m!==i||r!==0&&m.nodeType!==3||(l=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(y=m.firstChild)!==null;)b=m,m=y;for(;;){if(m===e)break t;if(b===n&&++d===a&&(s=o),b===i&&++g===r&&(l=o),(y=m.nextSibling)!==null)break;m=b,b=m.parentNode}m=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(id={focusedElem:e,selectionRange:n},li=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var T=_.memoizedProps,A=_.memoizedState,E=t.stateNode,p=E.getSnapshotBeforeUpdate(t.elementType===t.type?T:dt(t.type,T),A);E.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(v){be(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return _=ag,ag=!1,_}function Ur(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Sd(t,n,i)}a=a.next}while(a!==r)}}function Ui(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Td(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Xy(e){var t=e.alternate;t!==null&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[Qr],delete t[ld],delete t[sT],delete t[lT])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qy(e){return e.tag===5||e.tag===3||e.tag===4}function ig(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qy(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=di));else if(r!==4&&(e=e.child,e!==null))for(wd(e,t,n),e=e.sibling;e!==null;)wd(e,t,n),e=e.sibling}function _d(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_d(e,t,n),e=e.sibling;e!==null;)_d(e,t,n),e=e.sibling}var Ie=null,pt=!1;function Bt(e,t,n){for(n=n.child;n!==null;)Jy(e,t,n),n=n.sibling}function Jy(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(Ci,n)}catch{}switch(n.tag){case 5:De||qn(n,t);case 6:var r=Ie,a=pt;Ie=null,Bt(e,t,n),Ie=r,pt=a,Ie!==null&&(pt?(e=Ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ie.removeChild(n.stateNode));break;case 18:Ie!==null&&(pt?(e=Ie,n=n.stateNode,e.nodeType===8?Eo(e.parentNode,n):e.nodeType===1&&Eo(e,n),Wr(e)):Eo(Ie,n.stateNode));break;case 4:r=Ie,a=pt,Ie=n.stateNode.containerInfo,pt=!0,Bt(e,t,n),Ie=r,pt=a;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Sd(n,t,o),a=a.next}while(a!==r)}Bt(e,t,n);break;case 1:if(!De&&(qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){be(n,t,s)}Bt(e,t,n);break;case 21:Bt(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,Bt(e,t,n),De=r):Bt(e,t,n);break;default:Bt(e,t,n)}}function og(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _T),t.forEach(function(r){var a=DT.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*NT(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,_i=0,K&6)throw Error(M(331));var a=K;for(K|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lEe()-_p?hn(e,0):wp|=n),Ve(e,t)}function s2(e,t){t===0&&(e.mode&1?(t=_a,_a<<=1,!(_a&130023424)&&(_a=4194304)):t=1);var n=Ue();e=Dt(e,t),e!==null&&(ca(e,t,n),Ve(e,n))}function LT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),s2(e,n)}function DT(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),s2(e,n)}var l2;l2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,ST(e,t,n);Ge=!!(e.flags&131072)}else Ge=!1,le&&t.flags&1048576&&py(t,mi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qa(e,t),e=t.pendingProps;var a=tr(t,Me.current);Qn(t,n),a=bp(null,t,r,e,a,n);var i=Ep();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(r)?(i=!0,fi(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,pp(t),a.updater=Pi,t.stateNode=a,a._reactInternals=t,gd(t,r,e,n),t=bd(null,t,r,!0,i,n)):(t.tag=0,le&&i&&ip(t),Pe(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qa(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=FT(r),e=dt(r,e),a){case 0:t=hd(null,t,r,e,n);break e;case 1:t=tg(null,t,r,e,n);break e;case 11:t=Jf(null,t,r,e,n);break e;case 14:t=eg(null,t,r,dt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:dt(r,a),hd(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:dt(r,a),tg(e,t,r,a,n);case 3:e:{if(Hy(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Ey(e,t),Ei(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=ir(Error(M(423)),t),t=ng(e,t,r,n,a);break e}else if(r!==a){a=ir(Error(M(424)),t),t=ng(e,t,r,n,a);break e}else for(Ke=Xt(t.stateNode.containerInfo.firstChild),Ze=t,le=!0,ft=null,n=hy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nr(),r===a){t=Mt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return vy(t),e===null&&dd(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,od(r,a)?o=null:i!==null&&od(r,i)&&(t.flags|=32),qy(e,t),Pe(e,t,o,n),t.child;case 6:return e===null&&dd(t),null;case 13:return Vy(e,t,n);case 4:return fp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rr(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:dt(r,a),Jf(e,t,r,a,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,re(hi,r._currentValue),r._currentValue=o,i!==null)if(bt(i.value,o)){if(i.children===a.children&&!qe.current){t=Mt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=xt(-1,n&-n),l.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var g=d.pending;g===null?l.next=l:(l.next=g.next,g.next=l),d.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),pd(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(M(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),pd(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Pe(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Qn(t,n),a=st(a),r=r(a),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,a=dt(r,t.pendingProps),a=dt(r.type,a),eg(e,t,r,a,n);case 15:return zy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:dt(r,a),Qa(e,t),t.tag=1,He(r)?(e=!0,fi(t)):e=!1,Qn(t,n),By(t,r,a),gd(t,r,a,n),bd(null,t,r,!0,e,n);case 19:return Wy(e,t,n);case 22:return Gy(e,t,n)}throw Error(M(156,t.tag))};function u2(e,t){return Fv(e,t)}function MT(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function it(e,t,n,r){return new MT(e,t,n,r)}function kp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FT(e){if(typeof e=="function")return kp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wd)return 11;if(e===Yd)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=it(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ti(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")kp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Mn:return bn(n.children,a,i,t);case Vd:o=8,a|=8;break;case U0:return e=it(12,n,t,a|2),e.elementType=U0,e.lanes=i,e;case B0:return e=it(13,n,t,a),e.elementType=B0,e.lanes=i,e;case $0:return e=it(19,n,t,a),e.elementType=$0,e.lanes=i,e;case vv:return $i(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bv:o=10;break e;case Ev:o=9;break e;case Wd:o=11;break e;case Yd:o=14;break e;case $t:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=it(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function bn(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function $i(e,t,n,r){return e=it(22,e,r,t),e.elementType=vv,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function No(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function PT(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oo(0),this.expirationTimes=oo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oo(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Ip(e,t,n,r,a,i,o,s,l){return e=new PT(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=it(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pp(i),e}function UT(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f2)}catch(e){console.error(e)}}f2(),fv.exports=Qe;var GT=fv.exports,gg=GT;F0.createRoot=gg.createRoot,F0.hydrateRoot=gg.hydrateRoot;/** - * @remix-run/router v1.19.0 + * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. * @@ -47,7 +47,7 @@ Error generating stack: `+i.message+` * * @license MIT */function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function g2(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function HT(){return Math.random().toString(36).substr(2,8)}function hg(e,t){return{usr:e.state,key:e.key,idx:t}}function Id(e,t,n,r){return n===void 0&&(n=null),ia({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?cr(t):t,{state:n,key:t&&t.key||r||HT()})}function Ni(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function cr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function VT(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Wt.Pop,l=null,d=g();d==null&&(d=0,o.replaceState(ia({},o.state,{idx:d}),""));function g(){return(o.state||{idx:null}).idx}function m(){s=Wt.Pop;let A=g(),E=A==null?null:A-d;d=A,l&&l({action:s,location:T.location,delta:E})}function b(A,E){s=Wt.Push;let p=Id(T.location,A,E);d=g()+1;let f=hg(p,d),v=T.createHref(p);try{o.pushState(f,"",v)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(v)}i&&l&&l({action:s,location:T.location,delta:1})}function y(A,E){s=Wt.Replace;let p=Id(T.location,A,E);d=g();let f=hg(p,d),v=T.createHref(p);o.replaceState(f,"",v),i&&l&&l({action:s,location:T.location,delta:0})}function _(A){let E=a.location.origin!=="null"?a.location.origin:a.location.href,p=typeof A=="string"?A:Ni(A);return p=p.replace(/ $/,"%20"),ye(E,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,E)}let T={get action(){return s},get location(){return e(a,o)},listen(A){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(mg,m),l=A,()=>{a.removeEventListener(mg,m),l=null}},createHref(A){return t(a,A)},createURL:_,encodeLocation(A){let E=_(A);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:b,replace:y,go(A){return o.go(A)}};return T}var bg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bg||(bg={}));function WT(e,t,n){return n===void 0&&(n="/"),YT(e,t,n,!1)}function YT(e,t,n,r){let a=typeof t=="string"?cr(t):t,i=Lp(a.pathname||"/",n);if(i==null)return null;let o=m2(e);KT(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(ye(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let d=nn([r,l.relativePath]),g=n.concat(l);i.children&&i.children.length>0&&(ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),m2(i.children,t,g,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:nw(d,i.index),routesMeta:g})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of h2(i.path))a(i,o,l)}),t}function h2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=h2(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function KT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ZT=/^:[\w-]+$/,XT=3,QT=2,JT=1,ew=10,tw=-2,Eg=e=>e==="*";function nw(e,t){let n=e.split("/"),r=n.length;return n.some(Eg)&&(r+=tw),t&&(r+=QT),n.filter(a=>!Eg(a)).reduce((a,i)=>a+(ZT.test(i)?XT:i===""?JT:ew),r)}function rw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function aw(e,t,n){let{routesMeta:r}=e,a={},i="/",o=[];for(let s=0;s{let{paramName:b,isOptional:y}=g;if(b==="*"){let T=s[m]||"";o=i.slice(0,i.length-T.length).replace(/(.)\/+$/,"$1")}const _=s[m];return y&&!_?d[b]=void 0:d[b]=(_||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function iw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),g2(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function ow(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return g2(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Lp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function sw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?cr(e):e;return{pathname:n?n.startsWith("/")?n:lw(n,t):t,search:dw(r),hash:pw(a)}}function lw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ko(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function uw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function b2(e,t){let n=uw(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function E2(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=cr(e):(a=ia({},e),ye(!a.pathname||!a.pathname.includes("?"),ko("?","pathname","search",a)),ye(!a.pathname||!a.pathname.includes("#"),ko("#","pathname","hash",a)),ye(!a.search||!a.search.includes("#"),ko("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let b=o.split("/");for(;b[0]==="..";)b.shift(),m-=1;a.pathname=b.join("/")}s=m>=0?t[m]:"/"}let l=sw(a,s),d=o&&o!=="/"&&o.endsWith("/"),g=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(d||g)&&(l.pathname+="/"),l}const nn=e=>e.join("/").replace(/\/\/+/g,"/"),cw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const v2=["post","put","patch","delete"];new Set(v2);const gw=["get",...v2];new Set(gw);/** - * React Router v6.26.0 + * React Router v6.26.1 * * Copyright (c) Remix Software Inc. * @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * * @license MIT */function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),u.useCallback(function(d,g){if(g===void 0&&(g={}),!s.current)return;if(typeof d=="number"){r.go(d);return}let m=E2(d,JSON.parse(o),i,g.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:nn([t,m.pathname])),(g.replace?r.replace:r.push)(m,g.state,g)},[t,r,o,i,e])}function T2(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(Rn),{matches:a}=u.useContext(An),{pathname:i}=ma(),o=JSON.stringify(b2(a,r.v7_relativeSplatPath));return u.useMemo(()=>E2(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function vw(e,t){return yw(e,t)}function yw(e,t,n,r){ga()||ye(!1);let{navigator:a}=u.useContext(Rn),{matches:i}=u.useContext(An),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let d=ma(),g;if(t){var m;let A=typeof t=="string"?cr(t):t;l==="/"||(m=A.pathname)!=null&&m.startsWith(l)||ye(!1),g=A}else g=d;let b=g.pathname||"/",y=b;if(l!=="/"){let A=l.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let _=WT(e,{pathname:y}),T=Rw(_&&_.map(A=>Object.assign({},A,{params:Object.assign({},s,A.params),pathname:nn([l,a.encodeLocation?a.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?l:nn([l,a.encodeLocation?a.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),i,n,r);return t&&T?u.createElement(Hi.Provider,{value:{location:oa({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Wt.Pop}},T):T}function Sw(){let e=Iw(),t=fw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:a},n):null,null)}const Tw=u.createElement(Sw,null);class ww extends u.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement(An.Provider,{value:this.props.routeContext},u.createElement(y2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _w(e){let{routeContext:t,match:n,children:r}=e,a=u.useContext(Dp);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(An.Provider,{value:t},r)}function Rw(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(a=n)==null?void 0:a.errors;if(s!=null){let g=o.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);g>=0||ye(!1),o=o.slice(0,Math.min(o.length,g+1))}let l=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let g=0;g=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((g,m,b)=>{let y,_=!1,T=null,A=null;n&&(y=s&&m.route.id?s[m.route.id]:void 0,T=m.route.errorElement||Tw,l&&(d<0&&b===0?(_=!0,A=null):d===b&&(_=!0,A=m.route.hydrateFallbackElement||null)));let E=t.concat(o.slice(0,b+1)),p=()=>{let f;return y?f=T:_?f=A:m.route.Component?f=u.createElement(m.route.Component,null):m.route.element?f=m.route.element:f=g,u.createElement(_w,{match:m,routeContext:{outlet:g,matches:E,isDataRoute:n!=null},children:f})};return n&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?u.createElement(ww,{location:n.location,revalidation:n.revalidation,component:T,error:y,children:p(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):p()},null)}var w2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(w2||{}),ki=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ki||{});function Aw(e){let t=u.useContext(Dp);return t||ye(!1),t}function Nw(e){let t=u.useContext(mw);return t||ye(!1),t}function kw(e){let t=u.useContext(An);return t||ye(!1),t}function _2(e){let t=kw(),n=t.matches[t.matches.length-1];return n.route.id||ye(!1),n.route.id}function Iw(){var e;let t=u.useContext(y2),n=Nw(ki.UseRouteError),r=_2(ki.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Cw(){let{router:e}=Aw(w2.UseNavigateStable),t=_2(ki.UseNavigateStable),n=u.useRef(!1);return S2(()=>{n.current=!0}),u.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,oa({fromRouteId:t},i)))},[e,t])}function On(e){ye(!1)}function xw(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Wt.Pop,navigator:i,static:o=!1,future:s}=e;ga()&&ye(!1);let l=t.replace(/^\/*/,"/"),d=u.useMemo(()=>({basename:l,navigator:i,static:o,future:oa({v7_relativeSplatPath:!1},s)}),[l,s,i,o]);typeof r=="string"&&(r=cr(r));let{pathname:g="/",search:m="",hash:b="",state:y=null,key:_="default"}=r,T=u.useMemo(()=>{let A=Lp(g,l);return A==null?null:{location:{pathname:A,search:m,hash:b,state:y,key:_},navigationType:a}},[l,g,m,b,y,_,a]);return T==null?null:u.createElement(Rn.Provider,{value:d},u.createElement(Hi.Provider,{children:n,value:T}))}function Ow(e){let{children:t,location:n}=e;return vw(Cd(t),n)}new Promise(()=>{});function Cd(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,a)=>{if(!u.isValidElement(r))return;let i=[...t,a];if(r.type===u.Fragment){n.push.apply(n,Cd(r.props.children,i));return}r.type!==On&&ye(!1),!r.props.index||!r.props.children||ye(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Cd(r.props.children,i)),n.push(o)}),n}/** - * React Router DOM v6.26.0 + * React Router DOM v6.26.1 * * Copyright (c) Remix Software Inc. * diff --git a/docs/index.html b/docs/index.html index 9016735..b4339ab 100644 --- a/docs/index.html +++ b/docs/index.html @@ -42,7 +42,7 @@ - +