Spaces:
Running
Running
Update assets/index-c5e9d8ba.js
Browse files- assets/index-c5e9d8ba.js +1 -1
assets/index-c5e9d8ba.js
CHANGED
@@ -38,4 +38,4 @@
|
|
38 |
`).replace(Kf,"")}function fr(e,t,n){if(t=fi(t),fi(e)!==t&&n)throw Error(y(425))}function Ur(){}var ho=null,vo=null;function yo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var go=typeof setTimeout=="function"?setTimeout:void 0,Xf=typeof clearTimeout=="function"?clearTimeout:void 0,di=typeof Promise=="function"?Promise:void 0,Yf=typeof queueMicrotask=="function"?queueMicrotask:typeof di<"u"?function(e){return di.resolve(null).then(e).catch(Gf)}:go;function Gf(e){setTimeout(function(){throw e})}function Dl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),In(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);In(t)}function ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function pi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var un=Math.random().toString(36).slice(2),Fe="__reactFiber$"+un,Vn="__reactProps$"+un,Ke="__reactContainer$"+un,wo="__reactEvents$"+un,Zf="__reactListeners$"+un,Jf="__reactHandles$"+un;function kt(e){var t=e[Fe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ke]||n[Fe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pi(e);e!==null;){if(n=e[Fe])return n;e=pi(e)}return t}e=n,n=e.parentNode}return null}function Jn(e){return e=e[Fe]||e[Ke],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ut(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(y(33))}function ol(e){return e[Vn]||null}var ko=[],$t=-1;function mt(e){return{current:e}}function F(e){0>$t||(e.current=ko[$t],ko[$t]=null,$t--)}function D(e,t){$t++,ko[$t]=e.current,e.current=t}var dt={},oe=mt(dt),de=mt(!1),_t=dt;function qt(e,t){var n=e.type.contextTypes;if(!n)return dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function $r(){F(de),F(oe)}function mi(e,t,n){if(oe.current!==dt)throw Error(y(168));D(oe,t),D(de,n)}function bs(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(y(108,Mc(e)||"Unknown",l));return B({},n,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,_t=oe.current,D(oe,e),D(de,de.current),!0}function hi(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=bs(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,F(de),F(oe),D(oe,e)):F(de),D(de,n)}var Ve=null,ul=!1,Il=!1;function ea(e){Ve===null?Ve=[e]:Ve.push(e)}function qf(e){ul=!0,ea(e)}function ht(){if(!Il&&Ve!==null){Il=!0;var e=0,t=j;try{var n=Ve;for(j=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ve=null,ul=!1}catch(l){throw Ve!==null&&(Ve=Ve.slice(e+1)),_s(Jo,ht),l}finally{j=t,Il=!1}}return null}var At=[],Vt=0,Vr=null,Br=0,Se=[],xe=0,Nt=null,Be=1,He="";function gt(e,t){At[Vt++]=Br,At[Vt++]=Vr,Vr=e,Br=t}function ta(e,t,n){Se[xe++]=Be,Se[xe++]=He,Se[xe++]=Nt,Nt=e;var r=Be;e=He;var l=32-Oe(r)-1;r&=~(1<<l),n+=1;var o=32-Oe(t)+l;if(30<o){var u=l-l%5;o=(r&(1<<u)-1).toString(32),r>>=u,l-=u,Be=1<<32-Oe(t)+l|n<<l|r,He=o+e}else Be=1<<o|n<<l|r,He=e}function uu(e){e.return!==null&&(gt(e,1),ta(e,1,0))}function iu(e){for(;e===Vr;)Vr=At[--Vt],At[Vt]=null,Br=At[--Vt],At[Vt]=null;for(;e===Nt;)Nt=Se[--xe],Se[xe]=null,He=Se[--xe],Se[xe]=null,Be=Se[--xe],Se[xe]=null}var ye=null,ve=null,$=!1,Re=null;function na(e,t){var n=Ee(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function vi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ye=e,ve=ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ye=e,ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nt!==null?{id:Be,overflow:He}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ee(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ye=e,ve=null,!0):!1;default:return!1}}function So(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xo(e){if($){var t=ve;if(t){var n=t;if(!vi(e,t)){if(So(e))throw Error(y(418));t=ut(n.nextSibling);var r=ye;t&&vi(e,t)?na(r,n):(e.flags=e.flags&-4097|2,$=!1,ye=e)}}else{if(So(e))throw Error(y(418));e.flags=e.flags&-4097|2,$=!1,ye=e}}}function yi(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ye=e}function dr(e){if(e!==ye)return!1;if(!$)return yi(e),$=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yo(e.type,e.memoizedProps)),t&&(t=ve)){if(So(e))throw ra(),Error(y(418));for(;t;)na(e,t),t=ut(t.nextSibling)}if(yi(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(y(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ve=ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ve=null}}else ve=ye?ut(e.stateNode.nextSibling):null;return!0}function ra(){for(var e=ve;e;)e=ut(e.nextSibling)}function bt(){ve=ye=null,$=!1}function su(e){Re===null?Re=[e]:Re.push(e)}var bf=Ge.ReactCurrentBatchConfig;function Te(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Hr=mt(null),Wr=null,Bt=null,au=null;function cu(){au=Bt=Wr=null}function fu(e){var t=Hr.current;F(Hr),e._currentValue=t}function Eo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gt(e,t){Wr=e,au=Bt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(fe=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(au!==e)if(e={context:e,memoizedValue:t,next:null},Bt===null){if(Wr===null)throw Error(y(308));Bt=e,Wr.dependencies={lanes:0,firstContext:e}}else Bt=Bt.next=e;return t}var St=null;function du(e){St===null?St=[e]:St.push(e)}function la(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,du(t)):(n.next=l.next,l.next=n),t.interleaved=n,Xe(e,r)}function Xe(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qe=!1;function pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function We(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function it(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Xe(e,n)}return l=r.interleaved,l===null?(t.next=t,du(r)):(t.next=l.next,l.next=t),r.interleaved=t,Xe(e,n)}function Er(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qo(e,n)}}function gi(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=u:o=o.next=u,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qr(e,t,n,r){var l=e.updateQueue;qe=!1;var o=l.firstBaseUpdate,u=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var s=i,f=s.next;s.next=null,u===null?o=f:u.next=f,u=s;var h=e.alternate;h!==null&&(h=h.updateQueue,i=h.lastBaseUpdate,i!==u&&(i===null?h.firstBaseUpdate=f:i.next=f,h.lastBaseUpdate=s))}if(o!==null){var m=l.baseState;u=0,h=f=s=null,i=o;do{var p=i.lane,g=i.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var w=e,S=i;switch(p=t,g=n,S.tag){case 1:if(w=S.payload,typeof w=="function"){m=w.call(g,m,p);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,p=typeof w=="function"?w.call(g,m,p):w,p==null)break e;m=B({},m,p);break e;case 2:qe=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[i]:p.push(i))}else g={eventTime:g,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},h===null?(f=h=g,s=m):h=h.next=g,u|=p;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;p=i,i=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(1);if(h===null&&(s=m),l.baseState=s,l.firstBaseUpdate=f,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);zt|=u,e.lanes=u,e.memoizedState=m}}function wi(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(y(191,l));l.call(r)}}}var ua=new ls.Component().refs;function Co(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:B({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var il={isMounted:function(e){return(e=e._reactInternals)?Rt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ie(),l=at(e),o=We(r,l);o.payload=t,n!=null&&(o.callback=n),t=it(e,o,l),t!==null&&(je(t,e,l,r),Er(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ie(),l=at(e),o=We(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=it(e,o,l),t!==null&&(je(t,e,l,r),Er(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ie(),r=at(e),l=We(n,r);l.tag=2,t!=null&&(l.callback=t),t=it(e,l,r),t!==null&&(je(t,e,r,n),Er(t,e,r))}};function ki(e,t,n,r,l,o,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,u):t.prototype&&t.prototype.isPureReactComponent?!Un(n,r)||!Un(l,o):!0}function ia(e,t,n){var r=!1,l=dt,o=t.contextType;return typeof o=="object"&&o!==null?o=_e(o):(l=pe(t)?_t:oe.current,r=t.contextTypes,o=(r=r!=null)?qt(e,l):dt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Si(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function _o(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=ua,pu(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=_e(o):(o=pe(t)?_t:oe.current,l.context=qt(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Co(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&il.enqueueReplaceState(l,l.state,null),Qr(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function hn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(y(309));var r=n.stateNode}if(!r)throw Error(y(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(u){var i=l.refs;i===ua&&(i=l.refs={}),u===null?delete i[o]:i[o]=u},t._stringRef=o,t)}if(typeof e!="string")throw Error(y(284));if(!n._owner)throw Error(y(290,e))}return e}function pr(e,t){throw e=Object.prototype.toString.call(t),Error(y(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xi(e){var t=e._init;return t(e._payload)}function sa(e){function t(c,a){if(e){var d=c.deletions;d===null?(c.deletions=[a],c.flags|=16):d.push(a)}}function n(c,a){if(!e)return null;for(;a!==null;)t(c,a),a=a.sibling;return null}function r(c,a){for(c=new Map;a!==null;)a.key!==null?c.set(a.key,a):c.set(a.index,a),a=a.sibling;return c}function l(c,a){return c=ct(c,a),c.index=0,c.sibling=null,c}function o(c,a,d){return c.index=d,e?(d=c.alternate,d!==null?(d=d.index,d<a?(c.flags|=2,a):d):(c.flags|=2,a)):(c.flags|=1048576,a)}function u(c){return e&&c.alternate===null&&(c.flags|=2),c}function i(c,a,d,v){return a===null||a.tag!==6?(a=Hl(d,c.mode,v),a.return=c,a):(a=l(a,d),a.return=c,a)}function s(c,a,d,v){var E=d.type;return E===Mt?h(c,a,d.props.children,v,d.key):a!==null&&(a.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&xi(E)===a.type)?(v=l(a,d.props),v.ref=hn(c,a,d),v.return=c,v):(v=Tr(d.type,d.key,d.props,null,c.mode,v),v.ref=hn(c,a,d),v.return=c,v)}function f(c,a,d,v){return a===null||a.tag!==4||a.stateNode.containerInfo!==d.containerInfo||a.stateNode.implementation!==d.implementation?(a=Wl(d,c.mode,v),a.return=c,a):(a=l(a,d.children||[]),a.return=c,a)}function h(c,a,d,v,E){return a===null||a.tag!==7?(a=Ct(d,c.mode,v,E),a.return=c,a):(a=l(a,d),a.return=c,a)}function m(c,a,d){if(typeof a=="string"&&a!==""||typeof a=="number")return a=Hl(""+a,c.mode,d),a.return=c,a;if(typeof a=="object"&&a!==null){switch(a.$$typeof){case nr:return d=Tr(a.type,a.key,a.props,null,c.mode,d),d.ref=hn(c,null,a),d.return=c,d;case jt:return a=Wl(a,c.mode,d),a.return=c,a;case Je:var v=a._init;return m(c,v(a._payload),d)}if(wn(a)||cn(a))return a=Ct(a,c.mode,d,null),a.return=c,a;pr(c,a)}return null}function p(c,a,d,v){var E=a!==null?a.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return E!==null?null:i(c,a,""+d,v);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case nr:return d.key===E?s(c,a,d,v):null;case jt:return d.key===E?f(c,a,d,v):null;case Je:return E=d._init,p(c,a,E(d._payload),v)}if(wn(d)||cn(d))return E!==null?null:h(c,a,d,v,null);pr(c,d)}return null}function g(c,a,d,v,E){if(typeof v=="string"&&v!==""||typeof v=="number")return c=c.get(d)||null,i(a,c,""+v,E);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case nr:return c=c.get(v.key===null?d:v.key)||null,s(a,c,v,E);case jt:return c=c.get(v.key===null?d:v.key)||null,f(a,c,v,E);case Je:var N=v._init;return g(c,a,d,N(v._payload),E)}if(wn(v)||cn(v))return c=c.get(d)||null,h(a,c,v,E,null);pr(a,v)}return null}function w(c,a,d,v){for(var E=null,N=null,k=a,x=a=0,U=null;k!==null&&x<d.length;x++){k.index>x?(U=k,k=null):U=k.sibling;var L=p(c,k,d[x],v);if(L===null){k===null&&(k=U);break}e&&k&&L.alternate===null&&t(c,k),a=o(L,a,x),N===null?E=L:N.sibling=L,N=L,k=U}if(x===d.length)return n(c,k),$&>(c,x),E;if(k===null){for(;x<d.length;x++)k=m(c,d[x],v),k!==null&&(a=o(k,a,x),N===null?E=k:N.sibling=k,N=k);return $&>(c,x),E}for(k=r(c,k);x<d.length;x++)U=g(k,c,x,d[x],v),U!==null&&(e&&U.alternate!==null&&k.delete(U.key===null?x:U.key),a=o(U,a,x),N===null?E=U:N.sibling=U,N=U);return e&&k.forEach(function(Pe){return t(c,Pe)}),$&>(c,x),E}function S(c,a,d,v){var E=cn(d);if(typeof E!="function")throw Error(y(150));if(d=E.call(d),d==null)throw Error(y(151));for(var N=E=null,k=a,x=a=0,U=null,L=d.next();k!==null&&!L.done;x++,L=d.next()){k.index>x?(U=k,k=null):U=k.sibling;var Pe=p(c,k,L.value,v);if(Pe===null){k===null&&(k=U);break}e&&k&&Pe.alternate===null&&t(c,k),a=o(Pe,a,x),N===null?E=Pe:N.sibling=Pe,N=Pe,k=U}if(L.done)return n(c,k),$&>(c,x),E;if(k===null){for(;!L.done;x++,L=d.next())L=m(c,L.value,v),L!==null&&(a=o(L,a,x),N===null?E=L:N.sibling=L,N=L);return $&>(c,x),E}for(k=r(c,k);!L.done;x++,L=d.next())L=g(k,c,x,L.value,v),L!==null&&(e&&L.alternate!==null&&k.delete(L.key===null?x:L.key),a=o(L,a,x),N===null?E=L:N.sibling=L,N=L);return e&&k.forEach(function(sn){return t(c,sn)}),$&>(c,x),E}function M(c,a,d,v){if(typeof d=="object"&&d!==null&&d.type===Mt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case nr:e:{for(var E=d.key,N=a;N!==null;){if(N.key===E){if(E=d.type,E===Mt){if(N.tag===7){n(c,N.sibling),a=l(N,d.props.children),a.return=c,c=a;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&xi(E)===N.type){n(c,N.sibling),a=l(N,d.props),a.ref=hn(c,N,d),a.return=c,c=a;break e}n(c,N);break}else t(c,N);N=N.sibling}d.type===Mt?(a=Ct(d.props.children,c.mode,v,d.key),a.return=c,c=a):(v=Tr(d.type,d.key,d.props,null,c.mode,v),v.ref=hn(c,a,d),v.return=c,c=v)}return u(c);case jt:e:{for(N=d.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{n(c,a);break}else t(c,a);a=a.sibling}a=Wl(d,c.mode,v),a.return=c,c=a}return u(c);case Je:return N=d._init,M(c,a,N(d._payload),v)}if(wn(d))return w(c,a,d,v);if(cn(d))return S(c,a,d,v);pr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(c,a.sibling),a=l(a,d),a.return=c,c=a):(n(c,a),a=Hl(d,c.mode,v),a.return=c,c=a),u(c)):n(c,a)}return M}var en=sa(!0),aa=sa(!1),qn={},$e=mt(qn),Bn=mt(qn),Hn=mt(qn);function xt(e){if(e===qn)throw Error(y(174));return e}function mu(e,t){switch(D(Hn,t),D(Bn,e),D($e,qn),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:no(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=no(t,e)}F($e),D($e,t)}function tn(){F($e),F(Bn),F(Hn)}function ca(e){xt(Hn.current);var t=xt($e.current),n=no(t,e.type);t!==n&&(D(Bn,e),D($e,n))}function hu(e){Bn.current===e&&(F($e),F(Bn))}var A=mt(0);function Kr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fl=[];function vu(){for(var e=0;e<Fl.length;e++)Fl[e]._workInProgressVersionPrimary=null;Fl.length=0}var Cr=Ge.ReactCurrentDispatcher,Ul=Ge.ReactCurrentBatchConfig,Pt=0,V=null,X=null,J=null,Xr=!1,Pn=!1,Wn=0,ed=0;function ne(){throw Error(y(321))}function yu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Me(e[n],t[n]))return!1;return!0}function gu(e,t,n,r,l,o){if(Pt=o,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cr.current=e===null||e.memoizedState===null?ld:od,e=n(r,l),Pn){o=0;do{if(Pn=!1,Wn=0,25<=o)throw Error(y(301));o+=1,J=X=null,t.updateQueue=null,Cr.current=ud,e=n(r,l)}while(Pn)}if(Cr.current=Yr,t=X!==null&&X.next!==null,Pt=0,J=X=V=null,Xr=!1,t)throw Error(y(300));return e}function wu(){var e=Wn!==0;return Wn=0,e}function Ie(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return J===null?V.memoizedState=J=e:J=J.next=e,J}function Ne(){if(X===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=X.next;var t=J===null?V.memoizedState:J.next;if(t!==null)J=t,X=e;else{if(e===null)throw Error(y(310));X=e,e={memoizedState:X.memoizedState,baseState:X.baseState,baseQueue:X.baseQueue,queue:X.queue,next:null},J===null?V.memoizedState=J=e:J=J.next=e}return J}function Qn(e,t){return typeof t=="function"?t(e):t}function $l(e){var t=Ne(),n=t.queue;if(n===null)throw Error(y(311));n.lastRenderedReducer=e;var r=X,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var u=l.next;l.next=o.next,o.next=u}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var i=u=null,s=null,f=o;do{var h=f.lane;if((Pt&h)===h)s!==null&&(s=s.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var m={lane:h,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};s===null?(i=s=m,u=r):s=s.next=m,V.lanes|=h,zt|=h}f=f.next}while(f!==null&&f!==o);s===null?u=r:s.next=i,Me(r,t.memoizedState)||(fe=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,V.lanes|=o,zt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Al(e){var t=Ne(),n=t.queue;if(n===null)throw Error(y(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var u=l=l.next;do o=e(o,u.action),u=u.next;while(u!==l);Me(o,t.memoizedState)||(fe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fa(){}function da(e,t){var n=V,r=Ne(),l=t(),o=!Me(r.memoizedState,l);if(o&&(r.memoizedState=l,fe=!0),r=r.queue,ku(ha.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||J!==null&&J.memoizedState.tag&1){if(n.flags|=2048,Kn(9,ma.bind(null,n,r,l,t),void 0,null),q===null)throw Error(y(349));Pt&30||pa(n,t,l)}return l}function pa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ma(e,t,n,r){t.value=n,t.getSnapshot=r,va(t)&&ya(e)}function ha(e,t,n){return n(function(){va(t)&&ya(e)})}function va(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Me(e,n)}catch{return!0}}function ya(e){var t=Xe(e,1);t!==null&&je(t,e,1,-1)}function Ei(e){var t=Ie();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:e},t.queue=e,e=e.dispatch=rd.bind(null,V,e),[t.memoizedState,e]}function Kn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ga(){return Ne().memoizedState}function _r(e,t,n,r){var l=Ie();V.flags|=e,l.memoizedState=Kn(1|t,n,void 0,r===void 0?null:r)}function sl(e,t,n,r){var l=Ne();r=r===void 0?null:r;var o=void 0;if(X!==null){var u=X.memoizedState;if(o=u.destroy,r!==null&&yu(r,u.deps)){l.memoizedState=Kn(t,n,o,r);return}}V.flags|=e,l.memoizedState=Kn(1|t,n,o,r)}function Ci(e,t){return _r(8390656,8,e,t)}function ku(e,t){return sl(2048,8,e,t)}function wa(e,t){return sl(4,2,e,t)}function ka(e,t){return sl(4,4,e,t)}function Sa(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xa(e,t,n){return n=n!=null?n.concat([e]):null,sl(4,4,Sa.bind(null,t,e),n)}function Su(){}function Ea(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ca(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _a(e,t,n){return Pt&21?(Me(n,t)||(n=zs(),V.lanes|=n,zt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,fe=!0),e.memoizedState=n)}function td(e,t){var n=j;j=n!==0&&4>n?n:4,e(!0);var r=Ul.transition;Ul.transition={};try{e(!1),t()}finally{j=n,Ul.transition=r}}function Na(){return Ne().memoizedState}function nd(e,t,n){var r=at(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pa(e))za(t,n);else if(n=la(e,t,n,r),n!==null){var l=ie();je(n,e,r,l),Ta(n,t,r)}}function rd(e,t,n){var r=at(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pa(e))za(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var u=t.lastRenderedState,i=o(u,n);if(l.hasEagerState=!0,l.eagerState=i,Me(i,u)){var s=t.interleaved;s===null?(l.next=l,du(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=la(e,t,l,r),n!==null&&(l=ie(),je(n,e,r,l),Ta(n,t,r))}}function Pa(e){var t=e.alternate;return e===V||t!==null&&t===V}function za(e,t){Pn=Xr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ta(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qo(e,n)}}var Yr={readContext:_e,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},ld={readContext:_e,useCallback:function(e,t){return Ie().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Ci,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_r(4194308,4,Sa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _r(4194308,4,e,t)},useInsertionEffect:function(e,t){return _r(4,2,e,t)},useMemo:function(e,t){var n=Ie();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ie();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=nd.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Ie();return e={current:e},t.memoizedState=e},useState:Ei,useDebugValue:Su,useDeferredValue:function(e){return Ie().memoizedState=e},useTransition:function(){var e=Ei(!1),t=e[0];return e=td.bind(null,e[1]),Ie().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,l=Ie();if($){if(n===void 0)throw Error(y(407));n=n()}else{if(n=t(),q===null)throw Error(y(349));Pt&30||pa(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ci(ha.bind(null,r,o,e),[e]),r.flags|=2048,Kn(9,ma.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ie(),t=q.identifierPrefix;if($){var n=He,r=Be;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ed++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},od={readContext:_e,useCallback:Ea,useContext:_e,useEffect:ku,useImperativeHandle:xa,useInsertionEffect:wa,useLayoutEffect:ka,useMemo:Ca,useReducer:$l,useRef:ga,useState:function(){return $l(Qn)},useDebugValue:Su,useDeferredValue:function(e){var t=Ne();return _a(t,X.memoizedState,e)},useTransition:function(){var e=$l(Qn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:fa,useSyncExternalStore:da,useId:Na,unstable_isNewReconciler:!1},ud={readContext:_e,useCallback:Ea,useContext:_e,useEffect:ku,useImperativeHandle:xa,useInsertionEffect:wa,useLayoutEffect:ka,useMemo:Ca,useReducer:Al,useRef:ga,useState:function(){return Al(Qn)},useDebugValue:Su,useDeferredValue:function(e){var t=Ne();return X===null?t.memoizedState=e:_a(t,X.memoizedState,e)},useTransition:function(){var e=Al(Qn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:fa,useSyncExternalStore:da,useId:Na,unstable_isNewReconciler:!1};function nn(e,t){try{var n="",r=t;do n+=jc(r),r=r.return;while(r);var l=n}catch(o){l=`
|
39 |
Error generating stack: `+o.message+`
|
40 |
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Vl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function No(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var id=typeof WeakMap=="function"?WeakMap:Map;function La(e,t,n){n=We(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zr||(Zr=!0,Io=r),No(e,t)},n}function Ra(e,t,n){n=We(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){No(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){No(e,t),typeof r!="function"&&(st===null?st=new Set([this]):st.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function _i(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new id;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Sd.bind(null,e,t,n),t.then(e,e))}function Ni(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Pi(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=We(-1,1),t.tag=2,it(n,t,1))),n.lanes|=1),e)}var sd=Ge.ReactCurrentOwner,fe=!1;function ue(e,t,n,r){t.child=e===null?aa(t,null,n,r):en(t,e.child,n,r)}function zi(e,t,n,r,l){n=n.render;var o=t.ref;return Gt(t,l),r=gu(e,t,n,r,o,l),n=wu(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ye(e,t,l)):($&&n&&uu(t),t.flags|=1,ue(e,t,r,l),t.child)}function Ti(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Tu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Oa(e,t,o,r,l)):(e=Tr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var u=o.memoizedProps;if(n=n.compare,n=n!==null?n:Un,n(u,r)&&e.ref===t.ref)return Ye(e,t,l)}return t.flags|=1,e=ct(o,r),e.ref=t.ref,e.return=t,t.child=e}function Oa(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Un(o,r)&&e.ref===t.ref)if(fe=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(fe=!0);else return t.lanes=e.lanes,Ye(e,t,l)}return Po(e,t,n,r,l)}function ja(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},D(Wt,he),he|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,D(Wt,he),he|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,D(Wt,he),he|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,D(Wt,he),he|=r;return ue(e,t,l,n),t.child}function Ma(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Po(e,t,n,r,l){var o=pe(n)?_t:oe.current;return o=qt(t,o),Gt(t,l),n=gu(e,t,n,r,o,l),r=wu(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ye(e,t,l)):($&&r&&uu(t),t.flags|=1,ue(e,t,n,l),t.child)}function Li(e,t,n,r,l){if(pe(n)){var o=!0;Ar(t)}else o=!1;if(Gt(t,l),t.stateNode===null)Nr(e,t),ia(t,n,r),_o(t,n,r,l),r=!0;else if(e===null){var u=t.stateNode,i=t.memoizedProps;u.props=i;var s=u.context,f=n.contextType;typeof f=="object"&&f!==null?f=_e(f):(f=pe(n)?_t:oe.current,f=qt(t,f));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function";m||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==r||s!==f)&&Si(t,u,r,f),qe=!1;var p=t.memoizedState;u.state=p,Qr(t,r,u,l),s=t.memoizedState,i!==r||p!==s||de.current||qe?(typeof h=="function"&&(Co(t,n,h,r),s=t.memoizedState),(i=qe||ki(t,n,i,r,p,s,f))?(m||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),u.props=r,u.state=s,u.context=f,r=i):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,oa(e,t),i=t.memoizedProps,f=t.type===t.elementType?i:Te(t.type,i),u.props=f,m=t.pendingProps,p=u.context,s=n.contextType,typeof s=="object"&&s!==null?s=_e(s):(s=pe(n)?_t:oe.current,s=qt(t,s));var g=n.getDerivedStateFromProps;(h=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==m||p!==s)&&Si(t,u,r,s),qe=!1,p=t.memoizedState,u.state=p,Qr(t,r,u,l);var w=t.memoizedState;i!==m||p!==w||de.current||qe?(typeof g=="function"&&(Co(t,n,g,r),w=t.memoizedState),(f=qe||ki(t,n,f,r,p,w,s)||!1)?(h||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,w,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,w,s)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),u.props=r,u.state=w,u.context=s,r=f):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return zo(e,t,n,r,o,l)}function zo(e,t,n,r,l,o){Ma(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return l&&hi(t,n,!1),Ye(e,t,o);r=t.stateNode,sd.current=t;var i=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=en(t,e.child,null,o),t.child=en(t,null,i,o)):ue(e,t,i,o),t.memoizedState=r.state,l&&hi(t,n,!0),t.child}function Da(e){var t=e.stateNode;t.pendingContext?mi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mi(e,t.context,!1),mu(e,t.containerInfo)}function Ri(e,t,n,r,l){return bt(),su(l),t.flags|=256,ue(e,t,n,r),t.child}var To={dehydrated:null,treeContext:null,retryLane:0};function Lo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ia(e,t,n){var r=t.pendingProps,l=A.current,o=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(l&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),D(A,l&1),e===null)return xo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=r.children,e=r.fallback,o?(r=t.mode,o=t.child,u={mode:"hidden",children:u},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=u):o=fl(u,r,0,null),e=Ct(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Lo(n),t.memoizedState=To,e):xu(t,u));if(l=e.memoizedState,l!==null&&(i=l.dehydrated,i!==null))return ad(e,t,u,r,i,l,n);if(o){o=r.fallback,u=t.mode,l=e.child,i=l.sibling;var s={mode:"hidden",children:r.children};return!(u&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=ct(l,s),r.subtreeFlags=l.subtreeFlags&14680064),i!==null?o=ct(i,o):(o=Ct(o,u,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,u=e.child.memoizedState,u=u===null?Lo(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},o.memoizedState=u,o.childLanes=e.childLanes&~n,t.memoizedState=To,r}return o=e.child,e=o.sibling,r=ct(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xu(e,t){return t=fl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function mr(e,t,n,r){return r!==null&&su(r),en(t,e.child,null,n),e=xu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ad(e,t,n,r,l,o,u){if(n)return t.flags&256?(t.flags&=-257,r=Vl(Error(y(422))),mr(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=fl({mode:"visible",children:r.children},l,0,null),o=Ct(o,l,u,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&en(t,e.child,null,u),t.child.memoizedState=Lo(u),t.memoizedState=To,o);if(!(t.mode&1))return mr(e,t,u,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var i=r.dgst;return r=i,o=Error(y(419)),r=Vl(o,r,void 0),mr(e,t,u,r)}if(i=(u&e.childLanes)!==0,fe||i){if(r=q,r!==null){switch(u&-u){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|u)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Xe(e,l),je(r,e,l,-1))}return zu(),r=Vl(Error(y(421))),mr(e,t,u,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=xd.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ve=ut(l.nextSibling),ye=t,$=!0,Re=null,e!==null&&(Se[xe++]=Be,Se[xe++]=He,Se[xe++]=Nt,Be=e.id,He=e.overflow,Nt=t),t=xu(t,r.children),t.flags|=4096,t)}function Oi(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Eo(e.return,t,n)}function Bl(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Fa(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ue(e,t,r.children,n),r=A.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oi(e,n,t);else if(e.tag===19)Oi(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(D(A,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Kr(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Bl(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Kr(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Bl(t,!0,n,null,o);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ye(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),zt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(y(153));if(t.child!==null){for(e=t.child,n=ct(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ct(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cd(e,t,n){switch(t.tag){case 3:Da(t),bt();break;case 5:ca(t);break;case 1:pe(t.type)&&Ar(t);break;case 4:mu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;D(Hr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(D(A,A.current&1),t.flags|=128,null):n&t.child.childLanes?Ia(e,t,n):(D(A,A.current&1),e=Ye(e,t,n),e!==null?e.sibling:null);D(A,A.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fa(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),D(A,A.current),r)break;return null;case 22:case 23:return t.lanes=0,ja(e,t,n)}return Ye(e,t,n)}var Ua,Ro,$a,Aa;Ua=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ro=function(){};$a=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,xt($e.current);var o=null;switch(n){case"input":l=ql(e,l),r=ql(e,r),o=[];break;case"select":l=B({},l,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":l=to(e,l),r=to(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ur)}ro(n,r);var u;n=null;for(f in l)if(!r.hasOwnProperty(f)&&l.hasOwnProperty(f)&&l[f]!=null)if(f==="style"){var i=l[f];for(u in i)i.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Rn.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var s=r[f];if(i=l!=null?l[f]:void 0,r.hasOwnProperty(f)&&s!==i&&(s!=null||i!=null))if(f==="style")if(i){for(u in i)!i.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&i[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(o||(o=[]),o.push(f,n)),n=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,i=i?i.__html:void 0,s!=null&&i!==s&&(o=o||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Rn.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&I("scroll",e),o||i===s||(o=[])):(o=o||[]).push(f,s))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};Aa=function(e,t,n,r){n!==r&&(t.flags|=4)};function vn(e,t){if(!$)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fd(e,t,n){var r=t.pendingProps;switch(iu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return re(t),null;case 1:return pe(t.type)&&$r(),re(t),null;case 3:return r=t.stateNode,tn(),F(de),F(oe),vu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(dr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Re!==null&&($o(Re),Re=null))),Ro(e,t),re(t),null;case 5:hu(t);var l=xt(Hn.current);if(n=t.type,e!==null&&t.stateNode!=null)$a(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(y(166));return re(t),null}if(e=xt($e.current),dr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Fe]=t,r[Vn]=o,e=(t.mode&1)!==0,n){case"dialog":I("cancel",r),I("close",r);break;case"iframe":case"object":case"embed":I("load",r);break;case"video":case"audio":for(l=0;l<Sn.length;l++)I(Sn[l],r);break;case"source":I("error",r);break;case"img":case"image":case"link":I("error",r),I("load",r);break;case"details":I("toggle",r);break;case"input":Vu(r,o),I("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},I("invalid",r);break;case"textarea":Hu(r,o),I("invalid",r)}ro(n,o),l=null;for(var u in o)if(o.hasOwnProperty(u)){var i=o[u];u==="children"?typeof i=="string"?r.textContent!==i&&(o.suppressHydrationWarning!==!0&&fr(r.textContent,i,e),l=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&fr(r.textContent,i,e),l=["children",""+i]):Rn.hasOwnProperty(u)&&i!=null&&u==="onScroll"&&I("scroll",r)}switch(n){case"input":rr(r),Bu(r,o,!0);break;case"textarea":rr(r),Wu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ur)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ps(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Fe]=t,e[Vn]=r,Ua(e,t,!1,!1),t.stateNode=e;e:{switch(u=lo(n,r),n){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;l<Sn.length;l++)I(Sn[l],e);l=r;break;case"source":I("error",e),l=r;break;case"img":case"image":case"link":I("error",e),I("load",e),l=r;break;case"details":I("toggle",e),l=r;break;case"input":Vu(e,r),l=ql(e,r),I("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=B({},r,{value:void 0}),I("invalid",e);break;case"textarea":Hu(e,r),l=to(e,r),I("invalid",e);break;default:l=r}ro(n,l),i=l;for(o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="style"?vs(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&ms(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&On(e,s):typeof s=="number"&&On(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rn.hasOwnProperty(o)?s!=null&&o==="onScroll"&&I("scroll",e):s!=null&&Ko(e,o,s,u))}switch(n){case"input":rr(e),Bu(e,r,!1);break;case"textarea":rr(e),Wu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ft(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Qt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Qt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ur)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return re(t),null;case 6:if(e&&t.stateNode!=null)Aa(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(y(166));if(n=xt(Hn.current),xt($e.current),dr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Fe]=t,(o=r.nodeValue!==n)&&(e=ye,e!==null))switch(e.tag){case 3:fr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Fe]=t,t.stateNode=r}return re(t),null;case 13:if(F(A),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($&&ve!==null&&t.mode&1&&!(t.flags&128))ra(),bt(),t.flags|=98560,o=!1;else if(o=dr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(y(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(y(317));o[Fe]=t}else bt(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;re(t),o=!1}else Re!==null&&($o(Re),Re=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||A.current&1?Y===0&&(Y=3):zu())),t.updateQueue!==null&&(t.flags|=4),re(t),null);case 4:return tn(),Ro(e,t),e===null&&$n(t.stateNode.containerInfo),re(t),null;case 10:return fu(t.type._context),re(t),null;case 17:return pe(t.type)&&$r(),re(t),null;case 19:if(F(A),o=t.memoizedState,o===null)return re(t),null;if(r=(t.flags&128)!==0,u=o.rendering,u===null)if(r)vn(o,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Kr(e),u!==null){for(t.flags|=128,vn(o,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,u=o.alternate,u===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return D(A,A.current&1|2),t.child}e=e.sibling}o.tail!==null&&Q()>rn&&(t.flags|=128,r=!0,vn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Kr(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!$)return re(t),null}else 2*Q()-o.renderingStartTime>rn&&n!==1073741824&&(t.flags|=128,r=!0,vn(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(n=o.last,n!==null?n.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Q(),t.sibling=null,n=A.current,D(A,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?he&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function dd(e,t){switch(iu(t),t.tag){case 1:return pe(t.type)&&$r(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tn(),F(de),F(oe),vu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hu(t),null;case 13:if(F(A),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));bt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(A),null;case 4:return tn(),null;case 10:return fu(t.type._context),null;case 22:case 23:return Pu(),null;case 24:return null;default:return null}}var hr=!1,le=!1,pd=typeof WeakSet=="function"?WeakSet:Set,C=null;function Ht(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function Oo(e,t,n){try{n()}catch(r){H(e,t,r)}}var ji=!1;function md(e,t){if(ho=Dr,e=Ws(),ou(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,i=-1,s=-1,f=0,h=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(i=u+l),m!==o||r!==0&&m.nodeType!==3||(s=u+r),m.nodeType===3&&(u+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++f===l&&(i=u),p===o&&++h===r&&(s=u),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vo={focusedElem:e,selectionRange:n},Dr=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,M=w.memoizedState,c=t.stateNode,a=c.getSnapshotBeforeUpdate(t.elementType===t.type?S:Te(t.type,S),M);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(v){H(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return w=ji,ji=!1,w}function zn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Oo(t,n,o)}l=l.next}while(l!==r)}}function al(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Va(e){var t=e.alternate;t!==null&&(e.alternate=null,Va(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fe],delete t[Vn],delete t[wo],delete t[Zf],delete t[Jf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ba(e){return e.tag===5||e.tag===3||e.tag===4}function Mi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ba(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ur));else if(r!==4&&(e=e.child,e!==null))for(Mo(e,t,n),e=e.sibling;e!==null;)Mo(e,t,n),e=e.sibling}function Do(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Do(e,t,n),e=e.sibling;e!==null;)Do(e,t,n),e=e.sibling}var b=null,Le=!1;function Ze(e,t,n){for(n=n.child;n!==null;)Ha(e,t,n),n=n.sibling}function Ha(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(tl,n)}catch{}switch(n.tag){case 5:le||Ht(n,t);case 6:var r=b,l=Le;b=null,Ze(e,t,n),b=r,Le=l,b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),In(e)):Dl(b,n.stateNode));break;case 4:r=b,l=Le,b=n.stateNode.containerInfo,Le=!0,Ze(e,t,n),b=r,Le=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&Oo(n,t,u),l=l.next}while(l!==r)}Ze(e,t,n);break;case 1:if(!le&&(Ht(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){H(n,t,i)}Ze(e,t,n);break;case 21:Ze(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,Ze(e,t,n),le=r):Ze(e,t,n);break;default:Ze(e,t,n)}}function Di(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pd),t.forEach(function(r){var l=Ed.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,u=t,i=u;e:for(;i!==null;){switch(i.tag){case 5:b=i.stateNode,Le=!1;break e;case 3:b=i.stateNode.containerInfo,Le=!0;break e;case 4:b=i.stateNode.containerInfo,Le=!0;break e}i=i.return}if(b===null)throw Error(y(160));Ha(o,u,l),b=null,Le=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(f){H(l,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Wa(t,e),t=t.sibling}function Wa(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ze(t,e),De(e),r&4){try{zn(3,e,e.return),al(3,e)}catch(S){H(e,e.return,S)}try{zn(5,e,e.return)}catch(S){H(e,e.return,S)}}break;case 1:ze(t,e),De(e),r&512&&n!==null&&Ht(n,n.return);break;case 5:if(ze(t,e),De(e),r&512&&n!==null&&Ht(n,n.return),e.flags&32){var l=e.stateNode;try{On(l,"")}catch(S){H(e,e.return,S)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,u=n!==null?n.memoizedProps:o,i=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&fs(l,o),lo(i,u);var f=lo(i,o);for(u=0;u<s.length;u+=2){var h=s[u],m=s[u+1];h==="style"?vs(l,m):h==="dangerouslySetInnerHTML"?ms(l,m):h==="children"?On(l,m):Ko(l,h,m,f)}switch(i){case"input":bl(l,o);break;case"textarea":ds(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?Qt(l,!!o.multiple,g,!1):p!==!!o.multiple&&(o.defaultValue!=null?Qt(l,!!o.multiple,o.defaultValue,!0):Qt(l,!!o.multiple,o.multiple?[]:"",!1))}l[Vn]=o}catch(S){H(e,e.return,S)}}break;case 6:if(ze(t,e),De(e),r&4){if(e.stateNode===null)throw Error(y(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(S){H(e,e.return,S)}}break;case 3:if(ze(t,e),De(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{In(t.containerInfo)}catch(S){H(e,e.return,S)}break;case 4:ze(t,e),De(e);break;case 13:ze(t,e),De(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(_u=Q())),r&4&&Di(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(le=(f=le)||h,ze(t,e),le=f):ze(t,e),De(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!h&&e.mode&1)for(C=e,h=e.child;h!==null;){for(m=C=h;C!==null;){switch(p=C,g=p.child,p.tag){case 0:case 11:case 14:case 15:zn(4,p,p.return);break;case 1:Ht(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(S){H(r,n,S)}}break;case 5:Ht(p,p.return);break;case 22:if(p.memoizedState!==null){Fi(m);continue}}g!==null?(g.return=p,C=g):Fi(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{l=m.stateNode,f?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=m.stateNode,s=m.memoizedProps.style,u=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=hs("display",u))}catch(S){H(e,e.return,S)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=f?"":m.memoizedProps}catch(S){H(e,e.return,S)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:ze(t,e),De(e),r&4&&Di(e);break;case 21:break;default:ze(t,e),De(e)}}function De(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ba(n)){var r=n;break e}n=n.return}throw Error(y(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(On(l,""),r.flags&=-33);var o=Mi(e);Do(e,o,l);break;case 3:case 4:var u=r.stateNode.containerInfo,i=Mi(e);Mo(e,i,u);break;default:throw Error(y(161))}}catch(s){H(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hd(e,t,n){C=e,Qa(e)}function Qa(e,t,n){for(var r=(e.mode&1)!==0;C!==null;){var l=C,o=l.child;if(l.tag===22&&r){var u=l.memoizedState!==null||hr;if(!u){var i=l.alternate,s=i!==null&&i.memoizedState!==null||le;i=hr;var f=le;if(hr=u,(le=s)&&!f)for(C=l;C!==null;)u=C,s=u.child,u.tag===22&&u.memoizedState!==null?Ui(l):s!==null?(s.return=u,C=s):Ui(l);for(;o!==null;)C=o,Qa(o),o=o.sibling;C=l,hr=i,le=f}Ii(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,C=o):Ii(e)}}function Ii(e){for(;C!==null;){var t=C;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:le||al(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!le)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Te(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&wi(t,o,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wi(t,u,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var h=f.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&In(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(y(163))}le||t.flags&512&&jo(t)}catch(p){H(t,t.return,p)}}if(t===e){C=null;break}if(n=t.sibling,n!==null){n.return=t.return,C=n;break}C=t.return}}function Fi(e){for(;C!==null;){var t=C;if(t===e){C=null;break}var n=t.sibling;if(n!==null){n.return=t.return,C=n;break}C=t.return}}function Ui(e){for(;C!==null;){var t=C;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(s){H(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){H(t,l,s)}}var o=t.return;try{jo(t)}catch(s){H(t,o,s)}break;case 5:var u=t.return;try{jo(t)}catch(s){H(t,u,s)}}}catch(s){H(t,t.return,s)}if(t===e){C=null;break}var i=t.sibling;if(i!==null){i.return=t.return,C=i;break}C=t.return}}var vd=Math.ceil,Gr=Ge.ReactCurrentDispatcher,Eu=Ge.ReactCurrentOwner,Ce=Ge.ReactCurrentBatchConfig,O=0,q=null,K=null,ee=0,he=0,Wt=mt(0),Y=0,Xn=null,zt=0,cl=0,Cu=0,Tn=null,ce=null,_u=0,rn=1/0,Ae=null,Zr=!1,Io=null,st=null,vr=!1,nt=null,Jr=0,Ln=0,Fo=null,Pr=-1,zr=0;function ie(){return O&6?Q():Pr!==-1?Pr:Pr=Q()}function at(e){return e.mode&1?O&2&&ee!==0?ee&-ee:bf.transition!==null?(zr===0&&(zr=zs()),zr):(e=j,e!==0||(e=window.event,e=e===void 0?16:Ds(e.type)),e):1}function je(e,t,n,r){if(50<Ln)throw Ln=0,Fo=null,Error(y(185));Gn(e,n,r),(!(O&2)||e!==q)&&(e===q&&(!(O&2)&&(cl|=n),Y===4&&et(e,ee)),me(e,r),n===1&&O===0&&!(t.mode&1)&&(rn=Q()+500,ul&&ht()))}function me(e,t){var n=e.callbackNode;qc(e,t);var r=Mr(e,e===q?ee:0);if(r===0)n!==null&&Xu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xu(n),t===1)e.tag===0?qf($i.bind(null,e)):ea($i.bind(null,e)),Yf(function(){!(O&6)&&ht()}),n=null;else{switch(Ts(r)){case 1:n=Jo;break;case 4:n=Ns;break;case 16:n=jr;break;case 536870912:n=Ps;break;default:n=jr}n=ba(n,Ka.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ka(e,t){if(Pr=-1,zr=0,O&6)throw Error(y(327));var n=e.callbackNode;if(Zt()&&e.callbackNode!==n)return null;var r=Mr(e,e===q?ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=qr(e,r);else{t=r;var l=O;O|=2;var o=Ya();(q!==e||ee!==t)&&(Ae=null,rn=Q()+500,Et(e,t));do try{wd();break}catch(i){Xa(e,i)}while(1);cu(),Gr.current=o,O=l,K!==null?t=0:(q=null,ee=0,t=Y)}if(t!==0){if(t===2&&(l=ao(e),l!==0&&(r=l,t=Uo(e,l))),t===1)throw n=Xn,Et(e,0),et(e,r),me(e,Q()),n;if(t===6)et(e,r);else{if(l=e.current.alternate,!(r&30)&&!yd(l)&&(t=qr(e,r),t===2&&(o=ao(e),o!==0&&(r=o,t=Uo(e,o))),t===1))throw n=Xn,Et(e,0),et(e,r),me(e,Q()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(y(345));case 2:wt(e,ce,Ae);break;case 3:if(et(e,r),(r&130023424)===r&&(t=_u+500-Q(),10<t)){if(Mr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ie(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=go(wt.bind(null,e,ce,Ae),t);break}wt(e,ce,Ae);break;case 4:if(et(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var u=31-Oe(r);o=1<<u,u=t[u],u>l&&(l=u),r&=~o}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vd(r/1960))-r,10<r){e.timeoutHandle=go(wt.bind(null,e,ce,Ae),r);break}wt(e,ce,Ae);break;case 5:wt(e,ce,Ae);break;default:throw Error(y(329))}}}return me(e,Q()),e.callbackNode===n?Ka.bind(null,e):null}function Uo(e,t){var n=Tn;return e.current.memoizedState.isDehydrated&&(Et(e,t).flags|=256),e=qr(e,t),e!==2&&(t=ce,ce=n,t!==null&&$o(t)),e}function $o(e){ce===null?ce=e:ce.push.apply(ce,e)}function yd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Me(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function et(e,t){for(t&=~Cu,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Oe(t),r=1<<n;e[n]=-1,t&=~r}}function $i(e){if(O&6)throw Error(y(327));Zt();var t=Mr(e,0);if(!(t&1))return me(e,Q()),null;var n=qr(e,t);if(e.tag!==0&&n===2){var r=ao(e);r!==0&&(t=r,n=Uo(e,r))}if(n===1)throw n=Xn,Et(e,0),et(e,t),me(e,Q()),n;if(n===6)throw Error(y(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wt(e,ce,Ae),me(e,Q()),null}function Nu(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(rn=Q()+500,ul&&ht())}}function Tt(e){nt!==null&&nt.tag===0&&!(O&6)&&Zt();var t=O;O|=1;var n=Ce.transition,r=j;try{if(Ce.transition=null,j=1,e)return e()}finally{j=r,Ce.transition=n,O=t,!(O&6)&&ht()}}function Pu(){he=Wt.current,F(Wt)}function Et(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xf(n)),K!==null)for(n=K.return;n!==null;){var r=n;switch(iu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$r();break;case 3:tn(),F(de),F(oe),vu();break;case 5:hu(r);break;case 4:tn();break;case 13:F(A);break;case 19:F(A);break;case 10:fu(r.type._context);break;case 22:case 23:Pu()}n=n.return}if(q=e,K=e=ct(e.current,null),ee=he=t,Y=0,Xn=null,Cu=cl=zt=0,ce=Tn=null,St!==null){for(t=0;t<St.length;t++)if(n=St[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var u=o.next;o.next=l,r.next=u}n.pending=r}St=null}return e}function Xa(e,t){do{var n=K;try{if(cu(),Cr.current=Yr,Xr){for(var r=V.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Xr=!1}if(Pt=0,J=X=V=null,Pn=!1,Wn=0,Eu.current=null,n===null||n.return===null){Y=1,Xn=t,K=null;break}e:{var o=e,u=n.return,i=n,s=t;if(t=ee,i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=s,h=i,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var g=Ni(u);if(g!==null){g.flags&=-257,Pi(g,u,i,o,t),g.mode&1&&_i(o,f,t),t=g,s=f;var w=t.updateQueue;if(w===null){var S=new Set;S.add(s),t.updateQueue=S}else w.add(s);break e}else{if(!(t&1)){_i(o,f,t),zu();break e}s=Error(y(426))}}else if($&&i.mode&1){var M=Ni(u);if(M!==null){!(M.flags&65536)&&(M.flags|=256),Pi(M,u,i,o,t),su(nn(s,i));break e}}o=s=nn(s,i),Y!==4&&(Y=2),Tn===null?Tn=[o]:Tn.push(o),o=u;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var c=La(o,s,t);gi(o,c);break e;case 1:i=s;var a=o.type,d=o.stateNode;if(!(o.flags&128)&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(st===null||!st.has(d)))){o.flags|=65536,t&=-t,o.lanes|=t;var v=Ra(o,i,t);gi(o,v);break e}}o=o.return}while(o!==null)}Za(n)}catch(E){t=E,K===n&&n!==null&&(K=n=n.return);continue}break}while(1)}function Ya(){var e=Gr.current;return Gr.current=Yr,e===null?Yr:e}function zu(){(Y===0||Y===3||Y===2)&&(Y=4),q===null||!(zt&268435455)&&!(cl&268435455)||et(q,ee)}function qr(e,t){var n=O;O|=2;var r=Ya();(q!==e||ee!==t)&&(Ae=null,Et(e,t));do try{gd();break}catch(l){Xa(e,l)}while(1);if(cu(),O=n,Gr.current=r,K!==null)throw Error(y(261));return q=null,ee=0,Y}function gd(){for(;K!==null;)Ga(K)}function wd(){for(;K!==null&&!Hc();)Ga(K)}function Ga(e){var t=qa(e.alternate,e,he);e.memoizedProps=e.pendingProps,t===null?Za(e):K=t,Eu.current=null}function Za(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dd(n,t),n!==null){n.flags&=32767,K=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Y=6,K=null;return}}else if(n=fd(n,t,he),n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);Y===0&&(Y=5)}function wt(e,t,n){var r=j,l=Ce.transition;try{Ce.transition=null,j=1,kd(e,t,n,r)}finally{Ce.transition=l,j=r}return null}function kd(e,t,n,r){do Zt();while(nt!==null);if(O&6)throw Error(y(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(y(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(bc(e,o),e===q&&(K=q=null,ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||vr||(vr=!0,ba(jr,function(){return Zt(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ce.transition,Ce.transition=null;var u=j;j=1;var i=O;O|=4,Eu.current=null,md(e,n),Wa(n,e),Af(vo),Dr=!!ho,vo=ho=null,e.current=n,hd(n),Wc(),O=i,j=u,Ce.transition=o}else e.current=n;if(vr&&(vr=!1,nt=e,Jr=l),o=e.pendingLanes,o===0&&(st=null),Xc(n.stateNode),me(e,Q()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Zr)throw Zr=!1,e=Io,Io=null,e;return Jr&1&&e.tag!==0&&Zt(),o=e.pendingLanes,o&1?e===Fo?Ln++:(Ln=0,Fo=e):Ln=0,ht(),null}function Zt(){if(nt!==null){var e=Ts(Jr),t=Ce.transition,n=j;try{if(Ce.transition=null,j=16>e?16:e,nt===null)var r=!1;else{if(e=nt,nt=null,Jr=0,O&6)throw Error(y(331));var l=O;for(O|=4,C=e.current;C!==null;){var o=C,u=o.child;if(C.flags&16){var i=o.deletions;if(i!==null){for(var s=0;s<i.length;s++){var f=i[s];for(C=f;C!==null;){var h=C;switch(h.tag){case 0:case 11:case 15:zn(8,h,o)}var m=h.child;if(m!==null)m.return=h,C=m;else for(;C!==null;){h=C;var p=h.sibling,g=h.return;if(Va(h),h===f){C=null;break}if(p!==null){p.return=g,C=p;break}C=g}}}var w=o.alternate;if(w!==null){var S=w.child;if(S!==null){w.child=null;do{var M=S.sibling;S.sibling=null,S=M}while(S!==null)}}C=o}}if(o.subtreeFlags&2064&&u!==null)u.return=o,C=u;else e:for(;C!==null;){if(o=C,o.flags&2048)switch(o.tag){case 0:case 11:case 15:zn(9,o,o.return)}var c=o.sibling;if(c!==null){c.return=o.return,C=c;break e}C=o.return}}var a=e.current;for(C=a;C!==null;){u=C;var d=u.child;if(u.subtreeFlags&2064&&d!==null)d.return=u,C=d;else e:for(u=a;C!==null;){if(i=C,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:al(9,i)}}catch(E){H(i,i.return,E)}if(i===u){C=null;break e}var v=i.sibling;if(v!==null){v.return=i.return,C=v;break e}C=i.return}}if(O=l,ht(),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(tl,e)}catch{}r=!0}return r}finally{j=n,Ce.transition=t}}return!1}function Ai(e,t,n){t=nn(n,t),t=La(e,t,1),e=it(e,t,1),t=ie(),e!==null&&(Gn(e,1,t),me(e,t))}function H(e,t,n){if(e.tag===3)Ai(e,e,n);else for(;t!==null;){if(t.tag===3){Ai(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(st===null||!st.has(r))){e=nn(n,e),e=Ra(t,e,1),t=it(t,e,1),e=ie(),t!==null&&(Gn(t,1,e),me(t,e));break}}t=t.return}}function Sd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ie(),e.pingedLanes|=e.suspendedLanes&n,q===e&&(ee&n)===n&&(Y===4||Y===3&&(ee&130023424)===ee&&500>Q()-_u?Et(e,0):Cu|=n),me(e,t)}function Ja(e,t){t===0&&(e.mode&1?(t=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):t=1);var n=ie();e=Xe(e,t),e!==null&&(Gn(e,t,n),me(e,n))}function xd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ja(e,n)}function Ed(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),Ja(e,n)}var qa;qa=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||de.current)fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return fe=!1,cd(e,t,n);fe=!!(e.flags&131072)}else fe=!1,$&&t.flags&1048576&&ta(t,Br,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nr(e,t),e=t.pendingProps;var l=qt(t,oe.current);Gt(t,n),l=gu(null,t,r,e,l,n);var o=wu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pe(r)?(o=!0,Ar(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pu(t),l.updater=il,t.stateNode=l,l._reactInternals=t,_o(t,r,e,n),t=zo(null,t,r,!0,o,n)):(t.tag=0,$&&o&&uu(t),ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=_d(r),e=Te(r,e),l){case 0:t=Po(null,t,r,e,n);break e;case 1:t=Li(null,t,r,e,n);break e;case 11:t=zi(null,t,r,e,n);break e;case 14:t=Ti(null,t,r,Te(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),Po(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),Li(e,t,r,l,n);case 3:e:{if(Da(t),e===null)throw Error(y(387));r=t.pendingProps,o=t.memoizedState,l=o.element,oa(e,t),Qr(t,r,null,n);var u=t.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=nn(Error(y(423)),t),t=Ri(e,t,r,n,l);break e}else if(r!==l){l=nn(Error(y(424)),t),t=Ri(e,t,r,n,l);break e}else for(ve=ut(t.stateNode.containerInfo.firstChild),ye=t,$=!0,Re=null,n=aa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bt(),r===l){t=Ye(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return ca(t),e===null&&xo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,u=l.children,yo(r,l)?u=null:o!==null&&yo(r,o)&&(t.flags|=32),Ma(e,t),ue(e,t,u,n),t.child;case 6:return e===null&&xo(t),null;case 13:return Ia(e,t,n);case 4:return mu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=en(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),zi(e,t,r,l,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,u=l.value,D(Hr,r._currentValue),r._currentValue=u,o!==null)if(Me(o.value,u)){if(o.children===l.children&&!de.current){t=Ye(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){u=o.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=We(-1,n&-n),s.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?s.next=s:(s.next=h.next,h.next=s),f.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Eo(o.return,n,t),i.lanes|=n;break}s=s.next}}else if(o.tag===10)u=o.type===t.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(y(341));u.lanes|=n,i=u.alternate,i!==null&&(i.lanes|=n),Eo(u,n,t),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===t){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Gt(t,n),l=_e(l),r=r(l),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,l=Te(r,t.pendingProps),l=Te(r.type,l),Ti(e,t,r,l,n);case 15:return Oa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),Nr(e,t),t.tag=1,pe(r)?(e=!0,Ar(t)):e=!1,Gt(t,n),ia(t,r,l),_o(t,r,l,n),zo(null,t,r,!0,e,n);case 19:return Fa(e,t,n);case 22:return ja(e,t,n)}throw Error(y(156,t.tag))};function ba(e,t){return _s(e,t)}function Cd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new Cd(e,t,n,r)}function Tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _d(e){if(typeof e=="function")return Tu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yo)return 11;if(e===Go)return 14}return 2}function ct(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tr(e,t,n,r,l,o){var u=2;if(r=e,typeof e=="function")Tu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Mt:return Ct(n.children,l,o,t);case Xo:u=8,l|=8;break;case Yl:return e=Ee(12,n,t,l|2),e.elementType=Yl,e.lanes=o,e;case Gl:return e=Ee(13,n,t,l),e.elementType=Gl,e.lanes=o,e;case Zl:return e=Ee(19,n,t,l),e.elementType=Zl,e.lanes=o,e;case ss:return fl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case us:u=10;break e;case is:u=9;break e;case Yo:u=11;break e;case Go:u=14;break e;case Je:u=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=Ee(u,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ct(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function fl(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=ss,e.lanes=n,e.stateNode={isHidden:!1},e}function Hl(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function Wl(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cl(0),this.expirationTimes=Cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,l,o,u,i,s){return e=new Nd(e,t,n,i,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ee(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pu(o),e}function Pd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ec(e){if(!e)return dt;e=e._reactInternals;e:{if(Rt(e)!==e||e.tag!==1)throw Error(y(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(y(171))}if(e.tag===1){var n=e.type;if(pe(n))return bs(e,n,t)}return t}function tc(e,t,n,r,l,o,u,i,s){return e=Lu(n,r,!0,e,l,o,u,i,s),e.context=ec(null),n=e.current,r=ie(),l=at(n),o=We(r,l),o.callback=t??null,it(n,o,l),e.current.lanes=l,Gn(e,l,r),me(e,r),e}function dl(e,t,n,r){var l=t.current,o=ie(),u=at(l);return n=ec(n),t.context===null?t.context=n:t.pendingContext=n,t=We(o,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=it(l,t,u),e!==null&&(je(e,l,u,o),Er(e,l,u)),u}function br(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Vi(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ru(e,t){Vi(e,t),(e=e.alternate)&&Vi(e,t)}function zd(){return null}var nc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ou(e){this._internalRoot=e}pl.prototype.render=Ou.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(y(409));dl(e,t,null,null)};pl.prototype.unmount=Ou.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tt(function(){dl(null,e,null,null)}),t[Ke]=null}};function pl(e){this._internalRoot=e}pl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Os();e={blockedOn:null,target:e,priority:t};for(var n=0;n<be.length&&t!==0&&t<be[n].priority;n++);be.splice(n,0,e),n===0&&Ms(e)}};function ju(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bi(){}function Td(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var f=br(u);o.call(f)}}var u=tc(t,r,e,0,null,!1,!1,"",Bi);return e._reactRootContainer=u,e[Ke]=u.current,$n(e.nodeType===8?e.parentNode:e),Tt(),u}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var i=r;r=function(){var f=br(s);i.call(f)}}var s=Lu(e,0,!1,null,null,!1,!1,"",Bi);return e._reactRootContainer=s,e[Ke]=s.current,$n(e.nodeType===8?e.parentNode:e),Tt(function(){dl(t,s,n,r)}),s}function hl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var u=o;if(typeof l=="function"){var i=l;l=function(){var s=br(u);i.call(s)}}dl(t,u,e,l)}else u=Td(n,t,e,l,r);return br(u)}Ls=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=kn(t.pendingLanes);n!==0&&(qo(t,n|1),me(t,Q()),!(O&6)&&(rn=Q()+500,ht()))}break;case 13:Tt(function(){var r=Xe(e,1);if(r!==null){var l=ie();je(r,e,1,l)}}),Ru(e,1)}};bo=function(e){if(e.tag===13){var t=Xe(e,134217728);if(t!==null){var n=ie();je(t,e,134217728,n)}Ru(e,134217728)}};Rs=function(e){if(e.tag===13){var t=at(e),n=Xe(e,t);if(n!==null){var r=ie();je(n,e,t,r)}Ru(e,t)}};Os=function(){return j};js=function(e,t){var n=j;try{return j=e,t()}finally{j=n}};uo=function(e,t,n){switch(t){case"input":if(bl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=ol(r);if(!l)throw Error(y(90));cs(r),bl(r,l)}}}break;case"textarea":ds(e,n);break;case"select":t=n.value,t!=null&&Qt(e,!!n.multiple,t,!1)}};ws=Nu;ks=Tt;var Ld={usingClientEntryPoint:!1,Events:[Jn,Ut,ol,ys,gs,Nu]},yn={findFiberByHostInstance:kt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Rd={bundleType:yn.bundleType,version:yn.version,rendererPackageName:yn.rendererPackageName,rendererConfig:yn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ge.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Es(e),e===null?null:e.stateNode},findFiberByHostInstance:yn.findFiberByHostInstance||zd,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 yr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yr.isDisabled&&yr.supportsFiber)try{tl=yr.inject(Rd),Ue=yr}catch{}}we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ld;we.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ju(t))throw Error(y(200));return Pd(e,t,null,n)};we.createRoot=function(e,t){if(!ju(e))throw Error(y(299));var n=!1,r="",l=nc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Lu(e,1,!1,null,null,n,!1,r,l),e[Ke]=t.current,$n(e.nodeType===8?e.parentNode:e),new Ou(t)};we.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(y(188)):(e=Object.keys(e).join(","),Error(y(268,e)));return e=Es(t),e=e===null?null:e.stateNode,e};we.flushSync=function(e){return Tt(e)};we.hydrate=function(e,t,n){if(!ml(t))throw Error(y(200));return hl(null,e,t,!0,n)};we.hydrateRoot=function(e,t,n){if(!ju(e))throw Error(y(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",u=nc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=tc(t,null,e,1,n??null,l,!1,o,u),e[Ke]=t.current,$n(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new pl(t)};we.render=function(e,t,n){if(!ml(t))throw Error(y(200));return hl(null,e,t,!1,n)};we.unmountComponentAtNode=function(e){if(!ml(e))throw Error(y(40));return e._reactRootContainer?(Tt(function(){hl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ke]=null})}),!0):!1};we.unstable_batchedUpdates=Nu;we.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ml(n))throw Error(y(200));if(e==null||e._reactInternals===void 0)throw Error(y(38));return hl(e,t,n,!1,r)};we.version="18.2.0-next-9e3b772b8-20220608";function rc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rc)}catch(e){console.error(e)}}rc(),ts.exports=we;var Od=ts.exports,Hi=Od;Kl.createRoot=Hi.createRoot,Kl.hydrateRoot=Hi.hydrateRoot;const Wi=["bg-purple-300","bg-green-300","bg-yellow-300","bg-red-300","bg-blue-300"];function jd({text:e,position:t,margin:n}){const r=e.split(`
|
41 |
-
`).map((l,o,u)=>R.jsxs(Z.Fragment,{children:[l,o!==u.length-1&&R.jsx("br",{})]},o));return R.jsx("span",{style:{marginLeft:n},className:`leading-5 ${r.length===1?"inline-block ":""}${Wi[t%Wi.length]}`,children:r})}const Ql=Object.freeze({"Xenova/gpt-4":"gpt-4 / gpt-3.5-turbo / text-embedding-ada-002","Xenova/text-davinci-003":"text-davinci-003 / text-davinci-002","Xenova/gpt-3":"gpt-3","Xenova/grok-1-tokenizer":"Grok-1","Xenova/claude-tokenizer":"Claude","Xenova/mistral-tokenizer-v3":"Mistral v3","Xenova/mistral-tokenizer-v1":"Mistral v1","Xenova/gemma-tokenizer":"Gemma","Xenova/llama-tokenizer":"LLaMA / Llama 2","Xenova/c4ai-command-r-v01-tokenizer":"Cohere Command-R","Xenova/t5-small":"T5","Xenova/bert-base-cased":"bert-base-cased","":"Custom"});function Md(){var E,N;const e=new URLSearchParams(window.location.search),t=e.get("tokenizer"),n=e.get("text"),[r,l]=Z.useState([]),[o,u]=Z.useState([]),[i,s]=Z.useState([]),[f,h]=Z.useState("text"),[m,p]=Z.useState(t??"Xenova/gpt-4"),[g,w]=Z.useState(""),S=Z.useRef(null),M=Z.useRef(null),c=Z.useRef(null);Z.useEffect(()=>{c.current||(c.current=new Worker(new URL("/assets/worker-df994a3c.js",self.location),{type:"module"}));const k=x=>{l(x.data.token_ids),u(x.data.decoded),s(x.data.margins)};return c.current.addEventListener("message",k),()=>c.current.removeEventListener("message",k)},[]);const a=Z.useCallback(()=>{h("text"),l([]),u([]),s([])},[]),d=Z.useCallback(k=>{const x=m,U=k.target.value;U.length>1e4&&(h(null),console.log("User most likely pasted in a large body of text (> 10k chars), so we hide the output (until specifically requested by the user).")),c.current.postMessage({model_id:x,text:U})},[m]);Z.useEffect(()=>{n&&d({target:{value:n}})},[d,n]);const v=Z.useCallback(k=>{const x=k.target.value;p(x),x&&c.current.postMessage({model_id:x,text:S.current.value})},[]);return R.jsxs("div",{className:"w-full max-w-[720px] flex flex-col gap-4 items-center",children:[R.jsxs("div",{children:[R.jsx("h1",{className:"text-5xl font-bold mb-2",children:"
|
|
|
38 |
`).replace(Kf,"")}function fr(e,t,n){if(t=fi(t),fi(e)!==t&&n)throw Error(y(425))}function Ur(){}var ho=null,vo=null;function yo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var go=typeof setTimeout=="function"?setTimeout:void 0,Xf=typeof clearTimeout=="function"?clearTimeout:void 0,di=typeof Promise=="function"?Promise:void 0,Yf=typeof queueMicrotask=="function"?queueMicrotask:typeof di<"u"?function(e){return di.resolve(null).then(e).catch(Gf)}:go;function Gf(e){setTimeout(function(){throw e})}function Dl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),In(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);In(t)}function ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function pi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var un=Math.random().toString(36).slice(2),Fe="__reactFiber$"+un,Vn="__reactProps$"+un,Ke="__reactContainer$"+un,wo="__reactEvents$"+un,Zf="__reactListeners$"+un,Jf="__reactHandles$"+un;function kt(e){var t=e[Fe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ke]||n[Fe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pi(e);e!==null;){if(n=e[Fe])return n;e=pi(e)}return t}e=n,n=e.parentNode}return null}function Jn(e){return e=e[Fe]||e[Ke],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ut(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(y(33))}function ol(e){return e[Vn]||null}var ko=[],$t=-1;function mt(e){return{current:e}}function F(e){0>$t||(e.current=ko[$t],ko[$t]=null,$t--)}function D(e,t){$t++,ko[$t]=e.current,e.current=t}var dt={},oe=mt(dt),de=mt(!1),_t=dt;function qt(e,t){var n=e.type.contextTypes;if(!n)return dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function $r(){F(de),F(oe)}function mi(e,t,n){if(oe.current!==dt)throw Error(y(168));D(oe,t),D(de,n)}function bs(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(y(108,Mc(e)||"Unknown",l));return B({},n,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,_t=oe.current,D(oe,e),D(de,de.current),!0}function hi(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=bs(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,F(de),F(oe),D(oe,e)):F(de),D(de,n)}var Ve=null,ul=!1,Il=!1;function ea(e){Ve===null?Ve=[e]:Ve.push(e)}function qf(e){ul=!0,ea(e)}function ht(){if(!Il&&Ve!==null){Il=!0;var e=0,t=j;try{var n=Ve;for(j=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ve=null,ul=!1}catch(l){throw Ve!==null&&(Ve=Ve.slice(e+1)),_s(Jo,ht),l}finally{j=t,Il=!1}}return null}var At=[],Vt=0,Vr=null,Br=0,Se=[],xe=0,Nt=null,Be=1,He="";function gt(e,t){At[Vt++]=Br,At[Vt++]=Vr,Vr=e,Br=t}function ta(e,t,n){Se[xe++]=Be,Se[xe++]=He,Se[xe++]=Nt,Nt=e;var r=Be;e=He;var l=32-Oe(r)-1;r&=~(1<<l),n+=1;var o=32-Oe(t)+l;if(30<o){var u=l-l%5;o=(r&(1<<u)-1).toString(32),r>>=u,l-=u,Be=1<<32-Oe(t)+l|n<<l|r,He=o+e}else Be=1<<o|n<<l|r,He=e}function uu(e){e.return!==null&&(gt(e,1),ta(e,1,0))}function iu(e){for(;e===Vr;)Vr=At[--Vt],At[Vt]=null,Br=At[--Vt],At[Vt]=null;for(;e===Nt;)Nt=Se[--xe],Se[xe]=null,He=Se[--xe],Se[xe]=null,Be=Se[--xe],Se[xe]=null}var ye=null,ve=null,$=!1,Re=null;function na(e,t){var n=Ee(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function vi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ye=e,ve=ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ye=e,ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nt!==null?{id:Be,overflow:He}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ee(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ye=e,ve=null,!0):!1;default:return!1}}function So(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xo(e){if($){var t=ve;if(t){var n=t;if(!vi(e,t)){if(So(e))throw Error(y(418));t=ut(n.nextSibling);var r=ye;t&&vi(e,t)?na(r,n):(e.flags=e.flags&-4097|2,$=!1,ye=e)}}else{if(So(e))throw Error(y(418));e.flags=e.flags&-4097|2,$=!1,ye=e}}}function yi(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ye=e}function dr(e){if(e!==ye)return!1;if(!$)return yi(e),$=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yo(e.type,e.memoizedProps)),t&&(t=ve)){if(So(e))throw ra(),Error(y(418));for(;t;)na(e,t),t=ut(t.nextSibling)}if(yi(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(y(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ve=ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ve=null}}else ve=ye?ut(e.stateNode.nextSibling):null;return!0}function ra(){for(var e=ve;e;)e=ut(e.nextSibling)}function bt(){ve=ye=null,$=!1}function su(e){Re===null?Re=[e]:Re.push(e)}var bf=Ge.ReactCurrentBatchConfig;function Te(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Hr=mt(null),Wr=null,Bt=null,au=null;function cu(){au=Bt=Wr=null}function fu(e){var t=Hr.current;F(Hr),e._currentValue=t}function Eo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gt(e,t){Wr=e,au=Bt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(fe=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(au!==e)if(e={context:e,memoizedValue:t,next:null},Bt===null){if(Wr===null)throw Error(y(308));Bt=e,Wr.dependencies={lanes:0,firstContext:e}}else Bt=Bt.next=e;return t}var St=null;function du(e){St===null?St=[e]:St.push(e)}function la(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,du(t)):(n.next=l.next,l.next=n),t.interleaved=n,Xe(e,r)}function Xe(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qe=!1;function pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function We(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function it(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Xe(e,n)}return l=r.interleaved,l===null?(t.next=t,du(r)):(t.next=l.next,l.next=t),r.interleaved=t,Xe(e,n)}function Er(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qo(e,n)}}function gi(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=u:o=o.next=u,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qr(e,t,n,r){var l=e.updateQueue;qe=!1;var o=l.firstBaseUpdate,u=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var s=i,f=s.next;s.next=null,u===null?o=f:u.next=f,u=s;var h=e.alternate;h!==null&&(h=h.updateQueue,i=h.lastBaseUpdate,i!==u&&(i===null?h.firstBaseUpdate=f:i.next=f,h.lastBaseUpdate=s))}if(o!==null){var m=l.baseState;u=0,h=f=s=null,i=o;do{var p=i.lane,g=i.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var w=e,S=i;switch(p=t,g=n,S.tag){case 1:if(w=S.payload,typeof w=="function"){m=w.call(g,m,p);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,p=typeof w=="function"?w.call(g,m,p):w,p==null)break e;m=B({},m,p);break e;case 2:qe=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[i]:p.push(i))}else g={eventTime:g,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},h===null?(f=h=g,s=m):h=h.next=g,u|=p;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;p=i,i=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(1);if(h===null&&(s=m),l.baseState=s,l.firstBaseUpdate=f,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);zt|=u,e.lanes=u,e.memoizedState=m}}function wi(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(y(191,l));l.call(r)}}}var ua=new ls.Component().refs;function Co(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:B({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var il={isMounted:function(e){return(e=e._reactInternals)?Rt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ie(),l=at(e),o=We(r,l);o.payload=t,n!=null&&(o.callback=n),t=it(e,o,l),t!==null&&(je(t,e,l,r),Er(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ie(),l=at(e),o=We(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=it(e,o,l),t!==null&&(je(t,e,l,r),Er(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ie(),r=at(e),l=We(n,r);l.tag=2,t!=null&&(l.callback=t),t=it(e,l,r),t!==null&&(je(t,e,r,n),Er(t,e,r))}};function ki(e,t,n,r,l,o,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,u):t.prototype&&t.prototype.isPureReactComponent?!Un(n,r)||!Un(l,o):!0}function ia(e,t,n){var r=!1,l=dt,o=t.contextType;return typeof o=="object"&&o!==null?o=_e(o):(l=pe(t)?_t:oe.current,r=t.contextTypes,o=(r=r!=null)?qt(e,l):dt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Si(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function _o(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=ua,pu(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=_e(o):(o=pe(t)?_t:oe.current,l.context=qt(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Co(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&il.enqueueReplaceState(l,l.state,null),Qr(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function hn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(y(309));var r=n.stateNode}if(!r)throw Error(y(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(u){var i=l.refs;i===ua&&(i=l.refs={}),u===null?delete i[o]:i[o]=u},t._stringRef=o,t)}if(typeof e!="string")throw Error(y(284));if(!n._owner)throw Error(y(290,e))}return e}function pr(e,t){throw e=Object.prototype.toString.call(t),Error(y(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xi(e){var t=e._init;return t(e._payload)}function sa(e){function t(c,a){if(e){var d=c.deletions;d===null?(c.deletions=[a],c.flags|=16):d.push(a)}}function n(c,a){if(!e)return null;for(;a!==null;)t(c,a),a=a.sibling;return null}function r(c,a){for(c=new Map;a!==null;)a.key!==null?c.set(a.key,a):c.set(a.index,a),a=a.sibling;return c}function l(c,a){return c=ct(c,a),c.index=0,c.sibling=null,c}function o(c,a,d){return c.index=d,e?(d=c.alternate,d!==null?(d=d.index,d<a?(c.flags|=2,a):d):(c.flags|=2,a)):(c.flags|=1048576,a)}function u(c){return e&&c.alternate===null&&(c.flags|=2),c}function i(c,a,d,v){return a===null||a.tag!==6?(a=Hl(d,c.mode,v),a.return=c,a):(a=l(a,d),a.return=c,a)}function s(c,a,d,v){var E=d.type;return E===Mt?h(c,a,d.props.children,v,d.key):a!==null&&(a.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&xi(E)===a.type)?(v=l(a,d.props),v.ref=hn(c,a,d),v.return=c,v):(v=Tr(d.type,d.key,d.props,null,c.mode,v),v.ref=hn(c,a,d),v.return=c,v)}function f(c,a,d,v){return a===null||a.tag!==4||a.stateNode.containerInfo!==d.containerInfo||a.stateNode.implementation!==d.implementation?(a=Wl(d,c.mode,v),a.return=c,a):(a=l(a,d.children||[]),a.return=c,a)}function h(c,a,d,v,E){return a===null||a.tag!==7?(a=Ct(d,c.mode,v,E),a.return=c,a):(a=l(a,d),a.return=c,a)}function m(c,a,d){if(typeof a=="string"&&a!==""||typeof a=="number")return a=Hl(""+a,c.mode,d),a.return=c,a;if(typeof a=="object"&&a!==null){switch(a.$$typeof){case nr:return d=Tr(a.type,a.key,a.props,null,c.mode,d),d.ref=hn(c,null,a),d.return=c,d;case jt:return a=Wl(a,c.mode,d),a.return=c,a;case Je:var v=a._init;return m(c,v(a._payload),d)}if(wn(a)||cn(a))return a=Ct(a,c.mode,d,null),a.return=c,a;pr(c,a)}return null}function p(c,a,d,v){var E=a!==null?a.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return E!==null?null:i(c,a,""+d,v);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case nr:return d.key===E?s(c,a,d,v):null;case jt:return d.key===E?f(c,a,d,v):null;case Je:return E=d._init,p(c,a,E(d._payload),v)}if(wn(d)||cn(d))return E!==null?null:h(c,a,d,v,null);pr(c,d)}return null}function g(c,a,d,v,E){if(typeof v=="string"&&v!==""||typeof v=="number")return c=c.get(d)||null,i(a,c,""+v,E);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case nr:return c=c.get(v.key===null?d:v.key)||null,s(a,c,v,E);case jt:return c=c.get(v.key===null?d:v.key)||null,f(a,c,v,E);case Je:var N=v._init;return g(c,a,d,N(v._payload),E)}if(wn(v)||cn(v))return c=c.get(d)||null,h(a,c,v,E,null);pr(a,v)}return null}function w(c,a,d,v){for(var E=null,N=null,k=a,x=a=0,U=null;k!==null&&x<d.length;x++){k.index>x?(U=k,k=null):U=k.sibling;var L=p(c,k,d[x],v);if(L===null){k===null&&(k=U);break}e&&k&&L.alternate===null&&t(c,k),a=o(L,a,x),N===null?E=L:N.sibling=L,N=L,k=U}if(x===d.length)return n(c,k),$&>(c,x),E;if(k===null){for(;x<d.length;x++)k=m(c,d[x],v),k!==null&&(a=o(k,a,x),N===null?E=k:N.sibling=k,N=k);return $&>(c,x),E}for(k=r(c,k);x<d.length;x++)U=g(k,c,x,d[x],v),U!==null&&(e&&U.alternate!==null&&k.delete(U.key===null?x:U.key),a=o(U,a,x),N===null?E=U:N.sibling=U,N=U);return e&&k.forEach(function(Pe){return t(c,Pe)}),$&>(c,x),E}function S(c,a,d,v){var E=cn(d);if(typeof E!="function")throw Error(y(150));if(d=E.call(d),d==null)throw Error(y(151));for(var N=E=null,k=a,x=a=0,U=null,L=d.next();k!==null&&!L.done;x++,L=d.next()){k.index>x?(U=k,k=null):U=k.sibling;var Pe=p(c,k,L.value,v);if(Pe===null){k===null&&(k=U);break}e&&k&&Pe.alternate===null&&t(c,k),a=o(Pe,a,x),N===null?E=Pe:N.sibling=Pe,N=Pe,k=U}if(L.done)return n(c,k),$&>(c,x),E;if(k===null){for(;!L.done;x++,L=d.next())L=m(c,L.value,v),L!==null&&(a=o(L,a,x),N===null?E=L:N.sibling=L,N=L);return $&>(c,x),E}for(k=r(c,k);!L.done;x++,L=d.next())L=g(k,c,x,L.value,v),L!==null&&(e&&L.alternate!==null&&k.delete(L.key===null?x:L.key),a=o(L,a,x),N===null?E=L:N.sibling=L,N=L);return e&&k.forEach(function(sn){return t(c,sn)}),$&>(c,x),E}function M(c,a,d,v){if(typeof d=="object"&&d!==null&&d.type===Mt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case nr:e:{for(var E=d.key,N=a;N!==null;){if(N.key===E){if(E=d.type,E===Mt){if(N.tag===7){n(c,N.sibling),a=l(N,d.props.children),a.return=c,c=a;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&xi(E)===N.type){n(c,N.sibling),a=l(N,d.props),a.ref=hn(c,N,d),a.return=c,c=a;break e}n(c,N);break}else t(c,N);N=N.sibling}d.type===Mt?(a=Ct(d.props.children,c.mode,v,d.key),a.return=c,c=a):(v=Tr(d.type,d.key,d.props,null,c.mode,v),v.ref=hn(c,a,d),v.return=c,c=v)}return u(c);case jt:e:{for(N=d.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{n(c,a);break}else t(c,a);a=a.sibling}a=Wl(d,c.mode,v),a.return=c,c=a}return u(c);case Je:return N=d._init,M(c,a,N(d._payload),v)}if(wn(d))return w(c,a,d,v);if(cn(d))return S(c,a,d,v);pr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(c,a.sibling),a=l(a,d),a.return=c,c=a):(n(c,a),a=Hl(d,c.mode,v),a.return=c,c=a),u(c)):n(c,a)}return M}var en=sa(!0),aa=sa(!1),qn={},$e=mt(qn),Bn=mt(qn),Hn=mt(qn);function xt(e){if(e===qn)throw Error(y(174));return e}function mu(e,t){switch(D(Hn,t),D(Bn,e),D($e,qn),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:no(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=no(t,e)}F($e),D($e,t)}function tn(){F($e),F(Bn),F(Hn)}function ca(e){xt(Hn.current);var t=xt($e.current),n=no(t,e.type);t!==n&&(D(Bn,e),D($e,n))}function hu(e){Bn.current===e&&(F($e),F(Bn))}var A=mt(0);function Kr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fl=[];function vu(){for(var e=0;e<Fl.length;e++)Fl[e]._workInProgressVersionPrimary=null;Fl.length=0}var Cr=Ge.ReactCurrentDispatcher,Ul=Ge.ReactCurrentBatchConfig,Pt=0,V=null,X=null,J=null,Xr=!1,Pn=!1,Wn=0,ed=0;function ne(){throw Error(y(321))}function yu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Me(e[n],t[n]))return!1;return!0}function gu(e,t,n,r,l,o){if(Pt=o,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cr.current=e===null||e.memoizedState===null?ld:od,e=n(r,l),Pn){o=0;do{if(Pn=!1,Wn=0,25<=o)throw Error(y(301));o+=1,J=X=null,t.updateQueue=null,Cr.current=ud,e=n(r,l)}while(Pn)}if(Cr.current=Yr,t=X!==null&&X.next!==null,Pt=0,J=X=V=null,Xr=!1,t)throw Error(y(300));return e}function wu(){var e=Wn!==0;return Wn=0,e}function Ie(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return J===null?V.memoizedState=J=e:J=J.next=e,J}function Ne(){if(X===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=X.next;var t=J===null?V.memoizedState:J.next;if(t!==null)J=t,X=e;else{if(e===null)throw Error(y(310));X=e,e={memoizedState:X.memoizedState,baseState:X.baseState,baseQueue:X.baseQueue,queue:X.queue,next:null},J===null?V.memoizedState=J=e:J=J.next=e}return J}function Qn(e,t){return typeof t=="function"?t(e):t}function $l(e){var t=Ne(),n=t.queue;if(n===null)throw Error(y(311));n.lastRenderedReducer=e;var r=X,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var u=l.next;l.next=o.next,o.next=u}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var i=u=null,s=null,f=o;do{var h=f.lane;if((Pt&h)===h)s!==null&&(s=s.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var m={lane:h,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};s===null?(i=s=m,u=r):s=s.next=m,V.lanes|=h,zt|=h}f=f.next}while(f!==null&&f!==o);s===null?u=r:s.next=i,Me(r,t.memoizedState)||(fe=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,V.lanes|=o,zt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Al(e){var t=Ne(),n=t.queue;if(n===null)throw Error(y(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var u=l=l.next;do o=e(o,u.action),u=u.next;while(u!==l);Me(o,t.memoizedState)||(fe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fa(){}function da(e,t){var n=V,r=Ne(),l=t(),o=!Me(r.memoizedState,l);if(o&&(r.memoizedState=l,fe=!0),r=r.queue,ku(ha.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||J!==null&&J.memoizedState.tag&1){if(n.flags|=2048,Kn(9,ma.bind(null,n,r,l,t),void 0,null),q===null)throw Error(y(349));Pt&30||pa(n,t,l)}return l}function pa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ma(e,t,n,r){t.value=n,t.getSnapshot=r,va(t)&&ya(e)}function ha(e,t,n){return n(function(){va(t)&&ya(e)})}function va(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Me(e,n)}catch{return!0}}function ya(e){var t=Xe(e,1);t!==null&&je(t,e,1,-1)}function Ei(e){var t=Ie();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:e},t.queue=e,e=e.dispatch=rd.bind(null,V,e),[t.memoizedState,e]}function Kn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ga(){return Ne().memoizedState}function _r(e,t,n,r){var l=Ie();V.flags|=e,l.memoizedState=Kn(1|t,n,void 0,r===void 0?null:r)}function sl(e,t,n,r){var l=Ne();r=r===void 0?null:r;var o=void 0;if(X!==null){var u=X.memoizedState;if(o=u.destroy,r!==null&&yu(r,u.deps)){l.memoizedState=Kn(t,n,o,r);return}}V.flags|=e,l.memoizedState=Kn(1|t,n,o,r)}function Ci(e,t){return _r(8390656,8,e,t)}function ku(e,t){return sl(2048,8,e,t)}function wa(e,t){return sl(4,2,e,t)}function ka(e,t){return sl(4,4,e,t)}function Sa(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xa(e,t,n){return n=n!=null?n.concat([e]):null,sl(4,4,Sa.bind(null,t,e),n)}function Su(){}function Ea(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ca(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _a(e,t,n){return Pt&21?(Me(n,t)||(n=zs(),V.lanes|=n,zt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,fe=!0),e.memoizedState=n)}function td(e,t){var n=j;j=n!==0&&4>n?n:4,e(!0);var r=Ul.transition;Ul.transition={};try{e(!1),t()}finally{j=n,Ul.transition=r}}function Na(){return Ne().memoizedState}function nd(e,t,n){var r=at(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pa(e))za(t,n);else if(n=la(e,t,n,r),n!==null){var l=ie();je(n,e,r,l),Ta(n,t,r)}}function rd(e,t,n){var r=at(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pa(e))za(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var u=t.lastRenderedState,i=o(u,n);if(l.hasEagerState=!0,l.eagerState=i,Me(i,u)){var s=t.interleaved;s===null?(l.next=l,du(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=la(e,t,l,r),n!==null&&(l=ie(),je(n,e,r,l),Ta(n,t,r))}}function Pa(e){var t=e.alternate;return e===V||t!==null&&t===V}function za(e,t){Pn=Xr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ta(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qo(e,n)}}var Yr={readContext:_e,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},ld={readContext:_e,useCallback:function(e,t){return Ie().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Ci,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_r(4194308,4,Sa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _r(4194308,4,e,t)},useInsertionEffect:function(e,t){return _r(4,2,e,t)},useMemo:function(e,t){var n=Ie();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ie();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=nd.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Ie();return e={current:e},t.memoizedState=e},useState:Ei,useDebugValue:Su,useDeferredValue:function(e){return Ie().memoizedState=e},useTransition:function(){var e=Ei(!1),t=e[0];return e=td.bind(null,e[1]),Ie().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,l=Ie();if($){if(n===void 0)throw Error(y(407));n=n()}else{if(n=t(),q===null)throw Error(y(349));Pt&30||pa(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ci(ha.bind(null,r,o,e),[e]),r.flags|=2048,Kn(9,ma.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ie(),t=q.identifierPrefix;if($){var n=He,r=Be;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ed++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},od={readContext:_e,useCallback:Ea,useContext:_e,useEffect:ku,useImperativeHandle:xa,useInsertionEffect:wa,useLayoutEffect:ka,useMemo:Ca,useReducer:$l,useRef:ga,useState:function(){return $l(Qn)},useDebugValue:Su,useDeferredValue:function(e){var t=Ne();return _a(t,X.memoizedState,e)},useTransition:function(){var e=$l(Qn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:fa,useSyncExternalStore:da,useId:Na,unstable_isNewReconciler:!1},ud={readContext:_e,useCallback:Ea,useContext:_e,useEffect:ku,useImperativeHandle:xa,useInsertionEffect:wa,useLayoutEffect:ka,useMemo:Ca,useReducer:Al,useRef:ga,useState:function(){return Al(Qn)},useDebugValue:Su,useDeferredValue:function(e){var t=Ne();return X===null?t.memoizedState=e:_a(t,X.memoizedState,e)},useTransition:function(){var e=Al(Qn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:fa,useSyncExternalStore:da,useId:Na,unstable_isNewReconciler:!1};function nn(e,t){try{var n="",r=t;do n+=jc(r),r=r.return;while(r);var l=n}catch(o){l=`
|
39 |
Error generating stack: `+o.message+`
|
40 |
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Vl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function No(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var id=typeof WeakMap=="function"?WeakMap:Map;function La(e,t,n){n=We(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zr||(Zr=!0,Io=r),No(e,t)},n}function Ra(e,t,n){n=We(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){No(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){No(e,t),typeof r!="function"&&(st===null?st=new Set([this]):st.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function _i(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new id;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Sd.bind(null,e,t,n),t.then(e,e))}function Ni(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Pi(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=We(-1,1),t.tag=2,it(n,t,1))),n.lanes|=1),e)}var sd=Ge.ReactCurrentOwner,fe=!1;function ue(e,t,n,r){t.child=e===null?aa(t,null,n,r):en(t,e.child,n,r)}function zi(e,t,n,r,l){n=n.render;var o=t.ref;return Gt(t,l),r=gu(e,t,n,r,o,l),n=wu(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ye(e,t,l)):($&&n&&uu(t),t.flags|=1,ue(e,t,r,l),t.child)}function Ti(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Tu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Oa(e,t,o,r,l)):(e=Tr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var u=o.memoizedProps;if(n=n.compare,n=n!==null?n:Un,n(u,r)&&e.ref===t.ref)return Ye(e,t,l)}return t.flags|=1,e=ct(o,r),e.ref=t.ref,e.return=t,t.child=e}function Oa(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Un(o,r)&&e.ref===t.ref)if(fe=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(fe=!0);else return t.lanes=e.lanes,Ye(e,t,l)}return Po(e,t,n,r,l)}function ja(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},D(Wt,he),he|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,D(Wt,he),he|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,D(Wt,he),he|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,D(Wt,he),he|=r;return ue(e,t,l,n),t.child}function Ma(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Po(e,t,n,r,l){var o=pe(n)?_t:oe.current;return o=qt(t,o),Gt(t,l),n=gu(e,t,n,r,o,l),r=wu(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ye(e,t,l)):($&&r&&uu(t),t.flags|=1,ue(e,t,n,l),t.child)}function Li(e,t,n,r,l){if(pe(n)){var o=!0;Ar(t)}else o=!1;if(Gt(t,l),t.stateNode===null)Nr(e,t),ia(t,n,r),_o(t,n,r,l),r=!0;else if(e===null){var u=t.stateNode,i=t.memoizedProps;u.props=i;var s=u.context,f=n.contextType;typeof f=="object"&&f!==null?f=_e(f):(f=pe(n)?_t:oe.current,f=qt(t,f));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function";m||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==r||s!==f)&&Si(t,u,r,f),qe=!1;var p=t.memoizedState;u.state=p,Qr(t,r,u,l),s=t.memoizedState,i!==r||p!==s||de.current||qe?(typeof h=="function"&&(Co(t,n,h,r),s=t.memoizedState),(i=qe||ki(t,n,i,r,p,s,f))?(m||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),u.props=r,u.state=s,u.context=f,r=i):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,oa(e,t),i=t.memoizedProps,f=t.type===t.elementType?i:Te(t.type,i),u.props=f,m=t.pendingProps,p=u.context,s=n.contextType,typeof s=="object"&&s!==null?s=_e(s):(s=pe(n)?_t:oe.current,s=qt(t,s));var g=n.getDerivedStateFromProps;(h=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==m||p!==s)&&Si(t,u,r,s),qe=!1,p=t.memoizedState,u.state=p,Qr(t,r,u,l);var w=t.memoizedState;i!==m||p!==w||de.current||qe?(typeof g=="function"&&(Co(t,n,g,r),w=t.memoizedState),(f=qe||ki(t,n,f,r,p,w,s)||!1)?(h||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,w,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,w,s)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),u.props=r,u.state=w,u.context=s,r=f):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return zo(e,t,n,r,o,l)}function zo(e,t,n,r,l,o){Ma(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return l&&hi(t,n,!1),Ye(e,t,o);r=t.stateNode,sd.current=t;var i=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=en(t,e.child,null,o),t.child=en(t,null,i,o)):ue(e,t,i,o),t.memoizedState=r.state,l&&hi(t,n,!0),t.child}function Da(e){var t=e.stateNode;t.pendingContext?mi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mi(e,t.context,!1),mu(e,t.containerInfo)}function Ri(e,t,n,r,l){return bt(),su(l),t.flags|=256,ue(e,t,n,r),t.child}var To={dehydrated:null,treeContext:null,retryLane:0};function Lo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ia(e,t,n){var r=t.pendingProps,l=A.current,o=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(l&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),D(A,l&1),e===null)return xo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=r.children,e=r.fallback,o?(r=t.mode,o=t.child,u={mode:"hidden",children:u},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=u):o=fl(u,r,0,null),e=Ct(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Lo(n),t.memoizedState=To,e):xu(t,u));if(l=e.memoizedState,l!==null&&(i=l.dehydrated,i!==null))return ad(e,t,u,r,i,l,n);if(o){o=r.fallback,u=t.mode,l=e.child,i=l.sibling;var s={mode:"hidden",children:r.children};return!(u&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=ct(l,s),r.subtreeFlags=l.subtreeFlags&14680064),i!==null?o=ct(i,o):(o=Ct(o,u,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,u=e.child.memoizedState,u=u===null?Lo(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},o.memoizedState=u,o.childLanes=e.childLanes&~n,t.memoizedState=To,r}return o=e.child,e=o.sibling,r=ct(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xu(e,t){return t=fl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function mr(e,t,n,r){return r!==null&&su(r),en(t,e.child,null,n),e=xu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ad(e,t,n,r,l,o,u){if(n)return t.flags&256?(t.flags&=-257,r=Vl(Error(y(422))),mr(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=fl({mode:"visible",children:r.children},l,0,null),o=Ct(o,l,u,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&en(t,e.child,null,u),t.child.memoizedState=Lo(u),t.memoizedState=To,o);if(!(t.mode&1))return mr(e,t,u,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var i=r.dgst;return r=i,o=Error(y(419)),r=Vl(o,r,void 0),mr(e,t,u,r)}if(i=(u&e.childLanes)!==0,fe||i){if(r=q,r!==null){switch(u&-u){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|u)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Xe(e,l),je(r,e,l,-1))}return zu(),r=Vl(Error(y(421))),mr(e,t,u,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=xd.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ve=ut(l.nextSibling),ye=t,$=!0,Re=null,e!==null&&(Se[xe++]=Be,Se[xe++]=He,Se[xe++]=Nt,Be=e.id,He=e.overflow,Nt=t),t=xu(t,r.children),t.flags|=4096,t)}function Oi(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Eo(e.return,t,n)}function Bl(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Fa(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ue(e,t,r.children,n),r=A.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oi(e,n,t);else if(e.tag===19)Oi(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(D(A,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Kr(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Bl(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Kr(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Bl(t,!0,n,null,o);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ye(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),zt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(y(153));if(t.child!==null){for(e=t.child,n=ct(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ct(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cd(e,t,n){switch(t.tag){case 3:Da(t),bt();break;case 5:ca(t);break;case 1:pe(t.type)&&Ar(t);break;case 4:mu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;D(Hr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(D(A,A.current&1),t.flags|=128,null):n&t.child.childLanes?Ia(e,t,n):(D(A,A.current&1),e=Ye(e,t,n),e!==null?e.sibling:null);D(A,A.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fa(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),D(A,A.current),r)break;return null;case 22:case 23:return t.lanes=0,ja(e,t,n)}return Ye(e,t,n)}var Ua,Ro,$a,Aa;Ua=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ro=function(){};$a=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,xt($e.current);var o=null;switch(n){case"input":l=ql(e,l),r=ql(e,r),o=[];break;case"select":l=B({},l,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":l=to(e,l),r=to(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ur)}ro(n,r);var u;n=null;for(f in l)if(!r.hasOwnProperty(f)&&l.hasOwnProperty(f)&&l[f]!=null)if(f==="style"){var i=l[f];for(u in i)i.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Rn.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var s=r[f];if(i=l!=null?l[f]:void 0,r.hasOwnProperty(f)&&s!==i&&(s!=null||i!=null))if(f==="style")if(i){for(u in i)!i.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&i[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(o||(o=[]),o.push(f,n)),n=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,i=i?i.__html:void 0,s!=null&&i!==s&&(o=o||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Rn.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&I("scroll",e),o||i===s||(o=[])):(o=o||[]).push(f,s))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};Aa=function(e,t,n,r){n!==r&&(t.flags|=4)};function vn(e,t){if(!$)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fd(e,t,n){var r=t.pendingProps;switch(iu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return re(t),null;case 1:return pe(t.type)&&$r(),re(t),null;case 3:return r=t.stateNode,tn(),F(de),F(oe),vu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(dr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Re!==null&&($o(Re),Re=null))),Ro(e,t),re(t),null;case 5:hu(t);var l=xt(Hn.current);if(n=t.type,e!==null&&t.stateNode!=null)$a(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(y(166));return re(t),null}if(e=xt($e.current),dr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Fe]=t,r[Vn]=o,e=(t.mode&1)!==0,n){case"dialog":I("cancel",r),I("close",r);break;case"iframe":case"object":case"embed":I("load",r);break;case"video":case"audio":for(l=0;l<Sn.length;l++)I(Sn[l],r);break;case"source":I("error",r);break;case"img":case"image":case"link":I("error",r),I("load",r);break;case"details":I("toggle",r);break;case"input":Vu(r,o),I("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},I("invalid",r);break;case"textarea":Hu(r,o),I("invalid",r)}ro(n,o),l=null;for(var u in o)if(o.hasOwnProperty(u)){var i=o[u];u==="children"?typeof i=="string"?r.textContent!==i&&(o.suppressHydrationWarning!==!0&&fr(r.textContent,i,e),l=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&fr(r.textContent,i,e),l=["children",""+i]):Rn.hasOwnProperty(u)&&i!=null&&u==="onScroll"&&I("scroll",r)}switch(n){case"input":rr(r),Bu(r,o,!0);break;case"textarea":rr(r),Wu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ur)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ps(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Fe]=t,e[Vn]=r,Ua(e,t,!1,!1),t.stateNode=e;e:{switch(u=lo(n,r),n){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;l<Sn.length;l++)I(Sn[l],e);l=r;break;case"source":I("error",e),l=r;break;case"img":case"image":case"link":I("error",e),I("load",e),l=r;break;case"details":I("toggle",e),l=r;break;case"input":Vu(e,r),l=ql(e,r),I("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=B({},r,{value:void 0}),I("invalid",e);break;case"textarea":Hu(e,r),l=to(e,r),I("invalid",e);break;default:l=r}ro(n,l),i=l;for(o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="style"?vs(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&ms(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&On(e,s):typeof s=="number"&&On(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rn.hasOwnProperty(o)?s!=null&&o==="onScroll"&&I("scroll",e):s!=null&&Ko(e,o,s,u))}switch(n){case"input":rr(e),Bu(e,r,!1);break;case"textarea":rr(e),Wu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ft(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Qt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Qt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ur)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return re(t),null;case 6:if(e&&t.stateNode!=null)Aa(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(y(166));if(n=xt(Hn.current),xt($e.current),dr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Fe]=t,(o=r.nodeValue!==n)&&(e=ye,e!==null))switch(e.tag){case 3:fr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Fe]=t,t.stateNode=r}return re(t),null;case 13:if(F(A),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($&&ve!==null&&t.mode&1&&!(t.flags&128))ra(),bt(),t.flags|=98560,o=!1;else if(o=dr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(y(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(y(317));o[Fe]=t}else bt(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;re(t),o=!1}else Re!==null&&($o(Re),Re=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||A.current&1?Y===0&&(Y=3):zu())),t.updateQueue!==null&&(t.flags|=4),re(t),null);case 4:return tn(),Ro(e,t),e===null&&$n(t.stateNode.containerInfo),re(t),null;case 10:return fu(t.type._context),re(t),null;case 17:return pe(t.type)&&$r(),re(t),null;case 19:if(F(A),o=t.memoizedState,o===null)return re(t),null;if(r=(t.flags&128)!==0,u=o.rendering,u===null)if(r)vn(o,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Kr(e),u!==null){for(t.flags|=128,vn(o,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,u=o.alternate,u===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return D(A,A.current&1|2),t.child}e=e.sibling}o.tail!==null&&Q()>rn&&(t.flags|=128,r=!0,vn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Kr(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!$)return re(t),null}else 2*Q()-o.renderingStartTime>rn&&n!==1073741824&&(t.flags|=128,r=!0,vn(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(n=o.last,n!==null?n.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Q(),t.sibling=null,n=A.current,D(A,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?he&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function dd(e,t){switch(iu(t),t.tag){case 1:return pe(t.type)&&$r(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tn(),F(de),F(oe),vu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hu(t),null;case 13:if(F(A),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));bt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(A),null;case 4:return tn(),null;case 10:return fu(t.type._context),null;case 22:case 23:return Pu(),null;case 24:return null;default:return null}}var hr=!1,le=!1,pd=typeof WeakSet=="function"?WeakSet:Set,C=null;function Ht(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function Oo(e,t,n){try{n()}catch(r){H(e,t,r)}}var ji=!1;function md(e,t){if(ho=Dr,e=Ws(),ou(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,i=-1,s=-1,f=0,h=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(i=u+l),m!==o||r!==0&&m.nodeType!==3||(s=u+r),m.nodeType===3&&(u+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++f===l&&(i=u),p===o&&++h===r&&(s=u),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vo={focusedElem:e,selectionRange:n},Dr=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,M=w.memoizedState,c=t.stateNode,a=c.getSnapshotBeforeUpdate(t.elementType===t.type?S:Te(t.type,S),M);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(v){H(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return w=ji,ji=!1,w}function zn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Oo(t,n,o)}l=l.next}while(l!==r)}}function al(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Va(e){var t=e.alternate;t!==null&&(e.alternate=null,Va(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fe],delete t[Vn],delete t[wo],delete t[Zf],delete t[Jf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ba(e){return e.tag===5||e.tag===3||e.tag===4}function Mi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ba(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ur));else if(r!==4&&(e=e.child,e!==null))for(Mo(e,t,n),e=e.sibling;e!==null;)Mo(e,t,n),e=e.sibling}function Do(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Do(e,t,n),e=e.sibling;e!==null;)Do(e,t,n),e=e.sibling}var b=null,Le=!1;function Ze(e,t,n){for(n=n.child;n!==null;)Ha(e,t,n),n=n.sibling}function Ha(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(tl,n)}catch{}switch(n.tag){case 5:le||Ht(n,t);case 6:var r=b,l=Le;b=null,Ze(e,t,n),b=r,Le=l,b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),In(e)):Dl(b,n.stateNode));break;case 4:r=b,l=Le,b=n.stateNode.containerInfo,Le=!0,Ze(e,t,n),b=r,Le=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&Oo(n,t,u),l=l.next}while(l!==r)}Ze(e,t,n);break;case 1:if(!le&&(Ht(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){H(n,t,i)}Ze(e,t,n);break;case 21:Ze(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,Ze(e,t,n),le=r):Ze(e,t,n);break;default:Ze(e,t,n)}}function Di(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pd),t.forEach(function(r){var l=Ed.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,u=t,i=u;e:for(;i!==null;){switch(i.tag){case 5:b=i.stateNode,Le=!1;break e;case 3:b=i.stateNode.containerInfo,Le=!0;break e;case 4:b=i.stateNode.containerInfo,Le=!0;break e}i=i.return}if(b===null)throw Error(y(160));Ha(o,u,l),b=null,Le=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(f){H(l,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Wa(t,e),t=t.sibling}function Wa(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ze(t,e),De(e),r&4){try{zn(3,e,e.return),al(3,e)}catch(S){H(e,e.return,S)}try{zn(5,e,e.return)}catch(S){H(e,e.return,S)}}break;case 1:ze(t,e),De(e),r&512&&n!==null&&Ht(n,n.return);break;case 5:if(ze(t,e),De(e),r&512&&n!==null&&Ht(n,n.return),e.flags&32){var l=e.stateNode;try{On(l,"")}catch(S){H(e,e.return,S)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,u=n!==null?n.memoizedProps:o,i=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&fs(l,o),lo(i,u);var f=lo(i,o);for(u=0;u<s.length;u+=2){var h=s[u],m=s[u+1];h==="style"?vs(l,m):h==="dangerouslySetInnerHTML"?ms(l,m):h==="children"?On(l,m):Ko(l,h,m,f)}switch(i){case"input":bl(l,o);break;case"textarea":ds(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?Qt(l,!!o.multiple,g,!1):p!==!!o.multiple&&(o.defaultValue!=null?Qt(l,!!o.multiple,o.defaultValue,!0):Qt(l,!!o.multiple,o.multiple?[]:"",!1))}l[Vn]=o}catch(S){H(e,e.return,S)}}break;case 6:if(ze(t,e),De(e),r&4){if(e.stateNode===null)throw Error(y(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(S){H(e,e.return,S)}}break;case 3:if(ze(t,e),De(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{In(t.containerInfo)}catch(S){H(e,e.return,S)}break;case 4:ze(t,e),De(e);break;case 13:ze(t,e),De(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(_u=Q())),r&4&&Di(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(le=(f=le)||h,ze(t,e),le=f):ze(t,e),De(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!h&&e.mode&1)for(C=e,h=e.child;h!==null;){for(m=C=h;C!==null;){switch(p=C,g=p.child,p.tag){case 0:case 11:case 14:case 15:zn(4,p,p.return);break;case 1:Ht(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(S){H(r,n,S)}}break;case 5:Ht(p,p.return);break;case 22:if(p.memoizedState!==null){Fi(m);continue}}g!==null?(g.return=p,C=g):Fi(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{l=m.stateNode,f?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=m.stateNode,s=m.memoizedProps.style,u=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=hs("display",u))}catch(S){H(e,e.return,S)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=f?"":m.memoizedProps}catch(S){H(e,e.return,S)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:ze(t,e),De(e),r&4&&Di(e);break;case 21:break;default:ze(t,e),De(e)}}function De(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ba(n)){var r=n;break e}n=n.return}throw Error(y(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(On(l,""),r.flags&=-33);var o=Mi(e);Do(e,o,l);break;case 3:case 4:var u=r.stateNode.containerInfo,i=Mi(e);Mo(e,i,u);break;default:throw Error(y(161))}}catch(s){H(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hd(e,t,n){C=e,Qa(e)}function Qa(e,t,n){for(var r=(e.mode&1)!==0;C!==null;){var l=C,o=l.child;if(l.tag===22&&r){var u=l.memoizedState!==null||hr;if(!u){var i=l.alternate,s=i!==null&&i.memoizedState!==null||le;i=hr;var f=le;if(hr=u,(le=s)&&!f)for(C=l;C!==null;)u=C,s=u.child,u.tag===22&&u.memoizedState!==null?Ui(l):s!==null?(s.return=u,C=s):Ui(l);for(;o!==null;)C=o,Qa(o),o=o.sibling;C=l,hr=i,le=f}Ii(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,C=o):Ii(e)}}function Ii(e){for(;C!==null;){var t=C;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:le||al(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!le)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Te(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&wi(t,o,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wi(t,u,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var h=f.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&In(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(y(163))}le||t.flags&512&&jo(t)}catch(p){H(t,t.return,p)}}if(t===e){C=null;break}if(n=t.sibling,n!==null){n.return=t.return,C=n;break}C=t.return}}function Fi(e){for(;C!==null;){var t=C;if(t===e){C=null;break}var n=t.sibling;if(n!==null){n.return=t.return,C=n;break}C=t.return}}function Ui(e){for(;C!==null;){var t=C;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(s){H(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){H(t,l,s)}}var o=t.return;try{jo(t)}catch(s){H(t,o,s)}break;case 5:var u=t.return;try{jo(t)}catch(s){H(t,u,s)}}}catch(s){H(t,t.return,s)}if(t===e){C=null;break}var i=t.sibling;if(i!==null){i.return=t.return,C=i;break}C=t.return}}var vd=Math.ceil,Gr=Ge.ReactCurrentDispatcher,Eu=Ge.ReactCurrentOwner,Ce=Ge.ReactCurrentBatchConfig,O=0,q=null,K=null,ee=0,he=0,Wt=mt(0),Y=0,Xn=null,zt=0,cl=0,Cu=0,Tn=null,ce=null,_u=0,rn=1/0,Ae=null,Zr=!1,Io=null,st=null,vr=!1,nt=null,Jr=0,Ln=0,Fo=null,Pr=-1,zr=0;function ie(){return O&6?Q():Pr!==-1?Pr:Pr=Q()}function at(e){return e.mode&1?O&2&&ee!==0?ee&-ee:bf.transition!==null?(zr===0&&(zr=zs()),zr):(e=j,e!==0||(e=window.event,e=e===void 0?16:Ds(e.type)),e):1}function je(e,t,n,r){if(50<Ln)throw Ln=0,Fo=null,Error(y(185));Gn(e,n,r),(!(O&2)||e!==q)&&(e===q&&(!(O&2)&&(cl|=n),Y===4&&et(e,ee)),me(e,r),n===1&&O===0&&!(t.mode&1)&&(rn=Q()+500,ul&&ht()))}function me(e,t){var n=e.callbackNode;qc(e,t);var r=Mr(e,e===q?ee:0);if(r===0)n!==null&&Xu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xu(n),t===1)e.tag===0?qf($i.bind(null,e)):ea($i.bind(null,e)),Yf(function(){!(O&6)&&ht()}),n=null;else{switch(Ts(r)){case 1:n=Jo;break;case 4:n=Ns;break;case 16:n=jr;break;case 536870912:n=Ps;break;default:n=jr}n=ba(n,Ka.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ka(e,t){if(Pr=-1,zr=0,O&6)throw Error(y(327));var n=e.callbackNode;if(Zt()&&e.callbackNode!==n)return null;var r=Mr(e,e===q?ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=qr(e,r);else{t=r;var l=O;O|=2;var o=Ya();(q!==e||ee!==t)&&(Ae=null,rn=Q()+500,Et(e,t));do try{wd();break}catch(i){Xa(e,i)}while(1);cu(),Gr.current=o,O=l,K!==null?t=0:(q=null,ee=0,t=Y)}if(t!==0){if(t===2&&(l=ao(e),l!==0&&(r=l,t=Uo(e,l))),t===1)throw n=Xn,Et(e,0),et(e,r),me(e,Q()),n;if(t===6)et(e,r);else{if(l=e.current.alternate,!(r&30)&&!yd(l)&&(t=qr(e,r),t===2&&(o=ao(e),o!==0&&(r=o,t=Uo(e,o))),t===1))throw n=Xn,Et(e,0),et(e,r),me(e,Q()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(y(345));case 2:wt(e,ce,Ae);break;case 3:if(et(e,r),(r&130023424)===r&&(t=_u+500-Q(),10<t)){if(Mr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ie(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=go(wt.bind(null,e,ce,Ae),t);break}wt(e,ce,Ae);break;case 4:if(et(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var u=31-Oe(r);o=1<<u,u=t[u],u>l&&(l=u),r&=~o}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vd(r/1960))-r,10<r){e.timeoutHandle=go(wt.bind(null,e,ce,Ae),r);break}wt(e,ce,Ae);break;case 5:wt(e,ce,Ae);break;default:throw Error(y(329))}}}return me(e,Q()),e.callbackNode===n?Ka.bind(null,e):null}function Uo(e,t){var n=Tn;return e.current.memoizedState.isDehydrated&&(Et(e,t).flags|=256),e=qr(e,t),e!==2&&(t=ce,ce=n,t!==null&&$o(t)),e}function $o(e){ce===null?ce=e:ce.push.apply(ce,e)}function yd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Me(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function et(e,t){for(t&=~Cu,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Oe(t),r=1<<n;e[n]=-1,t&=~r}}function $i(e){if(O&6)throw Error(y(327));Zt();var t=Mr(e,0);if(!(t&1))return me(e,Q()),null;var n=qr(e,t);if(e.tag!==0&&n===2){var r=ao(e);r!==0&&(t=r,n=Uo(e,r))}if(n===1)throw n=Xn,Et(e,0),et(e,t),me(e,Q()),n;if(n===6)throw Error(y(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wt(e,ce,Ae),me(e,Q()),null}function Nu(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(rn=Q()+500,ul&&ht())}}function Tt(e){nt!==null&&nt.tag===0&&!(O&6)&&Zt();var t=O;O|=1;var n=Ce.transition,r=j;try{if(Ce.transition=null,j=1,e)return e()}finally{j=r,Ce.transition=n,O=t,!(O&6)&&ht()}}function Pu(){he=Wt.current,F(Wt)}function Et(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xf(n)),K!==null)for(n=K.return;n!==null;){var r=n;switch(iu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$r();break;case 3:tn(),F(de),F(oe),vu();break;case 5:hu(r);break;case 4:tn();break;case 13:F(A);break;case 19:F(A);break;case 10:fu(r.type._context);break;case 22:case 23:Pu()}n=n.return}if(q=e,K=e=ct(e.current,null),ee=he=t,Y=0,Xn=null,Cu=cl=zt=0,ce=Tn=null,St!==null){for(t=0;t<St.length;t++)if(n=St[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var u=o.next;o.next=l,r.next=u}n.pending=r}St=null}return e}function Xa(e,t){do{var n=K;try{if(cu(),Cr.current=Yr,Xr){for(var r=V.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Xr=!1}if(Pt=0,J=X=V=null,Pn=!1,Wn=0,Eu.current=null,n===null||n.return===null){Y=1,Xn=t,K=null;break}e:{var o=e,u=n.return,i=n,s=t;if(t=ee,i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=s,h=i,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var g=Ni(u);if(g!==null){g.flags&=-257,Pi(g,u,i,o,t),g.mode&1&&_i(o,f,t),t=g,s=f;var w=t.updateQueue;if(w===null){var S=new Set;S.add(s),t.updateQueue=S}else w.add(s);break e}else{if(!(t&1)){_i(o,f,t),zu();break e}s=Error(y(426))}}else if($&&i.mode&1){var M=Ni(u);if(M!==null){!(M.flags&65536)&&(M.flags|=256),Pi(M,u,i,o,t),su(nn(s,i));break e}}o=s=nn(s,i),Y!==4&&(Y=2),Tn===null?Tn=[o]:Tn.push(o),o=u;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var c=La(o,s,t);gi(o,c);break e;case 1:i=s;var a=o.type,d=o.stateNode;if(!(o.flags&128)&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(st===null||!st.has(d)))){o.flags|=65536,t&=-t,o.lanes|=t;var v=Ra(o,i,t);gi(o,v);break e}}o=o.return}while(o!==null)}Za(n)}catch(E){t=E,K===n&&n!==null&&(K=n=n.return);continue}break}while(1)}function Ya(){var e=Gr.current;return Gr.current=Yr,e===null?Yr:e}function zu(){(Y===0||Y===3||Y===2)&&(Y=4),q===null||!(zt&268435455)&&!(cl&268435455)||et(q,ee)}function qr(e,t){var n=O;O|=2;var r=Ya();(q!==e||ee!==t)&&(Ae=null,Et(e,t));do try{gd();break}catch(l){Xa(e,l)}while(1);if(cu(),O=n,Gr.current=r,K!==null)throw Error(y(261));return q=null,ee=0,Y}function gd(){for(;K!==null;)Ga(K)}function wd(){for(;K!==null&&!Hc();)Ga(K)}function Ga(e){var t=qa(e.alternate,e,he);e.memoizedProps=e.pendingProps,t===null?Za(e):K=t,Eu.current=null}function Za(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dd(n,t),n!==null){n.flags&=32767,K=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Y=6,K=null;return}}else if(n=fd(n,t,he),n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);Y===0&&(Y=5)}function wt(e,t,n){var r=j,l=Ce.transition;try{Ce.transition=null,j=1,kd(e,t,n,r)}finally{Ce.transition=l,j=r}return null}function kd(e,t,n,r){do Zt();while(nt!==null);if(O&6)throw Error(y(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(y(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(bc(e,o),e===q&&(K=q=null,ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||vr||(vr=!0,ba(jr,function(){return Zt(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ce.transition,Ce.transition=null;var u=j;j=1;var i=O;O|=4,Eu.current=null,md(e,n),Wa(n,e),Af(vo),Dr=!!ho,vo=ho=null,e.current=n,hd(n),Wc(),O=i,j=u,Ce.transition=o}else e.current=n;if(vr&&(vr=!1,nt=e,Jr=l),o=e.pendingLanes,o===0&&(st=null),Xc(n.stateNode),me(e,Q()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Zr)throw Zr=!1,e=Io,Io=null,e;return Jr&1&&e.tag!==0&&Zt(),o=e.pendingLanes,o&1?e===Fo?Ln++:(Ln=0,Fo=e):Ln=0,ht(),null}function Zt(){if(nt!==null){var e=Ts(Jr),t=Ce.transition,n=j;try{if(Ce.transition=null,j=16>e?16:e,nt===null)var r=!1;else{if(e=nt,nt=null,Jr=0,O&6)throw Error(y(331));var l=O;for(O|=4,C=e.current;C!==null;){var o=C,u=o.child;if(C.flags&16){var i=o.deletions;if(i!==null){for(var s=0;s<i.length;s++){var f=i[s];for(C=f;C!==null;){var h=C;switch(h.tag){case 0:case 11:case 15:zn(8,h,o)}var m=h.child;if(m!==null)m.return=h,C=m;else for(;C!==null;){h=C;var p=h.sibling,g=h.return;if(Va(h),h===f){C=null;break}if(p!==null){p.return=g,C=p;break}C=g}}}var w=o.alternate;if(w!==null){var S=w.child;if(S!==null){w.child=null;do{var M=S.sibling;S.sibling=null,S=M}while(S!==null)}}C=o}}if(o.subtreeFlags&2064&&u!==null)u.return=o,C=u;else e:for(;C!==null;){if(o=C,o.flags&2048)switch(o.tag){case 0:case 11:case 15:zn(9,o,o.return)}var c=o.sibling;if(c!==null){c.return=o.return,C=c;break e}C=o.return}}var a=e.current;for(C=a;C!==null;){u=C;var d=u.child;if(u.subtreeFlags&2064&&d!==null)d.return=u,C=d;else e:for(u=a;C!==null;){if(i=C,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:al(9,i)}}catch(E){H(i,i.return,E)}if(i===u){C=null;break e}var v=i.sibling;if(v!==null){v.return=i.return,C=v;break e}C=i.return}}if(O=l,ht(),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(tl,e)}catch{}r=!0}return r}finally{j=n,Ce.transition=t}}return!1}function Ai(e,t,n){t=nn(n,t),t=La(e,t,1),e=it(e,t,1),t=ie(),e!==null&&(Gn(e,1,t),me(e,t))}function H(e,t,n){if(e.tag===3)Ai(e,e,n);else for(;t!==null;){if(t.tag===3){Ai(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(st===null||!st.has(r))){e=nn(n,e),e=Ra(t,e,1),t=it(t,e,1),e=ie(),t!==null&&(Gn(t,1,e),me(t,e));break}}t=t.return}}function Sd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ie(),e.pingedLanes|=e.suspendedLanes&n,q===e&&(ee&n)===n&&(Y===4||Y===3&&(ee&130023424)===ee&&500>Q()-_u?Et(e,0):Cu|=n),me(e,t)}function Ja(e,t){t===0&&(e.mode&1?(t=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):t=1);var n=ie();e=Xe(e,t),e!==null&&(Gn(e,t,n),me(e,n))}function xd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ja(e,n)}function Ed(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),Ja(e,n)}var qa;qa=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||de.current)fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return fe=!1,cd(e,t,n);fe=!!(e.flags&131072)}else fe=!1,$&&t.flags&1048576&&ta(t,Br,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nr(e,t),e=t.pendingProps;var l=qt(t,oe.current);Gt(t,n),l=gu(null,t,r,e,l,n);var o=wu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pe(r)?(o=!0,Ar(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pu(t),l.updater=il,t.stateNode=l,l._reactInternals=t,_o(t,r,e,n),t=zo(null,t,r,!0,o,n)):(t.tag=0,$&&o&&uu(t),ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=_d(r),e=Te(r,e),l){case 0:t=Po(null,t,r,e,n);break e;case 1:t=Li(null,t,r,e,n);break e;case 11:t=zi(null,t,r,e,n);break e;case 14:t=Ti(null,t,r,Te(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),Po(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),Li(e,t,r,l,n);case 3:e:{if(Da(t),e===null)throw Error(y(387));r=t.pendingProps,o=t.memoizedState,l=o.element,oa(e,t),Qr(t,r,null,n);var u=t.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=nn(Error(y(423)),t),t=Ri(e,t,r,n,l);break e}else if(r!==l){l=nn(Error(y(424)),t),t=Ri(e,t,r,n,l);break e}else for(ve=ut(t.stateNode.containerInfo.firstChild),ye=t,$=!0,Re=null,n=aa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bt(),r===l){t=Ye(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return ca(t),e===null&&xo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,u=l.children,yo(r,l)?u=null:o!==null&&yo(r,o)&&(t.flags|=32),Ma(e,t),ue(e,t,u,n),t.child;case 6:return e===null&&xo(t),null;case 13:return Ia(e,t,n);case 4:return mu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=en(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),zi(e,t,r,l,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,u=l.value,D(Hr,r._currentValue),r._currentValue=u,o!==null)if(Me(o.value,u)){if(o.children===l.children&&!de.current){t=Ye(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){u=o.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=We(-1,n&-n),s.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?s.next=s:(s.next=h.next,h.next=s),f.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Eo(o.return,n,t),i.lanes|=n;break}s=s.next}}else if(o.tag===10)u=o.type===t.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(y(341));u.lanes|=n,i=u.alternate,i!==null&&(i.lanes|=n),Eo(u,n,t),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===t){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Gt(t,n),l=_e(l),r=r(l),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,l=Te(r,t.pendingProps),l=Te(r.type,l),Ti(e,t,r,l,n);case 15:return Oa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Te(r,l),Nr(e,t),t.tag=1,pe(r)?(e=!0,Ar(t)):e=!1,Gt(t,n),ia(t,r,l),_o(t,r,l,n),zo(null,t,r,!0,e,n);case 19:return Fa(e,t,n);case 22:return ja(e,t,n)}throw Error(y(156,t.tag))};function ba(e,t){return _s(e,t)}function Cd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new Cd(e,t,n,r)}function Tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _d(e){if(typeof e=="function")return Tu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yo)return 11;if(e===Go)return 14}return 2}function ct(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tr(e,t,n,r,l,o){var u=2;if(r=e,typeof e=="function")Tu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Mt:return Ct(n.children,l,o,t);case Xo:u=8,l|=8;break;case Yl:return e=Ee(12,n,t,l|2),e.elementType=Yl,e.lanes=o,e;case Gl:return e=Ee(13,n,t,l),e.elementType=Gl,e.lanes=o,e;case Zl:return e=Ee(19,n,t,l),e.elementType=Zl,e.lanes=o,e;case ss:return fl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case us:u=10;break e;case is:u=9;break e;case Yo:u=11;break e;case Go:u=14;break e;case Je:u=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=Ee(u,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ct(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function fl(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=ss,e.lanes=n,e.stateNode={isHidden:!1},e}function Hl(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function Wl(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cl(0),this.expirationTimes=Cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,l,o,u,i,s){return e=new Nd(e,t,n,i,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ee(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pu(o),e}function Pd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ec(e){if(!e)return dt;e=e._reactInternals;e:{if(Rt(e)!==e||e.tag!==1)throw Error(y(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(y(171))}if(e.tag===1){var n=e.type;if(pe(n))return bs(e,n,t)}return t}function tc(e,t,n,r,l,o,u,i,s){return e=Lu(n,r,!0,e,l,o,u,i,s),e.context=ec(null),n=e.current,r=ie(),l=at(n),o=We(r,l),o.callback=t??null,it(n,o,l),e.current.lanes=l,Gn(e,l,r),me(e,r),e}function dl(e,t,n,r){var l=t.current,o=ie(),u=at(l);return n=ec(n),t.context===null?t.context=n:t.pendingContext=n,t=We(o,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=it(l,t,u),e!==null&&(je(e,l,u,o),Er(e,l,u)),u}function br(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Vi(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ru(e,t){Vi(e,t),(e=e.alternate)&&Vi(e,t)}function zd(){return null}var nc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ou(e){this._internalRoot=e}pl.prototype.render=Ou.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(y(409));dl(e,t,null,null)};pl.prototype.unmount=Ou.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tt(function(){dl(null,e,null,null)}),t[Ke]=null}};function pl(e){this._internalRoot=e}pl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Os();e={blockedOn:null,target:e,priority:t};for(var n=0;n<be.length&&t!==0&&t<be[n].priority;n++);be.splice(n,0,e),n===0&&Ms(e)}};function ju(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bi(){}function Td(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var f=br(u);o.call(f)}}var u=tc(t,r,e,0,null,!1,!1,"",Bi);return e._reactRootContainer=u,e[Ke]=u.current,$n(e.nodeType===8?e.parentNode:e),Tt(),u}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var i=r;r=function(){var f=br(s);i.call(f)}}var s=Lu(e,0,!1,null,null,!1,!1,"",Bi);return e._reactRootContainer=s,e[Ke]=s.current,$n(e.nodeType===8?e.parentNode:e),Tt(function(){dl(t,s,n,r)}),s}function hl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var u=o;if(typeof l=="function"){var i=l;l=function(){var s=br(u);i.call(s)}}dl(t,u,e,l)}else u=Td(n,t,e,l,r);return br(u)}Ls=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=kn(t.pendingLanes);n!==0&&(qo(t,n|1),me(t,Q()),!(O&6)&&(rn=Q()+500,ht()))}break;case 13:Tt(function(){var r=Xe(e,1);if(r!==null){var l=ie();je(r,e,1,l)}}),Ru(e,1)}};bo=function(e){if(e.tag===13){var t=Xe(e,134217728);if(t!==null){var n=ie();je(t,e,134217728,n)}Ru(e,134217728)}};Rs=function(e){if(e.tag===13){var t=at(e),n=Xe(e,t);if(n!==null){var r=ie();je(n,e,t,r)}Ru(e,t)}};Os=function(){return j};js=function(e,t){var n=j;try{return j=e,t()}finally{j=n}};uo=function(e,t,n){switch(t){case"input":if(bl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=ol(r);if(!l)throw Error(y(90));cs(r),bl(r,l)}}}break;case"textarea":ds(e,n);break;case"select":t=n.value,t!=null&&Qt(e,!!n.multiple,t,!1)}};ws=Nu;ks=Tt;var Ld={usingClientEntryPoint:!1,Events:[Jn,Ut,ol,ys,gs,Nu]},yn={findFiberByHostInstance:kt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Rd={bundleType:yn.bundleType,version:yn.version,rendererPackageName:yn.rendererPackageName,rendererConfig:yn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ge.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Es(e),e===null?null:e.stateNode},findFiberByHostInstance:yn.findFiberByHostInstance||zd,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 yr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yr.isDisabled&&yr.supportsFiber)try{tl=yr.inject(Rd),Ue=yr}catch{}}we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ld;we.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ju(t))throw Error(y(200));return Pd(e,t,null,n)};we.createRoot=function(e,t){if(!ju(e))throw Error(y(299));var n=!1,r="",l=nc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Lu(e,1,!1,null,null,n,!1,r,l),e[Ke]=t.current,$n(e.nodeType===8?e.parentNode:e),new Ou(t)};we.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(y(188)):(e=Object.keys(e).join(","),Error(y(268,e)));return e=Es(t),e=e===null?null:e.stateNode,e};we.flushSync=function(e){return Tt(e)};we.hydrate=function(e,t,n){if(!ml(t))throw Error(y(200));return hl(null,e,t,!0,n)};we.hydrateRoot=function(e,t,n){if(!ju(e))throw Error(y(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",u=nc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=tc(t,null,e,1,n??null,l,!1,o,u),e[Ke]=t.current,$n(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new pl(t)};we.render=function(e,t,n){if(!ml(t))throw Error(y(200));return hl(null,e,t,!1,n)};we.unmountComponentAtNode=function(e){if(!ml(e))throw Error(y(40));return e._reactRootContainer?(Tt(function(){hl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ke]=null})}),!0):!1};we.unstable_batchedUpdates=Nu;we.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ml(n))throw Error(y(200));if(e==null||e._reactInternals===void 0)throw Error(y(38));return hl(e,t,n,!1,r)};we.version="18.2.0-next-9e3b772b8-20220608";function rc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rc)}catch(e){console.error(e)}}rc(),ts.exports=we;var Od=ts.exports,Hi=Od;Kl.createRoot=Hi.createRoot,Kl.hydrateRoot=Hi.hydrateRoot;const Wi=["bg-purple-300","bg-green-300","bg-yellow-300","bg-red-300","bg-blue-300"];function jd({text:e,position:t,margin:n}){const r=e.split(`
|
41 |
+
`).map((l,o,u)=>R.jsxs(Z.Fragment,{children:[l,o!==u.length-1&&R.jsx("br",{})]},o));return R.jsx("span",{style:{marginLeft:n},className:`leading-5 ${r.length===1?"inline-block ":""}${Wi[t%Wi.length]}`,children:r})}const Ql=Object.freeze({"Xenova/gpt-4":"gpt-4 / gpt-3.5-turbo / text-embedding-ada-002","Xenova/text-davinci-003":"text-davinci-003 / text-davinci-002","Xenova/gpt-3":"gpt-3","Xenova/grok-1-tokenizer":"Grok-1","Xenova/claude-tokenizer":"Claude","Xenova/mistral-tokenizer-v3":"Mistral v3","Xenova/mistral-tokenizer-v1":"Mistral v1","Xenova/gemma-tokenizer":"Gemma","Xenova/llama-tokenizer":"LLaMA / Llama 2","Xenova/c4ai-command-r-v01-tokenizer":"Cohere Command-R","Xenova/t5-small":"T5","Xenova/bert-base-cased":"bert-base-cased","":"Custom"});function Md(){var E,N;const e=new URLSearchParams(window.location.search),t=e.get("tokenizer"),n=e.get("text"),[r,l]=Z.useState([]),[o,u]=Z.useState([]),[i,s]=Z.useState([]),[f,h]=Z.useState("text"),[m,p]=Z.useState(t??"Xenova/gpt-4"),[g,w]=Z.useState(""),S=Z.useRef(null),M=Z.useRef(null),c=Z.useRef(null);Z.useEffect(()=>{c.current||(c.current=new Worker(new URL("/assets/worker-df994a3c.js",self.location),{type:"module"}));const k=x=>{l(x.data.token_ids),u(x.data.decoded),s(x.data.margins)};return c.current.addEventListener("message",k),()=>c.current.removeEventListener("message",k)},[]);const a=Z.useCallback(()=>{h("text"),l([]),u([]),s([])},[]),d=Z.useCallback(k=>{const x=m,U=k.target.value;U.length>1e4&&(h(null),console.log("User most likely pasted in a large body of text (> 10k chars), so we hide the output (until specifically requested by the user).")),c.current.postMessage({model_id:x,text:U})},[m]);Z.useEffect(()=>{n&&d({target:{value:n}})},[d,n]);const v=Z.useCallback(k=>{const x=k.target.value;p(x),x&&c.current.postMessage({model_id:x,text:S.current.value})},[]);return R.jsxs("div",{className:"w-full max-w-[720px] flex flex-col gap-4 items-center",children:[R.jsxs("div",{children:[R.jsx("h1",{className:"text-5xl font-bold mb-2",children:"Thai Tokenizer Playground"}),R.jsxs("h2",{className:"text-lg font-normal",children:["Experiment with different tokenizers (running ",R.jsx("a",{className:"text-gray-900 underline",href:"https://github.com/xenova/transformers.js",children:"locally"})," in your browser)."]})]}),R.jsxs("div",{children:[R.jsx("select",{value:m in Ql&&!g?m:"",onChange:k=>{a(),w(""),v(k)},className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2",children:Object.entries(Ql).map(([k,x])=>R.jsx("option",{value:k,children:x},k))}),(!(m in Ql)||g||m==="")&&R.jsx("input",{type:"text",placeholder:"Custom tokenizer",defaultValue:g||m,onChange:k=>{w(k.target.value),v(k)},className:"bg-white border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full py-1 px-2 mt-1"})]}),R.jsx("textarea",{ref:S,onChange:d,rows:"8",className:"font-mono text-lg block w-full p-2.5 text-gray-900 bg-gray-50 rounded-lg border border-gray-200",placeholder:"Enter some text",defaultValue:n??((E=S.current)==null?void 0:E.value)??""}),R.jsxs("div",{className:"flex justify-center gap-5",children:[R.jsxs("div",{className:"flex flex-col",children:[R.jsx("h2",{className:"font-semibold uppercase leading-4",children:"Tokens"}),R.jsx("h3",{className:"font-semibold text-3xl",children:r.length.toLocaleString()})]}),R.jsxs("div",{className:"flex flex-col",children:[R.jsx("h2",{className:"font-semibold uppercase leading-4",children:"Characters"}),R.jsx("h3",{className:"font-semibold text-3xl",children:(((N=S.current)==null?void 0:N.value.length)??0).toLocaleString()})]})]}),R.jsx("div",{ref:M,className:"font-mono text-lg p-2.5 w-full bg-gray-100 rounded-lg border border-gray-200 whitespace-pre-wrap text-left h-[200px] overflow-y-auto",children:f==="text"?o.map((k,x)=>R.jsx(jd,{text:k,position:x,margin:i[x]},x)):f==="token_ids"?`[${r.join(", ")}]`:null}),R.jsxs("div",{className:"flex items-center gap-2 self-end",children:[R.jsxs("div",{className:"flex items-center",children:[R.jsx("input",{checked:f==="text",onChange:()=>h("text"),id:"output-radio-1",type:"radio",value:"",name:"output-radio",className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500"}),R.jsx("label",{htmlFor:"output-radio-1",className:"ml-1 text-sm font-medium text-gray-900 dark:text-gray-300",children:"Text"})]}),R.jsxs("div",{className:"flex items-center",children:[R.jsx("input",{checked:f==="token_ids",onChange:()=>h("token_ids"),id:"output-radio-2",type:"radio",value:"",name:"output-radio",className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500"}),R.jsx("label",{htmlFor:"output-radio-2",className:"ml-1 text-sm font-medium text-gray-900 dark:text-gray-300",children:"Token IDs"})]}),R.jsxs("div",{className:"flex items-center",children:[R.jsx("input",{checked:f===null,onChange:()=>h(null),id:"output-radio-3",type:"radio",value:"",name:"output-radio",className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500"}),R.jsx("label",{htmlFor:"output-radio-3",className:"ml-1 text-sm font-medium text-gray-900 dark:text-gray-300",children:"Hide"})]})]})]})}Kl.createRoot(document.getElementById("root")).render(R.jsx(Sc.StrictMode,{children:R.jsx(Md,{})}));
|