@nocobase/app 1.6.0-beta.5 → 1.6.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,7 +52,7 @@ Error generating stack: `+R.message+`
52
52
  `+R.stack}return{value:t,source:r,stack:x,digest:null}}function tl(t,r,i){return{value:t,source:null,stack:i??null,digest:r??null}}function rl(t,r){try{console.error(r.value)}catch(i){setTimeout(function(){throw i})}}var Wc=typeof WeakMap=="function"?WeakMap:Map;function Gl(t,r,i){i=Ho(-1,i),i.tag=3,i.payload={element:null};var v=r.value;return i.callback=function(){Ls||(Ls=!0,yl=v),rl(t,r)},i}function Zl(t,r,i){i=Ho(-1,i),i.tag=3;var v=t.type.getDerivedStateFromError;if(typeof v=="function"){var x=r.value;i.payload=function(){return v(x)},i.callback=function(){rl(t,r)}}var R=t.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(i.callback=function(){rl(t,r),typeof v!="function"&&(Li===null?Li=new Set([this]):Li.add(this));var B=r.stack;this.componentDidCatch(r.value,{componentStack:B!==null?B:""})}),i}function Xl(t,r,i){var v=t.pingCache;if(v===null){v=t.pingCache=new Wc;var x=new Set;v.set(r,x)}else x=v.get(r),x===void 0&&(x=new Set,v.set(r,x));x.has(i)||(x.add(i),t=nf.bind(null,t,r,i),r.then(t,t))}function Yl(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Ql(t,r,i,v,x){return t.mode&1?(t.flags|=65536,t.lanes=x,t):(t===r?t.flags|=65536:(t.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(r=Ho(-1,1),r.tag=2,ti(i,r,1))),i.lanes|=1),t)}var Vc=b.ReactCurrentOwner,Ha=!1;function Pa(t,r,i,v){r.child=t===null?oe(r,null,i,v):ae(r,t.child,i,v)}function Jl(t,r,i,v,x){i=i.render;var R=r.ref;return Ai(r,x),v=ko(t,r,i,v,R,x),i=ri(),t!==null&&!Ha?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~x,ni(t,r,x)):(fn&&i&&Eu(r),r.flags|=1,Pa(t,r,v,x),r.child)}function ql(t,r,i,v,x){if(t===null){var R=i.type;return typeof R=="function"&&!Tl(R)&&R.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(r.tag=15,r.type=R,_l(t,r,R,v,x)):(t=Us(i.type,null,v,r,r.mode,x),t.ref=r.ref,t.return=r,r.child=t)}if(R=t.child,!(t.lanes&x)){var B=R.memoizedProps;if(i=i.compare,i=i!==null?i:Nt,i(B,v)&&t.ref===r.ref)return ni(t,r,x)}return r.flags|=1,t=Fi(R,v),t.ref=r.ref,t.return=r,r.child=t}function _l(t,r,i,v,x){if(t!==null){var R=t.memoizedProps;if(Nt(R,v)&&t.ref===r.ref)if(Ha=!1,r.pendingProps=v=R,(t.lanes&x)!==0)t.flags&131072&&(Ha=!0);else return r.lanes=t.lanes,ni(t,r,x)}return nl(t,r,i,v,x)}function ec(t,r,i){var v=r.pendingProps,x=v.children,R=t!==null?t.memoizedState:null;if(v.mode==="hidden")if(!(r.mode&1))r.memoizedState={baseLanes:0,cachePool:null,transitions:null},on(wu,Qa),Qa|=i;else{if(!(i&1073741824))return t=R!==null?R.baseLanes|i:i,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,on(wu,Qa),Qa|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=R!==null?R.baseLanes:i,on(wu,Qa),Qa|=v}else R!==null?(v=R.baseLanes|i,r.memoizedState=null):v=i,on(wu,Qa),Qa|=v;return Pa(t,r,x,i),r.child}function tc(t,r){var i=r.ref;(t===null&&i!==null||t!==null&&t.ref!==i)&&(r.flags|=512,r.flags|=2097152)}function nl(t,r,i,v,x){var R=Xn(i)?so:Hn.current;return R=kn(r,R),Ai(r,x),i=ko(t,r,i,v,R,x),v=ri(),t!==null&&!Ha?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~x,ni(t,r,x)):(fn&&v&&Eu(r),r.flags|=1,Pa(t,r,i,x),r.child)}function rc(t,r,i,v,x){if(Xn(i)){var R=!0;mu(r)}else R=!1;if(Ai(r,x),r.stateNode===null)As(t,r),Es(r,i,v),qu(r,i,v,x),v=!0;else if(t===null){var B=r.stateNode,ce=r.memoizedProps;B.props=ce;var pe=B.context,Be=i.contextType;typeof Be=="object"&&Be!==null?Be=Ca(Be):(Be=Xn(i)?so:Hn.current,Be=kn(r,Be));var at=i.getDerivedStateFromProps,ft=typeof at=="function"||typeof B.getSnapshotBeforeUpdate=="function";ft||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(ce!==v||pe!==Be)&&Os(r,B,v,Be),zo=!1;var nt=r.memoizedState;B.state=nt,Tu(r,v,B,x),pe=r.memoizedState,ce!==v||nt!==pe||aa.current||zo?(typeof at=="function"&&(Ss(r,i,at,v),pe=r.memoizedState),(ce=zo||xs(r,i,ce,v,nt,pe,Be))?(ft||typeof B.UNSAFE_componentWillMount!="function"&&typeof B.componentWillMount!="function"||(typeof B.componentWillMount=="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount=="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount=="function"&&(r.flags|=4194308)):(typeof B.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=v,r.memoizedState=pe),B.props=v,B.state=pe,B.context=Be,v=ce):(typeof B.componentDidMount=="function"&&(r.flags|=4194308),v=!1)}else{B=r.stateNode,gs(t,r),ce=r.memoizedProps,Be=r.type===r.elementType?ce:Yn(r.type,ce),B.props=Be,ft=r.pendingProps,nt=B.context,pe=i.contextType,typeof pe=="object"&&pe!==null?pe=Ca(pe):(pe=Xn(i)?so:Hn.current,pe=kn(r,pe));var jt=i.getDerivedStateFromProps;(at=typeof jt=="function"||typeof B.getSnapshotBeforeUpdate=="function")||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(ce!==ft||nt!==pe)&&Os(r,B,v,pe),zo=!1,nt=r.memoizedState,B.state=nt,Tu(r,v,B,x);var Kt=r.memoizedState;ce!==ft||nt!==Kt||aa.current||zo?(typeof jt=="function"&&(Ss(r,i,jt,v),Kt=r.memoizedState),(Be=zo||xs(r,i,Be,v,nt,Kt,pe)||!1)?(at||typeof B.UNSAFE_componentWillUpdate!="function"&&typeof B.componentWillUpdate!="function"||(typeof B.componentWillUpdate=="function"&&B.componentWillUpdate(v,Kt,pe),typeof B.UNSAFE_componentWillUpdate=="function"&&B.UNSAFE_componentWillUpdate(v,Kt,pe)),typeof B.componentDidUpdate=="function"&&(r.flags|=4),typeof B.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof B.componentDidUpdate!="function"||ce===t.memoizedProps&&nt===t.memoizedState||(r.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||ce===t.memoizedProps&&nt===t.memoizedState||(r.flags|=1024),r.memoizedProps=v,r.memoizedState=Kt),B.props=v,B.state=Kt,B.context=pe,v=Be):(typeof B.componentDidUpdate!="function"||ce===t.memoizedProps&&nt===t.memoizedState||(r.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||ce===t.memoizedProps&&nt===t.memoizedState||(r.flags|=1024),v=!1)}return al(t,r,i,v,R,x)}function al(t,r,i,v,x,R){tc(t,r);var B=(r.flags&128)!==0;if(!v&&!B)return x&&ds(r,i,!1),ni(t,r,R);v=r.stateNode,Vc.current=r;var ce=B&&typeof i.getDerivedStateFromError!="function"?null:v.render();return r.flags|=1,t!==null&&B?(r.child=ae(r,t.child,null,R),r.child=ae(r,null,ce,R)):Pa(t,r,ce,R),r.memoizedState=v.state,x&&ds(r,i,!0),r.child}function nc(t){var r=t.stateNode;r.pendingContext?yu(t,r.pendingContext,r.pendingContext!==r.context):r.context&&yu(t,r.context,!1),At(t,r.containerInfo)}function ac(t,r,i,v,x){return Ri(),To(x),r.flags|=256,Pa(t,r,i,v),r.child}var ol={dehydrated:null,treeContext:null,retryLane:0};function il(t){return{baseLanes:t,cachePool:null,transitions:null}}function oc(t,r,i){var v=r.pendingProps,x=rr.current,R=!1,B=(r.flags&128)!==0,ce;if((ce=B)||(ce=t!==null&&t.memoizedState===null?!1:(x&2)!==0),ce?(R=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(x|=1),on(rr,x&1),t===null)return Xu(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(r.mode&1?t.data==="$!"?r.lanes=8:r.lanes=1073741824:r.lanes=1,null):(B=v.children,t=v.fallback,R?(v=r.mode,R=r.child,B={mode:"hidden",children:B},!(v&1)&&R!==null?(R.childLanes=0,R.pendingProps=B):R=$s(B,v,0,null),t=ou(t,v,i,null),R.return=r,t.return=r,R.sibling=t,r.child=R,r.child.memoizedState=il(i),r.memoizedState=ol,t):ul(r,B));if(x=t.memoizedState,x!==null&&(ce=x.dehydrated,ce!==null))return Kc(t,r,B,v,ce,x,i);if(R){R=v.fallback,B=r.mode,x=t.child,ce=x.sibling;var pe={mode:"hidden",children:v.children};return!(B&1)&&r.child!==x?(v=r.child,v.childLanes=0,v.pendingProps=pe,r.deletions=null):(v=Fi(x,pe),v.subtreeFlags=x.subtreeFlags&14680064),ce!==null?R=Fi(ce,R):(R=ou(R,B,i,null),R.flags|=2),R.return=r,v.return=r,v.sibling=R,r.child=v,v=R,R=r.child,B=t.child.memoizedState,B=B===null?il(i):{baseLanes:B.baseLanes|i,cachePool:null,transitions:B.transitions},R.memoizedState=B,R.childLanes=t.childLanes&~i,r.memoizedState=ol,v}return R=t.child,t=R.sibling,v=Fi(R,{mode:"visible",children:v.children}),!(r.mode&1)&&(v.lanes=i),v.return=r,v.sibling=null,t!==null&&(i=r.deletions,i===null?(r.deletions=[t],r.flags|=16):i.push(t)),r.child=v,r.memoizedState=null,v}function ul(t,r){return r=$s({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function Cs(t,r,i,v){return v!==null&&To(v),ae(r,t.child,null,i),t=ul(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Kc(t,r,i,v,x,R,B){if(i)return r.flags&256?(r.flags&=-257,v=tl(Error(o(422))),Cs(t,r,B,v)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(R=v.fallback,x=r.mode,v=$s({mode:"visible",children:v.children},x,0,null),R=ou(R,x,B,null),R.flags|=2,v.return=r,R.return=r,v.sibling=R,r.child=v,r.mode&1&&ae(r,t.child,null,B),r.child.memoizedState=il(B),r.memoizedState=ol,R);if(!(r.mode&1))return Cs(t,r,B,null);if(x.data==="$!"){if(v=x.nextSibling&&x.nextSibling.dataset,v)var ce=v.dgst;return v=ce,R=Error(o(419)),v=tl(R,v,void 0),Cs(t,r,B,v)}if(ce=(B&t.childLanes)!==0,Ha||ce){if(v=_n,v!==null){switch(B&-B){case 4:x=2;break;case 16:x=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:x=32;break;case 536870912:x=268435456;break;default:x=0}x=x&(v.suspendedLanes|B)?0:x,x!==0&&x!==R.retryLane&&(R.retryLane=x,Aa(t,x),Po(v,t,x,-1))}return Il(),v=tl(Error(o(421))),Cs(t,r,B,v)}return x.data==="$?"?(r.flags|=128,r.child=t.child,r=af.bind(null,t),x._reactRetry=r,null):(t=R.treeContext,ya=er(x.nextSibling),ga=r,fn=!0,Ua=null,t!==null&&(Fa[Ba++]=Ra,Fa[Ba++]=Io,Fa[Ba++]=Wn,Ra=t.id,Io=t.overflow,Wn=r),r=ul(r,v.children),r.flags|=4096,r)}function ic(t,r,i){t.lanes|=r;var v=t.alternate;v!==null&&(v.lanes|=r),Ji(t.return,r,i)}function sl(t,r,i,v,x){var R=t.memoizedState;R===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:v,tail:i,tailMode:x}:(R.isBackwards=r,R.rendering=null,R.renderingStartTime=0,R.last=v,R.tail=i,R.tailMode=x)}function uc(t,r,i){var v=r.pendingProps,x=v.revealOrder,R=v.tail;if(Pa(t,r,v.children,i),v=rr.current,v&2)v=v&1|2,r.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ic(t,i,r);else if(t.tag===19)ic(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}v&=1}if(on(rr,v),!(r.mode&1))r.memoizedState=null;else switch(x){case"forwards":for(i=r.child,x=null;i!==null;)t=i.alternate,t!==null&&dn(t)===null&&(x=i),i=i.sibling;i=x,i===null?(x=r.child,r.child=null):(x=i.sibling,i.sibling=null),sl(r,!1,x,i,R);break;case"backwards":for(i=null,x=r.child,r.child=null;x!==null;){if(t=x.alternate,t!==null&&dn(t)===null){r.child=x;break}t=x.sibling,x.sibling=i,i=x,x=t}sl(r,!0,i,null,R);break;case"together":sl(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function As(t,r){!(r.mode&1)&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function ni(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),tu|=r.lanes,!(i&r.childLanes))return null;if(t!==null&&r.child!==t.child)throw Error(o(153));if(r.child!==null){for(t=r.child,i=Fi(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=Fi(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function Gc(t,r,i){switch(r.tag){case 3:nc(r),Ri();break;case 5:lr(r);break;case 1:Xn(r.type)&&mu(r);break;case 4:At(r,r.stateNode.containerInfo);break;case 10:var v=r.type._context,x=r.memoizedProps.value;on($a,v._currentValue),v._currentValue=x;break;case 13:if(v=r.memoizedState,v!==null)return v.dehydrated!==null?(on(rr,rr.current&1),r.flags|=128,null):i&r.child.childLanes?oc(t,r,i):(on(rr,rr.current&1),t=ni(t,r,i),t!==null?t.sibling:null);on(rr,rr.current&1);break;case 19:if(v=(i&r.childLanes)!==0,t.flags&128){if(v)return uc(t,r,i);r.flags|=128}if(x=r.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),on(rr,rr.current),v)break;return null;case 22:case 23:return r.lanes=0,ec(t,r,i)}return ni(t,r,i)}var sc,ll,lc,cc;sc=function(t,r){for(var i=r.child;i!==null;){if(i.tag===5||i.tag===6)t.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},ll=function(){},lc=function(t,r,i,v){var x=t.memoizedProps;if(x!==v){t=r.stateNode,ct($e.current);var R=null;switch(i){case"input":x=Or(t,x),v=Or(t,v),R=[];break;case"select":x=N({},x,{value:void 0}),v=N({},v,{value:void 0}),R=[];break;case"textarea":x=ht(t,x),v=ht(t,v),R=[];break;default:typeof x.onClick!="function"&&typeof v.onClick=="function"&&(t.onclick=hu)}it(i,v);var B;i=null;for(Be in x)if(!v.hasOwnProperty(Be)&&x.hasOwnProperty(Be)&&x[Be]!=null)if(Be==="style"){var ce=x[Be];for(B in ce)ce.hasOwnProperty(B)&&(i||(i={}),i[B]="")}else Be!=="dangerouslySetInnerHTML"&&Be!=="children"&&Be!=="suppressContentEditableWarning"&&Be!=="suppressHydrationWarning"&&Be!=="autoFocus"&&(c.hasOwnProperty(Be)?R||(R=[]):(R=R||[]).push(Be,null));for(Be in v){var pe=v[Be];if(ce=x!=null?x[Be]:void 0,v.hasOwnProperty(Be)&&pe!==ce&&(pe!=null||ce!=null))if(Be==="style")if(ce){for(B in ce)!ce.hasOwnProperty(B)||pe&&pe.hasOwnProperty(B)||(i||(i={}),i[B]="");for(B in pe)pe.hasOwnProperty(B)&&ce[B]!==pe[B]&&(i||(i={}),i[B]=pe[B])}else i||(R||(R=[]),R.push(Be,i)),i=pe;else Be==="dangerouslySetInnerHTML"?(pe=pe?pe.__html:void 0,ce=ce?ce.__html:void 0,pe!=null&&ce!==pe&&(R=R||[]).push(Be,pe)):Be==="children"?typeof pe!="string"&&typeof pe!="number"||(R=R||[]).push(Be,""+pe):Be!=="suppressContentEditableWarning"&&Be!=="suppressHydrationWarning"&&(c.hasOwnProperty(Be)?(pe!=null&&Be==="onScroll"&&cn("scroll",t),R||ce===pe||(R=[])):(R=R||[]).push(Be,pe))}i&&(R=R||[]).push("style",i);var Be=R;(r.updateQueue=Be)&&(r.flags|=4)}},cc=function(t,r,i,v){i!==v&&(r.flags|=4)};function es(t,r){if(!fn)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var v=null;i!==null;)i.alternate!==null&&(v=i),i=i.sibling;v===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:v.sibling=null}}function Sa(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,v=0;if(r)for(var x=t.child;x!==null;)i|=x.lanes|x.childLanes,v|=x.subtreeFlags&14680064,v|=x.flags&14680064,x.return=t,x=x.sibling;else for(x=t.child;x!==null;)i|=x.lanes|x.childLanes,v|=x.subtreeFlags,v|=x.flags,x.return=t,x=x.sibling;return t.subtreeFlags|=v,t.childLanes=i,r}function Zc(t,r,i){var v=r.pendingProps;switch(Ti(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sa(r),null;case 1:return Xn(r.type)&&ei(),Sa(r),null;case 3:return v=r.stateNode,Vt(),an(aa),an(Hn),rn(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(t===null||t.child===null)&&(Ou(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,Ua!==null&&(xl(Ua),Ua=null))),ll(t,r),Sa(r),null;case 5:tr(r);var x=ct(Xe.current);if(i=r.type,t!==null&&r.stateNode!=null)lc(t,r,i,v,x),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!v){if(r.stateNode===null)throw Error(o(166));return Sa(r),null}if(t=ct($e.current),Ou(r)){v=r.stateNode,i=r.type;var R=r.memoizedProps;switch(v[oo]=r,v[mi]=R,t=(r.mode&1)!==0,i){case"dialog":cn("cancel",v),cn("close",v);break;case"iframe":case"object":case"embed":cn("load",v);break;case"video":case"audio":for(x=0;x<hi.length;x++)cn(hi[x],v);break;case"source":cn("error",v);break;case"img":case"image":case"link":cn("error",v),cn("load",v);break;case"details":cn("toggle",v);break;case"input":Rr(v,R),cn("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!R.multiple},cn("invalid",v);break;case"textarea":mt(v,R),cn("invalid",v)}it(i,R),x=null;for(var B in R)if(R.hasOwnProperty(B)){var ce=R[B];B==="children"?typeof ce=="string"?v.textContent!==ce&&(R.suppressHydrationWarning!==!0&&Ur(v.textContent,ce,t),x=["children",ce]):typeof ce=="number"&&v.textContent!==""+ce&&(R.suppressHydrationWarning!==!0&&Ur(v.textContent,ce,t),x=["children",""+ce]):c.hasOwnProperty(B)&&ce!=null&&B==="onScroll"&&cn("scroll",v)}switch(i){case"input":Gt(v),$r(v,R,!0);break;case"textarea":Gt(v),kr(v);break;case"select":case"option":break;default:typeof R.onClick=="function"&&(v.onclick=hu)}v=x,r.updateQueue=v,v!==null&&(r.flags|=4)}else{B=x.nodeType===9?x:x.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=mr(i)),t==="http://www.w3.org/1999/xhtml"?i==="script"?(t=B.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof v.is=="string"?t=B.createElement(i,{is:v.is}):(t=B.createElement(i),i==="select"&&(B=t,v.multiple?B.multiple=!0:v.size&&(B.size=v.size))):t=B.createElementNS(t,i),t[oo]=r,t[mi]=v,sc(t,r,!1,!1),r.stateNode=t;e:{switch(B=kt(i,v),i){case"dialog":cn("cancel",t),cn("close",t),x=v;break;case"iframe":case"object":case"embed":cn("load",t),x=v;break;case"video":case"audio":for(x=0;x<hi.length;x++)cn(hi[x],t);x=v;break;case"source":cn("error",t),x=v;break;case"img":case"image":case"link":cn("error",t),cn("load",t),x=v;break;case"details":cn("toggle",t),x=v;break;case"input":Rr(t,v),x=Or(t,v),cn("invalid",t);break;case"option":x=v;break;case"select":t._wrapperState={wasMultiple:!!v.multiple},x=N({},v,{value:void 0}),cn("invalid",t);break;case"textarea":mt(t,v),x=ht(t,v),cn("invalid",t);break;default:x=v}it(i,x),ce=x;for(R in ce)if(ce.hasOwnProperty(R)){var pe=ce[R];R==="style"?Ze(t,pe):R==="dangerouslySetInnerHTML"?(pe=pe?pe.__html:void 0,pe!=null&&Yr(t,pe)):R==="children"?typeof pe=="string"?(i!=="textarea"||pe!=="")&&gr(t,pe):typeof pe=="number"&&gr(t,""+pe):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(c.hasOwnProperty(R)?pe!=null&&R==="onScroll"&&cn("scroll",t):pe!=null&&w(t,R,pe,B))}switch(i){case"input":Gt(t),$r(t,v,!1);break;case"textarea":Gt(t),kr(t);break;case"option":v.value!=null&&t.setAttribute("value",""+Ae(v.value));break;case"select":t.multiple=!!v.multiple,R=v.value,R!=null?qt(t,!!v.multiple,R,!1):v.defaultValue!=null&&qt(t,!!v.multiple,v.defaultValue,!0);break;default:typeof x.onClick=="function"&&(t.onclick=hu)}switch(i){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return Sa(r),null;case 6:if(t&&r.stateNode!=null)cc(t,r,t.memoizedProps,v);else{if(typeof v!="string"&&r.stateNode===null)throw Error(o(166));if(i=ct(Xe.current),ct($e.current),Ou(r)){if(v=r.stateNode,i=r.memoizedProps,v[oo]=r,(R=v.nodeValue!==i)&&(t=ga,t!==null))switch(t.tag){case 3:Ur(v.nodeValue,i,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ur(v.nodeValue,i,(t.mode&1)!==0)}R&&(r.flags|=4)}else v=(i.nodeType===9?i:i.ownerDocument).createTextNode(v),v[oo]=r,r.stateNode=v}return Sa(r),null;case 13:if(an(rr),v=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(fn&&ya!==null&&r.mode&1&&!(r.flags&128))Yu(),Ri(),r.flags|=98560,R=!1;else if(R=Ou(r),v!==null&&v.dehydrated!==null){if(t===null){if(!R)throw Error(o(318));if(R=r.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(o(317));R[oo]=r}else Ri(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;Sa(r),R=!1}else Ua!==null&&(xl(Ua),Ua=null),R=!0;if(!R)return r.flags&65536?r:null}return r.flags&128?(r.lanes=i,r):(v=v!==null,v!==(t!==null&&t.memoizedState!==null)&&v&&(r.child.flags|=8192,r.mode&1&&(t===null||rr.current&1?Vn===0&&(Vn=3):Il())),r.updateQueue!==null&&(r.flags|=4),Sa(r),null);case 4:return Vt(),ll(t,r),t===null&&du(r.stateNode.containerInfo),Sa(r),null;case 10:return Qu(r.type._context),Sa(r),null;case 17:return Xn(r.type)&&ei(),Sa(r),null;case 19:if(an(rr),R=r.memoizedState,R===null)return Sa(r),null;if(v=(r.flags&128)!==0,B=R.rendering,B===null)if(v)es(R,!1);else{if(Vn!==0||t!==null&&t.flags&128)for(t=r.child;t!==null;){if(B=dn(t),B!==null){for(r.flags|=128,es(R,!1),v=B.updateQueue,v!==null&&(r.updateQueue=v,r.flags|=4),r.subtreeFlags=0,v=i,i=r.child;i!==null;)R=i,t=v,R.flags&=14680066,B=R.alternate,B===null?(R.childLanes=0,R.lanes=t,R.child=null,R.subtreeFlags=0,R.memoizedProps=null,R.memoizedState=null,R.updateQueue=null,R.dependencies=null,R.stateNode=null):(R.childLanes=B.childLanes,R.lanes=B.lanes,R.child=B.child,R.subtreeFlags=0,R.deletions=null,R.memoizedProps=B.memoizedProps,R.memoizedState=B.memoizedState,R.updateQueue=B.updateQueue,R.type=B.type,t=B.dependencies,R.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),i=i.sibling;return on(rr,rr.current&1|2),r.child}t=t.sibling}R.tail!==null&&Ft()>bu&&(r.flags|=128,v=!0,es(R,!1),r.lanes=4194304)}else{if(!v)if(t=dn(B),t!==null){if(r.flags|=128,v=!0,i=t.updateQueue,i!==null&&(r.updateQueue=i,r.flags|=4),es(R,!0),R.tail===null&&R.tailMode==="hidden"&&!B.alternate&&!fn)return Sa(r),null}else 2*Ft()-R.renderingStartTime>bu&&i!==1073741824&&(r.flags|=128,v=!0,es(R,!1),r.lanes=4194304);R.isBackwards?(B.sibling=r.child,r.child=B):(i=R.last,i!==null?i.sibling=B:r.child=B,R.last=B)}return R.tail!==null?(r=R.tail,R.rendering=r,R.tail=r.sibling,R.renderingStartTime=Ft(),r.sibling=null,i=rr.current,on(rr,v?i&1|2:i&1),r):(Sa(r),null);case 22:case 23:return Ol(),v=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==v&&(r.flags|=8192),v&&r.mode&1?Qa&1073741824&&(Sa(r),r.subtreeFlags&6&&(r.flags|=8192)):Sa(r),null;case 24:return null;case 25:return null}throw Error(o(156,r.tag))}function Xc(t,r){switch(Ti(r),r.tag){case 1:return Xn(r.type)&&ei(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Vt(),an(aa),an(Hn),rn(),t=r.flags,t&65536&&!(t&128)?(r.flags=t&-65537|128,r):null;case 5:return tr(r),null;case 13:if(an(rr),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(o(340));Ri()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return an(rr),null;case 4:return Vt(),null;case 10:return Qu(r.type._context),null;case 22:case 23:return Ol(),null;case 24:return null;default:return null}}var Ps=!1,xa=!1,Yc=typeof WeakSet=="function"?WeakSet:Set,zt=null;function Pu(t,r){var i=t.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(v){An(t,r,v)}else i.current=null}function cl(t,r,i){try{i()}catch(v){An(t,r,v)}}var fc=!1;function Qc(t,r){if(Bu=Nr,t=ur(),sr(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var v=i.getSelection&&i.getSelection();if(v&&v.rangeCount!==0){i=v.anchorNode;var x=v.anchorOffset,R=v.focusNode;v=v.focusOffset;try{i.nodeType,R.nodeType}catch{i=null;break e}var B=0,ce=-1,pe=-1,Be=0,at=0,ft=t,nt=null;t:for(;;){for(var jt;ft!==i||x!==0&&ft.nodeType!==3||(ce=B+x),ft!==R||v!==0&&ft.nodeType!==3||(pe=B+v),ft.nodeType===3&&(B+=ft.nodeValue.length),(jt=ft.firstChild)!==null;)nt=ft,ft=jt;for(;;){if(ft===t)break t;if(nt===i&&++Be===x&&(ce=B),nt===R&&++at===v&&(pe=B),(jt=ft.nextSibling)!==null)break;ft=nt,nt=ft.parentNode}ft=jt}i=ce===-1||pe===-1?null:{start:ce,end:pe}}else i=null}i=i||{start:0,end:0}}else i=null;for(Uu={focusedElem:t,selectionRange:i},Nr=!1,zt=r;zt!==null;)if(r=zt,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,zt=t;else for(;zt!==null;){r=zt;try{var Kt=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Kt!==null){var Xt=Kt.memoizedProps,Ln=Kt.memoizedState,Pe=r.stateNode,ye=Pe.getSnapshotBeforeUpdate(r.elementType===r.type?Xt:Yn(r.type,Xt),Ln);Pe.__reactInternalSnapshotBeforeUpdate=ye}break;case 3:var Me=r.stateNode.containerInfo;Me.nodeType===1?Me.textContent="":Me.nodeType===9&&Me.documentElement&&Me.removeChild(Me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(St){An(r,r.return,St)}if(t=r.sibling,t!==null){t.return=r.return,zt=t;break}zt=r.return}return Kt=fc,fc=!1,Kt}function ts(t,r,i){var v=r.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var x=v=v.next;do{if((x.tag&t)===t){var R=x.destroy;x.destroy=void 0,R!==void 0&&cl(r,i,R)}x=x.next}while(x!==v)}}function ws(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var v=i.create;i.destroy=v()}i=i.next}while(i!==r)}}function fl(t){var r=t.ref;if(r!==null){var i=t.stateNode;switch(t.tag){case 5:t=i;break;default:t=i}typeof r=="function"?r(t):r.current=t}}function dc(t){var r=t.alternate;r!==null&&(t.alternate=null,dc(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[oo],delete r[mi],delete r[ku],delete r[Si],delete r[Js])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function vc(t){return t.tag===5||t.tag===3||t.tag===4}function hc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||vc(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function dl(t,r,i){var v=t.tag;if(v===5||v===6)t=t.stateNode,r?i.nodeType===8?i.parentNode.insertBefore(t,r):i.insertBefore(t,r):(i.nodeType===8?(r=i.parentNode,r.insertBefore(t,i)):(r=i,r.appendChild(t)),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=hu));else if(v!==4&&(t=t.child,t!==null))for(dl(t,r,i),t=t.sibling;t!==null;)dl(t,r,i),t=t.sibling}function vl(t,r,i){var v=t.tag;if(v===5||v===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(v!==4&&(t=t.child,t!==null))for(vl(t,r,i),t=t.sibling;t!==null;)vl(t,r,i),t=t.sibling}var ua=null,Co=!1;function Mi(t,r,i){for(i=i.child;i!==null;)pc(t,r,i),i=i.sibling}function pc(t,r,i){if(yn&&typeof yn.onCommitFiberUnmount=="function")try{yn.onCommitFiberUnmount(ln,i)}catch{}switch(i.tag){case 5:xa||Pu(i,r);case 6:var v=ua,x=Co;ua=null,Mi(t,r,i),ua=v,Co=x,ua!==null&&(Co?(t=ua,i=i.stateNode,t.nodeType===8?t.parentNode.removeChild(i):t.removeChild(i)):ua.removeChild(i.stateNode));break;case 18:ua!==null&&(Co?(t=ua,i=i.stateNode,t.nodeType===8?gu(t.parentNode,i):t.nodeType===1&&gu(t,i),Fe(t)):gu(ua,i.stateNode));break;case 4:v=ua,x=Co,ua=i.stateNode.containerInfo,Co=!0,Mi(t,r,i),ua=v,Co=x;break;case 0:case 11:case 14:case 15:if(!xa&&(v=i.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){x=v=v.next;do{var R=x,B=R.destroy;R=R.tag,B!==void 0&&(R&2||R&4)&&cl(i,r,B),x=x.next}while(x!==v)}Mi(t,r,i);break;case 1:if(!xa&&(Pu(i,r),v=i.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=i.memoizedProps,v.state=i.memoizedState,v.componentWillUnmount()}catch(ce){An(i,r,ce)}Mi(t,r,i);break;case 21:Mi(t,r,i);break;case 22:i.mode&1?(xa=(v=xa)||i.memoizedState!==null,Mi(t,r,i),xa=v):Mi(t,r,i);break;default:Mi(t,r,i)}}function gc(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var i=t.stateNode;i===null&&(i=t.stateNode=new Yc),r.forEach(function(v){var x=of.bind(null,t,v);i.has(v)||(i.add(v),v.then(x,x))})}}function Ao(t,r){var i=r.deletions;if(i!==null)for(var v=0;v<i.length;v++){var x=i[v];try{var R=t,B=r,ce=B;e:for(;ce!==null;){switch(ce.tag){case 5:ua=ce.stateNode,Co=!1;break e;case 3:ua=ce.stateNode.containerInfo,Co=!0;break e;case 4:ua=ce.stateNode.containerInfo,Co=!0;break e}ce=ce.return}if(ua===null)throw Error(o(160));pc(R,B,x),ua=null,Co=!1;var pe=x.alternate;pe!==null&&(pe.return=null),x.return=null}catch(Be){An(x,r,Be)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)yc(r,t),r=r.sibling}function yc(t,r){var i=t.alternate,v=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ao(r,t),Ko(t),v&4){try{ts(3,t,t.return),ws(3,t)}catch(Xt){An(t,t.return,Xt)}try{ts(5,t,t.return)}catch(Xt){An(t,t.return,Xt)}}break;case 1:Ao(r,t),Ko(t),v&512&&i!==null&&Pu(i,i.return);break;case 5:if(Ao(r,t),Ko(t),v&512&&i!==null&&Pu(i,i.return),t.flags&32){var x=t.stateNode;try{gr(x,"")}catch(Xt){An(t,t.return,Xt)}}if(v&4&&(x=t.stateNode,x!=null)){var R=t.memoizedProps,B=i!==null?i.memoizedProps:R,ce=t.type,pe=t.updateQueue;if(t.updateQueue=null,pe!==null)try{ce==="input"&&R.type==="radio"&&R.name!=null&&Lr(x,R),kt(ce,B);var Be=kt(ce,R);for(B=0;B<pe.length;B+=2){var at=pe[B],ft=pe[B+1];at==="style"?Ze(x,ft):at==="dangerouslySetInnerHTML"?Yr(x,ft):at==="children"?gr(x,ft):w(x,at,ft,Be)}switch(ce){case"input":Kr(x,R);break;case"textarea":nr(x,R);break;case"select":var nt=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!R.multiple;var jt=R.value;jt!=null?qt(x,!!R.multiple,jt,!1):nt!==!!R.multiple&&(R.defaultValue!=null?qt(x,!!R.multiple,R.defaultValue,!0):qt(x,!!R.multiple,R.multiple?[]:"",!1))}x[mi]=R}catch(Xt){An(t,t.return,Xt)}}break;case 6:if(Ao(r,t),Ko(t),v&4){if(t.stateNode===null)throw Error(o(162));x=t.stateNode,R=t.memoizedProps;try{x.nodeValue=R}catch(Xt){An(t,t.return,Xt)}}break;case 3:if(Ao(r,t),Ko(t),v&4&&i!==null&&i.memoizedState.isDehydrated)try{Fe(r.containerInfo)}catch(Xt){An(t,t.return,Xt)}break;case 4:Ao(r,t),Ko(t);break;case 13:Ao(r,t),Ko(t),x=t.child,x.flags&8192&&(R=x.memoizedState!==null,x.stateNode.isHidden=R,!R||x.alternate!==null&&x.alternate.memoizedState!==null||(gl=Ft())),v&4&&gc(t);break;case 22:if(at=i!==null&&i.memoizedState!==null,t.mode&1?(xa=(Be=xa)||at,Ao(r,t),xa=Be):Ao(r,t),Ko(t),v&8192){if(Be=t.memoizedState!==null,(t.stateNode.isHidden=Be)&&!at&&t.mode&1)for(zt=t,at=t.child;at!==null;){for(ft=zt=at;zt!==null;){switch(nt=zt,jt=nt.child,nt.tag){case 0:case 11:case 14:case 15:ts(4,nt,nt.return);break;case 1:Pu(nt,nt.return);var Kt=nt.stateNode;if(typeof Kt.componentWillUnmount=="function"){v=nt,i=nt.return;try{r=v,Kt.props=r.memoizedProps,Kt.state=r.memoizedState,Kt.componentWillUnmount()}catch(Xt){An(v,i,Xt)}}break;case 5:Pu(nt,nt.return);break;case 22:if(nt.memoizedState!==null){xc(ft);continue}}jt!==null?(jt.return=nt,zt=jt):xc(ft)}at=at.sibling}e:for(at=null,ft=t;;){if(ft.tag===5){if(at===null){at=ft;try{x=ft.stateNode,Be?(R=x.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none"):(ce=ft.stateNode,pe=ft.memoizedProps.style,B=pe!=null&&pe.hasOwnProperty("display")?pe.display:null,ce.style.display=We("display",B))}catch(Xt){An(t,t.return,Xt)}}}else if(ft.tag===6){if(at===null)try{ft.stateNode.nodeValue=Be?"":ft.memoizedProps}catch(Xt){An(t,t.return,Xt)}}else if((ft.tag!==22&&ft.tag!==23||ft.memoizedState===null||ft===t)&&ft.child!==null){ft.child.return=ft,ft=ft.child;continue}if(ft===t)break e;for(;ft.sibling===null;){if(ft.return===null||ft.return===t)break e;at===ft&&(at=null),ft=ft.return}at===ft&&(at=null),ft.sibling.return=ft.return,ft=ft.sibling}}break;case 19:Ao(r,t),Ko(t),v&4&&gc(t);break;case 21:break;default:Ao(r,t),Ko(t)}}function Ko(t){var r=t.flags;if(r&2){try{e:{for(var i=t.return;i!==null;){if(vc(i)){var v=i;break e}i=i.return}throw Error(o(160))}switch(v.tag){case 5:var x=v.stateNode;v.flags&32&&(gr(x,""),v.flags&=-33);var R=hc(t);vl(t,R,x);break;case 3:case 4:var B=v.stateNode.containerInfo,ce=hc(t);dl(t,ce,B);break;default:throw Error(o(161))}}catch(pe){An(t,t.return,pe)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Jc(t,r,i){zt=t,mc(t,r,i)}function mc(t,r,i){for(var v=(t.mode&1)!==0;zt!==null;){var x=zt,R=x.child;if(x.tag===22&&v){var B=x.memoizedState!==null||Ps;if(!B){var ce=x.alternate,pe=ce!==null&&ce.memoizedState!==null||xa;ce=Ps;var Be=xa;if(Ps=B,(xa=pe)&&!Be)for(zt=x;zt!==null;)B=zt,pe=B.child,B.tag===22&&B.memoizedState!==null?Ec(x):pe!==null?(pe.return=B,zt=pe):Ec(x);for(;R!==null;)zt=R,mc(R,r,i),R=R.sibling;zt=x,Ps=ce,xa=Be}Sc(t,r,i)}else x.subtreeFlags&8772&&R!==null?(R.return=x,zt=R):Sc(t,r,i)}}function Sc(t){for(;zt!==null;){var r=zt;if(r.flags&8772){var i=r.alternate;try{if(r.flags&8772)switch(r.tag){case 0:case 11:case 15:xa||ws(5,r);break;case 1:var v=r.stateNode;if(r.flags&4&&!xa)if(i===null)v.componentDidMount();else{var x=r.elementType===r.type?i.memoizedProps:Yn(r.type,i.memoizedProps);v.componentDidUpdate(x,i.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var R=r.updateQueue;R!==null&&Ru(r,R,v);break;case 3:var B=r.updateQueue;if(B!==null){if(i=null,r.child!==null)switch(r.child.tag){case 5:i=r.child.stateNode;break;case 1:i=r.child.stateNode}Ru(r,B,i)}break;case 5:var ce=r.stateNode;if(i===null&&r.flags&4){i=ce;var pe=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":pe.autoFocus&&i.focus();break;case"img":pe.src&&(i.src=pe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var Be=r.alternate;if(Be!==null){var at=Be.memoizedState;if(at!==null){var ft=at.dehydrated;ft!==null&&Fe(ft)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}xa||r.flags&512&&fl(r)}catch(nt){An(r,r.return,nt)}}if(r===t){zt=null;break}if(i=r.sibling,i!==null){i.return=r.return,zt=i;break}zt=r.return}}function xc(t){for(;zt!==null;){var r=zt;if(r===t){zt=null;break}var i=r.sibling;if(i!==null){i.return=r.return,zt=i;break}zt=r.return}}function Ec(t){for(;zt!==null;){var r=zt;try{switch(r.tag){case 0:case 11:case 15:var i=r.return;try{ws(4,r)}catch(pe){An(r,i,pe)}break;case 1:var v=r.stateNode;if(typeof v.componentDidMount=="function"){var x=r.return;try{v.componentDidMount()}catch(pe){An(r,x,pe)}}var R=r.return;try{fl(r)}catch(pe){An(r,R,pe)}break;case 5:var B=r.return;try{fl(r)}catch(pe){An(r,B,pe)}}}catch(pe){An(r,r.return,pe)}if(r===t){zt=null;break}var ce=r.sibling;if(ce!==null){ce.return=r.return,zt=ce;break}zt=r.return}}var qc=Math.ceil,bs=b.ReactCurrentDispatcher,hl=b.ReactCurrentOwner,lo=b.ReactCurrentBatchConfig,Xr=0,_n=null,jn=null,sa=0,Qa=0,wu=io(0),Vn=0,rs=null,tu=0,Ms=0,pl=0,ns=null,ka=null,gl=0,bu=1/0,ai=null,Ls=!1,yl=null,Li=null,Ds=!1,Di=null,Ns=0,as=0,ml=null,js=-1,Fs=0;function wa(){return Xr&6?Ft():js!==-1?js:js=Ft()}function Ni(t){return t.mode&1?Xr&2&&sa!==0?sa&-sa:qs.transition!==null?(Fs===0&&(Fs=_a()),Fs):(t=Zr,t!==0||(t=window.event,t=t===void 0?16:Ia(t.type)),t):1}function Po(t,r,i,v){if(50<as)throw as=0,ml=null,Error(o(185));On(t,i,v),(!(Xr&2)||t!==_n)&&(t===_n&&(!(Xr&2)&&(Ms|=i),Vn===4&&ji(t,sa)),Wa(t,v),i===1&&Xr===0&&!(r.mode&1)&&(bu=Ft()+500,Oo&&Xa()))}function Wa(t,r){var i=t.callbackNode;Va(t,r);var v=bo(t,t===_n?sa:0);if(v===0)i!==null&&fr(i),t.callbackNode=null,t.callbackPriority=0;else if(r=v&-v,t.callbackPriority!==r){if(i!=null&&fr(i),r===1)t.tag===0?Xi(Ic.bind(null,t)):Ku(Ic.bind(null,t)),zu(function(){!(Xr&6)&&Xa()}),i=null;else{switch(Mo(v)){case 1:i=Pn;break;case 4:i=et;break;case 16:i=sn;break;case 536870912:i=Kn;break;default:i=sn}i=Mc(i,Oc.bind(null,t))}t.callbackPriority=r,t.callbackNode=i}}function Oc(t,r){if(js=-1,Fs=0,Xr&6)throw Error(o(327));var i=t.callbackNode;if(Mu()&&t.callbackNode!==i)return null;var v=bo(t,t===_n?sa:0);if(v===0)return null;if(v&30||v&t.expiredLanes||r)r=Bs(t,v);else{r=v;var x=Xr;Xr|=2;var R=Rc();(_n!==t||sa!==r)&&(ai=null,bu=Ft()+500,nu(t,r));do try{tf();break}catch(ce){Tc(t,ce)}while(1);Qi(),bs.current=R,Xr=x,jn!==null?r=0:(_n=null,sa=0,r=Vn)}if(r!==0){if(r===2&&(x=Go(t),x!==0&&(v=x,r=Sl(t,x))),r===1)throw i=rs,nu(t,0),ji(t,v),Wa(t,Ft()),i;if(r===6)ji(t,v);else{if(x=t.current.alternate,!(v&30)&&!_c(x)&&(r=Bs(t,v),r===2&&(R=Go(t),R!==0&&(v=R,r=Sl(t,R))),r===1))throw i=rs,nu(t,0),ji(t,v),Wa(t,Ft()),i;switch(t.finishedWork=x,t.finishedLanes=v,r){case 0:case 1:throw Error(o(345));case 2:au(t,ka,ai);break;case 3:if(ji(t,v),(v&130023424)===v&&(r=gl+500-Ft(),10<r)){if(bo(t,0)!==0)break;if(x=t.suspendedLanes,(x&v)!==v){wa(),t.pingedLanes|=t.suspendedLanes&x;break}t.timeoutHandle=$u(au.bind(null,t,ka,ai),r);break}au(t,ka,ai);break;case 4:if(ji(t,v),(v&4194240)===v)break;for(r=t.eventTimes,x=-1;0<v;){var B=31-Oa(v);R=1<<B,B=r[B],B>x&&(x=B),v&=~R}if(v=x,v=Ft()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*qc(v/1960))-v,10<v){t.timeoutHandle=$u(au.bind(null,t,ka,ai),v);break}au(t,ka,ai);break;case 5:au(t,ka,ai);break;default:throw Error(o(329))}}}return Wa(t,Ft()),t.callbackNode===i?Oc.bind(null,t):null}function Sl(t,r){var i=ns;return t.current.memoizedState.isDehydrated&&(nu(t,r).flags|=256),t=Bs(t,r),t!==2&&(r=ka,ka=i,r!==null&&xl(r)),t}function xl(t){ka===null?ka=t:ka.push.apply(ka,t)}function _c(t){for(var r=t;;){if(r.flags&16384){var i=r.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var v=0;v<i.length;v++){var x=i[v],R=x.getSnapshot;x=x.value;try{if(!ir(R(),x))return!1}catch{return!1}}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function ji(t,r){for(r&=~pl,r&=~Ms,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var i=31-Oa(r),v=1<<i;t[i]=-1,r&=~v}}function Ic(t){if(Xr&6)throw Error(o(327));Mu();var r=bo(t,0);if(!(r&1))return Wa(t,Ft()),null;var i=Bs(t,r);if(t.tag!==0&&i===2){var v=Go(t);v!==0&&(r=v,i=Sl(t,v))}if(i===1)throw i=rs,nu(t,0),ji(t,r),Wa(t,Ft()),i;if(i===6)throw Error(o(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,au(t,ka,ai),Wa(t,Ft()),null}function El(t,r){var i=Xr;Xr|=1;try{return t(r)}finally{Xr=i,Xr===0&&(bu=Ft()+500,Oo&&Xa())}}function ru(t){Di!==null&&Di.tag===0&&!(Xr&6)&&Mu();var r=Xr;Xr|=1;var i=lo.transition,v=Zr;try{if(lo.transition=null,Zr=1,t)return t()}finally{Zr=v,lo.transition=i,Xr=r,!(Xr&6)&&Xa()}}function Ol(){Qa=wu.current,an(wu)}function nu(t,r){t.finishedWork=null,t.finishedLanes=0;var i=t.timeoutHandle;if(i!==-1&&(t.timeoutHandle=-1,Qs(i)),jn!==null)for(i=jn.return;i!==null;){var v=i;switch(Ti(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&ei();break;case 3:Vt(),an(aa),an(Hn),rn();break;case 5:tr(v);break;case 4:Vt();break;case 13:an(rr);break;case 19:an(rr);break;case 10:Qu(v.type._context);break;case 22:case 23:Ol()}i=i.return}if(_n=t,jn=t=Fi(t.current,null),sa=Qa=r,Vn=0,rs=null,pl=Ms=tu=0,ka=ns=null,$o!==null){for(r=0;r<$o.length;r++)if(i=$o[r],v=i.interleaved,v!==null){i.interleaved=null;var x=v.next,R=i.pending;if(R!==null){var B=R.next;R.next=x,v.next=B}i.pending=v}$o=null}return t}function Tc(t,r){do{var i=jn;try{if(Qi(),Qn.current=Rs,Ya){for(var v=Vr.memoizedState;v!==null;){var x=v.queue;x!==null&&(x.pending=null),v=v.next}Ya=!1}if(In=0,vn=nn=Vr=null,Jn=!1,za=0,hl.current=null,i===null||i.return===null){Vn=1,rs=r,jn=null;break}e:{var R=t,B=i.return,ce=i,pe=r;if(r=sa,ce.flags|=32768,pe!==null&&typeof pe=="object"&&typeof pe.then=="function"){var Be=pe,at=ce,ft=at.tag;if(!(at.mode&1)&&(ft===0||ft===11||ft===15)){var nt=at.alternate;nt?(at.updateQueue=nt.updateQueue,at.memoizedState=nt.memoizedState,at.lanes=nt.lanes):(at.updateQueue=null,at.memoizedState=null)}var jt=Yl(B);if(jt!==null){jt.flags&=-257,Ql(jt,B,ce,R,r),jt.mode&1&&Xl(R,Be,r),r=jt,pe=Be;var Kt=r.updateQueue;if(Kt===null){var Xt=new Set;Xt.add(pe),r.updateQueue=Xt}else Kt.add(pe);break e}else{if(!(r&1)){Xl(R,Be,r),Il();break e}pe=Error(o(426))}}else if(fn&&ce.mode&1){var Ln=Yl(B);if(Ln!==null){!(Ln.flags&65536)&&(Ln.flags|=256),Ql(Ln,B,ce,R,r),To(Au(pe,ce));break e}}R=pe=Au(pe,ce),Vn!==4&&(Vn=2),ns===null?ns=[R]:ns.push(R),R=B;do{switch(R.tag){case 3:R.flags|=65536,r&=-r,R.lanes|=r;var Pe=Gl(R,pe,r);ys(R,Pe);break e;case 1:ce=pe;var ye=R.type,Me=R.stateNode;if(!(R.flags&128)&&(typeof ye.getDerivedStateFromError=="function"||Me!==null&&typeof Me.componentDidCatch=="function"&&(Li===null||!Li.has(Me)))){R.flags|=65536,r&=-r,R.lanes|=r;var St=Zl(R,ce,r);ys(R,St);break e}}R=R.return}while(R!==null)}Ac(i)}catch(Jt){r=Jt,jn===i&&i!==null&&(jn=i=i.return);continue}break}while(1)}function Rc(){var t=bs.current;return bs.current=Rs,t===null?Rs:t}function Il(){(Vn===0||Vn===3||Vn===2)&&(Vn=4),_n===null||!(tu&268435455)&&!(Ms&268435455)||ji(_n,sa)}function Bs(t,r){var i=Xr;Xr|=2;var v=Rc();(_n!==t||sa!==r)&&(ai=null,nu(t,r));do try{ef();break}catch(x){Tc(t,x)}while(1);if(Qi(),Xr=i,bs.current=v,jn!==null)throw Error(o(261));return _n=null,sa=0,Vn}function ef(){for(;jn!==null;)Cc(jn)}function tf(){for(;jn!==null&&!Ct();)Cc(jn)}function Cc(t){var r=bc(t.alternate,t,Qa);t.memoizedProps=t.pendingProps,r===null?Ac(t):jn=r,hl.current=null}function Ac(t){var r=t;do{var i=r.alternate;if(t=r.return,r.flags&32768){if(i=Xc(i,r),i!==null){i.flags&=32767,jn=i;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Vn=6,jn=null;return}}else if(i=Zc(i,r,Qa),i!==null){jn=i;return}if(r=r.sibling,r!==null){jn=r;return}jn=r=t}while(r!==null);Vn===0&&(Vn=5)}function au(t,r,i){var v=Zr,x=lo.transition;try{lo.transition=null,Zr=1,rf(t,r,i,v)}finally{lo.transition=x,Zr=v}return null}function rf(t,r,i,v){do Mu();while(Di!==null);if(Xr&6)throw Error(o(327));i=t.finishedWork;var x=t.finishedLanes;if(i===null)return null;if(t.finishedWork=null,t.finishedLanes=0,i===t.current)throw Error(o(177));t.callbackNode=null,t.callbackPriority=0;var R=i.lanes|i.childLanes;if(vo(t,R),t===_n&&(jn=_n=null,sa=0),!(i.subtreeFlags&2064)&&!(i.flags&2064)||Ds||(Ds=!0,Mc(sn,function(){return Mu(),null})),R=(i.flags&15990)!==0,i.subtreeFlags&15990||R){R=lo.transition,lo.transition=null;var B=Zr;Zr=1;var ce=Xr;Xr|=4,hl.current=null,Qc(t,i),yc(i,t),xr(Uu),Nr=!!Bu,Uu=Bu=null,t.current=i,Jc(i,t,x),Qr(),Xr=ce,Zr=B,lo.transition=R}else t.current=i;if(Ds&&(Ds=!1,Di=t,Ns=x),R=t.pendingLanes,R===0&&(Li=null),fo(i.stateNode,v),Wa(t,Ft()),r!==null)for(v=t.onRecoverableError,i=0;i<r.length;i++)x=r[i],v(x.value,{componentStack:x.stack,digest:x.digest});if(Ls)throw Ls=!1,t=yl,yl=null,t;return Ns&1&&t.tag!==0&&Mu(),R=t.pendingLanes,R&1?t===ml?as++:(as=0,ml=t):as=0,Xa(),null}function Mu(){if(Di!==null){var t=Mo(Ns),r=lo.transition,i=Zr;try{if(lo.transition=null,Zr=16>t?16:t,Di===null)var v=!1;else{if(t=Di,Di=null,Ns=0,Xr&6)throw Error(o(331));var x=Xr;for(Xr|=4,zt=t.current;zt!==null;){var R=zt,B=R.child;if(zt.flags&16){var ce=R.deletions;if(ce!==null){for(var pe=0;pe<ce.length;pe++){var Be=ce[pe];for(zt=Be;zt!==null;){var at=zt;switch(at.tag){case 0:case 11:case 15:ts(8,at,R)}var ft=at.child;if(ft!==null)ft.return=at,zt=ft;else for(;zt!==null;){at=zt;var nt=at.sibling,jt=at.return;if(dc(at),at===Be){zt=null;break}if(nt!==null){nt.return=jt,zt=nt;break}zt=jt}}}var Kt=R.alternate;if(Kt!==null){var Xt=Kt.child;if(Xt!==null){Kt.child=null;do{var Ln=Xt.sibling;Xt.sibling=null,Xt=Ln}while(Xt!==null)}}zt=R}}if(R.subtreeFlags&2064&&B!==null)B.return=R,zt=B;else e:for(;zt!==null;){if(R=zt,R.flags&2048)switch(R.tag){case 0:case 11:case 15:ts(9,R,R.return)}var Pe=R.sibling;if(Pe!==null){Pe.return=R.return,zt=Pe;break e}zt=R.return}}var ye=t.current;for(zt=ye;zt!==null;){B=zt;var Me=B.child;if(B.subtreeFlags&2064&&Me!==null)Me.return=B,zt=Me;else e:for(B=ye;zt!==null;){if(ce=zt,ce.flags&2048)try{switch(ce.tag){case 0:case 11:case 15:ws(9,ce)}}catch(Jt){An(ce,ce.return,Jt)}if(ce===B){zt=null;break e}var St=ce.sibling;if(St!==null){St.return=ce.return,zt=St;break e}zt=ce.return}}if(Xr=x,Xa(),yn&&typeof yn.onPostCommitFiberRoot=="function")try{yn.onPostCommitFiberRoot(ln,t)}catch{}v=!0}return v}finally{Zr=i,lo.transition=r}}return!1}function Pc(t,r,i){r=Au(i,r),r=Gl(t,r,1),t=ti(t,r,1),r=wa(),t!==null&&(On(t,1,r),Wa(t,r))}function An(t,r,i){if(t.tag===3)Pc(t,t,i);else for(;r!==null;){if(r.tag===3){Pc(r,t,i);break}else if(r.tag===1){var v=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Li===null||!Li.has(v))){t=Au(i,t),t=Zl(r,t,1),r=ti(r,t,1),t=wa(),r!==null&&(On(r,1,t),Wa(r,t));break}}r=r.return}}function nf(t,r,i){var v=t.pingCache;v!==null&&v.delete(r),r=wa(),t.pingedLanes|=t.suspendedLanes&i,_n===t&&(sa&i)===i&&(Vn===4||Vn===3&&(sa&130023424)===sa&&500>Ft()-gl?nu(t,0):pl|=i),Wa(t,r)}function wc(t,r){r===0&&(t.mode&1?(r=wo,wo<<=1,!(wo&130023424)&&(wo=4194304)):r=1);var i=wa();t=Aa(t,r),t!==null&&(On(t,r,i),Wa(t,i))}function af(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),wc(t,i)}function of(t,r){var i=0;switch(t.tag){case 13:var v=t.stateNode,x=t.memoizedState;x!==null&&(i=x.retryLane);break;case 19:v=t.stateNode;break;default:throw Error(o(314))}v!==null&&v.delete(r),wc(t,i)}var bc;bc=function(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps||aa.current)Ha=!0;else{if(!(t.lanes&i)&&!(r.flags&128))return Ha=!1,Gc(t,r,i);Ha=!!(t.flags&131072)}else Ha=!1,fn&&r.flags&1048576&&xu(r,Su,r.index);switch(r.lanes=0,r.tag){case 2:var v=r.type;As(t,r),t=r.pendingProps;var x=kn(r,Hn.current);Ai(r,i),x=ko(null,r,v,t,x,i);var R=ri();return r.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Xn(v)?(R=!0,mu(r)):R=!1,r.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Pi(r),x.updater=Cu,r.stateNode=x,x._reactInternals=r,qu(r,v,t,i),r=al(null,r,v,!0,R,i)):(r.tag=0,fn&&R&&Eu(r),Pa(null,r,x,i),r=r.child),r;case 16:v=r.elementType;e:{switch(As(t,r),t=r.pendingProps,x=v._init,v=x(v._payload),r.type=v,x=r.tag=sf(v),t=Yn(v,t),x){case 0:r=nl(null,r,v,t,i);break e;case 1:r=rc(null,r,v,t,i);break e;case 11:r=Jl(null,r,v,t,i);break e;case 14:r=ql(null,r,v,Yn(v.type,t),i);break e}throw Error(o(306,v,""))}return r;case 0:return v=r.type,x=r.pendingProps,x=r.elementType===v?x:Yn(v,x),nl(t,r,v,x,i);case 1:return v=r.type,x=r.pendingProps,x=r.elementType===v?x:Yn(v,x),rc(t,r,v,x,i);case 3:e:{if(nc(r),t===null)throw Error(o(387));v=r.pendingProps,R=r.memoizedState,x=R.element,gs(t,r),Tu(r,v,null,i);var B=r.memoizedState;if(v=B.element,R.isDehydrated)if(R={element:v,isDehydrated:!1,cache:B.cache,pendingSuspenseBoundaries:B.pendingSuspenseBoundaries,transitions:B.transitions},r.updateQueue.baseState=R,r.memoizedState=R,r.flags&256){x=Au(Error(o(423)),r),r=ac(t,r,v,i,x);break e}else if(v!==x){x=Au(Error(o(424)),r),r=ac(t,r,v,i,x);break e}else for(ya=er(r.stateNode.containerInfo.firstChild),ga=r,fn=!0,Ua=null,i=oe(r,null,v,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ri(),v===x){r=ni(t,r,i);break e}Pa(t,r,v,i)}r=r.child}return r;case 5:return lr(r),t===null&&Xu(r),v=r.type,x=r.pendingProps,R=t!==null?t.memoizedProps:null,B=x.children,pu(v,x)?B=null:R!==null&&pu(v,R)&&(r.flags|=32),tc(t,r),Pa(t,r,B,i),r.child;case 6:return t===null&&Xu(r),null;case 13:return oc(t,r,i);case 4:return At(r,r.stateNode.containerInfo),v=r.pendingProps,t===null?r.child=ae(r,null,v,i):Pa(t,r,v,i),r.child;case 11:return v=r.type,x=r.pendingProps,x=r.elementType===v?x:Yn(v,x),Jl(t,r,v,x,i);case 7:return Pa(t,r,r.pendingProps,i),r.child;case 8:return Pa(t,r,r.pendingProps.children,i),r.child;case 12:return Pa(t,r,r.pendingProps.children,i),r.child;case 10:e:{if(v=r.type._context,x=r.pendingProps,R=r.memoizedProps,B=x.value,on($a,v._currentValue),v._currentValue=B,R!==null)if(ir(R.value,B)){if(R.children===x.children&&!aa.current){r=ni(t,r,i);break e}}else for(R=r.child,R!==null&&(R.return=r);R!==null;){var ce=R.dependencies;if(ce!==null){B=R.child;for(var pe=ce.firstContext;pe!==null;){if(pe.context===v){if(R.tag===1){pe=Ho(-1,i&-i),pe.tag=2;var Be=R.updateQueue;if(Be!==null){Be=Be.shared;var at=Be.pending;at===null?pe.next=pe:(pe.next=at.next,at.next=pe),Be.pending=pe}}R.lanes|=i,pe=R.alternate,pe!==null&&(pe.lanes|=i),Ji(R.return,i,r),ce.lanes|=i;break}pe=pe.next}}else if(R.tag===10)B=R.type===r.type?null:R.child;else if(R.tag===18){if(B=R.return,B===null)throw Error(o(341));B.lanes|=i,ce=B.alternate,ce!==null&&(ce.lanes|=i),Ji(B,i,r),B=R.sibling}else B=R.child;if(B!==null)B.return=R;else for(B=R;B!==null;){if(B===r){B=null;break}if(R=B.sibling,R!==null){R.return=B.return,B=R;break}B=B.return}R=B}Pa(t,r,x.children,i),r=r.child}return r;case 9:return x=r.type,v=r.pendingProps.children,Ai(r,i),x=Ca(x),v=v(x),r.flags|=1,Pa(t,r,v,i),r.child;case 14:return v=r.type,x=Yn(v,r.pendingProps),x=Yn(v.type,x),ql(t,r,v,x,i);case 15:return _l(t,r,r.type,r.pendingProps,i);case 17:return v=r.type,x=r.pendingProps,x=r.elementType===v?x:Yn(v,x),As(t,r),r.tag=1,Xn(v)?(t=!0,mu(r)):t=!1,Ai(r,i),Es(r,v,x),qu(r,v,x,i),al(null,r,v,!0,t,i);case 19:return uc(t,r,i);case 22:return ec(t,r,i)}throw Error(o(156,r.tag))};function Mc(t,r){return Ye(t,r)}function uf(t,r,i,v){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function co(t,r,i,v){return new uf(t,r,i,v)}function Tl(t){return t=t.prototype,!(!t||!t.isReactComponent)}function sf(t){if(typeof t=="function")return Tl(t)?1:0;if(t!=null){if(t=t.$$typeof,t===J)return 11;if(t===ue)return 14}return 2}function Fi(t,r){var i=t.alternate;return i===null?(i=co(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&14680064,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function Us(t,r,i,v,x,R){var B=2;if(v=t,typeof t=="function")Tl(t)&&(B=1);else if(typeof t=="string")B=5;else e:switch(t){case U:return ou(i.children,x,R,r);case K:B=8,x|=8;break;case G:return t=co(12,i,r,x|2),t.elementType=G,t.lanes=R,t;case se:return t=co(13,i,r,x),t.elementType=se,t.lanes=R,t;case Q:return t=co(19,i,r,x),t.elementType=Q,t.lanes=R,t;case k:return $s(i,x,R,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case te:B=10;break e;case de:B=9;break e;case J:B=11;break e;case ue:B=14;break e;case L:B=16,v=null;break e}throw Error(o(130,t==null?t:typeof t,""))}return r=co(B,i,r,x),r.elementType=t,r.type=v,r.lanes=R,r}function ou(t,r,i,v){return t=co(7,t,v,r),t.lanes=i,t}function $s(t,r,i,v){return t=co(22,t,v,r),t.elementType=k,t.lanes=i,t.stateNode={isHidden:!1},t}function Rl(t,r,i){return t=co(6,t,null,r),t.lanes=i,t}function Cl(t,r,i){return r=co(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function lf(t,r,i,v,x){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ii(0),this.expirationTimes=ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.identifierPrefix=v,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Al(t,r,i,v,x,R,B,ce,pe){return t=new lf(t,r,i,ce,pe),r===1?(r=1,R===!0&&(r|=8)):r=0,R=co(3,null,null,r),t.current=R,R.stateNode=t,R.memoizedState={element:v,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pi(R),t}function cf(t,r,i){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:v==null?null:""+v,children:t,containerInfo:r,implementation:i}}function Lc(t){if(!t)return uo;t=t._reactInternals;e:{if(la(t)!==t||t.tag!==1)throw Error(o(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(Xn(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(o(171))}if(t.tag===1){var i=t.type;if(Xn(i))return Vu(t,i,r)}return r}function Dc(t,r,i,v,x,R,B,ce,pe){return t=Al(i,v,!0,t,x,R,B,ce,pe),t.context=Lc(null),i=t.current,v=wa(),x=Ni(i),R=Ho(v,x),R.callback=r??null,ti(i,R,x),t.current.lanes=x,On(t,x,v),Wa(t,v),t}function zs(t,r,i,v){var x=r.current,R=wa(),B=Ni(x);return i=Lc(i),r.context===null?r.context=i:r.pendingContext=i,r=Ho(R,B),r.payload={element:t},v=v===void 0?null:v,v!==null&&(r.callback=v),t=ti(x,r,B),t!==null&&(Po(t,x,B,R),Ju(t,x,B)),B}function Hs(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Nc(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function Pl(t,r){Nc(t,r),(t=t.alternate)&&Nc(t,r)}function ff(){return null}var jc=typeof reportError=="function"?reportError:function(t){console.error(t)};function wl(t){this._internalRoot=t}ks.prototype.render=wl.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(o(409));zs(t,r,null,null)},ks.prototype.unmount=wl.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;ru(function(){zs(null,t,null,null)}),r[ja]=null}};function ks(t){this._internalRoot=t}ks.prototype.unstable_scheduleHydration=function(t){if(t){var r=ie();t={blockedOn:null,target:t,priority:r};for(var i=0;i<wt.length&&r!==0&&r<wt[i].priority;i++);wt.splice(i,0,t),i===0&&Pr(t)}};function bl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ws(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Fc(){}function df(t,r,i,v,x){if(x){if(typeof v=="function"){var R=v;v=function(){var Be=Hs(B);R.call(Be)}}var B=Dc(r,v,t,0,null,!1,!1,"",Fc);return t._reactRootContainer=B,t[ja]=B.current,du(t.nodeType===8?t.parentNode:t),ru(),B}for(;x=t.lastChild;)t.removeChild(x);if(typeof v=="function"){var ce=v;v=function(){var Be=Hs(pe);ce.call(Be)}}var pe=Al(t,0,!1,null,null,!1,!1,"",Fc);return t._reactRootContainer=pe,t[ja]=pe.current,du(t.nodeType===8?t.parentNode:t),ru(function(){zs(r,pe,i,v)}),pe}function Vs(t,r,i,v,x){var R=i._reactRootContainer;if(R){var B=R;if(typeof x=="function"){var ce=x;x=function(){var pe=Hs(B);ce.call(pe)}}zs(r,B,t,x)}else B=df(i,r,t,x,v);return Hs(B)}M=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var i=qa(r.pendingLanes);i!==0&&(mn(r,i|1),Wa(r,Ft()),!(Xr&6)&&(bu=Ft()+500,Xa()))}break;case 13:ru(function(){var v=Aa(t,1);if(v!==null){var x=wa();Po(v,t,1,x)}}),Pl(t,1)}},$=function(t){if(t.tag===13){var r=Aa(t,134217728);if(r!==null){var i=wa();Po(r,t,134217728,i)}Pl(t,134217728)}},Y=function(t){if(t.tag===13){var r=Ni(t),i=Aa(t,r);if(i!==null){var v=wa();Po(i,t,r,v)}Pl(t,r)}},ie=function(){return Zr},fe=function(t,r){var i=Zr;try{return Zr=t,r()}finally{Zr=i}},Dr=function(t,r,i){switch(r){case"input":if(Kr(t,i),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<i.length;r++){var v=i[r];if(v!==t&&v.form===t.form){var x=Bo(v);if(!x)throw Error(o(90));pr(v),Kr(v,x)}}}break;case"textarea":nr(t,i);break;case"select":r=i.value,r!=null&&qt(t,!!i.multiple,r,!1)}},Pt=El,Dt=ru;var vf={usingClientEntryPoint:!1,Events:[qo,xi,Bo,qe,Ot,El]},os={findFiberByHostInstance:Jo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},hf={bundleType:os.bundleType,version:os.version,rendererPackageName:os.rendererPackageName,rendererConfig:os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Ue(t),t===null?null:t.stateNode},findFiberByHostInstance:os.findFiberByHostInstance||ff,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ks=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ks.isDisabled&&Ks.supportsFiber)try{ln=Ks.inject(hf),yn=Ks}catch{}}g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vf,g.createPortal=function(t,r){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bl(r))throw Error(o(200));return cf(t,r,null,i)},g.createRoot=function(t,r){if(!bl(t))throw Error(o(299));var i=!1,v="",x=jc;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(v=r.identifierPrefix),r.onRecoverableError!==void 0&&(x=r.onRecoverableError)),r=Al(t,1,!1,null,null,i,!1,v,x),t[ja]=r.current,du(t.nodeType===8?t.parentNode:t),new wl(r)},g.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=Ue(r),t=t===null?null:t.stateNode,t},g.flushSync=function(t){return ru(t)},g.hydrate=function(t,r,i){if(!Ws(r))throw Error(o(200));return Vs(null,t,r,!0,i)},g.hydrateRoot=function(t,r,i){if(!bl(t))throw Error(o(405));var v=i!=null&&i.hydratedSources||null,x=!1,R="",B=jc;if(i!=null&&(i.unstable_strictMode===!0&&(x=!0),i.identifierPrefix!==void 0&&(R=i.identifierPrefix),i.onRecoverableError!==void 0&&(B=i.onRecoverableError)),r=Dc(r,null,t,1,i??null,x,!1,R,B),t[ja]=r.current,du(t),v)for(t=0;t<v.length;t++)i=v[t],x=i._getVersion,x=x(i._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[i,x]:r.mutableSourceEagerHydrationData.push(i,x);return new ks(r)},g.render=function(t,r,i){if(!Ws(r))throw Error(o(200));return Vs(null,t,r,!1,i)},g.unmountComponentAtNode=function(t){if(!Ws(t))throw Error(o(40));return t._reactRootContainer?(ru(function(){Vs(null,null,t,!1,function(){t._reactRootContainer=null,t[ja]=null})}),!0):!1},g.unstable_batchedUpdates=El,g.unstable_renderSubtreeIntoContainer=function(t,r,i,v){if(!Ws(i))throw Error(o(200));if(t==null||t._reactInternals===void 0)throw Error(o(38));return Vs(t,r,i,!1,v)},g.version="18.2.0-next-9e3b772b8-20220608"},20745:function(d,g,e){"use strict";var n=e(73935);if(!0)g.createRoot=n.createRoot,g.hydrateRoot=n.hydrateRoot;else var a},73935:function(d,g,e){"use strict";function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}n(),d.exports=e(64448)},69590:function(d){var g=typeof Element<"u",e=typeof Map=="function",n=typeof Set=="function",a=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(u,c){if(u===c)return!0;if(u&&c&&typeof u=="object"&&typeof c=="object"){if(u.constructor!==c.constructor)return!1;var f,l,s;if(Array.isArray(u)){if(f=u.length,f!=c.length)return!1;for(l=f;l--!==0;)if(!o(u[l],c[l]))return!1;return!0}var h;if(e&&u instanceof Map&&c instanceof Map){if(u.size!==c.size)return!1;for(h=u.entries();!(l=h.next()).done;)if(!c.has(l.value[0]))return!1;for(h=u.entries();!(l=h.next()).done;)if(!o(l.value[1],c.get(l.value[0])))return!1;return!0}if(n&&u instanceof Set&&c instanceof Set){if(u.size!==c.size)return!1;for(h=u.entries();!(l=h.next()).done;)if(!c.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(c)){if(f=u.length,f!=c.length)return!1;for(l=f;l--!==0;)if(u[l]!==c[l])return!1;return!0}if(u.constructor===RegExp)return u.source===c.source&&u.flags===c.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof c.valueOf=="function")return u.valueOf()===c.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof c.toString=="function")return u.toString()===c.toString();if(s=Object.keys(u),f=s.length,f!==Object.keys(c).length)return!1;for(l=f;l--!==0;)if(!Object.prototype.hasOwnProperty.call(c,s[l]))return!1;if(g&&u instanceof Element)return!1;for(l=f;l--!==0;)if(!((s[l]==="_owner"||s[l]==="__v"||s[l]==="__o")&&u.$$typeof)&&!o(u[s[l]],c[s[l]]))return!1;return!0}return u!==u&&c!==c}d.exports=function(c,f){try{return o(c,f)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}}},57930:function(d){var g=function(e,n){return typeof __deoptimization_sideEffect__<"u"&&__deoptimization_sideEffect__(e,n),n};d.exports=g},89250:function(d,g,e){"use strict";var n;e.r(g),e.d(g,{AbortedDeferredError:function(){return o.X3},Await:function(){return xe},MemoryRouter:function(){return mr},Navigate:function(){return _t},NavigationType:function(){return o.aU},Outlet:function(){return or},Route:function(){return Yr},Router:function(){return gr},RouterProvider:function(){return nr},Routes:function(){return un},UNSAFE_DataRouterContext:function(){return c},UNSAFE_DataRouterStateContext:function(){return f},UNSAFE_LocationContext:function(){return h},UNSAFE_NavigationContext:function(){return s},UNSAFE_RouteContext:function(){return p},UNSAFE_logV6DeprecationWarnings:function(){return qt},UNSAFE_mapRouteProperties:function(){return Gr},UNSAFE_useRouteId:function(){return _},UNSAFE_useRoutesImpl:function(){return te},createMemoryRouter:function(){return Dr},createPath:function(){return o.Ep},createRoutesFromChildren:function(){return kt},createRoutesFromElements:function(){return kt},defer:function(){return o.PQ},generatePath:function(){return o.Gn},isRouteErrorResponse:function(){return o.WK},json:function(){return o.AV},matchPath:function(){return o.LX},matchRoutes:function(){return o.fp},parsePath:function(){return o.cP},redirect:function(){return o.uX},redirectDocument:function(){return o.fZ},renderMatches:function(){return Et},replace:function(){return o.gx},resolvePath:function(){return o.i3},useActionData:function(){return Qe},useAsyncError:function(){return pr},useAsyncValue:function(){return Gt},useBlocker:function(){return Or},useHref:function(){return m},useInRouterContext:function(){return S},useLoaderData:function(){return De},useLocation:function(){return I},useMatch:function(){return O},useMatches:function(){return Oe},useNavigate:function(){return C},useNavigation:function(){return Z},useNavigationType:function(){return E},useOutlet:function(){return H},useOutletContext:function(){return D},useParams:function(){return U},useResolvedPath:function(){return K},useRevalidator:function(){return le},useRouteError:function(){return Tt},useRouteLoaderData:function(){return Ae},useRoutes:function(){return G}});var a=e(67294),o=e(44536);function u(){return u=Object.assign?Object.assign.bind():function(ge){for(var me=1;me<arguments.length;me++){var He=arguments[me];for(var qe in He)Object.prototype.hasOwnProperty.call(He,qe)&&(ge[qe]=He[qe])}return ge},u.apply(this,arguments)}const c=a.createContext(null),f=a.createContext(null),l=a.createContext(null),s=a.createContext(null),h=a.createContext(null),p=a.createContext({outlet:null,matches:[],isDataRoute:!1}),y=a.createContext(null);function m(ge,me){let{relative:He}=me===void 0?{}:me;S()||(0,o.J0)(!1);let{basename:qe,navigator:Ot}=a.useContext(s),{hash:Pt,pathname:Dt,search:Cr}=K(ge,{relative:He}),Hr=Dt;return qe!=="/"&&(Hr=Dt==="/"?qe:(0,o.RQ)([qe,Dt])),Ot.createHref({pathname:Hr,search:Cr,hash:Pt})}function S(){return a.useContext(h)!=null}function I(){return S()||(0,o.J0)(!1),a.useContext(h).location}function E(){return a.useContext(h).navigationType}function O(ge){S()||(0,o.J0)(!1);let{pathname:me}=I();return a.useMemo(()=>(0,o.LX)(ge,(0,o.Cd)(me)),[me,ge])}const T=null;function A(ge){a.useContext(s).static||a.useLayoutEffect(ge)}function C(){let{isDataRoute:ge}=a.useContext(p);return ge?Rr():w()}function w(){S()||(0,o.J0)(!1);let ge=a.useContext(c),{basename:me,future:He,navigator:qe}=a.useContext(s),{matches:Ot}=a.useContext(p),{pathname:Pt}=I(),Dt=JSON.stringify((0,o.cm)(Ot,He.v7_relativeSplatPath)),Cr=a.useRef(!1);return A(()=>{Cr.current=!0}),a.useCallback(function(Ir,Ar){if(Ar===void 0&&(Ar={}),!Cr.current)return;if(typeof Ir=="number"){qe.go(Ir);return}let $t=(0,o.pC)(Ir,JSON.parse(Dt),Pt,Ar.relative==="path");ge==null&&me!=="/"&&($t.pathname=$t.pathname==="/"?me:(0,o.RQ)([me,$t.pathname])),(Ar.replace?qe.replace:qe.push)($t,Ar.state,Ar)},[me,qe,Dt,Pt,ge])}const b=a.createContext(null);function D(){return a.useContext(b)}function H(ge){let me=a.useContext(p).outlet;return me&&a.createElement(b.Provider,{value:ge},me)}function U(){let{matches:ge}=a.useContext(p),me=ge[ge.length-1];return me?me.params:{}}function K(ge,me){let{relative:He}=me===void 0?{}:me,{future:qe}=a.useContext(s),{matches:Ot}=a.useContext(p),{pathname:Pt}=I(),Dt=JSON.stringify((0,o.cm)(Ot,qe.v7_relativeSplatPath));return a.useMemo(()=>(0,o.pC)(ge,JSON.parse(Dt),Pt,He==="path"),[ge,Dt,Pt,He])}function G(ge,me){return te(ge,me)}function te(ge,me,He,qe){S()||(0,o.J0)(!1);let{navigator:Ot}=a.useContext(s),{matches:Pt}=a.useContext(p),Dt=Pt[Pt.length-1],Cr=Dt?Dt.params:{},Hr=Dt?Dt.pathname:"/",Ir=Dt?Dt.pathnameBase:"/",Ar=Dt&&Dt.route,$t=I(),Fr;if(me){var zr;let Br=typeof me=="string"?(0,o.cP)(me):me;Ir==="/"||(zr=Br.pathname)!=null&&zr.startsWith(Ir)||(0,o.J0)(!1),Fr=Br}else Fr=$t;let en=Fr.pathname||"/",_r=en;if(Ir!=="/"){let Br=Ir.replace(/^\//,"").split("/");_r="/"+en.replace(/^\//,"").split("/").slice(Br.length).join("/")}let En=(0,o.fp)(ge,{pathname:_r}),Dn=ue(En&&En.map(Br=>Object.assign({},Br,{params:Object.assign({},Cr,Br.params),pathname:(0,o.RQ)([Ir,Ot.encodeLocation?Ot.encodeLocation(Br.pathname).pathname:Br.pathname]),pathnameBase:Br.pathnameBase==="/"?Ir:(0,o.RQ)([Ir,Ot.encodeLocation?Ot.encodeLocation(Br.pathnameBase).pathname:Br.pathnameBase])})),Pt,He,qe);return me&&Dn?a.createElement(h.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},Fr),navigationType:o.aU.Pop}},Dn):Dn}function de(){let ge=Tt(),me=(0,o.WK)(ge)?ge.status+" "+ge.statusText:ge instanceof Error?ge.message:JSON.stringify(ge),He=ge instanceof Error?ge.stack:null,qe="rgba(200,200,200, 0.5)",Ot={padding:"0.5rem",backgroundColor:qe},Pt={padding:"2px 4px",backgroundColor:qe},Dt=null;return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},me),He?a.createElement("pre",{style:Ot},He):null,Dt)}const J=a.createElement(de,null);class se extends a.Component{constructor(me){super(me),this.state={location:me.location,revalidation:me.revalidation,error:me.error}}static getDerivedStateFromError(me){return{error:me}}static getDerivedStateFromProps(me,He){return He.location!==me.location||He.revalidation!=="idle"&&me.revalidation==="idle"?{error:me.error,location:me.location,revalidation:me.revalidation}:{error:me.error!==void 0?me.error:He.error,location:He.location,revalidation:me.revalidation||He.revalidation}}componentDidCatch(me,He){console.error("React Router caught the following error during render",me,He)}render(){return this.state.error!==void 0?a.createElement(p.Provider,{value:this.props.routeContext},a.createElement(y.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Q(ge){let{routeContext:me,match:He,children:qe}=ge,Ot=a.useContext(c);return Ot&&Ot.static&&Ot.staticContext&&(He.route.errorElement||He.route.ErrorBoundary)&&(Ot.staticContext._deepestRenderedBoundaryId=He.route.id),a.createElement(p.Provider,{value:me},qe)}function ue(ge,me,He,qe){var Ot;if(me===void 0&&(me=[]),He===void 0&&(He=null),qe===void 0&&(qe=null),ge==null){var Pt;if(!He)return null;if(He.errors)ge=He.matches;else if((Pt=qe)!=null&&Pt.v7_partialHydration&&me.length===0&&!He.initialized&&He.matches.length>0)ge=He.matches;else return null}let Dt=ge,Cr=(Ot=He)==null?void 0:Ot.errors;if(Cr!=null){let Ar=Dt.findIndex($t=>$t.route.id&&(Cr==null?void 0:Cr[$t.route.id])!==void 0);Ar>=0||(0,o.J0)(!1),Dt=Dt.slice(0,Math.min(Dt.length,Ar+1))}let Hr=!1,Ir=-1;if(He&&qe&&qe.v7_partialHydration)for(let Ar=0;Ar<Dt.length;Ar++){let $t=Dt[Ar];if(($t.route.HydrateFallback||$t.route.hydrateFallbackElement)&&(Ir=Ar),$t.route.id){let{loaderData:Fr,errors:zr}=He,en=$t.route.loader&&Fr[$t.route.id]===void 0&&(!zr||zr[$t.route.id]===void 0);if($t.route.lazy||en){Hr=!0,Ir>=0?Dt=Dt.slice(0,Ir+1):Dt=[Dt[0]];break}}}return Dt.reduceRight((Ar,$t,Fr)=>{let zr,en=!1,_r=null,En=null;He&&(zr=Cr&&$t.route.id?Cr[$t.route.id]:void 0,_r=$t.route.errorElement||J,Hr&&(Ir<0&&Fr===0?(Kr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),en=!0,En=null):Ir===Fr&&(en=!0,En=$t.route.hydrateFallbackElement||null)));let Dn=me.concat(Dt.slice(0,Fr+1)),Br=()=>{let tn;return zr?tn=_r:en?tn=En:$t.route.Component?tn=a.createElement($t.route.Component,null):$t.route.element?tn=$t.route.element:tn=Ar,a.createElement(Q,{match:$t,routeContext:{outlet:Ar,matches:Dn,isDataRoute:He!=null},children:tn})};return He&&($t.route.ErrorBoundary||$t.route.errorElement||Fr===0)?a.createElement(se,{location:He.location,revalidation:He.revalidation,component:_r,error:zr,children:Br(),routeContext:{outlet:null,matches:Dn,isDataRoute:!0}}):Br()},null)}var L=function(ge){return ge.UseBlocker="useBlocker",ge.UseRevalidator="useRevalidator",ge.UseNavigateStable="useNavigate",ge}(L||{}),k=function(ge){return ge.UseBlocker="useBlocker",ge.UseLoaderData="useLoaderData",ge.UseActionData="useActionData",ge.UseRouteError="useRouteError",ge.UseNavigation="useNavigation",ge.UseRouteLoaderData="useRouteLoaderData",ge.UseMatches="useMatches",ge.UseRevalidator="useRevalidator",ge.UseNavigateStable="useNavigate",ge.UseRouteId="useRouteId",ge}(k||{});function F(ge){return ge+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function P(ge){let me=a.useContext(c);return me||(0,o.J0)(!1),me}function N(ge){let me=a.useContext(f);return me||(0,o.J0)(!1),me}function q(ge){let me=a.useContext(p);return me||(0,o.J0)(!1),me}function ve(ge){let me=q(ge),He=me.matches[me.matches.length-1];return He.route.id||(0,o.J0)(!1),He.route.id}function _(){return ve(k.UseRouteId)}function Z(){return N(k.UseNavigation).navigation}function le(){let ge=P(L.UseRevalidator),me=N(k.UseRevalidator);return a.useMemo(()=>({revalidate:ge.router.revalidate,state:me.revalidation}),[ge.router.revalidate,me.revalidation])}function Oe(){let{matches:ge,loaderData:me}=N(k.UseMatches);return a.useMemo(()=>ge.map(He=>(0,o.WS)(He,me)),[ge,me])}function De(){let ge=N(k.UseLoaderData),me=ve(k.UseLoaderData);if(ge.errors&&ge.errors[me]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+me+")");return}return ge.loaderData[me]}function Ae(ge){return N(k.UseRouteLoaderData).loaderData[ge]}function Qe(){let ge=N(k.UseActionData),me=ve(k.UseLoaderData);return ge.actionData?ge.actionData[me]:void 0}function Tt(){var ge;let me=a.useContext(y),He=N(k.UseRouteError),qe=ve(k.UseRouteError);return me!==void 0?me:(ge=He.errors)==null?void 0:ge[qe]}function Gt(){let ge=a.useContext(l);return ge==null?void 0:ge._data}function pr(){let ge=a.useContext(l);return ge==null?void 0:ge._error}let Zt=0;function Or(ge){let{router:me,basename:He}=P(L.UseBlocker),qe=N(k.UseBlocker),[Ot,Pt]=a.useState(""),Dt=a.useCallback(Cr=>{if(typeof ge!="function")return!!ge;if(He==="/")return ge(Cr);let{currentLocation:Hr,nextLocation:Ir,historyAction:Ar}=Cr;return ge({currentLocation:u({},Hr,{pathname:(0,o.Zn)(Hr.pathname,He)||Hr.pathname}),nextLocation:u({},Ir,{pathname:(0,o.Zn)(Ir.pathname,He)||Ir.pathname}),historyAction:Ar})},[He,ge]);return a.useEffect(()=>{let Cr=String(++Zt);return Pt(Cr),()=>me.deleteBlocker(Cr)},[me]),a.useEffect(()=>{Ot!==""&&me.getBlocker(Ot,Dt)},[me,Ot,Dt]),Ot&&qe.blockers.has(Ot)?qe.blockers.get(Ot):o.qp}function Rr(){let{router:ge}=P(L.UseNavigateStable),me=ve(k.UseNavigateStable),He=a.useRef(!1);return A(()=>{He.current=!0}),a.useCallback(function(Ot,Pt){Pt===void 0&&(Pt={}),He.current&&(typeof Ot=="number"?ge.navigate(Ot):ge.navigate(Ot,u({fromRouteId:me},Pt)))},[ge,me])}const Lr={};function Kr(ge,me,He){!me&&!Lr[ge]&&(Lr[ge]=!0)}const $r={};function cr(ge,me){$r[me]||($r[me]=!0,console.warn(me))}const Yt=(ge,me,He)=>cr(ge,"\u26A0\uFE0F React Router Future Flag Warning: "+me+". "+("You can use the `"+ge+"` future flag to opt-in early. ")+("For more information, see "+He+"."));function qt(ge,me){(ge==null?void 0:ge.v7_startTransition)===void 0&&Yt("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(ge==null?void 0:ge.v7_relativeSplatPath)===void 0&&(!me||!me.v7_relativeSplatPath)&&Yt("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),me&&(me.v7_fetcherPersist===void 0&&Yt("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),me.v7_normalizeFormMethod===void 0&&Yt("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),me.v7_partialHydration===void 0&&Yt("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),me.v7_skipActionErrorRevalidation===void 0&&Yt("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}const ht="startTransition",mt=(n||(n=e.t(a,2)))[ht];function nr(ge){let{fallbackElement:me,router:He,future:qe}=ge,[Ot,Pt]=a.useState(He.state),{v7_startTransition:Dt}=qe||{},Cr=a.useCallback($t=>{Dt&&mt?mt(()=>Pt($t)):Pt($t)},[Pt,Dt]);a.useLayoutEffect(()=>He.subscribe(Cr),[He,Cr]),a.useEffect(()=>{},[]);let Hr=a.useMemo(()=>({createHref:He.createHref,encodeLocation:He.encodeLocation,go:$t=>He.navigate($t),push:($t,Fr,zr)=>He.navigate($t,{state:Fr,preventScrollReset:zr==null?void 0:zr.preventScrollReset}),replace:($t,Fr,zr)=>He.navigate($t,{replace:!0,state:Fr,preventScrollReset:zr==null?void 0:zr.preventScrollReset})}),[He]),Ir=He.basename||"/",Ar=a.useMemo(()=>({router:He,navigator:Hr,static:!1,basename:Ir}),[He,Hr,Ir]);return a.useEffect(()=>qt(qe,He.future),[He,qe]),a.createElement(a.Fragment,null,a.createElement(c.Provider,{value:Ar},a.createElement(f.Provider,{value:Ot},a.createElement(gr,{basename:Ir,location:Ot.location,navigationType:Ot.historyAction,navigator:Hr,future:{v7_relativeSplatPath:He.future.v7_relativeSplatPath}},Ot.initialized||He.future.v7_partialHydration?a.createElement(kr,{routes:He.routes,future:He.future,state:Ot}):me))),null)}function kr(ge){let{routes:me,future:He,state:qe}=ge;return te(me,void 0,qe,He)}function mr(ge){let{basename:me,children:He,initialEntries:qe,initialIndex:Ot,future:Pt}=ge,Dt=a.useRef();Dt.current==null&&(Dt.current=(0,o.PP)({initialEntries:qe,initialIndex:Ot,v5Compat:!0}));let Cr=Dt.current,[Hr,Ir]=a.useState({action:Cr.action,location:Cr.location}),{v7_startTransition:Ar}=Pt||{},$t=a.useCallback(Fr=>{Ar&&mt?mt(()=>Ir(Fr)):Ir(Fr)},[Ir,Ar]);return a.useLayoutEffect(()=>Cr.listen($t),[Cr,$t]),a.useEffect(()=>qt(Pt),[Pt]),a.createElement(gr,{basename:me,children:He,location:Hr.location,navigationType:Hr.action,navigator:Cr,future:Pt})}function _t(ge){let{to:me,replace:He,state:qe,relative:Ot}=ge;S()||(0,o.J0)(!1);let{future:Pt,static:Dt}=a.useContext(s),{matches:Cr}=a.useContext(p),{pathname:Hr}=I(),Ir=C(),Ar=(0,o.pC)(me,(0,o.cm)(Cr,Pt.v7_relativeSplatPath),Hr,Ot==="path"),$t=JSON.stringify(Ar);return a.useEffect(()=>Ir(JSON.parse($t),{replace:He,state:qe,relative:Ot}),[Ir,$t,Ot,He,qe]),null}function or(ge){return H(ge.context)}function Yr(ge){(0,o.J0)(!1)}function gr(ge){let{basename:me="/",children:He=null,location:qe,navigationType:Ot=o.aU.Pop,navigator:Pt,static:Dt=!1,future:Cr}=ge;S()&&(0,o.J0)(!1);let Hr=me.replace(/^\/*/,"/"),Ir=a.useMemo(()=>({basename:Hr,navigator:Pt,static:Dt,future:u({v7_relativeSplatPath:!1},Cr)}),[Hr,Cr,Pt,Dt]);typeof qe=="string"&&(qe=(0,o.cP)(qe));let{pathname:Ar="/",search:$t="",hash:Fr="",state:zr=null,key:en="default"}=qe,_r=a.useMemo(()=>{let En=(0,o.Zn)(Ar,Hr);return En==null?null:{location:{pathname:En,search:$t,hash:Fr,state:zr,key:en},navigationType:Ot}},[Hr,Ar,$t,Fr,zr,en,Ot]);return _r==null?null:a.createElement(s.Provider,{value:Ir},a.createElement(h.Provider,{children:He,value:_r}))}function un(ge){let{children:me,location:He}=ge;return G(kt(me),He)}function xe(ge){let{children:me,errorElement:He,resolve:qe}=ge;return a.createElement(tt,{resolve:qe,errorElement:He},a.createElement(it,null,me))}var We=function(ge){return ge[ge.pending=0]="pending",ge[ge.success=1]="success",ge[ge.error=2]="error",ge}(We||{});const Ze=new Promise(()=>{});class tt extends a.Component{constructor(me){super(me),this.state={error:null}}static getDerivedStateFromError(me){return{error:me}}componentDidCatch(me,He){console.error("<Await> caught the following error during render",me,He)}render(){let{children:me,errorElement:He,resolve:qe}=this.props,Ot=null,Pt=We.pending;if(!(qe instanceof Promise))Pt=We.success,Ot=Promise.resolve(),Object.defineProperty(Ot,"_tracked",{get:()=>!0}),Object.defineProperty(Ot,"_data",{get:()=>qe});else if(this.state.error){Pt=We.error;let Dt=this.state.error;Ot=Promise.reject().catch(()=>{}),Object.defineProperty(Ot,"_tracked",{get:()=>!0}),Object.defineProperty(Ot,"_error",{get:()=>Dt})}else qe._tracked?(Ot=qe,Pt="_error"in Ot?We.error:"_data"in Ot?We.success:We.pending):(Pt=We.pending,Object.defineProperty(qe,"_tracked",{get:()=>!0}),Ot=qe.then(Dt=>Object.defineProperty(qe,"_data",{get:()=>Dt}),Dt=>Object.defineProperty(qe,"_error",{get:()=>Dt})));if(Pt===We.error&&Ot._error instanceof o.X3)throw Ze;if(Pt===We.error&&!He)throw Ot._error;if(Pt===We.error)return a.createElement(l.Provider,{value:Ot,children:He});if(Pt===We.success)return a.createElement(l.Provider,{value:Ot,children:me});throw Ot}}function it(ge){let{children:me}=ge,He=Gt(),qe=typeof me=="function"?me(He):me;return a.createElement(a.Fragment,null,qe)}function kt(ge,me){me===void 0&&(me=[]);let He=[];return a.Children.forEach(ge,(qe,Ot)=>{if(!a.isValidElement(qe))return;let Pt=[...me,Ot];if(qe.type===a.Fragment){He.push.apply(He,kt(qe.props.children,Pt));return}qe.type!==Yr&&(0,o.J0)(!1),!qe.props.index||!qe.props.children||(0,o.J0)(!1);let Dt={id:qe.props.id||Pt.join("-"),caseSensitive:qe.props.caseSensitive,element:qe.props.element,Component:qe.props.Component,index:qe.props.index,path:qe.props.path,loader:qe.props.loader,action:qe.props.action,errorElement:qe.props.errorElement,ErrorBoundary:qe.props.ErrorBoundary,hasErrorBoundary:qe.props.ErrorBoundary!=null||qe.props.errorElement!=null,shouldRevalidate:qe.props.shouldRevalidate,handle:qe.props.handle,lazy:qe.props.lazy};qe.props.children&&(Dt.children=kt(qe.props.children,Pt)),He.push(Dt)}),He}function Et(ge){return ue(ge)}function Gr(ge){let me={hasErrorBoundary:ge.ErrorBoundary!=null||ge.errorElement!=null};return ge.Component&&Object.assign(me,{element:a.createElement(ge.Component),Component:void 0}),ge.HydrateFallback&&Object.assign(me,{hydrateFallbackElement:a.createElement(ge.HydrateFallback),HydrateFallback:void 0}),ge.ErrorBoundary&&Object.assign(me,{errorElement:a.createElement(ge.ErrorBoundary),ErrorBoundary:void 0}),me}function Dr(ge,me){return(0,o.p7)({basename:me==null?void 0:me.basename,future:u({},me==null?void 0:me.future,{v7_prependBasename:!0}),history:(0,o.PP)({initialEntries:me==null?void 0:me.initialEntries,initialIndex:me==null?void 0:me.initialIndex}),hydrationData:me==null?void 0:me.hydrationData,routes:ge,mapRouteProperties:Gr,dataStrategy:me==null?void 0:me.dataStrategy,patchRoutesOnNavigation:me==null?void 0:me.patchRoutesOnNavigation}).initialize()}},44536:function(d,g,e){"use strict";e.d(g,{AV:function(){return Or},Cd:function(){return q},Ep:function(){return m},Gn:function(){return F},J0:function(){return l},LX:function(){return P},PP:function(){return u},PQ:function(){return qt},RQ:function(){return Tt},WK:function(){return mr},WS:function(){return b},X3:function(){return Kr},Zn:function(){return ve},aU:function(){return a},cP:function(){return S},cm:function(){return De},fZ:function(){return mt},fp:function(){return C},gx:function(){return nr},i3:function(){return _},p7:function(){return Gr},pC:function(){return Ae},qp:function(){return tt},uX:function(){return ht}});function n(){return n=Object.assign?Object.assign.bind():function(M){for(var $=1;$<arguments.length;$++){var Y=arguments[$];for(var ie in Y)Object.prototype.hasOwnProperty.call(Y,ie)&&(M[ie]=Y[ie])}return M},n.apply(this,arguments)}var a;(function(M){M.Pop="POP",M.Push="PUSH",M.Replace="REPLACE"})(a||(a={}));const o="popstate";function u(M){M===void 0&&(M={});let{initialEntries:$=["/"],initialIndex:Y,v5Compat:ie=!1}=M,fe;fe=$.map((Ve,xt)=>dt(Ve,typeof Ve=="string"?null:Ve.state,xt===0?"default":void 0));let Ce=Te(Y??fe.length-1),Ee=a.Pop,Ne=null;function Te(Ve){return Math.min(Math.max(Ve,0),fe.length-1)}function Ge(){return fe[Ce]}function dt(Ve,xt,ot){xt===void 0&&(xt=null);let Ut=y(fe?Ge().pathname:"/",Ve,xt,ot);return s(Ut.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(Ve)),Ut}function gt(Ve){return typeof Ve=="string"?Ve:m(Ve)}return{get index(){return Ce},get action(){return Ee},get location(){return Ge()},createHref:gt,createURL(Ve){return new URL(gt(Ve),"http://localhost")},encodeLocation(Ve){let xt=typeof Ve=="string"?S(Ve):Ve;return{pathname:xt.pathname||"",search:xt.search||"",hash:xt.hash||""}},push(Ve,xt){Ee=a.Push;let ot=dt(Ve,xt);Ce+=1,fe.splice(Ce,fe.length,ot),ie&&Ne&&Ne({action:Ee,location:ot,delta:1})},replace(Ve,xt){Ee=a.Replace;let ot=dt(Ve,xt);fe[Ce]=ot,ie&&Ne&&Ne({action:Ee,location:ot,delta:0})},go(Ve){Ee=a.Pop;let xt=Te(Ce+Ve),ot=fe[xt];Ce=xt,Ne&&Ne({action:Ee,location:ot,delta:Ve})},listen(Ve){return Ne=Ve,()=>{Ne=null}}}}function c(M){M===void 0&&(M={});function $(ie,fe){let{pathname:Ce,search:Ee,hash:Ne}=ie.location;return y("",{pathname:Ce,search:Ee,hash:Ne},fe.state&&fe.state.usr||null,fe.state&&fe.state.key||"default")}function Y(ie,fe){return typeof fe=="string"?fe:m(fe)}return I($,Y,null,M)}function f(M){M===void 0&&(M={});function $(fe,Ce){let{pathname:Ee="/",search:Ne="",hash:Te=""}=S(fe.location.hash.substr(1));return!Ee.startsWith("/")&&!Ee.startsWith(".")&&(Ee="/"+Ee),y("",{pathname:Ee,search:Ne,hash:Te},Ce.state&&Ce.state.usr||null,Ce.state&&Ce.state.key||"default")}function Y(fe,Ce){let Ee=fe.document.querySelector("base"),Ne="";if(Ee&&Ee.getAttribute("href")){let Te=fe.location.href,Ge=Te.indexOf("#");Ne=Ge===-1?Te:Te.slice(0,Ge)}return Ne+"#"+(typeof Ce=="string"?Ce:m(Ce))}function ie(fe,Ce){s(fe.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(Ce)+")")}return I($,Y,ie,M)}function l(M,$){if(M===!1||M===null||typeof M>"u")throw new Error($)}function s(M,$){if(!M){typeof console<"u"&&console.warn($);try{throw new Error($)}catch{}}}function h(){return Math.random().toString(36).substr(2,8)}function p(M,$){return{usr:M.state,key:M.key,idx:$}}function y(M,$,Y,ie){return Y===void 0&&(Y=null),n({pathname:typeof M=="string"?M:M.pathname,search:"",hash:""},typeof $=="string"?S($):$,{state:Y,key:$&&$.key||ie||h()})}function m(M){let{pathname:$="/",search:Y="",hash:ie=""}=M;return Y&&Y!=="?"&&($+=Y.charAt(0)==="?"?Y:"?"+Y),ie&&ie!=="#"&&($+=ie.charAt(0)==="#"?ie:"#"+ie),$}function S(M){let $={};if(M){let Y=M.indexOf("#");Y>=0&&($.hash=M.substr(Y),M=M.substr(0,Y));let ie=M.indexOf("?");ie>=0&&($.search=M.substr(ie),M=M.substr(0,ie)),M&&($.pathname=M)}return $}function I(M,$,Y,ie){ie===void 0&&(ie={});let{window:fe=document.defaultView,v5Compat:Ce=!1}=ie,Ee=fe.history,Ne=a.Pop,Te=null,Ge=dt();Ge==null&&(Ge=0,Ee.replaceState(n({},Ee.state,{idx:Ge}),""));function dt(){return(Ee.state||{idx:null}).idx}function gt(){Ne=a.Pop;let Ut=dt(),Pr=Ut==null?null:Ut-Ge;Ge=Ut,Te&&Te({action:Ne,location:ot.location,delta:Pr})}function wt(Ut,Pr){Ne=a.Push;let Lt=y(ot.location,Ut,Pr);Y&&Y(Lt,Ut),Ge=dt()+1;let yr=p(Lt,Ge),It=ot.createHref(Lt);try{Ee.pushState(yr,"",It)}catch(Wr){if(Wr instanceof DOMException&&Wr.name==="DataCloneError")throw Wr;fe.location.assign(It)}Ce&&Te&&Te({action:Ne,location:ot.location,delta:1})}function Ve(Ut,Pr){Ne=a.Replace;let Lt=y(ot.location,Ut,Pr);Y&&Y(Lt,Ut),Ge=dt();let yr=p(Lt,Ge),It=ot.createHref(Lt);Ee.replaceState(yr,"",It),Ce&&Te&&Te({action:Ne,location:ot.location,delta:0})}function xt(Ut){let Pr=fe.location.origin!=="null"?fe.location.origin:fe.location.href,Lt=typeof Ut=="string"?Ut:m(Ut);return Lt=Lt.replace(/ $/,"%20"),l(Pr,"No window.location.(origin|href) available to create URL for href: "+Lt),new URL(Lt,Pr)}let ot={get action(){return Ne},get location(){return M(fe,Ee)},listen(Ut){if(Te)throw new Error("A history only accepts one active listener");return fe.addEventListener(o,gt),Te=Ut,()=>{fe.removeEventListener(o,gt),Te=null}},createHref(Ut){return $(fe,Ut)},createURL:xt,encodeLocation(Ut){let Pr=xt(Ut);return{pathname:Pr.pathname,search:Pr.search,hash:Pr.hash}},push:wt,replace:Ve,go(Ut){return Ee.go(Ut)}};return ot}var E;(function(M){M.data="data",M.deferred="deferred",M.redirect="redirect",M.error="error"})(E||(E={}));const O=new Set(["lazy","caseSensitive","path","id","index","children"]);function T(M){return M.index===!0}function A(M,$,Y,ie){return Y===void 0&&(Y=[]),ie===void 0&&(ie={}),M.map((fe,Ce)=>{let Ee=[...Y,String(Ce)],Ne=typeof fe.id=="string"?fe.id:Ee.join("-");if(l(fe.index!==!0||!fe.children,"Cannot specify children on an index route"),l(!ie[Ne],'Found a route id collision on id "'+Ne+`". Route id's must be globally unique within Data Router usages`),T(fe)){let Te=n({},fe,$(fe),{id:Ne});return ie[Ne]=Te,Te}else{let Te=n({},fe,$(fe),{id:Ne,children:void 0});return ie[Ne]=Te,fe.children&&(Te.children=A(fe.children,$,Ee,ie)),Te}})}function C(M,$,Y){return Y===void 0&&(Y="/"),w(M,$,Y,!1)}function w(M,$,Y,ie){let fe=typeof $=="string"?S($):$,Ce=ve(fe.pathname||"/",Y);if(Ce==null)return null;let Ee=D(M);U(Ee);let Ne=null;for(let Te=0;Ne==null&&Te<Ee.length;++Te){let Ge=q(Ce);Ne=k(Ee[Te],Ge,ie)}return Ne}function b(M,$){let{route:Y,pathname:ie,params:fe}=M;return{id:Y.id,pathname:ie,params:fe,data:$[Y.id],handle:Y.handle}}function D(M,$,Y,ie){$===void 0&&($=[]),Y===void 0&&(Y=[]),ie===void 0&&(ie="");let fe=(Ce,Ee,Ne)=>{let Te={relativePath:Ne===void 0?Ce.path||"":Ne,caseSensitive:Ce.caseSensitive===!0,childrenIndex:Ee,route:Ce};Te.relativePath.startsWith("/")&&(l(Te.relativePath.startsWith(ie),'Absolute route path "'+Te.relativePath+'" nested under path '+('"'+ie+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),Te.relativePath=Te.relativePath.slice(ie.length));let Ge=Tt([ie,Te.relativePath]),dt=Y.concat(Te);Ce.children&&Ce.children.length>0&&(l(Ce.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+Ge+'".')),D(Ce.children,$,dt,Ge)),!(Ce.path==null&&!Ce.index)&&$.push({path:Ge,score:ue(Ge,Ce.index),routesMeta:dt})};return M.forEach((Ce,Ee)=>{var Ne;if(Ce.path===""||!((Ne=Ce.path)!=null&&Ne.includes("?")))fe(Ce,Ee);else for(let Te of H(Ce.path))fe(Ce,Ee,Te)}),$}function H(M){let $=M.split("/");if($.length===0)return[];let[Y,...ie]=$,fe=Y.endsWith("?"),Ce=Y.replace(/\?$/,"");if(ie.length===0)return fe?[Ce,""]:[Ce];let Ee=H(ie.join("/")),Ne=[];return Ne.push(...Ee.map(Te=>Te===""?Ce:[Ce,Te].join("/"))),fe&&Ne.push(...Ee),Ne.map(Te=>M.startsWith("/")&&Te===""?"/":Te)}function U(M){M.sort(($,Y)=>$.score!==Y.score?Y.score-$.score:L($.routesMeta.map(ie=>ie.childrenIndex),Y.routesMeta.map(ie=>ie.childrenIndex)))}const K=/^:[\w-]+$/,G=3,te=2,de=1,J=10,se=-2,Q=M=>M==="*";function ue(M,$){let Y=M.split("/"),ie=Y.length;return Y.some(Q)&&(ie+=se),$&&(ie+=te),Y.filter(fe=>!Q(fe)).reduce((fe,Ce)=>fe+(K.test(Ce)?G:Ce===""?de:J),ie)}function L(M,$){return M.length===$.length&&M.slice(0,-1).every((ie,fe)=>ie===$[fe])?M[M.length-1]-$[$.length-1]:0}function k(M,$,Y){Y===void 0&&(Y=!1);let{routesMeta:ie}=M,fe={},Ce="/",Ee=[];for(let Ne=0;Ne<ie.length;++Ne){let Te=ie[Ne],Ge=Ne===ie.length-1,dt=Ce==="/"?$:$.slice(Ce.length)||"/",gt=P({path:Te.relativePath,caseSensitive:Te.caseSensitive,end:Ge},dt),wt=Te.route;if(!gt&&Ge&&Y&&!ie[ie.length-1].route.index&&(gt=P({path:Te.relativePath,caseSensitive:Te.caseSensitive,end:!1},dt)),!gt)return null;Object.assign(fe,gt.params),Ee.push({params:fe,pathname:Tt([Ce,gt.pathname]),pathnameBase:Gt(Tt([Ce,gt.pathnameBase])),route:wt}),gt.pathnameBase!=="/"&&(Ce=Tt([Ce,gt.pathnameBase]))}return Ee}function F(M,$){$===void 0&&($={});let Y=M;Y.endsWith("*")&&Y!=="*"&&!Y.endsWith("/*")&&(s(!1,'Route path "'+Y+'" will be treated as if it were '+('"'+Y.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+Y.replace(/\*$/,"/*")+'".')),Y=Y.replace(/\*$/,"/*"));const ie=Y.startsWith("/")?"/":"",fe=Ee=>Ee==null?"":typeof Ee=="string"?Ee:String(Ee),Ce=Y.split(/\/+/).map((Ee,Ne,Te)=>{if(Ne===Te.length-1&&Ee==="*")return fe($["*"]);const dt=Ee.match(/^:([\w-]+)(\??)$/);if(dt){const[,gt,wt]=dt;let Ve=$[gt];return l(wt==="?"||Ve!=null,'Missing ":'+gt+'" param'),fe(Ve)}return Ee.replace(/\?$/g,"")}).filter(Ee=>!!Ee);return ie+Ce.join("/")}function P(M,$){typeof M=="string"&&(M={path:M,caseSensitive:!1,end:!0});let[Y,ie]=N(M.path,M.caseSensitive,M.end),fe=$.match(Y);if(!fe)return null;let Ce=fe[0],Ee=Ce.replace(/(.)\/+$/,"$1"),Ne=fe.slice(1);return{params:ie.reduce((Ge,dt,gt)=>{let{paramName:wt,isOptional:Ve}=dt;if(wt==="*"){let ot=Ne[gt]||"";Ee=Ce.slice(0,Ce.length-ot.length).replace(/(.)\/+$/,"$1")}const xt=Ne[gt];return Ve&&!xt?Ge[wt]=void 0:Ge[wt]=(xt||"").replace(/%2F/g,"/"),Ge},{}),pathname:Ce,pathnameBase:Ee,pattern:M}}function N(M,$,Y){$===void 0&&($=!1),Y===void 0&&(Y=!0),s(M==="*"||!M.endsWith("*")||M.endsWith("/*"),'Route path "'+M+'" will be treated as if it were '+('"'+M.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+M.replace(/\*$/,"/*")+'".'));let ie=[],fe="^"+M.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(Ee,Ne,Te)=>(ie.push({paramName:Ne,isOptional:Te!=null}),Te?"/?([^\\/]+)?":"/([^\\/]+)"));return M.endsWith("*")?(ie.push({paramName:"*"}),fe+=M==="*"||M==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):Y?fe+="\\/*$":M!==""&&M!=="/"&&(fe+="(?:(?=\\/|$))"),[new RegExp(fe,$?void 0:"i"),ie]}function q(M){try{return M.split("/").map($=>decodeURIComponent($).replace(/\//g,"%2F")).join("/")}catch($){return s(!1,'The URL path "'+M+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+$+").")),M}}function ve(M,$){if($==="/")return M;if(!M.toLowerCase().startsWith($.toLowerCase()))return null;let Y=$.endsWith("/")?$.length-1:$.length,ie=M.charAt(Y);return ie&&ie!=="/"?null:M.slice(Y)||"/"}function _(M,$){$===void 0&&($="/");let{pathname:Y,search:ie="",hash:fe=""}=typeof M=="string"?S(M):M;return{pathname:Y?Y.startsWith("/")?Y:Z(Y,$):$,search:pr(ie),hash:Zt(fe)}}function Z(M,$){let Y=$.replace(/\/+$/,"").split("/");return M.split("/").forEach(fe=>{fe===".."?Y.length>1&&Y.pop():fe!=="."&&Y.push(fe)}),Y.length>1?Y.join("/"):"/"}function le(M,$,Y,ie){return"Cannot include a '"+M+"' character in a manually specified "+("`to."+$+"` field ["+JSON.stringify(ie)+"]. Please separate it out to the ")+("`to."+Y+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Oe(M){return M.filter(($,Y)=>Y===0||$.route.path&&$.route.path.length>0)}function De(M,$){let Y=Oe(M);return $?Y.map((ie,fe)=>fe===Y.length-1?ie.pathname:ie.pathnameBase):Y.map(ie=>ie.pathnameBase)}function Ae(M,$,Y,ie){ie===void 0&&(ie=!1);let fe;typeof M=="string"?fe=S(M):(fe=n({},M),l(!fe.pathname||!fe.pathname.includes("?"),le("?","pathname","search",fe)),l(!fe.pathname||!fe.pathname.includes("#"),le("#","pathname","hash",fe)),l(!fe.search||!fe.search.includes("#"),le("#","search","hash",fe)));let Ce=M===""||fe.pathname==="",Ee=Ce?"/":fe.pathname,Ne;if(Ee==null)Ne=Y;else{let gt=$.length-1;if(!ie&&Ee.startsWith("..")){let wt=Ee.split("/");for(;wt[0]==="..";)wt.shift(),gt-=1;fe.pathname=wt.join("/")}Ne=gt>=0?$[gt]:"/"}let Te=_(fe,Ne),Ge=Ee&&Ee!=="/"&&Ee.endsWith("/"),dt=(Ce||Ee===".")&&Y.endsWith("/");return!Te.pathname.endsWith("/")&&(Ge||dt)&&(Te.pathname+="/"),Te}function Qe(M){return M===""||M.pathname===""?"/":typeof M=="string"?S(M).pathname:M.pathname}const Tt=M=>M.join("/").replace(/\/\/+/g,"/"),Gt=M=>M.replace(/\/+$/,"").replace(/^\/*/,"/"),pr=M=>!M||M==="?"?"":M.startsWith("?")?M:"?"+M,Zt=M=>!M||M==="#"?"":M.startsWith("#")?M:"#"+M,Or=function($,Y){Y===void 0&&(Y={});let ie=typeof Y=="number"?{status:Y}:Y,fe=new Headers(ie.headers);return fe.has("Content-Type")||fe.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify($),n({},ie,{headers:fe}))};class Rr{constructor($,Y){this.type="DataWithResponseInit",this.data=$,this.init=Y||null}}function Lr(M,$){return new Rr(M,typeof $=="number"?{status:$}:$)}class Kr extends Error{}class $r{constructor($,Y){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],l($&&typeof $=="object"&&!Array.isArray($),"defer() only accepts plain objects");let ie;this.abortPromise=new Promise((Ce,Ee)=>ie=Ee),this.controller=new AbortController;let fe=()=>ie(new Kr("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",fe),this.controller.signal.addEventListener("abort",fe),this.data=Object.entries($).reduce((Ce,Ee)=>{let[Ne,Te]=Ee;return Object.assign(Ce,{[Ne]:this.trackPromise(Ne,Te)})},{}),this.done&&this.unlistenAbortSignal(),this.init=Y}trackPromise($,Y){if(!(Y instanceof Promise))return Y;this.deferredKeys.push($),this.pendingKeysSet.add($);let ie=Promise.race([Y,this.abortPromise]).then(fe=>this.onSettle(ie,$,void 0,fe),fe=>this.onSettle(ie,$,fe));return ie.catch(()=>{}),Object.defineProperty(ie,"_tracked",{get:()=>!0}),ie}onSettle($,Y,ie,fe){if(this.controller.signal.aborted&&ie instanceof Kr)return this.unlistenAbortSignal(),Object.defineProperty($,"_error",{get:()=>ie}),Promise.reject(ie);if(this.pendingKeysSet.delete(Y),this.done&&this.unlistenAbortSignal(),ie===void 0&&fe===void 0){let Ce=new Error('Deferred data for key "'+Y+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty($,"_error",{get:()=>Ce}),this.emit(!1,Y),Promise.reject(Ce)}return fe===void 0?(Object.defineProperty($,"_error",{get:()=>ie}),this.emit(!1,Y),Promise.reject(ie)):(Object.defineProperty($,"_data",{get:()=>fe}),this.emit(!1,Y),fe)}emit($,Y){this.subscribers.forEach(ie=>ie($,Y))}subscribe($){return this.subscribers.add($),()=>this.subscribers.delete($)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach(($,Y)=>this.pendingKeysSet.delete(Y)),this.emit(!0)}async resolveData($){let Y=!1;if(!this.done){let ie=()=>this.cancel();$.addEventListener("abort",ie),Y=await new Promise(fe=>{this.subscribe(Ce=>{$.removeEventListener("abort",ie),(Ce||this.done)&&fe(Ce)})})}return Y}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return l(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(($,Y)=>{let[ie,fe]=Y;return Object.assign($,{[ie]:Yt(fe)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function cr(M){return M instanceof Promise&&M._tracked===!0}function Yt(M){if(!cr(M))return M;if(M._error)throw M._error;return M._data}const qt=function($,Y){Y===void 0&&(Y={});let ie=typeof Y=="number"?{status:Y}:Y;return new $r($,ie)},ht=function($,Y){Y===void 0&&(Y=302);let ie=Y;typeof ie=="number"?ie={status:ie}:typeof ie.status>"u"&&(ie.status=302);let fe=new Headers(ie.headers);return fe.set("Location",$),new Response(null,n({},ie,{headers:fe}))},mt=(M,$)=>{let Y=ht(M,$);return Y.headers.set("X-Remix-Reload-Document","true"),Y},nr=(M,$)=>{let Y=ht(M,$);return Y.headers.set("X-Remix-Replace","true"),Y};class kr{constructor($,Y,ie,fe){fe===void 0&&(fe=!1),this.status=$,this.statusText=Y||"",this.internal=fe,ie instanceof Error?(this.data=ie.toString(),this.error=ie):this.data=ie}}function mr(M){return M!=null&&typeof M.status=="number"&&typeof M.statusText=="string"&&typeof M.internal=="boolean"&&"data"in M}const _t=["post","put","patch","delete"],or=new Set(_t),Yr=["get",..._t],gr=new Set(Yr),un=new Set([301,302,303,307,308]),xe=new Set([307,308]),We={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ze={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tt={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},it=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kt=M=>({hasErrorBoundary:!!M.hasErrorBoundary}),Et="remix-router-transitions";function Gr(M){const $=M.window?M.window:typeof window<"u"?window:void 0,Y=typeof $<"u"&&typeof $.document<"u"&&typeof $.document.createElement<"u",ie=!Y;l(M.routes.length>0,"You must provide a non-empty routes array to createRouter");let fe;if(M.mapRouteProperties)fe=M.mapRouteProperties;else if(M.detectErrorBoundary){let he=M.detectErrorBoundary;fe=Ie=>({hasErrorBoundary:he(Ie)})}else fe=kt;let Ce={},Ee=A(M.routes,fe,void 0,Ce),Ne,Te=M.basename||"/",Ge=M.dataStrategy||_r,dt=M.patchRoutesOnNavigation,gt=n({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},M.future),wt=null,Ve=new Set,xt=null,ot=null,Ut=null,Pr=M.hydrationData!=null,Lt=C(Ee,M.history.location,Te),yr=null;if(Lt==null&&!dt){let he=Ft(404,{pathname:M.history.location.pathname}),{matches:Ie,route:je}=Qr(Ee);Lt=Ie,yr={[je.id]:he}}Lt&&!M.hydrationData&&ta(Lt,Ee,M.history.location.pathname).active&&(Lt=null);let It;if(Lt)if(Lt.some(he=>he.route.lazy))It=!1;else if(!Lt.some(he=>he.route.loader))It=!0;else if(gt.v7_partialHydration){let he=M.hydrationData?M.hydrationData.loaderData:null,Ie=M.hydrationData?M.hydrationData.errors:null;if(Ie){let je=Lt.findIndex(Je=>Ie[Je.route.id]!==void 0);It=Lt.slice(0,je+1).every(Je=>!Hr(Je.route,he,Ie))}else It=Lt.every(je=>!Hr(je.route,he,Ie))}else It=M.hydrationData!=null;else if(It=!1,Lt=[],gt.v7_partialHydration){let he=ta(null,Ee,M.history.location.pathname);he.active&&he.matches&&(Lt=he.matches)}let Wr,Fe={historyAction:M.history.action,location:M.history.location,matches:Lt,initialized:It,navigation:We,restoreScrollPosition:M.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:M.hydrationData&&M.hydrationData.loaderData||{},actionData:M.hydrationData&&M.hydrationData.actionData||null,errors:M.hydrationData&&M.hydrationData.errors||yr,fetchers:new Map,blockers:new Map},ar=a.Pop,Nr=!1,jr,pn=!1,Jr=new Map,Bn=null,Nn=!1,Ia=!1,Un=[],eo=new Set,gn=new Map,ho=0,$n=-1,Ka=new Map,ba=new Set,Rn=new Map,Ma=new Map,fa=new Set,da=new Map,to=new Map,po;function ui(){if(wt=M.history.listen(he=>{let{action:Ie,location:je,delta:Je}=he;if(po){po(),po=void 0;return}s(to.size===0||Je!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let z=So({currentLocation:Fe.location,nextLocation:je,historyAction:Ie});if(z&&Je!=null){let ee=new Promise(X=>{po=X});M.history.go(Je*-1),mo(z,{state:"blocked",location:je,proceed(){mo(z,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),ee.then(()=>M.history.go(Je))},reset(){let X=new Map(Fe.blockers);X.set(z,tt),wn({blockers:X})}});return}return Ta(Ie,je)}),Y){Zr($,Jr);let he=()=>Mo($,Jr);$.addEventListener("pagehide",he),Bn=()=>$.removeEventListener("pagehide",he)}return Fe.initialized||Ta(a.Pop,Fe.location,{initialHydration:!0}),Wr}function Lo(){wt&&wt(),Bn&&Bn(),Ve.clear(),jr&&jr.abort(),Fe.fetchers.forEach((he,Ie)=>Fo(Ie)),Fe.blockers.forEach((he,Ie)=>Vi(Ie))}function Zo(he){return Ve.add(he),()=>Ve.delete(he)}function wn(he,Ie){Ie===void 0&&(Ie={}),Fe=n({},Fe,he);let je=[],Je=[];gt.v7_fetcherPersist&&Fe.fetchers.forEach((z,ee)=>{z.state==="idle"&&(fa.has(ee)?Je.push(ee):je.push(ee))}),[...Ve].forEach(z=>z(Fe,{deletedFetchers:Je,viewTransitionOpts:Ie.viewTransitionOpts,flushSync:Ie.flushSync===!0})),gt.v7_fetcherPersist&&(je.forEach(z=>Fe.fetchers.delete(z)),Je.forEach(z=>Fo(z)))}function go(he,Ie,je){var Je,z;let{flushSync:ee}=je===void 0?{}:je,X=Fe.actionData!=null&&Fe.navigation.formMethod!=null&&Fn(Fe.navigation.formMethod)&&Fe.navigation.state==="loading"&&((Je=he.state)==null?void 0:Je._isRedirect)!==!0,re;Ie.actionData?Object.keys(Ie.actionData).length>0?re=Ie.actionData:re=null:X?re=Fe.actionData:re=null;let ne=Ie.loaderData?Ye(Fe.loaderData,Ie.loaderData,Ie.matches||[],Ie.errors):Fe.loaderData,Se=Fe.blockers;Se.size>0&&(Se=new Map(Se),Se.forEach((ke,yt)=>Se.set(yt,tt)));let Le=Nr===!0||Fe.navigation.formMethod!=null&&Fn(Fe.navigation.formMethod)&&((z=he.state)==null?void 0:z._isRedirect)!==!0;Ne&&(Ee=Ne,Ne=void 0),Nn||ar===a.Pop||(ar===a.Push?M.history.push(he,he.state):ar===a.Replace&&M.history.replace(he,he.state));let ze;if(ar===a.Pop){let ke=Jr.get(Fe.location.pathname);ke&&ke.has(he.pathname)?ze={currentLocation:Fe.location,nextLocation:he}:Jr.has(he.pathname)&&(ze={currentLocation:he,nextLocation:Fe.location})}else if(pn){let ke=Jr.get(Fe.location.pathname);ke?ke.add(he.pathname):(ke=new Set([he.pathname]),Jr.set(Fe.location.pathname,ke)),ze={currentLocation:Fe.location,nextLocation:he}}wn(n({},Ie,{actionData:re,loaderData:ne,historyAction:ar,location:he,initialized:!0,navigation:We,revalidation:"idle",restoreScrollPosition:di(he,Ie.matches||Fe.matches),preventScrollReset:Le,blockers:Se}),{viewTransitionOpts:ze,flushSync:ee===!0}),ar=a.Pop,Nr=!1,pn=!1,Nn=!1,Ia=!1,Un=[]}async function $i(he,Ie){if(typeof he=="number"){M.history.go(he);return}let je=Ot(Fe.location,Fe.matches,Te,gt.v7_prependBasename,he,gt.v7_relativeSplatPath,Ie==null?void 0:Ie.fromRouteId,Ie==null?void 0:Ie.relative),{path:Je,submission:z,error:ee}=Pt(gt.v7_normalizeFormMethod,!1,je,Ie),X=Fe.location,re=y(Fe.location,Je,Ie&&Ie.state);re=n({},re,M.history.encodeLocation(re));let ne=Ie&&Ie.replace!=null?Ie.replace:void 0,Se=a.Push;ne===!0?Se=a.Replace:ne===!1||z!=null&&Fn(z.formMethod)&&z.formAction===Fe.location.pathname+Fe.location.search&&(Se=a.Replace);let Le=Ie&&"preventScrollReset"in Ie?Ie.preventScrollReset===!0:void 0,ze=(Ie&&Ie.flushSync)===!0,ke=So({currentLocation:X,nextLocation:re,historyAction:Se});if(ke){mo(ke,{state:"blocked",location:re,proceed(){mo(ke,{state:"proceeding",proceed:void 0,reset:void 0,location:re}),$i(he,Ie)},reset(){let yt=new Map(Fe.blockers);yt.set(ke,tt),wn({blockers:yt})}});return}return await Ta(Se,re,{submission:z,pendingError:ee,preventScrollReset:Le,replace:Ie&&Ie.replace,enableViewTransition:Ie&&Ie.viewTransition,flushSync:ze})}function Do(){if(jo(),wn({revalidation:"loading"}),Fe.navigation.state!=="submitting"){if(Fe.navigation.state==="idle"){Ta(Fe.historyAction,Fe.location,{startUninterruptedRevalidation:!0});return}Ta(ar||Fe.historyAction,Fe.navigation.location,{overrideNavigation:Fe.navigation,enableViewTransition:pn===!0})}}async function Ta(he,Ie,je){jr&&jr.abort(),jr=null,ar=he,Nn=(je&&je.startUninterruptedRevalidation)===!0,no(Fe.location,Fe.matches),Nr=(je&&je.preventScrollReset)===!0,pn=(je&&je.enableViewTransition)===!0;let Je=Ne||Ee,z=je&&je.overrideNavigation,ee=C(Je,Ie,Te),X=(je&&je.flushSync)===!0,re=ta(ee,Je,Ie.pathname);if(re.active&&re.matches&&(ee=re.matches),!ee){let{error:st,notFoundMatches:lt,route:ut}=ci(Ie.pathname);go(Ie,{matches:lt,loaderData:{},errors:{[ut.id]:st}},{flushSync:X});return}if(Fe.initialized&&!Ia&&et(Fe.location,Ie)&&!(je&&je.submission&&Fn(je.submission.formMethod))){go(Ie,{matches:ee},{flushSync:X});return}jr=new AbortController;let ne=Ea(M.history,Ie,jr.signal,je&&je.submission),Se;if(je&&je.pendingError)Se=[Ct(ee).route.id,{type:E.error,error:je.pendingError}];else if(je&&je.submission&&Fn(je.submission.formMethod)){let st=await iu(ne,Ie,je.submission,ee,re.active,{replace:je.replace,flushSync:X});if(st.shortCircuited)return;if(st.pendingActionResult){let[lt,ut]=st.pendingActionResult;if(ln(ut)&&mr(ut.error)&&ut.error.status===404){jr=null,go(Ie,{matches:st.matches,loaderData:{},errors:{[lt]:ut.error}});return}}ee=st.matches||ee,Se=st.pendingActionResult,z=_a(Ie,je.submission),X=!1,re.active=!1,ne=Ea(M.history,ne.url,ne.signal)}let{shortCircuited:Le,matches:ze,loaderData:ke,errors:yt}=await Ga(ne,Ie,ee,re.active,z,je&&je.submission,je&&je.fetcherSubmission,je&&je.replace,je&&je.initialHydration===!0,X,Se);Le||(jr=null,go(Ie,n({matches:ze||ee},fr(Se),{loaderData:ke,errors:yt})))}async function iu(he,Ie,je,Je,z,ee){ee===void 0&&(ee={}),jo();let X=ii(Ie,je);if(wn({navigation:X},{flushSync:ee.flushSync===!0}),z){let Se=await Qo(Je,Ie.pathname,he.signal);if(Se.type==="aborted")return{shortCircuited:!0};if(Se.type==="error"){let Le=Ct(Se.partialMatches).route.id;return{matches:Se.partialMatches,pendingActionResult:[Le,{type:E.error,error:Se.error}]}}else if(Se.matches)Je=Se.matches;else{let{notFoundMatches:Le,error:ze,route:ke}=ci(Ie.pathname);return{matches:Le,pendingActionResult:[ke.id,{type:E.error,error:ze}]}}}let re,ne=Va(Je,Ie);if(!ne.route.action&&!ne.route.lazy)re={type:E.error,error:Ft(405,{method:he.method,pathname:Ie.pathname,routeId:ne.route.id})};else if(re=(await yo("action",Fe,he,[ne],Je,null))[ne.route.id],he.signal.aborted)return{shortCircuited:!0};if(yn(re)){let Se;return ee&&ee.replace!=null?Se=ee.replace:Se=la(re.response.headers.get("Location"),new URL(he.url),Te)===Fe.location.pathname+Fe.location.search,await ro(he,re,!0,{submission:je,replace:Se}),{shortCircuited:!0}}if(Kn(re))throw Ft(400,{type:"defer-action"});if(ln(re)){let Se=Ct(Je,ne.route.id);return(ee&&ee.replace)!==!0&&(ar=a.Push),{matches:Je,pendingActionResult:[Se.route.id,re]}}return{matches:Je,pendingActionResult:[ne.route.id,re]}}async function Ga(he,Ie,je,Je,z,ee,X,re,ne,Se,Le){let ze=z||_a(Ie,ee),ke=ee||X||Go(ze),yt=!Nn&&(!gt.v7_partialHydration||!ne);if(Je){if(yt){let Rt=Xo(Le);wn(n({navigation:ze},Rt!==void 0?{actionData:Rt}:{}),{flushSync:Se})}let Mt=await Qo(je,Ie.pathname,he.signal);if(Mt.type==="aborted")return{shortCircuited:!0};if(Mt.type==="error"){let Rt=Ct(Mt.partialMatches).route.id;return{matches:Mt.partialMatches,loaderData:{},errors:{[Rt]:Mt.error}}}else if(Mt.matches)je=Mt.matches;else{let{error:Rt,notFoundMatches:br,route:bt}=ci(Ie.pathname);return{matches:br,loaderData:{},errors:{[bt.id]:Rt}}}}let st=Ne||Ee,[lt,ut]=Cr(M.history,Fe,je,ke,Ie,gt.v7_partialHydration&&ne===!0,gt.v7_skipActionErrorRevalidation,Ia,Un,eo,fa,Rn,ba,st,Te,Le);if(Yo(Mt=>!(je&&je.some(Rt=>Rt.route.id===Mt))||lt&&lt.some(Rt=>Rt.route.id===Mt)),$n=++ho,lt.length===0&&ut.length===0){let Mt=li();return go(Ie,n({matches:je,loaderData:{},errors:Le&&ln(Le[1])?{[Le[0]]:Le[1].error}:null},fr(Le),Mt?{fetchers:new Map(Fe.fetchers)}:{}),{flushSync:Se}),{shortCircuited:!0}}if(yt){let Mt={};if(!Je){Mt.navigation=ze;let Rt=Xo(Le);Rt!==void 0&&(Mt.actionData=Rt)}ut.length>0&&(Mt.fetchers=Du(ut)),wn(Mt,{flushSync:Se})}ut.forEach(Mt=>{Za(Mt.key),Mt.controller&&gn.set(Mt.key,Mt.controller)});let Wt=()=>ut.forEach(Mt=>Za(Mt.key));jr&&jr.signal.addEventListener("abort",Wt);let{loaderResults:ir,fetcherResults:Nt}=await No(Fe,je,lt,ut,he);if(he.signal.aborted)return{shortCircuited:!0};jr&&jr.signal.removeEventListener("abort",Wt),ut.forEach(Mt=>gn.delete(Mt.key));let Qt=hn(ir);if(Qt)return await ro(he,Qt.result,!0,{replace:re}),{shortCircuited:!0};if(Qt=hn(Nt),Qt)return ba.add(Qt.key),await ro(he,Qt.result,!0,{replace:re}),{shortCircuited:!0};let{loaderData:Sr,errors:Bt}=Re(Fe,je,ir,Le,ut,Nt,da);da.forEach((Mt,Rt)=>{Mt.subscribe(br=>{(br||Mt.done)&&da.delete(Rt)})}),gt.v7_partialHydration&&ne&&Fe.errors&&(Bt=n({},Fe.errors,Bt));let ur=li(),sr=Wi($n),xr=ur||sr||ut.length>0;return n({matches:je,loaderData:Sr,errors:Bt},xr?{fetchers:new Map(Fe.fetchers)}:{})}function Xo(he){if(he&&!ln(he[1]))return{[he[0]]:he[1].data};if(Fe.actionData)return Object.keys(Fe.actionData).length===0?null:Fe.actionData}function Du(he){return he.forEach(Ie=>{let je=Fe.fetchers.get(Ie.key),Je=On(void 0,je?je.data:void 0);Fe.fetchers.set(Ie.key,Je)}),new Map(Fe.fetchers)}function uu(he,Ie,je,Je){if(ie)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Za(he);let z=(Je&&Je.flushSync)===!0,ee=Ne||Ee,X=Ot(Fe.location,Fe.matches,Te,gt.v7_prependBasename,je,gt.v7_relativeSplatPath,Ie,Je==null?void 0:Je.relative),re=C(ee,X,Te),ne=ta(re,ee,X);if(ne.active&&ne.matches&&(re=ne.matches),!re){Da(he,Ie,Ft(404,{pathname:X}),{flushSync:z});return}let{path:Se,submission:Le,error:ze}=Pt(gt.v7_normalizeFormMethod,!0,X,Je);if(ze){Da(he,Ie,ze,{flushSync:z});return}let ke=Va(re,Se),yt=(Je&&Je.preventScrollReset)===!0;if(Le&&Fn(Le.formMethod)){zi(he,Ie,Se,ke,re,ne.active,z,yt,Le);return}Rn.set(he,{routeId:Ie,path:Se}),su(he,Ie,Se,ke,re,ne.active,z,yt,Le)}async function zi(he,Ie,je,Je,z,ee,X,re,ne){jo(),Rn.delete(he);function Se(Mr){if(!Mr.route.action&&!Mr.route.lazy){let bn=Ft(405,{method:ne.formMethod,pathname:je,routeId:Ie});return Da(he,Ie,bn,{flushSync:X}),!0}return!1}if(!ee&&Se(Je))return;let Le=Fe.fetchers.get(he);La(he,vo(ne,Le),{flushSync:X});let ze=new AbortController,ke=Ea(M.history,je,ze.signal,ne);if(ee){let Mr=await Qo(z,je,ke.signal);if(Mr.type==="aborted")return;if(Mr.type==="error"){Da(he,Ie,Mr.error,{flushSync:X});return}else if(Mr.matches){if(z=Mr.matches,Je=Va(z,je),Se(Je))return}else{Da(he,Ie,Ft(404,{pathname:je}),{flushSync:X});return}}gn.set(he,ze);let yt=ho,lt=(await yo("action",Fe,ke,[Je],z,he))[Je.route.id];if(ke.signal.aborted){gn.get(he)===ze&&gn.delete(he);return}if(gt.v7_fetcherPersist&&fa.has(he)){if(yn(lt)||ln(lt)){La(he,mn(void 0));return}}else{if(yn(lt))if(gn.delete(he),$n>yt){La(he,mn(void 0));return}else return ba.add(he),La(he,On(ne)),ro(ke,lt,!1,{fetcherSubmission:ne,preventScrollReset:re});if(ln(lt)){Da(he,Ie,lt.error);return}}if(Kn(lt))throw Ft(400,{type:"defer-action"});let ut=Fe.navigation.location||Fe.location,Wt=Ea(M.history,ut,ze.signal),ir=Ne||Ee,Nt=Fe.navigation.state!=="idle"?C(ir,Fe.navigation.location,Te):Fe.matches;l(Nt,"Didn't find any matches after fetcher action");let Qt=++ho;Ka.set(he,Qt);let Sr=On(ne,lt.data);Fe.fetchers.set(he,Sr);let[Bt,ur]=Cr(M.history,Fe,Nt,ne,ut,!1,gt.v7_skipActionErrorRevalidation,Ia,Un,eo,fa,Rn,ba,ir,Te,[Je.route.id,lt]);ur.filter(Mr=>Mr.key!==he).forEach(Mr=>{let bn=Mr.key,Na=Fe.fetchers.get(bn),Cn=On(void 0,Na?Na.data:void 0);Fe.fetchers.set(bn,Cn),Za(bn),Mr.controller&&gn.set(bn,Mr.controller)}),wn({fetchers:new Map(Fe.fetchers)});let sr=()=>ur.forEach(Mr=>Za(Mr.key));ze.signal.addEventListener("abort",sr);let{loaderResults:xr,fetcherResults:Mt}=await No(Fe,Nt,Bt,ur,Wt);if(ze.signal.aborted)return;ze.signal.removeEventListener("abort",sr),Ka.delete(he),gn.delete(he),ur.forEach(Mr=>gn.delete(Mr.key));let Rt=hn(xr);if(Rt)return ro(Wt,Rt.result,!1,{preventScrollReset:re});if(Rt=hn(Mt),Rt)return ba.add(Rt.key),ro(Wt,Rt.result,!1,{preventScrollReset:re});let{loaderData:br,errors:bt}=Re(Fe,Nt,xr,void 0,ur,Mt,da);if(Fe.fetchers.has(he)){let Mr=mn(lt.data);Fe.fetchers.set(he,Mr)}Wi(Qt),Fe.navigation.state==="loading"&&Qt>$n?(l(ar,"Expected pending action"),jr&&jr.abort(),go(Fe.navigation.location,{matches:Nt,loaderData:br,errors:bt,fetchers:new Map(Fe.fetchers)})):(wn({errors:bt,loaderData:Ye(Fe.loaderData,br,Nt,bt),fetchers:new Map(Fe.fetchers)}),Ia=!1)}async function su(he,Ie,je,Je,z,ee,X,re,ne){let Se=Fe.fetchers.get(he);La(he,On(ne,Se?Se.data:void 0),{flushSync:X});let Le=new AbortController,ze=Ea(M.history,je,Le.signal);if(ee){let lt=await Qo(z,je,ze.signal);if(lt.type==="aborted")return;if(lt.type==="error"){Da(he,Ie,lt.error,{flushSync:X});return}else if(lt.matches)z=lt.matches,Je=Va(z,je);else{Da(he,Ie,Ft(404,{pathname:je}),{flushSync:X});return}}gn.set(he,Le);let ke=ho,st=(await yo("loader",Fe,ze,[Je],z,he))[Je.route.id];if(Kn(st)&&(st=await bo(st,ze.signal,!0)||st),gn.get(he)===Le&&gn.delete(he),!ze.signal.aborted){if(fa.has(he)){La(he,mn(void 0));return}if(yn(st))if($n>ke){La(he,mn(void 0));return}else{ba.add(he),await ro(ze,st,!1,{preventScrollReset:re});return}if(ln(st)){Da(he,Ie,st.error);return}l(!Kn(st),"Unhandled fetcher deferred data"),La(he,mn(st.data))}}async function ro(he,Ie,je,Je){let{submission:z,fetcherSubmission:ee,preventScrollReset:X,replace:re}=Je===void 0?{}:Je;Ie.response.headers.has("X-Remix-Revalidate")&&(Ia=!0);let ne=Ie.response.headers.get("Location");l(ne,"Expected a Location header on the redirect Response"),ne=la(ne,new URL(he.url),Te);let Se=y(Fe.location,ne,{_isRedirect:!0});if(Y){let lt=!1;if(Ie.response.headers.has("X-Remix-Reload-Document"))lt=!0;else if(it.test(ne)){const ut=M.history.createURL(ne);lt=ut.origin!==$.location.origin||ve(ut.pathname,Te)==null}if(lt){re?$.location.replace(ne):$.location.assign(ne);return}}jr=null;let Le=re===!0||Ie.response.headers.has("X-Remix-Replace")?a.Replace:a.Push,{formMethod:ze,formAction:ke,formEncType:yt}=Fe.navigation;!z&&!ee&&ze&&ke&&yt&&(z=Go(Fe.navigation));let st=z||ee;if(xe.has(Ie.response.status)&&st&&Fn(st.formMethod))await Ta(Le,Se,{submission:n({},st,{formAction:ne}),preventScrollReset:X||Nr,enableViewTransition:je?pn:void 0});else{let lt=_a(Se,z);await Ta(Le,Se,{overrideNavigation:lt,fetcherSubmission:ee,preventScrollReset:X||Nr,enableViewTransition:je?pn:void 0})}}async function yo(he,Ie,je,Je,z,ee){let X,re={};try{X=await En(Ge,he,Ie,je,Je,z,ee,Ce,fe)}catch(ne){return Je.forEach(Se=>{re[Se.route.id]={type:E.error,error:ne}}),re}for(let[ne,Se]of Object.entries(X))if(ca(Se)){let Le=Se.result;re[ne]={type:E.redirect,response:tn(Le,je,ne,z,Te,gt.v7_relativeSplatPath)}}else re[ne]=await Br(Se);return re}async function No(he,Ie,je,Je,z){let ee=he.matches,X=yo("loader",he,z,je,Ie,null),re=Promise.all(Je.map(async Le=>{if(Le.matches&&Le.match&&Le.controller){let ke=(await yo("loader",he,Ea(M.history,Le.path,Le.controller.signal),[Le.match],Le.matches,Le.key))[Le.match.route.id];return{[Le.key]:ke}}else return Promise.resolve({[Le.key]:{type:E.error,error:Ft(404,{pathname:Le.path})}})})),ne=await X,Se=(await re).reduce((Le,ze)=>Object.assign(Le,ze),{});return await Promise.all([wo(Ie,ne,z.signal,ee,he.loaderData),qa(Ie,Se,Je)]),{loaderResults:ne,fetcherResults:Se}}function jo(){Ia=!0,Un.push(...Yo()),Rn.forEach((he,Ie)=>{gn.has(Ie)&&eo.add(Ie),Za(Ie)})}function La(he,Ie,je){je===void 0&&(je={}),Fe.fetchers.set(he,Ie),wn({fetchers:new Map(Fe.fetchers)},{flushSync:(je&&je.flushSync)===!0})}function Da(he,Ie,je,Je){Je===void 0&&(Je={});let z=Ct(Fe.matches,Ie);Fo(he),wn({errors:{[z.route.id]:je},fetchers:new Map(Fe.fetchers)},{flushSync:(Je&&Je.flushSync)===!0})}function si(he){return gt.v7_fetcherPersist&&(Ma.set(he,(Ma.get(he)||0)+1),fa.has(he)&&fa.delete(he)),Fe.fetchers.get(he)||Ze}function Fo(he){let Ie=Fe.fetchers.get(he);gn.has(he)&&!(Ie&&Ie.state==="loading"&&Ka.has(he))&&Za(he),Rn.delete(he),Ka.delete(he),ba.delete(he),fa.delete(he),eo.delete(he),Fe.fetchers.delete(he)}function Hi(he){if(gt.v7_fetcherPersist){let Ie=(Ma.get(he)||0)-1;Ie<=0?(Ma.delete(he),fa.add(he)):Ma.set(he,Ie)}else Fo(he);wn({fetchers:new Map(Fe.fetchers)})}function Za(he){let Ie=gn.get(he);Ie&&(Ie.abort(),gn.delete(he))}function ki(he){for(let Ie of he){let je=si(Ie),Je=mn(je.data);Fe.fetchers.set(Ie,Je)}}function li(){let he=[],Ie=!1;for(let je of ba){let Je=Fe.fetchers.get(je);l(Je,"Expected fetcher: "+je),Je.state==="loading"&&(ba.delete(je),he.push(je),Ie=!0)}return ki(he),Ie}function Wi(he){let Ie=[];for(let[je,Je]of Ka)if(Je<he){let z=Fe.fetchers.get(je);l(z,"Expected fetcher: "+je),z.state==="loading"&&(Za(je),Ka.delete(je),Ie.push(je))}return ki(Ie),Ie.length>0}function lu(he,Ie){let je=Fe.blockers.get(he)||tt;return to.get(he)!==Ie&&to.set(he,Ie),je}function Vi(he){Fe.blockers.delete(he),to.delete(he)}function mo(he,Ie){let je=Fe.blockers.get(he)||tt;l(je.state==="unblocked"&&Ie.state==="blocked"||je.state==="blocked"&&Ie.state==="blocked"||je.state==="blocked"&&Ie.state==="proceeding"||je.state==="blocked"&&Ie.state==="unblocked"||je.state==="proceeding"&&Ie.state==="unblocked","Invalid blocker state transition: "+je.state+" -> "+Ie.state);let Je=new Map(Fe.blockers);Je.set(he,Ie),wn({blockers:Je})}function So(he){let{currentLocation:Ie,nextLocation:je,historyAction:Je}=he;if(to.size===0)return;to.size>1&&s(!1,"A router only supports one blocker at a time");let z=Array.from(to.entries()),[ee,X]=z[z.length-1],re=Fe.blockers.get(ee);if(!(re&&re.state==="proceeding")&&X({currentLocation:Ie,nextLocation:je,historyAction:Je}))return ee}function ci(he){let Ie=Ft(404,{pathname:he}),je=Ne||Ee,{matches:Je,route:z}=Qr(je);return Yo(),{notFoundMatches:Je,route:z,error:Ie}}function Yo(he){let Ie=[];return da.forEach((je,Je)=>{(!he||he(Je))&&(je.cancel(),Ie.push(Je),da.delete(Je))}),Ie}function Ki(he,Ie,je){if(xt=he,Ut=Ie,ot=je||null,!Pr&&Fe.navigation===We){Pr=!0;let Je=di(Fe.location,Fe.matches);Je!=null&&wn({restoreScrollPosition:Je})}return()=>{xt=null,Ut=null,ot=null}}function fi(he,Ie){return ot&&ot(he,Ie.map(Je=>b(Je,Fe.loaderData)))||he.key}function no(he,Ie){if(xt&&Ut){let je=fi(he,Ie);xt[je]=Ut()}}function di(he,Ie){if(xt){let je=fi(he,Ie),Je=xt[je];if(typeof Je=="number")return Je}return null}function ta(he,Ie,je){if(dt)if(he){if(Object.keys(he[0].params).length>0)return{active:!0,matches:w(Ie,je,Te,!0)}}else return{active:!0,matches:w(Ie,je,Te,!0)||[]};return{active:!1,matches:null}}async function Qo(he,Ie,je){if(!dt)return{type:"success",matches:he};let Je=he;for(;;){let z=Ne==null,ee=Ne||Ee,X=Ce;try{await dt({path:Ie,matches:Je,patch:(Se,Le)=>{je.aborted||Fr(Se,Le,ee,X,fe)}})}catch(Se){return{type:"error",error:Se,partialMatches:Je}}finally{z&&!je.aborted&&(Ee=[...Ee])}if(je.aborted)return{type:"aborted"};let re=C(ee,Ie,Te);if(re)return{type:"success",matches:re};let ne=w(ee,Ie,Te,!0);if(!ne||Je.length===ne.length&&Je.every((Se,Le)=>Se.route.id===ne[Le].route.id))return{type:"success",matches:null};Je=ne}}function cu(he){Ce={},Ne=A(he,fe,void 0,Ce)}function vi(he,Ie){let je=Ne==null;Fr(he,Ie,Ne||Ee,Ce,fe),je&&(Ee=[...Ee],wn({}))}return Wr={get basename(){return Te},get future(){return gt},get state(){return Fe},get routes(){return Ee},get window(){return $},initialize:ui,subscribe:Zo,enableScrollRestoration:Ki,navigate:$i,fetch:uu,revalidate:Do,createHref:he=>M.history.createHref(he),encodeLocation:he=>M.history.encodeLocation(he),getFetcher:si,deleteFetcher:Hi,dispose:Lo,getBlocker:lu,deleteBlocker:Vi,patchRoutes:vi,_internalFetchControllers:gn,_internalActiveDeferreds:da,_internalSetRoutes:cu},Wr}const Dr=Symbol("deferred");function ge(M,$){l(M.length>0,"You must provide a non-empty routes array to createStaticHandler");let Y={},ie=($?$.basename:null)||"/",fe;if($!=null&&$.mapRouteProperties)fe=$.mapRouteProperties;else if($!=null&&$.detectErrorBoundary){let Ve=$.detectErrorBoundary;fe=xt=>({hasErrorBoundary:Ve(xt)})}else fe=kt;let Ce=n({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},$?$.future:null),Ee=A(M,fe,void 0,Y);async function Ne(Ve,xt){let{requestContext:ot,skipLoaderErrorBubbling:Ut,dataStrategy:Pr}=xt===void 0?{}:xt,Lt=new URL(Ve.url),yr=Ve.method,It=y("",m(Lt),null,"default"),Wr=C(Ee,It,ie);if(!oi(yr)&&yr!=="HEAD"){let ar=Ft(405,{method:yr}),{matches:Nr,route:jr}=Qr(Ee);return{basename:ie,location:It,matches:Nr,loaderData:{},actionData:null,errors:{[jr.id]:ar},statusCode:ar.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!Wr){let ar=Ft(404,{pathname:It.pathname}),{matches:Nr,route:jr}=Qr(Ee);return{basename:ie,location:It,matches:Nr,loaderData:{},actionData:null,errors:{[jr.id]:ar},statusCode:ar.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let Fe=await Ge(Ve,It,Wr,ot,Pr||null,Ut===!0,null);return Ja(Fe)?Fe:n({location:It,basename:ie},Fe)}async function Te(Ve,xt){let{routeId:ot,requestContext:Ut,dataStrategy:Pr}=xt===void 0?{}:xt,Lt=new URL(Ve.url),yr=Ve.method,It=y("",m(Lt),null,"default"),Wr=C(Ee,It,ie);if(!oi(yr)&&yr!=="HEAD"&&yr!=="OPTIONS")throw Ft(405,{method:yr});if(!Wr)throw Ft(404,{pathname:It.pathname});let Fe=ot?Wr.find(pn=>pn.route.id===ot):Va(Wr,It);if(ot&&!Fe)throw Ft(403,{pathname:It.pathname,routeId:ot});if(!Fe)throw Ft(404,{pathname:It.pathname});let ar=await Ge(Ve,It,Wr,Ut,Pr||null,!1,Fe);if(Ja(ar))return ar;let Nr=ar.errors?Object.values(ar.errors)[0]:void 0;if(Nr!==void 0)throw Nr;if(ar.actionData)return Object.values(ar.actionData)[0];if(ar.loaderData){var jr;let pn=Object.values(ar.loaderData)[0];return(jr=ar.activeDeferreds)!=null&&jr[Fe.route.id]&&(pn[Dr]=ar.activeDeferreds[Fe.route.id]),pn}}async function Ge(Ve,xt,ot,Ut,Pr,Lt,yr){l(Ve.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(Fn(Ve.method.toLowerCase()))return await dt(Ve,ot,yr||Va(ot,xt),Ut,Pr,Lt,yr!=null);let It=await gt(Ve,ot,Ut,Pr,Lt,yr);return Ja(It)?It:n({},It,{actionData:null,actionHeaders:{}})}catch(It){if(sn(It)&&Ja(It.result)){if(It.type===E.error)throw It.result;return It.result}if(Lu(It))return It;throw It}}async function dt(Ve,xt,ot,Ut,Pr,Lt,yr){let It;if(!ot.route.action&&!ot.route.lazy){let ar=Ft(405,{method:Ve.method,pathname:new URL(Ve.url).pathname,routeId:ot.route.id});if(yr)throw ar;It={type:E.error,error:ar}}else It=(await wt("action",Ve,[ot],xt,yr,Ut,Pr))[ot.route.id],Ve.signal.aborted&&He(Ve,yr,Ce);if(yn(It))throw new Response(null,{status:It.response.status,headers:{Location:It.response.headers.get("Location")}});if(Kn(It)){let ar=Ft(400,{type:"defer-action"});if(yr)throw ar;It={type:E.error,error:ar}}if(yr){if(ln(It))throw It.error;return{matches:[ot],loaderData:{},actionData:{[ot.route.id]:It.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let Wr=new Request(Ve.url,{headers:Ve.headers,redirect:Ve.redirect,signal:Ve.signal});if(ln(It)){let ar=Lt?ot:Ct(xt,ot.route.id),Nr=await gt(Wr,xt,Ut,Pr,Lt,null,[ar.route.id,It]);return n({},Nr,{statusCode:mr(It.error)?It.error.status:It.statusCode!=null?It.statusCode:500,actionData:null,actionHeaders:n({},It.headers?{[ot.route.id]:It.headers}:{})})}let Fe=await gt(Wr,xt,Ut,Pr,Lt,null);return n({},Fe,{actionData:{[ot.route.id]:It.data}},It.statusCode?{statusCode:It.statusCode}:{},{actionHeaders:It.headers?{[ot.route.id]:It.headers}:{}})}async function gt(Ve,xt,ot,Ut,Pr,Lt,yr){let It=Lt!=null;if(It&&!(Lt!=null&&Lt.route.loader)&&!(Lt!=null&&Lt.route.lazy))throw Ft(400,{method:Ve.method,pathname:new URL(Ve.url).pathname,routeId:Lt==null?void 0:Lt.route.id});let Fe=(Lt?[Lt]:yr&&ln(yr[1])?Dt(xt,yr[0]):xt).filter(Jr=>Jr.route.loader||Jr.route.lazy);if(Fe.length===0)return{matches:xt,loaderData:xt.reduce((Jr,Bn)=>Object.assign(Jr,{[Bn.route.id]:null}),{}),errors:yr&&ln(yr[1])?{[yr[0]]:yr[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let ar=await wt("loader",Ve,Fe,xt,It,ot,Ut);Ve.signal.aborted&&He(Ve,It,Ce);let Nr=new Map,jr=Ue(xt,ar,yr,Nr,Pr),pn=new Set(Fe.map(Jr=>Jr.route.id));return xt.forEach(Jr=>{pn.has(Jr.route.id)||(jr.loaderData[Jr.route.id]=null)}),n({},jr,{matches:xt,activeDeferreds:Nr.size>0?Object.fromEntries(Nr.entries()):null})}async function wt(Ve,xt,ot,Ut,Pr,Lt,yr){let It=await En(yr||_r,Ve,null,xt,ot,Ut,null,Y,fe,Lt),Wr={};return await Promise.all(Ut.map(async Fe=>{if(!(Fe.route.id in It))return;let ar=It[Fe.route.id];if(ca(ar)){let Nr=ar.result;throw tn(Nr,xt,Fe.route.id,Ut,ie,Ce.v7_relativeSplatPath)}if(Ja(ar.result)&&Pr)throw ar;Wr[Fe.route.id]=await Br(ar)})),Wr}return{dataRoutes:Ee,query:Ne,queryRoute:Te}}function me(M,$,Y){return n({},$,{statusCode:mr(Y)?Y.status:500,errors:{[$._deepestRenderedBoundaryId||M[0].id]:Y}})}function He(M,$,Y){if(Y.v7_throwAbortReason&&M.signal.reason!==void 0)throw M.signal.reason;let ie=$?"queryRoute":"query";throw new Error(ie+"() call aborted: "+M.method+" "+M.url)}function qe(M){return M!=null&&("formData"in M&&M.formData!=null||"body"in M&&M.body!==void 0)}function Ot(M,$,Y,ie,fe,Ce,Ee,Ne){let Te,Ge;if(Ee){Te=[];for(let gt of $)if(Te.push(gt),gt.route.id===Ee){Ge=gt;break}}else Te=$,Ge=$[$.length-1];let dt=Ae(fe||".",De(Te,Ce),ve(M.pathname,Y)||M.pathname,Ne==="path");if(fe==null&&(dt.search=M.search,dt.hash=M.hash),(fe==null||fe===""||fe===".")&&Ge){let gt=Ui(dt.search);if(Ge.route.index&&!gt)dt.search=dt.search?dt.search.replace(/^\?/,"?index&"):"?index";else if(!Ge.route.index&&gt){let wt=new URLSearchParams(dt.search),Ve=wt.getAll("index");wt.delete("index"),Ve.filter(ot=>ot).forEach(ot=>wt.append("index",ot));let xt=wt.toString();dt.search=xt?"?"+xt:""}}return ie&&Y!=="/"&&(dt.pathname=dt.pathname==="/"?Y:Tt([Y,dt.pathname])),m(dt)}function Pt(M,$,Y,ie){if(!ie||!qe(ie))return{path:Y};if(ie.formMethod&&!oi(ie.formMethod))return{path:Y,error:Ft(405,{method:ie.formMethod})};let fe=()=>({path:Y,error:Ft(400,{type:"invalid-body"})}),Ce=ie.formMethod||"get",Ee=M?Ce.toUpperCase():Ce.toLowerCase(),Ne=Pn(Y);if(ie.body!==void 0){if(ie.formEncType==="text/plain"){if(!Fn(Ee))return fe();let wt=typeof ie.body=="string"?ie.body:ie.body instanceof FormData||ie.body instanceof URLSearchParams?Array.from(ie.body.entries()).reduce((Ve,xt)=>{let[ot,Ut]=xt;return""+Ve+ot+"="+Ut+`
53
53
  `},""):String(ie.body);return{path:Y,submission:{formMethod:Ee,formAction:Ne,formEncType:ie.formEncType,formData:void 0,json:void 0,text:wt}}}else if(ie.formEncType==="application/json"){if(!Fn(Ee))return fe();try{let wt=typeof ie.body=="string"?JSON.parse(ie.body):ie.body;return{path:Y,submission:{formMethod:Ee,formAction:Ne,formEncType:ie.formEncType,formData:void 0,json:wt,text:void 0}}}catch{return fe()}}}l(typeof FormData=="function","FormData is not available in this environment");let Te,Ge;if(ie.formData)Te=be(ie.formData),Ge=ie.formData;else if(ie.body instanceof FormData)Te=be(ie.body),Ge=ie.body;else if(ie.body instanceof URLSearchParams)Te=ie.body,Ge=rt(Te);else if(ie.body==null)Te=new URLSearchParams,Ge=new FormData;else try{Te=new URLSearchParams(ie.body),Ge=rt(Te)}catch{return fe()}let dt={formMethod:Ee,formAction:Ne,formEncType:ie&&ie.formEncType||"application/x-www-form-urlencoded",formData:Ge,json:void 0,text:void 0};if(Fn(dt.formMethod))return{path:Y,submission:dt};let gt=S(Y);return $&&gt.search&&Ui(gt.search)&&Te.append("index",""),gt.search="?"+Te,{path:m(gt),submission:dt}}function Dt(M,$,Y){Y===void 0&&(Y=!1);let ie=M.findIndex(fe=>fe.route.id===$);return ie>=0?M.slice(0,Y?ie+1:ie):M}function Cr(M,$,Y,ie,fe,Ce,Ee,Ne,Te,Ge,dt,gt,wt,Ve,xt,ot){let Ut=ot?ln(ot[1])?ot[1].error:ot[1].data:void 0,Pr=M.createURL($.location),Lt=M.createURL(fe),yr=Y;Ce&&$.errors?yr=Dt(Y,Object.keys($.errors)[0],!0):ot&&ln(ot[1])&&(yr=Dt(Y,ot[0]));let It=ot?ot[1].statusCode:void 0,Wr=Ee&&It&&It>=400,Fe=yr.filter((Nr,jr)=>{let{route:pn}=Nr;if(pn.lazy)return!0;if(pn.loader==null)return!1;if(Ce)return Hr(pn,$.loaderData,$.errors);if(Ir($.loaderData,$.matches[jr],Nr)||Te.some(Nn=>Nn===Nr.route.id))return!0;let Jr=$.matches[jr],Bn=Nr;return $t(Nr,n({currentUrl:Pr,currentParams:Jr.params,nextUrl:Lt,nextParams:Bn.params},ie,{actionResult:Ut,actionStatus:It,defaultShouldRevalidate:Wr?!1:Ne||Pr.pathname+Pr.search===Lt.pathname+Lt.search||Pr.search!==Lt.search||Ar(Jr,Bn)}))}),ar=[];return gt.forEach((Nr,jr)=>{if(Ce||!Y.some(Ia=>Ia.route.id===Nr.routeId)||dt.has(jr))return;let pn=C(Ve,Nr.path,xt);if(!pn){ar.push({key:jr,routeId:Nr.routeId,path:Nr.path,matches:null,match:null,controller:null});return}let Jr=$.fetchers.get(jr),Bn=Va(pn,Nr.path),Nn=!1;wt.has(jr)?Nn=!1:Ge.has(jr)?(Ge.delete(jr),Nn=!0):Jr&&Jr.state!=="idle"&&Jr.data===void 0?Nn=Ne:Nn=$t(Bn,n({currentUrl:Pr,currentParams:$.matches[$.matches.length-1].params,nextUrl:Lt,nextParams:Y[Y.length-1].params},ie,{actionResult:Ut,actionStatus:It,defaultShouldRevalidate:Wr?!1:Ne})),Nn&&ar.push({key:jr,routeId:Nr.routeId,path:Nr.path,matches:pn,match:Bn,controller:new AbortController})}),[Fe,ar]}function Hr(M,$,Y){if(M.lazy)return!0;if(!M.loader)return!1;let ie=$!=null&&$[M.id]!==void 0,fe=Y!=null&&Y[M.id]!==void 0;return!ie&&fe?!1:typeof M.loader=="function"&&M.loader.hydrate===!0?!0:!ie&&!fe}function Ir(M,$,Y){let ie=!$||Y.route.id!==$.route.id,fe=M[Y.route.id]===void 0;return ie||fe}function Ar(M,$){let Y=M.route.path;return M.pathname!==$.pathname||Y!=null&&Y.endsWith("*")&&M.params["*"]!==$.params["*"]}function $t(M,$){if(M.route.shouldRevalidate){let Y=M.route.shouldRevalidate($);if(typeof Y=="boolean")return Y}return $.defaultShouldRevalidate}function Fr(M,$,Y,ie,fe){var Ce;let Ee;if(M){let Ge=ie[M];l(Ge,"No route found to patch children into: routeId = "+M),Ge.children||(Ge.children=[]),Ee=Ge.children}else Ee=Y;let Ne=$.filter(Ge=>!Ee.some(dt=>zr(Ge,dt))),Te=A(Ne,fe,[M||"_","patch",String(((Ce=Ee)==null?void 0:Ce.length)||"0")],ie);Ee.push(...Te)}function zr(M,$){return"id"in M&&"id"in $&&M.id===$.id?!0:M.index===$.index&&M.path===$.path&&M.caseSensitive===$.caseSensitive?(!M.children||M.children.length===0)&&(!$.children||$.children.length===0)?!0:M.children.every((Y,ie)=>{var fe;return(fe=$.children)==null?void 0:fe.some(Ce=>zr(Y,Ce))}):!1}async function en(M,$,Y){if(!M.lazy)return;let ie=await M.lazy();if(!M.lazy)return;let fe=Y[M.id];l(fe,"No route found in manifest");let Ce={};for(let Ee in ie){let Te=fe[Ee]!==void 0&&Ee!=="hasErrorBoundary";s(!Te,'Route "'+fe.id+'" has a static property "'+Ee+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+Ee+'" will be ignored.')),!Te&&!O.has(Ee)&&(Ce[Ee]=ie[Ee])}Object.assign(fe,Ce),Object.assign(fe,n({},$(fe),{lazy:void 0}))}async function _r(M){let{matches:$}=M,Y=$.filter(fe=>fe.shouldLoad);return(await Promise.all(Y.map(fe=>fe.resolve()))).reduce((fe,Ce,Ee)=>Object.assign(fe,{[Y[Ee].route.id]:Ce}),{})}async function En(M,$,Y,ie,fe,Ce,Ee,Ne,Te,Ge){let dt=Ce.map(Ve=>Ve.route.lazy?en(Ve.route,Te,Ne):void 0),gt=Ce.map((Ve,xt)=>{let ot=dt[xt],Ut=fe.some(Lt=>Lt.route.id===Ve.route.id);return n({},Ve,{shouldLoad:Ut,resolve:async Lt=>(Lt&&ie.method==="GET"&&(Ve.route.lazy||Ve.route.loader)&&(Ut=!0),Ut?Dn($,ie,Ve,ot,Lt,Ge):Promise.resolve({type:E.data,result:void 0}))})}),wt=await M({matches:gt,request:ie,params:Ce[0].params,fetcherKey:Ee,context:Ge});try{await Promise.all(dt)}catch{}return wt}async function Dn(M,$,Y,ie,fe,Ce){let Ee,Ne,Te=Ge=>{let dt,gt=new Promise((xt,ot)=>dt=ot);Ne=()=>dt(),$.signal.addEventListener("abort",Ne);let wt=xt=>typeof Ge!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+M+'" [routeId: '+Y.route.id+"]"))):Ge({request:$,params:Y.params,context:Ce},...xt!==void 0?[xt]:[]),Ve=(async()=>{try{return{type:"data",result:await(fe?fe(ot=>wt(ot)):wt())}}catch(xt){return{type:"error",result:xt}}})();return Promise.race([Ve,gt])};try{let Ge=Y.route[M];if(ie)if(Ge){let dt,[gt]=await Promise.all([Te(Ge).catch(wt=>{dt=wt}),ie]);if(dt!==void 0)throw dt;Ee=gt}else if(await ie,Ge=Y.route[M],Ge)Ee=await Te(Ge);else if(M==="action"){let dt=new URL($.url),gt=dt.pathname+dt.search;throw Ft(405,{method:$.method,pathname:gt,routeId:Y.route.id})}else return{type:E.data,result:void 0};else if(Ge)Ee=await Te(Ge);else{let dt=new URL($.url),gt=dt.pathname+dt.search;throw Ft(404,{pathname:gt})}l(Ee.result!==void 0,"You defined "+(M==="action"?"an action":"a loader")+" for route "+('"'+Y.route.id+"\" but didn't return anything from your `"+M+"` ")+"function. Please return a value or `null`.")}catch(Ge){return{type:E.error,result:Ge}}finally{Ne&&$.signal.removeEventListener("abort",Ne)}return Ee}async function Br(M){let{result:$,type:Y}=M;if(Ja($)){let Ge;try{let dt=$.headers.get("Content-Type");dt&&/\bapplication\/json\b/.test(dt)?$.body==null?Ge=null:Ge=await $.json():Ge=await $.text()}catch(dt){return{type:E.error,error:dt}}return Y===E.error?{type:E.error,error:new kr($.status,$.statusText,Ge),statusCode:$.status,headers:$.headers}:{type:E.data,data:Ge,statusCode:$.status,headers:$.headers}}if(Y===E.error){if(fo($)){var ie;if($.data instanceof Error){var fe;return{type:E.error,error:$.data,statusCode:(fe=$.init)==null?void 0:fe.status}}$=new kr(((ie=$.init)==null?void 0:ie.status)||500,void 0,$.data)}return{type:E.error,error:$,statusCode:mr($)?$.status:void 0}}if(Oa($)){var Ce,Ee;return{type:E.deferred,deferredData:$,statusCode:(Ce=$.init)==null?void 0:Ce.status,headers:((Ee=$.init)==null?void 0:Ee.headers)&&new Headers($.init.headers)}}if(fo($)){var Ne,Te;return{type:E.data,data:$.data,statusCode:(Ne=$.init)==null?void 0:Ne.status,headers:(Te=$.init)!=null&&Te.headers?new Headers($.init.headers):void 0}}return{type:E.data,data:$}}function tn(M,$,Y,ie,fe,Ce){let Ee=M.headers.get("Location");if(l(Ee,"Redirects returned/thrown from loaders/actions must have a Location header"),!it.test(Ee)){let Ne=ie.slice(0,ie.findIndex(Te=>Te.route.id===Y)+1);Ee=Ot(new URL($.url),Ne,fe,!0,Ee,Ce),M.headers.set("Location",Ee)}return M}function la(M,$,Y){if(it.test(M)){let ie=M,fe=ie.startsWith("//")?new URL($.protocol+ie):new URL(ie),Ce=ve(fe.pathname,Y)!=null;if(fe.origin===$.origin&&Ce)return fe.pathname+fe.search+fe.hash}return M}function Ea(M,$,Y,ie){let fe=M.createURL(Pn($)).toString(),Ce={signal:Y};if(ie&&Fn(ie.formMethod)){let{formMethod:Ee,formEncType:Ne}=ie;Ce.method=Ee.toUpperCase(),Ne==="application/json"?(Ce.headers=new Headers({"Content-Type":Ne}),Ce.body=JSON.stringify(ie.json)):Ne==="text/plain"?Ce.body=ie.text:Ne==="application/x-www-form-urlencoded"&&ie.formData?Ce.body=be(ie.formData):Ce.body=ie.formData}return new Request(fe,Ce)}function be(M){let $=new URLSearchParams;for(let[Y,ie]of M.entries())$.append(Y,typeof ie=="string"?ie:ie.name);return $}function rt(M){let $=new FormData;for(let[Y,ie]of M.entries())$.append(Y,ie);return $}function Ue(M,$,Y,ie,fe){let Ce={},Ee=null,Ne,Te=!1,Ge={},dt=Y&&ln(Y[1])?Y[1].error:void 0;return M.forEach(gt=>{if(!(gt.route.id in $))return;let wt=gt.route.id,Ve=$[wt];if(l(!yn(Ve),"Cannot handle redirect results in processLoaderData"),ln(Ve)){let xt=Ve.error;if(dt!==void 0&&(xt=dt,dt=void 0),Ee=Ee||{},fe)Ee[wt]=xt;else{let ot=Ct(M,wt);Ee[ot.route.id]==null&&(Ee[ot.route.id]=xt)}Ce[wt]=void 0,Te||(Te=!0,Ne=mr(Ve.error)?Ve.error.status:500),Ve.headers&&(Ge[wt]=Ve.headers)}else Kn(Ve)?(ie.set(wt,Ve.deferredData),Ce[wt]=Ve.deferredData.data,Ve.statusCode!=null&&Ve.statusCode!==200&&!Te&&(Ne=Ve.statusCode),Ve.headers&&(Ge[wt]=Ve.headers)):(Ce[wt]=Ve.data,Ve.statusCode&&Ve.statusCode!==200&&!Te&&(Ne=Ve.statusCode),Ve.headers&&(Ge[wt]=Ve.headers))}),dt!==void 0&&Y&&(Ee={[Y[0]]:dt},Ce[Y[0]]=void 0),{loaderData:Ce,errors:Ee,statusCode:Ne||200,loaderHeaders:Ge}}function Re(M,$,Y,ie,fe,Ce,Ee){let{loaderData:Ne,errors:Te}=Ue($,Y,ie,Ee,!1);return fe.forEach(Ge=>{let{key:dt,match:gt,controller:wt}=Ge,Ve=Ce[dt];if(l(Ve,"Did not find corresponding fetcher result"),!(wt&&wt.signal.aborted))if(ln(Ve)){let xt=Ct(M.matches,gt==null?void 0:gt.route.id);Te&&Te[xt.route.id]||(Te=n({},Te,{[xt.route.id]:Ve.error})),M.fetchers.delete(dt)}else if(yn(Ve))l(!1,"Unhandled fetcher revalidation redirect");else if(Kn(Ve))l(!1,"Unhandled fetcher deferred data");else{let xt=mn(Ve.data);M.fetchers.set(dt,xt)}}),{loaderData:Ne,errors:Te}}function Ye(M,$,Y,ie){let fe=n({},$);for(let Ce of Y){let Ee=Ce.route.id;if($.hasOwnProperty(Ee)?$[Ee]!==void 0&&(fe[Ee]=$[Ee]):M[Ee]!==void 0&&Ce.route.loader&&(fe[Ee]=M[Ee]),ie&&ie.hasOwnProperty(Ee))break}return fe}function fr(M){return M?ln(M[1])?{actionData:{}}:{actionData:{[M[0]]:M[1].data}}:{}}function Ct(M,$){return($?M.slice(0,M.findIndex(ie=>ie.route.id===$)+1):[...M]).reverse().find(ie=>ie.route.hasErrorBoundary===!0)||M[0]}function Qr(M){let $=M.length===1?M[0]:M.find(Y=>Y.index||!Y.path||Y.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:$}],route:$}}function Ft(M,$){let{pathname:Y,routeId:ie,method:fe,type:Ce,message:Ee}=$===void 0?{}:$,Ne="Unknown Server Error",Te="Unknown @remix-run/router error";return M===400?(Ne="Bad Request",fe&&Y&&ie?Te="You made a "+fe+' request to "'+Y+'" but '+('did not provide a `loader` for route "'+ie+'", ')+"so there is no way to handle the request.":Ce==="defer-action"?Te="defer() is not supported in actions":Ce==="invalid-body"&&(Te="Unable to encode submission body")):M===403?(Ne="Forbidden",Te='Route "'+ie+'" does not match URL "'+Y+'"'):M===404?(Ne="Not Found",Te='No route matches URL "'+Y+'"'):M===405&&(Ne="Method Not Allowed",fe&&Y&&ie?Te="You made a "+fe.toUpperCase()+' request to "'+Y+'" but '+('did not provide an `action` for route "'+ie+'", ')+"so there is no way to handle the request.":fe&&(Te='Invalid request method "'+fe.toUpperCase()+'"')),new kr(M||500,Ne,new Error(Te),!0)}function hn(M){let $=Object.entries(M);for(let Y=$.length-1;Y>=0;Y--){let[ie,fe]=$[Y];if(yn(fe))return{key:ie,result:fe}}}function Pn(M){let $=typeof M=="string"?S(M):M;return m(n({},$,{hash:""}))}function et(M,$){return M.pathname!==$.pathname||M.search!==$.search?!1:M.hash===""?$.hash!=="":M.hash===$.hash?!0:$.hash!==""}function sn(M){return M!=null&&typeof M=="object"&&"type"in M&&"result"in M&&(M.type===E.data||M.type===E.error)}function ca(M){return Ja(M.result)&&un.has(M.result.status)}function Kn(M){return M.type===E.deferred}function ln(M){return M.type===E.error}function yn(M){return(M&&M.type)===E.redirect}function fo(M){return typeof M=="object"&&M!=null&&"type"in M&&"data"in M&&"init"in M&&M.type==="DataWithResponseInit"}function Oa(M){let $=M;return $&&typeof $=="object"&&typeof $.data=="object"&&typeof $.subscribe=="function"&&typeof $.cancel=="function"&&typeof $.resolveData=="function"}function Ja(M){return M!=null&&typeof M.status=="number"&&typeof M.statusText=="string"&&typeof M.headers=="object"&&typeof M.body<"u"}function Lu(M){if(!Ja(M))return!1;let $=M.status,Y=M.headers.get("Location");return $>=300&&$<=399&&Y!=null}function oi(M){return gr.has(M.toLowerCase())}function Fn(M){return or.has(M.toLowerCase())}async function wo(M,$,Y,ie,fe){let Ce=Object.entries($);for(let Ee=0;Ee<Ce.length;Ee++){let[Ne,Te]=Ce[Ee],Ge=M.find(wt=>(wt==null?void 0:wt.route.id)===Ne);if(!Ge)continue;let dt=ie.find(wt=>wt.route.id===Ge.route.id),gt=dt!=null&&!Ar(dt,Ge)&&(fe&&fe[Ge.route.id])!==void 0;Kn(Te)&&gt&&await bo(Te,Y,!1).then(wt=>{wt&&($[Ne]=wt)})}}async function qa(M,$,Y){for(let ie=0;ie<Y.length;ie++){let{key:fe,routeId:Ce,controller:Ee}=Y[ie],Ne=$[fe];M.find(Ge=>(Ge==null?void 0:Ge.route.id)===Ce)&&Kn(Ne)&&(l(Ee,"Expected an AbortController for revalidating fetcher deferred result"),await bo(Ne,Ee.signal,!0).then(Ge=>{Ge&&($[fe]=Ge)}))}}async function bo(M,$,Y){if(Y===void 0&&(Y=!1),!await M.deferredData.resolveData($)){if(Y)try{return{type:E.data,data:M.deferredData.unwrappedData}}catch(fe){return{type:E.error,error:fe}}return{type:E.data,data:M.deferredData.data}}}function Ui(M){return new URLSearchParams(M).getAll("index").some($=>$==="")}function Va(M,$){let Y=typeof $=="string"?S($).search:$.search;if(M[M.length-1].route.index&&Ui(Y||""))return M[M.length-1];let ie=Oe(M);return ie[ie.length-1]}function Go(M){let{formMethod:$,formAction:Y,formEncType:ie,text:fe,formData:Ce,json:Ee}=M;if(!(!$||!Y||!ie)){if(fe!=null)return{formMethod:$,formAction:Y,formEncType:ie,formData:void 0,json:void 0,text:fe};if(Ce!=null)return{formMethod:$,formAction:Y,formEncType:ie,formData:Ce,json:void 0,text:void 0};if(Ee!==void 0)return{formMethod:$,formAction:Y,formEncType:ie,formData:void 0,json:Ee,text:void 0}}}function _a(M,$){return $?{state:"loading",location:M,formMethod:$.formMethod,formAction:$.formAction,formEncType:$.formEncType,formData:$.formData,json:$.json,text:$.text}:{state:"loading",location:M,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ii(M,$){return{state:"submitting",location:M,formMethod:$.formMethod,formAction:$.formAction,formEncType:$.formEncType,formData:$.formData,json:$.json,text:$.text}}function On(M,$){return M?{state:"loading",formMethod:M.formMethod,formAction:M.formAction,formEncType:M.formEncType,formData:M.formData,json:M.json,text:M.text,data:$}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:$}}function vo(M,$){return{state:"submitting",formMethod:M.formMethod,formAction:M.formAction,formEncType:M.formEncType,formData:M.formData,json:M.json,text:M.text,data:$?$.data:void 0}}function mn(M){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:M}}function Zr(M,$){try{let Y=M.sessionStorage.getItem(Et);if(Y){let ie=JSON.parse(Y);for(let[fe,Ce]of Object.entries(ie||{}))Ce&&Array.isArray(Ce)&&$.set(fe,new Set(Ce||[]))}}catch{}}function Mo(M,$){if($.size>0){let Y={};for(let[ie,fe]of $)Y[ie]=[...fe];try{M.sessionStorage.setItem(Et,JSON.stringify(Y))}catch(ie){s(!1,"Failed to save applied view transitions in sessionStorage ("+ie+").")}}}},75251:function(d,g,e){"use strict";var n=e(67294),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function l(s,h,p){var y,m={},S=null,I=null;p!==void 0&&(S=""+p),h.key!==void 0&&(S=""+h.key),h.ref!==void 0&&(I=h.ref);for(y in h)u.call(h,y)&&!f.hasOwnProperty(y)&&(m[y]=h[y]);if(s&&s.defaultProps)for(y in h=s.defaultProps,h)m[y]===void 0&&(m[y]=h[y]);return{$$typeof:a,type:s,key:S,ref:I,props:m,_owner:c.current}}g.Fragment=o,g.jsx=l,g.jsxs=l},72408:function(d,g){"use strict";var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator;function m(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,E={};function O(P,N,q){this.props=P,this.context=N,this.refs=E,this.updater=q||S}O.prototype.isReactComponent={},O.prototype.setState=function(P,N){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,N,"setState")},O.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function T(){}T.prototype=O.prototype;function A(P,N,q){this.props=P,this.context=N,this.refs=E,this.updater=q||S}var C=A.prototype=new T;C.constructor=A,I(C,O.prototype),C.isPureReactComponent=!0;var w=Array.isArray,b=Object.prototype.hasOwnProperty,D={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function U(P,N,q){var ve,_={},Z=null,le=null;if(N!=null)for(ve in N.ref!==void 0&&(le=N.ref),N.key!==void 0&&(Z=""+N.key),N)b.call(N,ve)&&!H.hasOwnProperty(ve)&&(_[ve]=N[ve]);var Oe=arguments.length-2;if(Oe===1)_.children=q;else if(1<Oe){for(var De=Array(Oe),Ae=0;Ae<Oe;Ae++)De[Ae]=arguments[Ae+2];_.children=De}if(P&&P.defaultProps)for(ve in Oe=P.defaultProps,Oe)_[ve]===void 0&&(_[ve]=Oe[ve]);return{$$typeof:e,type:P,key:Z,ref:le,props:_,_owner:D.current}}function K(P,N){return{$$typeof:e,type:P.type,key:N,ref:P.ref,props:P.props,_owner:P._owner}}function G(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function te(P){var N={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(q){return N[q]})}var de=/\/+/g;function J(P,N){return typeof P=="object"&&P!==null&&P.key!=null?te(""+P.key):N.toString(36)}function se(P,N,q,ve,_){var Z=typeof P;(Z==="undefined"||Z==="boolean")&&(P=null);var le=!1;if(P===null)le=!0;else switch(Z){case"string":case"number":le=!0;break;case"object":switch(P.$$typeof){case e:case n:le=!0}}if(le)return le=P,_=_(le),P=ve===""?"."+J(le,0):ve,w(_)?(q="",P!=null&&(q=P.replace(de,"$&/")+"/"),se(_,N,q,"",function(Ae){return Ae})):_!=null&&(G(_)&&(_=K(_,q+(!_.key||le&&le.key===_.key?"":(""+_.key).replace(de,"$&/")+"/")+P)),N.push(_)),1;if(le=0,ve=ve===""?".":ve+":",w(P))for(var Oe=0;Oe<P.length;Oe++){Z=P[Oe];var De=ve+J(Z,Oe);le+=se(Z,N,q,De,_)}else if(De=m(P),typeof De=="function")for(P=De.call(P),Oe=0;!(Z=P.next()).done;)Z=Z.value,De=ve+J(Z,Oe++),le+=se(Z,N,q,De,_);else if(Z==="object")throw N=String(P),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.");return le}function Q(P,N,q){if(P==null)return P;var ve=[],_=0;return se(P,ve,"","",function(Z){return N.call(q,Z,_++)}),ve}function ue(P){if(P._status===-1){var N=P._result;N=N(),N.then(function(q){(P._status===0||P._status===-1)&&(P._status=1,P._result=q)},function(q){(P._status===0||P._status===-1)&&(P._status=2,P._result=q)}),P._status===-1&&(P._status=0,P._result=N)}if(P._status===1)return P._result.default;throw P._result}var L={current:null},k={transition:null},F={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:k,ReactCurrentOwner:D};g.Children={map:Q,forEach:function(P,N,q){Q(P,function(){N.apply(this,arguments)},q)},count:function(P){var N=0;return Q(P,function(){N++}),N},toArray:function(P){return Q(P,function(N){return N})||[]},only:function(P){if(!G(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},g.Component=O,g.Fragment=a,g.Profiler=u,g.PureComponent=A,g.StrictMode=o,g.Suspense=s,g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,g.cloneElement=function(P,N,q){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var ve=I({},P.props),_=P.key,Z=P.ref,le=P._owner;if(N!=null){if(N.ref!==void 0&&(Z=N.ref,le=D.current),N.key!==void 0&&(_=""+N.key),P.type&&P.type.defaultProps)var Oe=P.type.defaultProps;for(De in N)b.call(N,De)&&!H.hasOwnProperty(De)&&(ve[De]=N[De]===void 0&&Oe!==void 0?Oe[De]:N[De])}var De=arguments.length-2;if(De===1)ve.children=q;else if(1<De){Oe=Array(De);for(var Ae=0;Ae<De;Ae++)Oe[Ae]=arguments[Ae+2];ve.children=Oe}return{$$typeof:e,type:P.type,key:_,ref:Z,props:ve,_owner:le}},g.createContext=function(P){return P={$$typeof:f,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:c,_context:P},P.Consumer=P},g.createElement=U,g.createFactory=function(P){var N=U.bind(null,P);return N.type=P,N},g.createRef=function(){return{current:null}},g.forwardRef=function(P){return{$$typeof:l,render:P}},g.isValidElement=G,g.lazy=function(P){return{$$typeof:p,_payload:{_status:-1,_result:P},_init:ue}},g.memo=function(P,N){return{$$typeof:h,type:P,compare:N===void 0?null:N}},g.startTransition=function(P){var N=k.transition;k.transition={};try{P()}finally{k.transition=N}},g.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},g.useCallback=function(P,N){return L.current.useCallback(P,N)},g.useContext=function(P){return L.current.useContext(P)},g.useDebugValue=function(){},g.useDeferredValue=function(P){return L.current.useDeferredValue(P)},g.useEffect=function(P,N){return L.current.useEffect(P,N)},g.useId=function(){return L.current.useId()},g.useImperativeHandle=function(P,N,q){return L.current.useImperativeHandle(P,N,q)},g.useInsertionEffect=function(P,N){return L.current.useInsertionEffect(P,N)},g.useLayoutEffect=function(P,N){return L.current.useLayoutEffect(P,N)},g.useMemo=function(P,N){return L.current.useMemo(P,N)},g.useReducer=function(P,N,q){return L.current.useReducer(P,N,q)},g.useRef=function(P){return L.current.useRef(P)},g.useState=function(P){return L.current.useState(P)},g.useSyncExternalStore=function(P,N,q){return L.current.useSyncExternalStore(P,N,q)},g.useTransition=function(){return L.current.useTransition()},g.version="18.2.0"},67294:function(d,g,e){"use strict";d.exports=e(72408)},85893:function(d,g,e){"use strict";d.exports=e(75251)},60053:function(d,g){"use strict";function e(L,k){var F=L.length;L.push(k);e:for(;0<F;){var P=F-1>>>1,N=L[P];if(0<o(N,k))L[P]=k,L[F]=N,F=P;else break e}}function n(L){return L.length===0?null:L[0]}function a(L){if(L.length===0)return null;var k=L[0],F=L.pop();if(F!==k){L[0]=F;e:for(var P=0,N=L.length,q=N>>>1;P<q;){var ve=2*(P+1)-1,_=L[ve],Z=ve+1,le=L[Z];if(0>o(_,F))Z<N&&0>o(le,_)?(L[P]=le,L[Z]=F,P=Z):(L[P]=_,L[ve]=F,P=ve);else if(Z<N&&0>o(le,F))L[P]=le,L[Z]=F,P=Z;else break e}}return k}function o(L,k){var F=L.sortIndex-k.sortIndex;return F!==0?F:L.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;g.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();g.unstable_now=function(){return c.now()-f}}var l=[],s=[],h=1,p=null,y=3,m=!1,S=!1,I=!1,E=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(L){for(var k=n(s);k!==null;){if(k.callback===null)a(s);else if(k.startTime<=L)a(s),k.sortIndex=k.expirationTime,e(l,k);else break;k=n(s)}}function C(L){if(I=!1,A(L),!S)if(n(l)!==null)S=!0,Q(w);else{var k=n(s);k!==null&&ue(C,k.startTime-L)}}function w(L,k){S=!1,I&&(I=!1,O(H),H=-1),m=!0;var F=y;try{for(A(k),p=n(l);p!==null&&(!(p.expirationTime>k)||L&&!G());){var P=p.callback;if(typeof P=="function"){p.callback=null,y=p.priorityLevel;var N=P(p.expirationTime<=k);k=g.unstable_now(),typeof N=="function"?p.callback=N:p===n(l)&&a(l),A(k)}else a(l);p=n(l)}if(p!==null)var q=!0;else{var ve=n(s);ve!==null&&ue(C,ve.startTime-k),q=!1}return q}finally{p=null,y=F,m=!1}}var b=!1,D=null,H=-1,U=5,K=-1;function G(){return!(g.unstable_now()-K<U)}function te(){if(D!==null){var L=g.unstable_now();K=L;var k=!0;try{k=D(!0,L)}finally{k?de():(b=!1,D=null)}}else b=!1}var de;if(typeof T=="function")de=function(){T(te)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,se=J.port2;J.port1.onmessage=te,de=function(){se.postMessage(null)}}else de=function(){E(te,0)};function Q(L){D=L,b||(b=!0,de())}function ue(L,k){H=E(function(){L(g.unstable_now())},k)}g.unstable_IdlePriority=5,g.unstable_ImmediatePriority=1,g.unstable_LowPriority=4,g.unstable_NormalPriority=3,g.unstable_Profiling=null,g.unstable_UserBlockingPriority=2,g.unstable_cancelCallback=function(L){L.callback=null},g.unstable_continueExecution=function(){S||m||(S=!0,Q(w))},g.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<L?Math.floor(1e3/L):5},g.unstable_getCurrentPriorityLevel=function(){return y},g.unstable_getFirstCallbackNode=function(){return n(l)},g.unstable_next=function(L){switch(y){case 1:case 2:case 3:var k=3;break;default:k=y}var F=y;y=k;try{return L()}finally{y=F}},g.unstable_pauseExecution=function(){},g.unstable_requestPaint=function(){},g.unstable_runWithPriority=function(L,k){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var F=y;y=L;try{return k()}finally{y=F}},g.unstable_scheduleCallback=function(L,k,F){var P=g.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?P+F:P):F=P,L){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=F+N,L={id:h++,callback:k,priorityLevel:L,startTime:F,expirationTime:N,sortIndex:-1},F>P?(L.sortIndex=F,e(s,L),n(l)===null&&L===n(s)&&(I?(O(H),H=-1):I=!0,ue(C,F-P))):(L.sortIndex=N,e(l,L),S||m||(S=!0,Q(w))),L},g.unstable_shouldYield=G,g.unstable_wrapCallback=function(L){var k=y;return function(){var F=y;y=k;try{return L.apply(this,arguments)}finally{y=F}}}},63840:function(d,g,e){"use strict";d.exports=e(60053)},96774:function(d){d.exports=function(e,n,a,o){var u=a?a.call(o,e,n):void 0;if(u!==void 0)return!!u;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var c=Object.keys(e),f=Object.keys(n);if(c.length!==f.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),s=0;s<c.length;s++){var h=c[s];if(!l(h))return!1;var p=e[h],y=n[h];if(u=a?a.call(o,p,y,h):void 0,u===!1||u===void 0&&p!==y)return!1}return!0}},99289:function(d){function g(n,a,o,u,c,f,l){try{var s=n[f](l),h=s.value}catch(p){o(p);return}s.done?a(h):Promise.resolve(h).then(u,c)}function e(n){return function(){var a=this,o=arguments;return new Promise(function(u,c){var f=n.apply(a,o);function l(h){g(f,u,c,l,s,"next",h)}function s(h){g(f,u,c,l,s,"throw",h)}l(void 0)})}}d.exports=e,d.exports.__esModule=!0,d.exports.default=d.exports},9783:function(d,g,e){var n=e(51883);function a(o,u,c){return u=n(u),u in o?Object.defineProperty(o,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[u]=c,o}d.exports=a,d.exports.__esModule=!0,d.exports.default=d.exports},97857:function(d,g,e){var n=e(9783);function a(u,c){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(u);c&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(u,s).enumerable})),f.push.apply(f,l)}return f}function o(u){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?a(Object(f),!0).forEach(function(l){n(u,l,f[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):a(Object(f)).forEach(function(l){Object.defineProperty(u,l,Object.getOwnPropertyDescriptor(f,l))})}return u}d.exports=o,d.exports.__esModule=!0,d.exports.default=d.exports},15009:function(d,g,e){var n=e(52677).default;function a(){"use strict";d.exports=a=function(){return u},d.exports.__esModule=!0,d.exports.default=d.exports;var o,u={},c=Object.prototype,f=c.hasOwnProperty,l=Object.defineProperty||function(F,P,N){F[P]=N.value},s=typeof Symbol=="function"?Symbol:{},h=s.iterator||"@@iterator",p=s.asyncIterator||"@@asyncIterator",y=s.toStringTag||"@@toStringTag";function m(F,P,N){return Object.defineProperty(F,P,{value:N,enumerable:!0,configurable:!0,writable:!0}),F[P]}try{m({},"")}catch{m=function(N,q,ve){return N[q]=ve}}function S(F,P,N,q){var ve=P&&P.prototype instanceof w?P:w,_=Object.create(ve.prototype),Z=new L(q||[]);return l(_,"_invoke",{value:J(F,N,Z)}),_}function I(F,P,N){try{return{type:"normal",arg:F.call(P,N)}}catch(q){return{type:"throw",arg:q}}}u.wrap=S;var E="suspendedStart",O="suspendedYield",T="executing",A="completed",C={};function w(){}function b(){}function D(){}var H={};m(H,h,function(){return this});var U=Object.getPrototypeOf,K=U&&U(U(k([])));K&&K!==c&&f.call(K,h)&&(H=K);var G=D.prototype=w.prototype=Object.create(H);function te(F){["next","throw","return"].forEach(function(P){m(F,P,function(N){return this._invoke(P,N)})})}function de(F,P){function N(ve,_,Z,le){var Oe=I(F[ve],F,_);if(Oe.type!=="throw"){var De=Oe.arg,Ae=De.value;return Ae&&n(Ae)=="object"&&f.call(Ae,"__await")?P.resolve(Ae.__await).then(function(Qe){N("next",Qe,Z,le)},function(Qe){N("throw",Qe,Z,le)}):P.resolve(Ae).then(function(Qe){De.value=Qe,Z(De)},function(Qe){return N("throw",Qe,Z,le)})}le(Oe.arg)}var q;l(this,"_invoke",{value:function(_,Z){function le(){return new P(function(Oe,De){N(_,Z,Oe,De)})}return q=q?q.then(le,le):le()}})}function J(F,P,N){var q=E;return function(ve,_){if(q===T)throw new Error("Generator is already running");if(q===A){if(ve==="throw")throw _;return{value:o,done:!0}}for(N.method=ve,N.arg=_;;){var Z=N.delegate;if(Z){var le=se(Z,N);if(le){if(le===C)continue;return le}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(q===E)throw q=A,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);q=T;var Oe=I(F,P,N);if(Oe.type==="normal"){if(q=N.done?A:O,Oe.arg===C)continue;return{value:Oe.arg,done:N.done}}Oe.type==="throw"&&(q=A,N.method="throw",N.arg=Oe.arg)}}}function se(F,P){var N=P.method,q=F.iterator[N];if(q===o)return P.delegate=null,N==="throw"&&F.iterator.return&&(P.method="return",P.arg=o,se(F,P),P.method==="throw")||N!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+N+"' method")),C;var ve=I(q,F.iterator,P.arg);if(ve.type==="throw")return P.method="throw",P.arg=ve.arg,P.delegate=null,C;var _=ve.arg;return _?_.done?(P[F.resultName]=_.value,P.next=F.nextLoc,P.method!=="return"&&(P.method="next",P.arg=o),P.delegate=null,C):_:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,C)}function Q(F){var P={tryLoc:F[0]};1 in F&&(P.catchLoc=F[1]),2 in F&&(P.finallyLoc=F[2],P.afterLoc=F[3]),this.tryEntries.push(P)}function ue(F){var P=F.completion||{};P.type="normal",delete P.arg,F.completion=P}function L(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(Q,this),this.reset(!0)}function k(F){if(F||F===""){var P=F[h];if(P)return P.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var N=-1,q=function ve(){for(;++N<F.length;)if(f.call(F,N))return ve.value=F[N],ve.done=!1,ve;return ve.value=o,ve.done=!0,ve};return q.next=q}}throw new TypeError(n(F)+" is not iterable")}return b.prototype=D,l(G,"constructor",{value:D,configurable:!0}),l(D,"constructor",{value:b,configurable:!0}),b.displayName=m(D,y,"GeneratorFunction"),u.isGeneratorFunction=function(F){var P=typeof F=="function"&&F.constructor;return!!P&&(P===b||(P.displayName||P.name)==="GeneratorFunction")},u.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,D):(F.__proto__=D,m(F,y,"GeneratorFunction")),F.prototype=Object.create(G),F},u.awrap=function(F){return{__await:F}},te(de.prototype),m(de.prototype,p,function(){return this}),u.AsyncIterator=de,u.async=function(F,P,N,q,ve){ve===void 0&&(ve=Promise);var _=new de(S(F,P,N,q),ve);return u.isGeneratorFunction(P)?_:_.next().then(function(Z){return Z.done?Z.value:_.next()})},te(G),m(G,y,"Generator"),m(G,h,function(){return this}),m(G,"toString",function(){return"[object Generator]"}),u.keys=function(F){var P=Object(F),N=[];for(var q in P)N.push(q);return N.reverse(),function ve(){for(;N.length;){var _=N.pop();if(_ in P)return ve.value=_,ve.done=!1,ve}return ve.done=!0,ve}},u.values=k,L.prototype={constructor:L,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(ue),!P)for(var N in this)N.charAt(0)==="t"&&f.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=o)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var N=this;function q(De,Ae){return Z.type="throw",Z.arg=P,N.next=De,Ae&&(N.method="next",N.arg=o),!!Ae}for(var ve=this.tryEntries.length-1;ve>=0;--ve){var _=this.tryEntries[ve],Z=_.completion;if(_.tryLoc==="root")return q("end");if(_.tryLoc<=this.prev){var le=f.call(_,"catchLoc"),Oe=f.call(_,"finallyLoc");if(le&&Oe){if(this.prev<_.catchLoc)return q(_.catchLoc,!0);if(this.prev<_.finallyLoc)return q(_.finallyLoc)}else if(le){if(this.prev<_.catchLoc)return q(_.catchLoc,!0)}else{if(!Oe)throw new Error("try statement without catch or finally");if(this.prev<_.finallyLoc)return q(_.finallyLoc)}}}},abrupt:function(P,N){for(var q=this.tryEntries.length-1;q>=0;--q){var ve=this.tryEntries[q];if(ve.tryLoc<=this.prev&&f.call(ve,"finallyLoc")&&this.prev<ve.finallyLoc){var _=ve;break}}_&&(P==="break"||P==="continue")&&_.tryLoc<=N&&N<=_.finallyLoc&&(_=null);var Z=_?_.completion:{};return Z.type=P,Z.arg=N,_?(this.method="next",this.next=_.finallyLoc,C):this.complete(Z)},complete:function(P,N){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&N&&(this.next=N),C},finish:function(P){for(var N=this.tryEntries.length-1;N>=0;--N){var q=this.tryEntries[N];if(q.finallyLoc===P)return this.complete(q.completion,q.afterLoc),ue(q),C}},catch:function(P){for(var N=this.tryEntries.length-1;N>=0;--N){var q=this.tryEntries[N];if(q.tryLoc===P){var ve=q.completion;if(ve.type==="throw"){var _=ve.arg;ue(q)}return _}}throw new Error("illegal catch attempt")},delegateYield:function(P,N,q){return this.delegate={iterator:k(P),resultName:N,nextLoc:q},this.method==="next"&&(this.arg=o),C}},u}d.exports=a,d.exports.__esModule=!0,d.exports.default=d.exports},66518:function(d,g,e){var n=e(52677).default;function a(o,u){if(n(o)!=="object"||o===null)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var f=c.call(o,u||"default");if(n(f)!=="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(o)}d.exports=a,d.exports.__esModule=!0,d.exports.default=d.exports},51883:function(d,g,e){var n=e(52677).default,a=e(66518);function o(u){var c=a(u,"string");return n(c)==="symbol"?c:String(c)}d.exports=o,d.exports.__esModule=!0,d.exports.default=d.exports},52677:function(d){function g(e){"@babel/helpers - typeof";return d.exports=g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},d.exports.__esModule=!0,d.exports.default=d.exports,g(e)}d.exports=g,d.exports.__esModule=!0,d.exports.default=d.exports},93967:function(d,g){var e,n;(function(){"use strict";var a={}.hasOwnProperty;function o(){for(var f="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(f=c(f,u(s)))}return f}function u(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return o.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var l="";for(var s in f)a.call(f,s)&&f[s]&&(l=c(l,s));return l}function c(f,l){return l?f?f+" "+l:f+l:f}d.exports?(o.default=o,d.exports=o):(e=[],n=function(){return o}.apply(g,e),n!==void 0&&(d.exports=n))})()},30907:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(a,o){(o==null||o>a.length)&&(o=a.length);for(var u=0,c=Array(o);u<o;u++)c[u]=a[u];return c}},83878:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(a){if(Array.isArray(a))return a}},97326:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}},15671:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}},43144:function(d,g,e){"use strict";e.d(g,{Z:function(){return o}});var n=e(83997);function a(u,c){for(var f=0;f<c.length;f++){var l=c[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(u,(0,n.Z)(l.key),l)}}function o(u,c,f){return c&&a(u.prototype,c),f&&a(u,f),Object.defineProperty(u,"prototype",{writable:!1}),u}},51630:function(d,g,e){"use strict";e.d(g,{Z:function(){return u}});var n=e(61120);function a(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a=function(){return!!c})()}var o=e(82963);function u(c){var f=a();return function(){var l,s=(0,n.Z)(c);if(f){var h=(0,n.Z)(this).constructor;l=Reflect.construct(s,arguments,h)}else l=s.apply(this,arguments);return(0,o.Z)(this,l)}}},4942:function(d,g,e){"use strict";e.d(g,{Z:function(){return a}});var n=e(83997);function a(o,u,c){return(u=(0,n.Z)(u))in o?Object.defineProperty(o,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[u]=c,o}},87462:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(){return n=Object.assign?Object.assign.bind():function(a){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var c in u)({}).hasOwnProperty.call(u,c)&&(a[c]=u[c])}return a},n.apply(null,arguments)}},61120:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(a){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},n(a)}},32531:function(d,g,e){"use strict";e.d(g,{Z:function(){return a}});function n(o,u){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},n(o,u)}function a(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&n(o,u)}},59199:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}},25267:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
54
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}},1413:function(d,g,e){"use strict";e.d(g,{Z:function(){return o}});var n=e(4942);function a(u,c){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(u);c&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(u,s).enumerable})),f.push.apply(f,l)}return f}function o(u){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?a(Object(f),!0).forEach(function(l){(0,n.Z)(u,l,f[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):a(Object(f)).forEach(function(l){Object.defineProperty(u,l,Object.getOwnPropertyDescriptor(f,l))})}return u}},91:function(d,g,e){"use strict";e.d(g,{Z:function(){return a}});function n(o,u){if(o==null)return{};var c={};for(var f in o)if({}.hasOwnProperty.call(o,f)){if(u.includes(f))continue;c[f]=o[f]}return c}function a(o,u){if(o==null)return{};var c,f,l=n(o,u);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);for(f=0;f<s.length;f++)c=s[f],u.includes(c)||{}.propertyIsEnumerable.call(o,c)&&(l[c]=o[c])}return l}},82963:function(d,g,e){"use strict";e.d(g,{Z:function(){return o}});var n=e(71002),a=e(97326);function o(u,c){if(c&&((0,n.Z)(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(u)}},97685:function(d,g,e){"use strict";e.d(g,{Z:function(){return c}});var n=e(83878);function a(f,l){var s=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(s!=null){var h,p,y,m,S=[],I=!0,E=!1;try{if(y=(s=s.call(f)).next,l===0){if(Object(s)!==s)return;I=!1}else for(;!(I=(h=y.call(s)).done)&&(S.push(h.value),S.length!==l);I=!0);}catch(O){E=!0,p=O}finally{try{if(!I&&s.return!=null&&(m=s.return(),Object(m)!==m))return}finally{if(E)throw p}}return S}}var o=e(40181),u=e(25267);function c(f,l){return(0,n.Z)(f)||a(f,l)||(0,o.Z)(f,l)||(0,u.Z)()}},84506:function(d,g,e){"use strict";e.d(g,{Z:function(){return c}});var n=e(83878),a=e(59199),o=e(40181),u=e(25267);function c(f){return(0,n.Z)(f)||(0,a.Z)(f)||(0,o.Z)(f)||(0,u.Z)()}},74902:function(d,g,e){"use strict";e.d(g,{Z:function(){return f}});var n=e(30907);function a(l){if(Array.isArray(l))return(0,n.Z)(l)}var o=e(59199),u=e(40181);function c(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(l){return a(l)||(0,o.Z)(l)||(0,u.Z)(l)||c()}},83997:function(d,g,e){"use strict";e.d(g,{Z:function(){return o}});var n=e(71002);function a(u,c){if((0,n.Z)(u)!="object"||!u)return u;var f=u[Symbol.toPrimitive];if(f!==void 0){var l=f.call(u,c||"default");if((0,n.Z)(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(u)}function o(u){var c=a(u,"string");return(0,n.Z)(c)=="symbol"?c:c+""}},71002:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(a){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},n(a)}},40181:function(d,g,e){"use strict";e.d(g,{Z:function(){return a}});var n=e(30907);function a(o,u){if(o){if(typeof o=="string")return(0,n.Z)(o,u);var c={}.toString.call(o).slice(8,-1);return c==="Object"&&o.constructor&&(c=o.constructor.name),c==="Map"||c==="Set"?Array.from(o):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?(0,n.Z)(o,u):void 0}}},27856:function(d,g,e){"use strict";e.d(g,{D:function(){return a}});function n(o,u,c){var f=c||{},l=f.noTrailing,s=l===void 0?!1:l,h=f.noLeading,p=h===void 0?!1:h,y=f.debounceMode,m=y===void 0?void 0:y,S,I=!1,E=0;function O(){S&&clearTimeout(S)}function T(C){var w=C||{},b=w.upcomingOnly,D=b===void 0?!1:b;O(),I=!D}function A(){for(var C=arguments.length,w=new Array(C),b=0;b<C;b++)w[b]=arguments[b];var D=this,H=Date.now()-E;if(I)return;function U(){E=Date.now(),u.apply(D,w)}function K(){S=void 0}!p&&m&&!S&&U(),O(),m===void 0&&H>o?p?(E=Date.now(),s||(S=setTimeout(m?K:U,o))):U():s!==!0&&(S=setTimeout(m?K:U,m===void 0?o-H:o))}return A.cancel=T,A}function a(o,u,c){var f=c||{},l=f.atBegin,s=l===void 0?!1:l;return n(o,u,{debounceMode:s!==!1})}}},Ll={};function W(d){var g=Ll[d];if(g!==void 0)return g.exports;var e=Ll[d]={id:d,loaded:!1,exports:{}};return Ml[d].call(e.exports,e,e.exports,W),e.loaded=!0,e.exports}W.m=Ml,function(){W.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){W.amdO={}}(),function(){W.n=function(d){var g=d&&d.__esModule?function(){return d.default}:function(){return d};return W.d(g,{a:g}),g}}(),function(){var d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;W.t=function(e,n){if(n&1&&(e=this(e)),n&8||typeof e=="object"&&e&&(n&4&&e.__esModule||n&16&&typeof e.then=="function"))return e;var a=Object.create(null);W.r(a);var o={};g=g||[null,d({}),d([]),d(d)];for(var u=n&2&&e;typeof u=="object"&&!~g.indexOf(u);u=d(u))Object.getOwnPropertyNames(u).forEach(function(c){o[c]=function(){return e[c]}});return o.default=function(){return e},W.d(a,o),a}}(),function(){W.d=function(d,g){for(var e in g)W.o(g,e)&&!W.o(d,e)&&Object.defineProperty(d,e,{enumerable:!0,get:g[e]})}}(),function(){W.f={},W.e=function(d){return Promise.all(Object.keys(W.f).reduce(function(g,e){return W.f[e](d,g),g},[]))}}(),function(){W.u=function(d){return""+({489:"npm.rc-select",527:"npm._at_budibase",1051:"npm.antd",1160:"npm.elkjs",1216:"npm.react-router-dom",1835:"npm.gl-matrix",2068:"npm.react-image-lightbox",2300:"npm.dagre-d3-es",2386:"npm.quill",2698:"npm.lodash-es",2823:"npm._at_ant-design",3147:"npm.bignumber.js",3199:"npm._at_antv",3421:"npm.handlebars",3607:"npm._at_formulajs",3987:"npm.rc-picker",4218:"npm._at_formily",4265:"npm.rc-table",4509:"npm._at_rc-component",4582:"npm.sanitize-html",4701:"npm.entities",4920:"npm.dayjs",4989:"npm._at_dnd-kit",5105:"npm.react-dom",5154:"npm.markdown-it",5352:"npm.rc-cascader",5420:"npm.rc-tree",5493:"npm.khroma",6094:"npm.d3-shape",6599:"npm.highlight.js",6680:"npm.linkify-it",7015:"npm.d3-transition",7153:"npm.rc-menu",7513:"npm.htmlparser2",7531:"npm.d3-selection",7792:"npm.ahooks",7913:"npm.lodash",8129:"npm.i18next",8243:"npm.json5",8329:"npm.cytoscape",8359:"npm.layout-base",8370:"npm.dompurify",8582:"npm.jstat",8683:"npm.moment",8866:"p__index",8996:"npm.picomatch",9021:"npm._at_remix-run",9227:"npm.buffer",9278:"npm.axios",9331:"npm.decimal.js",9517:"npm.mermaid",9897:"npm.mathjs"}[d]||d)+"."+{489:"7c36e54e",501:"e8db2401",527:"4c85e362",1051:"aedb4432",1160:"f35a7d45",1167:"f1f49999",1216:"832efba3",1835:"d851d654",2068:"264960e7",2300:"5506d747",2386:"73ac4f8f",2698:"c06b3dd5",2823:"736bcf26",3147:"cb49cd48",3199:"56fcebdf",3421:"ade4c4fe",3607:"0bdd8ac2",3987:"ef8a3e8b",4218:"16deb97f",4265:"a153e021",4509:"43f95f42",4582:"4386b2d9",4607:"bae81918",4701:"8159ac3e",4920:"0a5fd152",4989:"2fac5dde",5105:"b9fb5fd7",5154:"5b35f93d",5352:"04b47add",5415:"623fa605",5420:"f61b7d87",5493:"098e7b45",5721:"ee2b0cf3",6094:"b48fc404",6599:"8a8320c8",6680:"bdb3de98",7015:"5fd82a9c",7153:"adf5ade6",7513:"1a3babb6",7531:"15d6ab5b",7792:"4b44f0c8",7913:"0ff318b3",8129:"98bb572b",8243:"d58066fd",8329:"cba0c14d",8359:"0bdb6d00",8370:"d5071c22",8582:"733c0b2c",8683:"36abbf2c",8866:"fb62b442",8996:"af2fa5bc",9021:"9a0418a9",9227:"bc3fb79b",9278:"29caebe1",9331:"19391b1c",9517:"721cd79c",9897:"fd97f3b7"}[d]+".async.js"}}(),function(){W.miniCssF=function(d){return"p__index.9a8aaa6c.chunk.css"}}(),function(){W.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){W.hmd=function(d){return d=Object.create(d),d.children||(d.children=[]),Object.defineProperty(d,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+d.id)}}),d}}(),function(){W.o=function(d,g){return Object.prototype.hasOwnProperty.call(d,g)}}(),function(){var d={},g="nocobase:";W.l=function(e,n,a,o){if(d[e]){d[e].push(n);return}var u,c;if(a!==void 0)for(var f=document.getElementsByTagName("script"),l=0;l<f.length;l++){var s=f[l];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==g+a){u=s;break}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",u.timeout=120,W.nc&&u.setAttribute("nonce",W.nc),u.setAttribute("data-webpack",g+a),u.src=e),d[e]=[n];var h=function(y,m){u.onerror=u.onload=null,clearTimeout(p);var S=d[e];if(delete d[e],u.parentNode&&u.parentNode.removeChild(u),S&&S.forEach(function(I){return I(m)}),y)return y(m)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=h.bind(null,u.onerror),u.onload=h.bind(null,u.onload),c&&document.head.appendChild(u)}}(),function(){W.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})}}(),function(){W.nmd=function(d){return d.paths=[],d.children||(d.children=[]),d}}(),function(){var d;W.g.importScripts&&(d=W.g.location+"");var g=W.g.document;if(!d&&g&&(g.currentScript&&(d=g.currentScript.src),!d)){var e=g.getElementsByTagName("script");if(e.length)for(var n=e.length-1;n>-1&&!d;)d=e[n--].src}if(!d)throw new Error("Automatic publicPath is not supported in this browser");d=d.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),W.p=d}(),function(){if(!(typeof document>"u")){var d=function(a,o,u,c,f){var l=document.createElement("link");l.rel="stylesheet",l.type="text/css";var s=function(h){if(l.onerror=l.onload=null,h.type==="load")c();else{var p=h&&(h.type==="load"?"missing":h.type),y=h&&h.target&&h.target.href||o,m=new Error("Loading CSS chunk "+a+` failed.
55
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(l){return a(l)||(0,o.Z)(l)||(0,u.Z)(l)||c()}},83997:function(d,g,e){"use strict";e.d(g,{Z:function(){return o}});var n=e(71002);function a(u,c){if((0,n.Z)(u)!="object"||!u)return u;var f=u[Symbol.toPrimitive];if(f!==void 0){var l=f.call(u,c||"default");if((0,n.Z)(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(u)}function o(u){var c=a(u,"string");return(0,n.Z)(c)=="symbol"?c:c+""}},71002:function(d,g,e){"use strict";e.d(g,{Z:function(){return n}});function n(a){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},n(a)}},40181:function(d,g,e){"use strict";e.d(g,{Z:function(){return a}});var n=e(30907);function a(o,u){if(o){if(typeof o=="string")return(0,n.Z)(o,u);var c={}.toString.call(o).slice(8,-1);return c==="Object"&&o.constructor&&(c=o.constructor.name),c==="Map"||c==="Set"?Array.from(o):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?(0,n.Z)(o,u):void 0}}},27856:function(d,g,e){"use strict";e.d(g,{D:function(){return a}});function n(o,u,c){var f=c||{},l=f.noTrailing,s=l===void 0?!1:l,h=f.noLeading,p=h===void 0?!1:h,y=f.debounceMode,m=y===void 0?void 0:y,S,I=!1,E=0;function O(){S&&clearTimeout(S)}function T(C){var w=C||{},b=w.upcomingOnly,D=b===void 0?!1:b;O(),I=!D}function A(){for(var C=arguments.length,w=new Array(C),b=0;b<C;b++)w[b]=arguments[b];var D=this,H=Date.now()-E;if(I)return;function U(){E=Date.now(),u.apply(D,w)}function K(){S=void 0}!p&&m&&!S&&U(),O(),m===void 0&&H>o?p?(E=Date.now(),s||(S=setTimeout(m?K:U,o))):U():s!==!0&&(S=setTimeout(m?K:U,m===void 0?o-H:o))}return A.cancel=T,A}function a(o,u,c){var f=c||{},l=f.atBegin,s=l===void 0?!1:l;return n(o,u,{debounceMode:s!==!1})}}},Ll={};function W(d){var g=Ll[d];if(g!==void 0)return g.exports;var e=Ll[d]={id:d,loaded:!1,exports:{}};return Ml[d].call(e.exports,e,e.exports,W),e.loaded=!0,e.exports}W.m=Ml,function(){W.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){W.amdO={}}(),function(){W.n=function(d){var g=d&&d.__esModule?function(){return d.default}:function(){return d};return W.d(g,{a:g}),g}}(),function(){var d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;W.t=function(e,n){if(n&1&&(e=this(e)),n&8||typeof e=="object"&&e&&(n&4&&e.__esModule||n&16&&typeof e.then=="function"))return e;var a=Object.create(null);W.r(a);var o={};g=g||[null,d({}),d([]),d(d)];for(var u=n&2&&e;typeof u=="object"&&!~g.indexOf(u);u=d(u))Object.getOwnPropertyNames(u).forEach(function(c){o[c]=function(){return e[c]}});return o.default=function(){return e},W.d(a,o),a}}(),function(){W.d=function(d,g){for(var e in g)W.o(g,e)&&!W.o(d,e)&&Object.defineProperty(d,e,{enumerable:!0,get:g[e]})}}(),function(){W.f={},W.e=function(d){return Promise.all(Object.keys(W.f).reduce(function(g,e){return W.f[e](d,g),g},[]))}}(),function(){W.u=function(d){return""+({489:"npm.rc-select",527:"npm._at_budibase",1051:"npm.antd",1160:"npm.elkjs",1216:"npm.react-router-dom",1835:"npm.gl-matrix",2068:"npm.react-image-lightbox",2300:"npm.dagre-d3-es",2386:"npm.quill",2698:"npm.lodash-es",2823:"npm._at_ant-design",3147:"npm.bignumber.js",3199:"npm._at_antv",3421:"npm.handlebars",3607:"npm._at_formulajs",3987:"npm.rc-picker",4218:"npm._at_formily",4265:"npm.rc-table",4509:"npm._at_rc-component",4582:"npm.sanitize-html",4701:"npm.entities",4920:"npm.dayjs",4989:"npm._at_dnd-kit",5105:"npm.react-dom",5154:"npm.markdown-it",5352:"npm.rc-cascader",5420:"npm.rc-tree",5493:"npm.khroma",6094:"npm.d3-shape",6599:"npm.highlight.js",6680:"npm.linkify-it",7015:"npm.d3-transition",7153:"npm.rc-menu",7513:"npm.htmlparser2",7531:"npm.d3-selection",7792:"npm.ahooks",7913:"npm.lodash",8129:"npm.i18next",8243:"npm.json5",8329:"npm.cytoscape",8359:"npm.layout-base",8370:"npm.dompurify",8582:"npm.jstat",8683:"npm.moment",8866:"p__index",8996:"npm.picomatch",9021:"npm._at_remix-run",9227:"npm.buffer",9278:"npm.axios",9331:"npm.decimal.js",9517:"npm.mermaid",9897:"npm.mathjs"}[d]||d)+"."+{489:"7c36e54e",501:"e8db2401",527:"4c85e362",1051:"aedb4432",1160:"f35a7d45",1167:"f1f49999",1216:"832efba3",1835:"d851d654",2068:"264960e7",2300:"5506d747",2386:"73ac4f8f",2698:"c06b3dd5",2823:"736bcf26",3147:"cb49cd48",3199:"56fcebdf",3421:"ade4c4fe",3607:"0bdd8ac2",3987:"ef8a3e8b",4218:"16deb97f",4265:"a153e021",4509:"43f95f42",4582:"4386b2d9",4607:"bae81918",4701:"8159ac3e",4920:"0a5fd152",4989:"2fac5dde",5105:"b9fb5fd7",5154:"5b35f93d",5352:"04b47add",5415:"623fa605",5420:"f61b7d87",5493:"098e7b45",5721:"ee2b0cf3",6094:"b48fc404",6599:"8a8320c8",6680:"bdb3de98",7015:"5fd82a9c",7153:"adf5ade6",7513:"1a3babb6",7531:"15d6ab5b",7792:"4b44f0c8",7913:"0ff318b3",8129:"98bb572b",8243:"d58066fd",8329:"cba0c14d",8359:"0bdb6d00",8370:"d5071c22",8582:"733c0b2c",8683:"36abbf2c",8866:"e3f087d1",8996:"af2fa5bc",9021:"9a0418a9",9227:"bc3fb79b",9278:"29caebe1",9331:"19391b1c",9517:"721cd79c",9897:"fd97f3b7"}[d]+".async.js"}}(),function(){W.miniCssF=function(d){return"p__index.9a8aaa6c.chunk.css"}}(),function(){W.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){W.hmd=function(d){return d=Object.create(d),d.children||(d.children=[]),Object.defineProperty(d,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+d.id)}}),d}}(),function(){W.o=function(d,g){return Object.prototype.hasOwnProperty.call(d,g)}}(),function(){var d={},g="nocobase:";W.l=function(e,n,a,o){if(d[e]){d[e].push(n);return}var u,c;if(a!==void 0)for(var f=document.getElementsByTagName("script"),l=0;l<f.length;l++){var s=f[l];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==g+a){u=s;break}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",u.timeout=120,W.nc&&u.setAttribute("nonce",W.nc),u.setAttribute("data-webpack",g+a),u.src=e),d[e]=[n];var h=function(y,m){u.onerror=u.onload=null,clearTimeout(p);var S=d[e];if(delete d[e],u.parentNode&&u.parentNode.removeChild(u),S&&S.forEach(function(I){return I(m)}),y)return y(m)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=h.bind(null,u.onerror),u.onload=h.bind(null,u.onload),c&&document.head.appendChild(u)}}(),function(){W.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})}}(),function(){W.nmd=function(d){return d.paths=[],d.children||(d.children=[]),d}}(),function(){var d;W.g.importScripts&&(d=W.g.location+"");var g=W.g.document;if(!d&&g&&(g.currentScript&&(d=g.currentScript.src),!d)){var e=g.getElementsByTagName("script");if(e.length)for(var n=e.length-1;n>-1&&!d;)d=e[n--].src}if(!d)throw new Error("Automatic publicPath is not supported in this browser");d=d.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),W.p=d}(),function(){if(!(typeof document>"u")){var d=function(a,o,u,c,f){var l=document.createElement("link");l.rel="stylesheet",l.type="text/css";var s=function(h){if(l.onerror=l.onload=null,h.type==="load")c();else{var p=h&&(h.type==="load"?"missing":h.type),y=h&&h.target&&h.target.href||o,m=new Error("Loading CSS chunk "+a+` failed.
56
56
  (`+y+")");m.code="CSS_CHUNK_LOAD_FAILED",m.type=p,m.request=y,l.parentNode.removeChild(l),f(m)}};return l.onerror=l.onload=s,l.href=o,u?u.parentNode.insertBefore(l,u.nextSibling):document.head.appendChild(l),l},g=function(a,o){for(var u=document.getElementsByTagName("link"),c=0;c<u.length;c++){var f=u[c],l=f.getAttribute("data-href")||f.getAttribute("href");if(f.rel==="stylesheet"&&(l===a||l===o))return f}for(var s=document.getElementsByTagName("style"),c=0;c<s.length;c++){var f=s[c],l=f.getAttribute("data-href");if(l===a||l===o)return f}},e=function(a){return new Promise(function(o,u){var c=W.miniCssF(a),f=W.p+c;if(g(c,f))return o();d(a,f,null,o,u)})},n={4620:0};W.f.miniCss=function(a,o){var u={8866:1};n[a]?o.push(n[a]):n[a]!==0&&u[a]&&o.push(n[a]=e(a).then(function(){n[a]=0},function(c){throw delete n[a],c}))}}}(),function(){var d={4620:0};W.f.j=function(n,a){var o=W.o(d,n)?d[n]:void 0;if(o!==0)if(o)a.push(o[2]);else{var u=new Promise(function(s,h){o=d[n]=[s,h]});a.push(o[2]=u);var c=W.p+W.u(n),f=new Error,l=function(s){if(W.o(d,n)&&(o=d[n],o!==0&&(d[n]=void 0),o)){var h=s&&(s.type==="load"?"missing":s.type),p=s&&s.target&&s.target.src;f.message="Loading chunk "+n+` failed.
57
57
  (`+h+": "+p+")",f.name="ChunkLoadError",f.type=h,f.request=p,o[1](f)}};W.l(c,l,"chunk-"+n,n)}};var g=function(n,a){var o=a[0],u=a[1],c=a[2],f,l,s=0;if(o.some(function(p){return d[p]!==0})){for(f in u)W.o(u,f)&&(W.m[f]=u[f]);if(c)var h=c(W)}for(n&&n(a);s<o.length;s++)l=o[s],W.o(d,l)&&d[l]&&d[l][0](),d[l]=0},e=self.webpackChunknocobase=self.webpackChunknocobase||[];e.forEach(g.bind(null,0)),e.push=g.bind(null,e.push.bind(e))}();var gf={};(function(){"use strict";var d={};W.r(d),W.d(d,{innerProvider:function(){return Fa}});var g={};W.r(g),W.d(g,{modifyContextOpts:function(){return Ba}});var e=W(15009),n=W.n(e),a=W(97857),o=W.n(a),u=W(99289),c=W.n(u),f=W(41817),l=W(16066),s=W(21703),h=W(9170),p=W(32120),y=W(52262),m=W(67635),S=W(77287),I=W(57658),E=W(85827),O=W(96644),T=W(65069),A=W(2707),C=W(90476),w=W(76459),b=W(99892),D=W(33792),H=W(99244),U=W(30541),K=W(35581),G=W(39575),te=W(35837),de=W(38862),J=W(25438),se=W(38559),Q=W(46314),ue=W(17922),L=W(34668),k=W(17727),F=W(81299),P=W(92087),N=W(24506),q=W(76373),ve=W(15306),_=W(68757),Z=W(73210),le=W(48702),Oe=W(44197),De=W(76495),Ae=W(87145),Qe=W(35109),Tt=W(65125),Gt=W(82472),pr=W(49743),Zt=W(8255),Or=W(29135),Rr=W(48675),Lr=W(33105),Kr=W(63408),$r=W(14590),cr=W(98145),Yt=W(95206),qt=W(3462),ht=W(33824),mt=W(1439),nr=W(87585),kr=W(55315),mr=W(16586),_t=W(19258),or=W(84811),Yr=W(34286),gr=W(52550),un=W(1999),xe=W(61886),We=W(59422),Ze=W(8e4),tt=W(83475),it=W(46273),kt=W(3087),Et=W(23252),Gr=W(6461),Dr=W(32372),ge=W(4763),me=W(66342),He=W(40787),qe=W(1094),Ot=W(23647),Pt=W(68216),Dt=W(88449),Cr=W(31672),Hr=W(74326),Ir=W(15581),Ar=W(78631),$t=W(48746),Fr=W(57640),zr=W(25387),en=W(64211),_r=W(12771),En=W(62962),Dn=W(71790),Br=W(51568),tn=W(26349),la=W(30800),Ea=W(48580),be=W(67427),rt=W(32279),Ue=W(13384),Re=W(2490),Ye=W(85567),fr=W(18359),Ct=W(5332),Qr=W(79433),Ft=W(59849),hn=W(59461),Pn=W(82499),et=W(34514),sn=W(26877),ca=W(64994),Kn=W(9924),ln=W(64411),yn=W(72608),fo=W(41874),Oa=W(66043),Ja=W(23748),Lu=W(71501),oi=W(60855),Fn=W(43847),wo=W(38564),qa=W(10072),bo=W(23042),Ui=W(99137),Va=W(71957),Go=W(96306),_a=W(103),ii=W(8582),On=W(90618),vo=W(74592),mn=W(88440),Zr=W(58276),Mo=W(35082),M=W(12813),$=W(18222),Y=W(24838),ie=W(38563),fe=W(50336),Ce=W(7512),Ee=W(74442),Ne=W(87713),Te=W(46603),Ge=W(70100),dt=W(10490),gt=W(13187),wt=W(60092),Ve=W(19041),xt=W(30666),ot=W(51638),Ut=W(62975),Pr=W(15728),Lt=W(46056),yr=W(44299),It=W(5162),Wr=W(50292),Fe=W(29427),ar=W(99964),Nr=W(75238),jr=W(4987),pn=W(1025),Jr=W(77479),Bn=W(34582),Nn=W(47896),Ia=W(12647),Un=W(98558),eo=W(84018),gn=W(97507),ho=W(61605),$n=W(49076),Ka=W(34999),ba=W(88921),Rn=W(96248),Ma=W(27561),fa=W(13599),da=W(11477),to=W(64362),po=W(15389),ui=W(46006),Lo=W(3440),Zo=W(90401),wn=W(66244),go=W(45164),$i=W(89772),Do=W(91238),Ta=W(88910),iu=W(54837),Ga=W(87485),Xo=W(56767),Du=W(69916),uu=W(76651),zi=W(61437),su=W(63252),ro=W(35285),yo=W(17454),No=W(39865),jo=W(86035),La=W(50058),Da=W(67501),si=W(85576),Fo=W(98275),Hi=W(71842),Za=W(609),ki=W(21568),li=W(96431),Wi=W(40050),lu=W(54534),Vi=W(95090),mo=W(34744),So=W(48824),ci=W(44130),Yo=W(35954),Ki=W(16850),fi=W(26182),no=W(8922),di=W(5835),ta=W(8970),Qo=W(84444),cu=W(78206),vi=W(76478),he=W(79715),Ie=W(12714),je=W(5964),Je=W(43561),z=W(32049),ee=W(86020),X=W(56585),re=W(33948),ne=W(82801),Se=W(84633),Le=W(85844),ze=W(71550),ke=W(61295),yt=W(60285),st=W(83753),lt=W(41637),ut=W(13399);function Wt(j){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},Wt(j)}function ir(j,V){if(Wt(j)!=="object"||j===null)return j;var ae=j[Symbol.toPrimitive];if(ae!==void 0){var oe=ae.call(j,V||"default");if(Wt(oe)!=="object")return oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(j)}function Nt(j){var V=ir(j,"string");return Wt(V)==="symbol"?V:String(V)}function Qt(j,V,ae){return V=Nt(V),V in j?Object.defineProperty(j,V,{value:ae,enumerable:!0,configurable:!0,writable:!0}):j[V]=ae,j}function Sr(j,V){var ae=Object.keys(j);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(j);V&&(oe=oe.filter(function(we){return Object.getOwnPropertyDescriptor(j,we).enumerable})),ae.push.apply(ae,oe)}return ae}function Bt(j){for(var V=1;V<arguments.length;V++){var ae=arguments[V]!=null?arguments[V]:{};V%2?Sr(Object(ae),!0).forEach(function(oe){Qt(j,oe,ae[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(ae)):Sr(Object(ae)).forEach(function(oe){Object.defineProperty(j,oe,Object.getOwnPropertyDescriptor(ae,oe))})}return j}function ur(j){if(Array.isArray(j))return j}function sr(j,V){var ae=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(ae!=null){var oe,we,$e,Ke,Xe=[],ct=!0,At=!1;try{if($e=(ae=ae.call(j)).next,V===0){if(Object(ae)!==ae)return;ct=!1}else for(;!(ct=(oe=$e.call(ae)).done)&&(Xe.push(oe.value),Xe.length!==V);ct=!0);}catch(Vt){At=!0,we=Vt}finally{try{if(!ct&&ae.return!=null&&(Ke=ae.return(),Object(Ke)!==Ke))return}finally{if(At)throw we}}return Xe}}function xr(j,V){(V==null||V>j.length)&&(V=j.length);for(var ae=0,oe=new Array(V);ae<V;ae++)oe[ae]=j[ae];return oe}function Mt(j,V){if(j){if(typeof j=="string")return xr(j,V);var ae=Object.prototype.toString.call(j).slice(8,-1);if(ae==="Object"&&j.constructor&&(ae=j.constructor.name),ae==="Map"||ae==="Set")return Array.from(j);if(ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return xr(j,V)}}function Rt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
58
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function br(j,V){return ur(j)||sr(j,V)||Mt(j,V)||Rt()}var bt=W(67294),Mr=W(20745),bn=W(89250),Na=W(44536),Cn=null,Mn=bt.createContext({});function Gn(){return bt.useContext(Mn)}function ra(){var j=useLocation(),V=Gn(),ae=V.clientRoutes,oe=matchRoutes(ae,j.pathname);return oe||[]}function xo(){var j,V=ra().slice(-1),ae=((j=V[0])===null||j===void 0?void 0:j.route)||{},oe=ae.element,we=_objectWithoutProperties(ae,Cn);return we}function ao(){var j=ra(),V=Gn(),ae=V.serverLoaderData,oe=V.basename,we=React.useState(function(){var ct={},At=!1;return j.forEach(function(Vt){var lr=ae[Vt.route.id];lr&&(Object.assign(ct,lr),At=!0)}),At?ct:void 0}),$e=_slicedToArray(we,2),Ke=$e[0],Xe=$e[1];return React.useEffect(function(){window.__UMI_LOADER_DATA__||Promise.all(j.filter(function(ct){return ct.route.hasServerLoader}).map(function(ct){return new Promise(function(At){fetchServerLoader({id:ct.route.id,basename:oe,cb:At})})})).then(function(ct){if(ct.length){var At={};ct.forEach(function(Vt){Object.assign(At,Vt)}),Xe(At)}})},[]),{data:Ke}}function va(){var j=useRouteData(),V=Gn();return{data:V.clientLoaderData[j.route.id]}}function na(j){var V=j.id,ae=j.basename,oe=j.cb,we=new URLSearchParams({route:V,url:window.location.href}).toString(),$e="".concat(Eo(ae),"__serverLoader?").concat(we);fetch($e,{credentials:"include"}).then(function(Ke){return Ke.json()}).then(oe).catch(console.error)}function Eo(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return j.endsWith("/")?j:"".concat(j,"/")}function ha(j,V){if(j==null)return{};var ae={},oe=Object.keys(j),we,$e;for($e=0;$e<oe.length;$e++)we=oe[$e],!(V.indexOf(we)>=0)&&(ae[we]=j[we]);return ae}function Zn(j,V){if(j==null)return{};var ae=ha(j,V),oe,we;if(Object.getOwnPropertySymbols){var $e=Object.getOwnPropertySymbols(j);for(we=0;we<$e.length;we++)oe=$e[we],!(V.indexOf(oe)>=0)&&Object.prototype.propertyIsEnumerable.call(j,oe)&&(ae[oe]=j[oe])}return ae}function zn(){return zn=Object.assign?Object.assign.bind():function(j){for(var V=1;V<arguments.length;V++){var ae=arguments[V];for(var oe in ae)Object.prototype.hasOwnProperty.call(ae,oe)&&(j[oe]=ae[oe])}return j},zn.apply(this,arguments)}var fu=bt.createContext(void 0);function Gs(){return bt.useContext(fu)}var Zs=["redirect"];function hi(j){var V=j.routesById,ae=j.parentId,oe=j.routeComponents;return Object.keys(V).filter(function(we){return V[we].parentId===ae}).map(function(we){var $e=is(Bt({route:V[we],routeComponent:oe[we],loadingComponent:j.loadingComponent,reactRouter5Compat:j.reactRouter5Compat},j.reactRouter5Compat&&{hasChildren:Object.keys(V).filter(function(Xe){return V[Xe].parentId===we}).length>0})),Ke=hi({routesById:V,routeComponents:oe,parentId:$e.id,loadingComponent:j.loadingComponent,reactRouter5Compat:j.reactRouter5Compat});return Ke.length>0&&($e.children=Ke,$e.routes=Ke),$e})}function Xs(j){var V=(0,bn.useParams)(),ae=Bt(Bt({},j),{},{to:(0,Na.Gn)(j.to,V)});return bt.createElement(bn.Navigate,zn({replace:!0},ae))}function is(j){var V=j.route,ae=V.redirect,oe=Zn(V,Zs),we=j.reactRouter5Compat?cn:Nu;return Bt({element:ae?bt.createElement(Xs,{to:ae}):bt.createElement(fu.Provider,{value:{route:j.route}},bt.createElement(we,{loader:bt.memo(j.routeComponent),loadingComponent:j.loadingComponent||us,hasChildren:j.hasChildren}))},oe)}function us(){return bt.createElement("div",null)}function cn(j){var V=Gs(),ae=V.route,oe=Gn(),we=oe.history,$e=oe.clientRoutes,Ke=(0,bn.useParams)(),Xe={params:Ke,isExact:!0,path:ae.path,url:we.location.pathname},ct=j.loader;return bt.createElement(bt.Suspense,{fallback:bt.createElement(j.loadingComponent,null)},bt.createElement(ct,{location:we.location,match:Xe,history:we,params:Ke,route:ae,routes:$e},j.hasChildren&&bt.createElement(bn.Outlet,null)))}function Nu(j){var V=j.loader;return bt.createElement(bt.Suspense,{fallback:bt.createElement(j.loadingComponent,null)},bt.createElement(V,null))}var pi=null;function du(){return pi}function ss(j){var V=j.history,ae=bt.useState({action:V.action,location:V.location}),oe=br(ae,2),we=oe[0],$e=oe[1];return(0,bt.useLayoutEffect)(function(){return V.listen($e)},[V]),(0,bt.useLayoutEffect)(function(){function Ke(Xe){j.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:j.routes,clientRoutes:j.clientRoutes,location:Xe.location,action:Xe.action,basename:j.basename,isFirst:!!Xe.isFirst}})}return Ke({location:we.location,action:we.action,isFirst:!0}),V.listen(Ke)},[V,j.routes,j.clientRoutes]),bt.createElement(bn.Router,{navigator:V,location:we.location,basename:j.basename},j.children)}function ju(){var j=Gn(),V=j.clientRoutes;return(0,bn.useRoutes)(V)}var Gi=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],vu=function(V,ae){var oe=V.basename||"/",we=hi({routesById:V.routes,routeComponents:V.routeComponents,loadingComponent:V.loadingComponent,reactRouter5Compat:V.reactRouter5Compat});V.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:we}});for(var $e=bt.createElement(ss,{basename:oe,pluginManager:V.pluginManager,routes:V.routes,clientRoutes:we,history:V.history},ae),Ke=0,Xe=Gi;Ke<Xe.length;Ke++){var ct=Xe[Ke];$e=V.pluginManager.applyPlugins({type:"modify",key:ct,initialValue:$e,args:{routes:V.routes,history:V.history,plugin:V.pluginManager}})}var At=function(){var lr=(0,bt.useState)({}),tr=br(lr,2),rr=tr[0],dn=tr[1],Ht=(0,bt.useState)(window.__UMI_LOADER_DATA__||{}),rn=br(Ht,2),Qn=rn[0],ma=rn[1],In=(0,bt.useCallback)(function(Vr,nn){var vn,Ya=(((vn=(0,Na.fp)(we,Vr,oe))===null||vn===void 0?void 0:vn.map(function(Jn){return Jn.route.id}))||[]).filter(Boolean);Ya.forEach(function(Jn){var za,eu,Tn=window.__umi_manifest__;if(Tn){var bi=Jn.replace(/[\/\-]/g,"_"),ko="preload-".concat(bi,".js");if(!document.getElementById(ko)){var ri=Object.keys(Tn).filter(function(vt){return vt.startsWith(bi+".")});ri.forEach(function(vt){if(!/\.(js|css)$/.test(vt))throw Error("preload not support ".concat(vt," file"));var _e=Tn[vt],pt=document.createElement("link");pt.rel="preload",pt.as="style",vt.endsWith(".js")&&(pt.as="script",pt.id=ko),V.runtimePublicPath&&(_e=_e.replace(new RegExp("^".concat(V.publicPath)),window.publicPath)),pt.href=_e,document.head.appendChild(pt)})}}!nn&&(za=V.routes[Jn])!==null&&za!==void 0&&za.hasServerLoader&&na({id:Jn,basename:oe,cb:function(_e){bt.startTransition(function(){ma(function(pt){return Bt(Bt({},pt),{},Qt({},Jn,_e))})})}});var oa=(eu=V.routes[Jn])===null||eu===void 0?void 0:eu.clientLoader;oa&&!rr[Jn]&&oa().then(function(vt){dn(function(_e){return Bt(Bt({},_e),{},Qt({},Jn,vt))})})})},[rr]);return(0,bt.useEffect)(function(){return In(window.location.pathname,!0),V.history.listen(function(Vr){In(Vr.location.pathname)})},[]),(0,bt.useLayoutEffect)(function(){typeof V.callback=="function"&&V.callback()},[]),bt.createElement(Mn.Provider,{value:{routes:V.routes,routeComponents:V.routeComponents,clientRoutes:we,pluginManager:V.pluginManager,rootElement:V.rootElement,basename:oe,clientLoaderData:rr,serverLoaderData:Qn,preloadRoute:In,history:V.history}},$e)};return At};function gi(j){var V=j.rootElement||document.getElementById("root"),ae=vu(j,bt.createElement(ju,null));if(j.components)return ae;if(j.hydrate){Mr.hydrateRoot(V,bt.createElement(ae,null));return}if(Mr.createRoot){pi=Mr.createRoot(V),pi.render(bt.createElement(ae,null));return}Mr.render(bt.createElement(ae,null),V)}var ls=W(57930);function Ys(){return Fu.apply(this,arguments)}function Fu(){return Fu=c()(n()().mark(function j(){var V;return n()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return V={1:{path:"/*",id:"1"}},oe.abrupt("return",{routes:V,routeComponents:{1:bt.lazy(function(){return ls("imported_-1mv0urf_component",Promise.all([W.e(4920),W.e(4701),W.e(2698),W.e(2823),W.e(3199),W.e(9897),W.e(1051),W.e(4218),W.e(7913),W.e(7792),W.e(3987),W.e(4509),W.e(527),W.e(9278),W.e(4265),W.e(3421),W.e(4582),W.e(489),W.e(7153),W.e(5352),W.e(5420),W.e(7513),W.e(4989),W.e(8996),W.e(1835),W.e(5105),W.e(2068),W.e(8129),W.e(9331),W.e(3147),W.e(3607),W.e(1216),W.e(8683),W.e(8582),W.e(8243),W.e(9227),W.e(9021),W.e(5415),W.e(8866)]).then(W.bind(W,57182)))})}});case 2:case"end":return oe.stop()}},j)})),Fu.apply(this,arguments)}var cs=W(45697),Ur=W.n(cs),hu=W(69590),Bu=W.n(hu),Uu=W(41143),pu=W.n(Uu),$u=W(96774),Qs=W.n($u);function Sn(){return Sn=Object.assign||function(j){for(var V=1;V<arguments.length;V++){var ae=arguments[V];for(var oe in ae)Object.prototype.hasOwnProperty.call(ae,oe)&&(j[oe]=ae[oe])}return j},Sn.apply(this,arguments)}function zu(j,V){j.prototype=Object.create(V.prototype),j.prototype.constructor=j,Hu(j,V)}function Hu(j,V){return Hu=Object.setPrototypeOf||function(ae,oe){return ae.__proto__=oe,ae},Hu(j,V)}function gu(j,V){if(j==null)return{};var ae,oe,we={},$e=Object.keys(j);for(oe=0;oe<$e.length;oe++)V.indexOf(ae=$e[oe])>=0||(we[ae]=j[ae]);return we}var er={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},fs={rel:["amphtml","canonical","alternate"]},yi={type:["application/ld+json"]},oo={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},mi=Object.keys(er).map(function(j){return er[j]}),ja={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ku=Object.keys(ja).reduce(function(j,V){return j[ja[V]]=V,j},{}),Si=function(j,V){for(var ae=j.length-1;ae>=0;ae-=1){var oe=j[ae];if(Object.prototype.hasOwnProperty.call(oe,V))return oe[V]}return null},Js=function(j){var V=Si(j,er.TITLE),ae=Si(j,"titleTemplate");if(Array.isArray(V)&&(V=V.join("")),ae&&V)return ae.replace(/%s/g,function(){return V});var oe=Si(j,"defaultTitle");return V||oe||void 0},Jo=function(j){return Si(j,"onChangeClientState")||function(){}},qo=function(j,V){return V.filter(function(ae){return ae[j]!==void 0}).map(function(ae){return ae[j]}).reduce(function(ae,oe){return Sn({},ae,oe)},{})},xi=function(j,V){return V.filter(function(ae){return ae[er.BASE]!==void 0}).map(function(ae){return ae[er.BASE]}).reverse().reduce(function(ae,oe){if(!ae.length)for(var we=Object.keys(oe),$e=0;$e<we.length;$e+=1){var Ke=we[$e].toLowerCase();if(j.indexOf(Ke)!==-1&&oe[Ke])return ae.concat(oe)}return ae},[])},Bo=function(j,V,ae){var oe={};return ae.filter(function(we){return!!Array.isArray(we[j])||(we[j]!==void 0&&console&&typeof console.warn=="function"&&console.warn("Helmet: "+j+' should be of type "Array". Instead found type "'+typeof we[j]+'"'),!1)}).map(function(we){return we[j]}).reverse().reduce(function(we,$e){var Ke={};$e.filter(function(lr){for(var tr,rr=Object.keys(lr),dn=0;dn<rr.length;dn+=1){var Ht=rr[dn],rn=Ht.toLowerCase();V.indexOf(rn)===-1||tr==="rel"&&lr[tr].toLowerCase()==="canonical"||rn==="rel"&&lr[rn].toLowerCase()==="stylesheet"||(tr=rn),V.indexOf(Ht)===-1||Ht!=="innerHTML"&&Ht!=="cssText"&&Ht!=="itemprop"||(tr=Ht)}if(!tr||!lr[tr])return!1;var Qn=lr[tr].toLowerCase();return oe[tr]||(oe[tr]={}),Ke[tr]||(Ke[tr]={}),!oe[tr][Qn]&&(Ke[tr][Qn]=!0,!0)}).reverse().forEach(function(lr){return we.push(lr)});for(var Xe=Object.keys(Ke),ct=0;ct<Xe.length;ct+=1){var At=Xe[ct],Vt=Sn({},oe[At],Ke[At]);oe[At]=Vt}return we},[]).reverse()},Wu=function(j,V){if(Array.isArray(j)&&j.length){for(var ae=0;ae<j.length;ae+=1)if(j[ae][V])return!0}return!1},_o=function(j){return Array.isArray(j)?j.join(""):j},io=function(j,V){return Array.isArray(j)?j.reduce(function(ae,oe){return function(we,$e){for(var Ke=Object.keys(we),Xe=0;Xe<Ke.length;Xe+=1)if($e[Ke[Xe]]&&$e[Ke[Xe]].includes(we[Ke[Xe]]))return!0;return!1}(oe,V)?ae.priority.push(oe):ae.default.push(oe),ae},{priority:[],default:[]}):{default:j}},an=function(j,V){var ae;return Sn({},j,((ae={})[V]=void 0,ae))},on=[er.NOSCRIPT,er.SCRIPT,er.STYLE],uo=function(j,V){return V===void 0&&(V=!0),V===!1?String(j):String(j).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Hn=function(j){return Object.keys(j).reduce(function(V,ae){var oe=j[ae]!==void 0?ae+'="'+j[ae]+'"':""+ae;return V?V+" "+oe:oe},"")},aa=function(j,V){return V===void 0&&(V={}),Object.keys(j).reduce(function(ae,oe){return ae[ja[oe]||oe]=j[oe],ae},V)},so=function(j,V){return V.map(function(ae,oe){var we,$e=((we={key:oe})["data-rh"]=!0,we);return Object.keys(ae).forEach(function(Ke){var Xe=ja[Ke]||Ke;Xe==="innerHTML"||Xe==="cssText"?$e.dangerouslySetInnerHTML={__html:ae.innerHTML||ae.cssText}:$e[Xe]=ae[Ke]}),bt.createElement(j,$e)})},kn=function(j,V,ae){switch(j){case er.TITLE:return{toComponent:function(){return we=V.titleAttributes,($e={key:oe=V.title})["data-rh"]=!0,Ke=aa(we,$e),[bt.createElement(er.TITLE,Ke,oe)];var oe,we,$e,Ke},toString:function(){return function(oe,we,$e,Ke){var Xe=Hn($e),ct=_o(we);return Xe?"<"+oe+' data-rh="true" '+Xe+">"+uo(ct,Ke)+"</"+oe+">":"<"+oe+' data-rh="true">'+uo(ct,Ke)+"</"+oe+">"}(j,V.title,V.titleAttributes,ae)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return aa(V)},toString:function(){return Hn(V)}};default:return{toComponent:function(){return so(j,V)},toString:function(){return function(oe,we,$e){return we.reduce(function(Ke,Xe){var ct=Object.keys(Xe).filter(function(lr){return!(lr==="innerHTML"||lr==="cssText")}).reduce(function(lr,tr){var rr=Xe[tr]===void 0?tr:tr+'="'+uo(Xe[tr],$e)+'"';return lr?lr+" "+rr:rr},""),At=Xe.innerHTML||Xe.cssText||"",Vt=on.indexOf(oe)===-1;return Ke+"<"+oe+' data-rh="true" '+ct+(Vt?"/>":">"+At+"</"+oe+">")},"")}(j,V,ae)}}}},Xn=function(j){var V=j.baseTag,ae=j.bodyAttributes,oe=j.encode,we=j.htmlAttributes,$e=j.noscriptTags,Ke=j.styleTags,Xe=j.title,ct=Xe===void 0?"":Xe,At=j.titleAttributes,Vt=j.linkTags,lr=j.metaTags,tr=j.scriptTags,rr={toComponent:function(){},toString:function(){return""}};if(j.prioritizeSeoTags){var dn=function(Ht){var rn=Ht.linkTags,Qn=Ht.scriptTags,ma=Ht.encode,In=io(Ht.metaTags,oo),Vr=io(rn,fs),nn=io(Qn,yi);return{priorityMethods:{toComponent:function(){return[].concat(so(er.META,In.priority),so(er.LINK,Vr.priority),so(er.SCRIPT,nn.priority))},toString:function(){return kn(er.META,In.priority,ma)+" "+kn(er.LINK,Vr.priority,ma)+" "+kn(er.SCRIPT,nn.priority,ma)}},metaTags:In.default,linkTags:Vr.default,scriptTags:nn.default}}(j);rr=dn.priorityMethods,Vt=dn.linkTags,lr=dn.metaTags,tr=dn.scriptTags}return{priority:rr,base:kn(er.BASE,V,oe),bodyAttributes:kn("bodyAttributes",ae,oe),htmlAttributes:kn("htmlAttributes",we,oe),link:kn(er.LINK,Vt,oe),meta:kn(er.META,lr,oe),noscript:kn(er.NOSCRIPT,$e,oe),script:kn(er.SCRIPT,tr,oe),style:kn(er.STYLE,Ke,oe),title:kn(er.TITLE,{title:ct,titleAttributes:At},oe)}},ei=[],yu=function(j,V){var ae=this;V===void 0&&(V=typeof document<"u"),this.instances=[],this.value={setHelmet:function(oe){ae.context.helmet=oe},helmetInstances:{get:function(){return ae.canUseDOM?ei:ae.instances},add:function(oe){(ae.canUseDOM?ei:ae.instances).push(oe)},remove:function(oe){var we=(ae.canUseDOM?ei:ae.instances).indexOf(oe);(ae.canUseDOM?ei:ae.instances).splice(we,1)}}},this.context=j,this.canUseDOM=V,V||(j.helmet=Xn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Vu=bt.createContext({}),mu=Ur().shape({setHelmet:Ur().func,helmetInstances:Ur().shape({get:Ur().func,add:Ur().func,remove:Ur().func})}),ds=typeof document<"u",pa=function(j){function V(ae){var oe;return(oe=j.call(this,ae)||this).helmetData=new yu(oe.props.context,V.canUseDOM),oe}return zu(V,j),V.prototype.render=function(){return bt.createElement(Vu.Provider,{value:this.helmetData.value},this.props.children)},V}(bt.Component);pa.canUseDOM=ds,pa.propTypes={context:Ur().shape({helmet:Ur().shape()}),children:Ur().node.isRequired},pa.defaultProps={context:{}},pa.displayName="HelmetProvider";var Oo=function(j,V){var ae,oe=document.head||document.querySelector(er.HEAD),we=oe.querySelectorAll(j+"[data-rh]"),$e=[].slice.call(we),Ke=[];return V&&V.length&&V.forEach(function(Xe){var ct=document.createElement(j);for(var At in Xe)Object.prototype.hasOwnProperty.call(Xe,At)&&(At==="innerHTML"?ct.innerHTML=Xe.innerHTML:At==="cssText"?ct.styleSheet?ct.styleSheet.cssText=Xe.cssText:ct.appendChild(document.createTextNode(Xe.cssText)):ct.setAttribute(At,Xe[At]===void 0?"":Xe[At]));ct.setAttribute("data-rh","true"),$e.some(function(Vt,lr){return ae=lr,ct.isEqualNode(Vt)})?$e.splice(ae,1):Ke.push(ct)}),$e.forEach(function(Xe){return Xe.parentNode.removeChild(Xe)}),Ke.forEach(function(Xe){return oe.appendChild(Xe)}),{oldTags:$e,newTags:Ke}},Zi=function(j,V){var ae=document.getElementsByTagName(j)[0];if(ae){for(var oe=ae.getAttribute("data-rh"),we=oe?oe.split(","):[],$e=[].concat(we),Ke=Object.keys(V),Xe=0;Xe<Ke.length;Xe+=1){var ct=Ke[Xe],At=V[ct]||"";ae.getAttribute(ct)!==At&&ae.setAttribute(ct,At),we.indexOf(ct)===-1&&we.push(ct);var Vt=$e.indexOf(ct);Vt!==-1&&$e.splice(Vt,1)}for(var lr=$e.length-1;lr>=0;lr-=1)ae.removeAttribute($e[lr]);we.length===$e.length?ae.removeAttribute("data-rh"):ae.getAttribute("data-rh")!==Ke.join(",")&&ae.setAttribute("data-rh",Ke.join(","))}},Ku=function(j,V){var ae=j.baseTag,oe=j.htmlAttributes,we=j.linkTags,$e=j.metaTags,Ke=j.noscriptTags,Xe=j.onChangeClientState,ct=j.scriptTags,At=j.styleTags,Vt=j.title,lr=j.titleAttributes;Zi(er.BODY,j.bodyAttributes),Zi(er.HTML,oe),function(Ht,rn){Ht!==void 0&&document.title!==Ht&&(document.title=_o(Ht)),Zi(er.TITLE,rn)}(Vt,lr);var tr={baseTag:Oo(er.BASE,ae),linkTags:Oo(er.LINK,we),metaTags:Oo(er.META,$e),noscriptTags:Oo(er.NOSCRIPT,Ke),scriptTags:Oo(er.SCRIPT,ct),styleTags:Oo(er.STYLE,At)},rr={},dn={};Object.keys(tr).forEach(function(Ht){var rn=tr[Ht],Qn=rn.newTags,ma=rn.oldTags;Qn.length&&(rr[Ht]=Qn),ma.length&&(dn[Ht]=tr[Ht].oldTags)}),V&&V(),Xe(j,rr,dn)},Xi=null,Xa=function(j){function V(){for(var oe,we=arguments.length,$e=new Array(we),Ke=0;Ke<we;Ke++)$e[Ke]=arguments[Ke];return(oe=j.call.apply(j,[this].concat($e))||this).rendered=!1,oe}zu(V,j);var ae=V.prototype;return ae.shouldComponentUpdate=function(oe){return!Qs()(oe,this.props)},ae.componentDidUpdate=function(){this.emitChange()},ae.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},ae.emitChange=function(){var oe,we,$e=this.props.context,Ke=$e.setHelmet,Xe=null,ct=(oe=$e.helmetInstances.get().map(function(At){var Vt=Sn({},At.props);return delete Vt.context,Vt}),{baseTag:xi(["href"],oe),bodyAttributes:qo("bodyAttributes",oe),defer:Si(oe,"defer"),encode:Si(oe,"encodeSpecialCharacters"),htmlAttributes:qo("htmlAttributes",oe),linkTags:Bo(er.LINK,["rel","href"],oe),metaTags:Bo(er.META,["name","charset","http-equiv","property","itemprop"],oe),noscriptTags:Bo(er.NOSCRIPT,["innerHTML"],oe),onChangeClientState:Jo(oe),scriptTags:Bo(er.SCRIPT,["src","innerHTML"],oe),styleTags:Bo(er.STYLE,["cssText"],oe),title:Js(oe),titleAttributes:qo("titleAttributes",oe),prioritizeSeoTags:Wu(oe,"prioritizeSeoTags")});pa.canUseDOM?(we=ct,Xi&&cancelAnimationFrame(Xi),we.defer?Xi=requestAnimationFrame(function(){Ku(we,function(){Xi=null})}):(Ku(we),Xi=null)):Xn&&(Xe=Xn(ct)),Ke(Xe)},ae.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},ae.render=function(){return this.init(),null},V}(bt.Component);Xa.propTypes={context:mu.isRequired},Xa.displayName="HelmetDispatcher";var Ei=["children"],Oi=["children"],Ii=function(j){function V(){return j.apply(this,arguments)||this}zu(V,j);var ae=V.prototype;return ae.shouldComponentUpdate=function(oe){return!Bu()(an(this.props,"helmetData"),an(oe,"helmetData"))},ae.mapNestedChildrenToProps=function(oe,we){if(!we)return null;switch(oe.type){case er.SCRIPT:case er.NOSCRIPT:return{innerHTML:we};case er.STYLE:return{cssText:we};default:throw new Error("<"+oe.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},ae.flattenArrayTypeChildren=function(oe){var we,$e=oe.child,Ke=oe.arrayTypeChildren;return Sn({},Ke,((we={})[$e.type]=[].concat(Ke[$e.type]||[],[Sn({},oe.newChildProps,this.mapNestedChildrenToProps($e,oe.nestedChildren))]),we))},ae.mapObjectTypeChildren=function(oe){var we,$e,Ke=oe.child,Xe=oe.newProps,ct=oe.newChildProps,At=oe.nestedChildren;switch(Ke.type){case er.TITLE:return Sn({},Xe,((we={})[Ke.type]=At,we.titleAttributes=Sn({},ct),we));case er.BODY:return Sn({},Xe,{bodyAttributes:Sn({},ct)});case er.HTML:return Sn({},Xe,{htmlAttributes:Sn({},ct)});default:return Sn({},Xe,(($e={})[Ke.type]=Sn({},ct),$e))}},ae.mapArrayTypeChildrenToProps=function(oe,we){var $e=Sn({},we);return Object.keys(oe).forEach(function(Ke){var Xe;$e=Sn({},$e,((Xe={})[Ke]=oe[Ke],Xe))}),$e},ae.warnOnInvalidChildren=function(oe,we){return pu()(mi.some(function($e){return oe.type===$e}),typeof oe.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+mi.join(", ")+" are allowed. Helmet does not support rendering <"+oe.type+"> elements. Refer to our API for more information."),pu()(!we||typeof we=="string"||Array.isArray(we)&&!we.some(function($e){return typeof $e!="string"}),"Helmet expects a string as a child of <"+oe.type+">. Did you forget to wrap your children in braces? ( <"+oe.type+">{``}</"+oe.type+"> ) Refer to our API for more information."),!0},ae.mapChildrenToProps=function(oe,we){var $e=this,Ke={};return bt.Children.forEach(oe,function(Xe){if(Xe&&Xe.props){var ct=Xe.props,At=ct.children,Vt=gu(ct,Ei),lr=Object.keys(Vt).reduce(function(rr,dn){return rr[ku[dn]||dn]=Vt[dn],rr},{}),tr=Xe.type;switch(typeof tr=="symbol"?tr=tr.toString():$e.warnOnInvalidChildren(Xe,At),tr){case er.FRAGMENT:we=$e.mapChildrenToProps(At,we);break;case er.LINK:case er.META:case er.NOSCRIPT:case er.SCRIPT:case er.STYLE:Ke=$e.flattenArrayTypeChildren({child:Xe,arrayTypeChildren:Ke,newChildProps:lr,nestedChildren:At});break;default:we=$e.mapObjectTypeChildren({child:Xe,newProps:we,newChildProps:lr,nestedChildren:At})}}}),this.mapArrayTypeChildrenToProps(Ke,we)},ae.render=function(){var oe=this.props,we=oe.children,$e=gu(oe,Oi),Ke=Sn({},$e),Xe=$e.helmetData;return we&&(Ke=this.mapChildrenToProps(we,Ke)),!Xe||Xe instanceof yu||(Xe=new yu(Xe.context,Xe.instances)),Xe?bt.createElement(Xa,Sn({},Ke,{context:Xe.value,helmetData:void 0})):bt.createElement(Vu.Consumer,null,function(ct){return bt.createElement(Xa,Sn({},Ke,{context:ct}))})},V}(bt.Component);Ii.propTypes={base:Ur().object,bodyAttributes:Ur().object,children:Ur().oneOfType([Ur().arrayOf(Ur().node),Ur().node]),defaultTitle:Ur().string,defer:Ur().bool,encodeSpecialCharacters:Ur().bool,htmlAttributes:Ur().object,link:Ur().arrayOf(Ur().object),meta:Ur().arrayOf(Ur().object),noscript:Ur().arrayOf(Ur().object),onChangeClientState:Ur().func,script:Ur().arrayOf(Ur().object),style:Ur().arrayOf(Ur().object),title:Ur().string,titleAttributes:Ur().object,titleTemplate:Ur().string,prioritizeSeoTags:Ur().bool,helmetData:Ur().object},Ii.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Ii.displayName="Helmet";var Su={},Fa=function(V){return bt.createElement(pa,{context:Su},V)};function Ba(j){return o()(o()({},j),{},{basename:window.routerBase})}function Wn(j){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},Wn(j)}function Ra(){"use strict";Ra=function(){return V};var j,V={},ae=Object.prototype,oe=ae.hasOwnProperty,we=Object.defineProperty||function(vt,_e,pt){vt[_e]=pt.value},$e=typeof Symbol=="function"?Symbol:{},Ke=$e.iterator||"@@iterator",Xe=$e.asyncIterator||"@@asyncIterator",ct=$e.toStringTag||"@@toStringTag";function At(vt,_e,pt){return Object.defineProperty(vt,_e,{value:pt,enumerable:!0,configurable:!0,writable:!0}),vt[_e]}try{At({},"")}catch{At=function(pt,dr,wr){return pt[dr]=wr}}function Vt(vt,_e,pt,dr){var wr=_e&&_e.prototype instanceof Qn?_e:Qn,Er=Object.create(wr.prototype),xn=new ri(dr||[]);return we(Er,"_invoke",{value:eu(vt,pt,xn)}),Er}function lr(vt,_e,pt){try{return{type:"normal",arg:vt.call(_e,pt)}}catch(dr){return{type:"throw",arg:dr}}}V.wrap=Vt;var tr="suspendedStart",rr="suspendedYield",dn="executing",Ht="completed",rn={};function Qn(){}function ma(){}function In(){}var Vr={};At(Vr,Ke,function(){return this});var nn=Object.getPrototypeOf,vn=nn&&nn(nn(oa([])));vn&&vn!==ae&&oe.call(vn,Ke)&&(Vr=vn);var Ya=In.prototype=Qn.prototype=Object.create(Vr);function Jn(vt){["next","throw","return"].forEach(function(_e){At(vt,_e,function(pt){return this._invoke(_e,pt)})})}function za(vt,_e){function pt(wr,Er,xn,qn){var ia=lr(vt[wr],vt,Er);if(ia.type!=="throw"){var Wo=ia.arg,Ro=Wo.value;return Ro&&Wn(Ro)=="object"&&oe.call(Ro,"__await")?_e.resolve(Ro.__await).then(function(Vo){pt("next",Vo,xn,qn)},function(Vo){pt("throw",Vo,xn,qn)}):_e.resolve(Ro).then(function(Vo){Wo.value=Vo,xn(Wo)},function(Vo){return pt("throw",Vo,xn,qn)})}qn(ia.arg)}var dr;we(this,"_invoke",{value:function(Er,xn){function qn(){return new _e(function(ia,Wo){pt(Er,xn,ia,Wo)})}return dr=dr?dr.then(qn,qn):qn()}})}function eu(vt,_e,pt){var dr=tr;return function(wr,Er){if(dr===dn)throw new Error("Generator is already running");if(dr===Ht){if(wr==="throw")throw Er;return{value:j,done:!0}}for(pt.method=wr,pt.arg=Er;;){var xn=pt.delegate;if(xn){var qn=Tn(xn,pt);if(qn){if(qn===rn)continue;return qn}}if(pt.method==="next")pt.sent=pt._sent=pt.arg;else if(pt.method==="throw"){if(dr===tr)throw dr=Ht,pt.arg;pt.dispatchException(pt.arg)}else pt.method==="return"&&pt.abrupt("return",pt.arg);dr=dn;var ia=lr(vt,_e,pt);if(ia.type==="normal"){if(dr=pt.done?Ht:rr,ia.arg===rn)continue;return{value:ia.arg,done:pt.done}}ia.type==="throw"&&(dr=Ht,pt.method="throw",pt.arg=ia.arg)}}}function Tn(vt,_e){var pt=_e.method,dr=vt.iterator[pt];if(dr===j)return _e.delegate=null,pt==="throw"&&vt.iterator.return&&(_e.method="return",_e.arg=j,Tn(vt,_e),_e.method==="throw")||pt!=="return"&&(_e.method="throw",_e.arg=new TypeError("The iterator does not provide a '"+pt+"' method")),rn;var wr=lr(dr,vt.iterator,_e.arg);if(wr.type==="throw")return _e.method="throw",_e.arg=wr.arg,_e.delegate=null,rn;var Er=wr.arg;return Er?Er.done?(_e[vt.resultName]=Er.value,_e.next=vt.nextLoc,_e.method!=="return"&&(_e.method="next",_e.arg=j),_e.delegate=null,rn):Er:(_e.method="throw",_e.arg=new TypeError("iterator result is not an object"),_e.delegate=null,rn)}function bi(vt){var _e={tryLoc:vt[0]};1 in vt&&(_e.catchLoc=vt[1]),2 in vt&&(_e.finallyLoc=vt[2],_e.afterLoc=vt[3]),this.tryEntries.push(_e)}function ko(vt){var _e=vt.completion||{};_e.type="normal",delete _e.arg,vt.completion=_e}function ri(vt){this.tryEntries=[{tryLoc:"root"}],vt.forEach(bi,this),this.reset(!0)}function oa(vt){if(vt||vt===""){var _e=vt[Ke];if(_e)return _e.call(vt);if(typeof vt.next=="function")return vt;if(!isNaN(vt.length)){var pt=-1,dr=function wr(){for(;++pt<vt.length;)if(oe.call(vt,pt))return wr.value=vt[pt],wr.done=!1,wr;return wr.value=j,wr.done=!0,wr};return dr.next=dr}}throw new TypeError(Wn(vt)+" is not iterable")}return ma.prototype=In,we(Ya,"constructor",{value:In,configurable:!0}),we(In,"constructor",{value:ma,configurable:!0}),ma.displayName=At(In,ct,"GeneratorFunction"),V.isGeneratorFunction=function(vt){var _e=typeof vt=="function"&&vt.constructor;return!!_e&&(_e===ma||(_e.displayName||_e.name)==="GeneratorFunction")},V.mark=function(vt){return Object.setPrototypeOf?Object.setPrototypeOf(vt,In):(vt.__proto__=In,At(vt,ct,"GeneratorFunction")),vt.prototype=Object.create(Ya),vt},V.awrap=function(vt){return{__await:vt}},Jn(za.prototype),At(za.prototype,Xe,function(){return this}),V.AsyncIterator=za,V.async=function(vt,_e,pt,dr,wr){wr===void 0&&(wr=Promise);var Er=new za(Vt(vt,_e,pt,dr),wr);return V.isGeneratorFunction(_e)?Er:Er.next().then(function(xn){return xn.done?xn.value:Er.next()})},Jn(Ya),At(Ya,ct,"Generator"),At(Ya,Ke,function(){return this}),At(Ya,"toString",function(){return"[object Generator]"}),V.keys=function(vt){var _e=Object(vt),pt=[];for(var dr in _e)pt.push(dr);return pt.reverse(),function wr(){for(;pt.length;){var Er=pt.pop();if(Er in _e)return wr.value=Er,wr.done=!1,wr}return wr.done=!0,wr}},V.values=oa,ri.prototype={constructor:ri,reset:function(_e){if(this.prev=0,this.next=0,this.sent=this._sent=j,this.done=!1,this.delegate=null,this.method="next",this.arg=j,this.tryEntries.forEach(ko),!_e)for(var pt in this)pt.charAt(0)==="t"&&oe.call(this,pt)&&!isNaN(+pt.slice(1))&&(this[pt]=j)},stop:function(){this.done=!0;var _e=this.tryEntries[0].completion;if(_e.type==="throw")throw _e.arg;return this.rval},dispatchException:function(_e){if(this.done)throw _e;var pt=this;function dr(Wo,Ro){return xn.type="throw",xn.arg=_e,pt.next=Wo,Ro&&(pt.method="next",pt.arg=j),!!Ro}for(var wr=this.tryEntries.length-1;wr>=0;--wr){var Er=this.tryEntries[wr],xn=Er.completion;if(Er.tryLoc==="root")return dr("end");if(Er.tryLoc<=this.prev){var qn=oe.call(Er,"catchLoc"),ia=oe.call(Er,"finallyLoc");if(qn&&ia){if(this.prev<Er.catchLoc)return dr(Er.catchLoc,!0);if(this.prev<Er.finallyLoc)return dr(Er.finallyLoc)}else if(qn){if(this.prev<Er.catchLoc)return dr(Er.catchLoc,!0)}else{if(!ia)throw new Error("try statement without catch or finally");if(this.prev<Er.finallyLoc)return dr(Er.finallyLoc)}}}},abrupt:function(_e,pt){for(var dr=this.tryEntries.length-1;dr>=0;--dr){var wr=this.tryEntries[dr];if(wr.tryLoc<=this.prev&&oe.call(wr,"finallyLoc")&&this.prev<wr.finallyLoc){var Er=wr;break}}Er&&(_e==="break"||_e==="continue")&&Er.tryLoc<=pt&&pt<=Er.finallyLoc&&(Er=null);var xn=Er?Er.completion:{};return xn.type=_e,xn.arg=pt,Er?(this.method="next",this.next=Er.finallyLoc,rn):this.complete(xn)},complete:function(_e,pt){if(_e.type==="throw")throw _e.arg;return _e.type==="break"||_e.type==="continue"?this.next=_e.arg:_e.type==="return"?(this.rval=this.arg=_e.arg,this.method="return",this.next="end"):_e.type==="normal"&&pt&&(this.next=pt),rn},finish:function(_e){for(var pt=this.tryEntries.length-1;pt>=0;--pt){var dr=this.tryEntries[pt];if(dr.finallyLoc===_e)return this.complete(dr.completion,dr.afterLoc),ko(dr),rn}},catch:function(_e){for(var pt=this.tryEntries.length-1;pt>=0;--pt){var dr=this.tryEntries[pt];if(dr.tryLoc===_e){var wr=dr.completion;if(wr.type==="throw"){var Er=wr.arg;ko(dr)}return Er}}throw new Error("illegal catch attempt")},delegateYield:function(_e,pt,dr){return this.delegate={iterator:oa(_e),resultName:pt,nextLoc:dr},this.method==="next"&&(this.arg=j),rn}},V}function Io(j,V){if(Wn(j)!=="object"||j===null)return j;var ae=j[Symbol.toPrimitive];if(ae!==void 0){var oe=ae.call(j,V||"default");if(Wn(oe)!=="object")return oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(j)}function Uo(j){var V=Io(j,"string");return Wn(V)==="symbol"?V:String(V)}function xu(j,V,ae){return V=Uo(V),V in j?Object.defineProperty(j,V,{value:ae,enumerable:!0,configurable:!0,writable:!0}):j[V]=ae,j}function Eu(j,V){var ae=Object.keys(j);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(j);V&&(oe=oe.filter(function(we){return Object.getOwnPropertyDescriptor(j,we).enumerable})),ae.push.apply(ae,oe)}return ae}function Ti(j){for(var V=1;V<arguments.length;V++){var ae=arguments[V]!=null?arguments[V]:{};V%2?Eu(Object(ae),!0).forEach(function(oe){xu(j,oe,ae[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(ae)):Eu(Object(ae)).forEach(function(oe){Object.defineProperty(j,oe,Object.getOwnPropertyDescriptor(ae,oe))})}return j}function ga(j,V,ae,oe,we,$e,Ke){try{var Xe=j[$e](Ke),ct=Xe.value}catch(At){ae(At);return}Xe.done?V(ct):Promise.resolve(ct).then(oe,we)}function ya(j){return function(){var V=this,ae=arguments;return new Promise(function(oe,we){var $e=j.apply(V,ae);function Ke(ct){ga($e,oe,we,Ke,Xe,"next",ct)}function Xe(ct){ga($e,oe,we,Ke,Xe,"throw",ct)}Ke(void 0)})}}function fn(j,V){(V==null||V>j.length)&&(V=j.length);for(var ae=0,oe=new Array(V);ae<V;ae++)oe[ae]=j[ae];return oe}function Ua(j,V){if(j){if(typeof j=="string")return fn(j,V);var ae=Object.prototype.toString.call(j).slice(8,-1);if(ae==="Object"&&j.constructor&&(ae=j.constructor.name),ae==="Map"||ae==="Set")return Array.from(j);if(ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return fn(j,V)}}function Gu(j,V){var ae=typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(!ae){if(Array.isArray(j)||(ae=Ua(j))||V&&j&&typeof j.length=="number"){ae&&(j=ae);var oe=0,we=function(){};return{s:we,n:function(){return oe>=j.length?{done:!0}:{done:!1,value:j[oe++]}},e:function(At){throw At},f:we}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.