vskill 0.2.64 → 0.2.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var am;function vy(){if(am)return te;am=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),x=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),H=Symbol.iterator;function
|
|
17
|
+
*/var am;function vy(){if(am)return te;am=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),x=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),H=Symbol.iterator;function X(b){return b===null||typeof b!="object"?null:(b=H&&b[H]||b["@@iterator"],typeof b=="function"?b:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,G={};function O(b,L,K){this.props=b,this.context=L,this.refs=G,this.updater=K||k}O.prototype.isReactComponent={},O.prototype.setState=function(b,L){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,L,"setState")},O.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function q(){}q.prototype=O.prototype;function Y(b,L,K){this.props=b,this.context=L,this.refs=G,this.updater=K||k}var M=Y.prototype=new q;M.constructor=Y,Q(M,O.prototype),M.isPureReactComponent=!0;var w=Array.isArray;function Z(){}var J={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function Ne(b,L,K){var W=K.ref;return{$$typeof:i,type:b,key:L,ref:W!==void 0?W:null,props:K}}function Dt(b,L){return Ne(b.type,L,b.props)}function vt(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function Ke(b){var L={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(K){return L[K]})}var Ut=/\/+/g;function yt(b,L){return typeof b=="object"&&b!==null&&b.key!=null?Ke(""+b.key):L.toString(36)}function Ue(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(Z,Z):(b.status="pending",b.then(function(L){b.status==="pending"&&(b.status="fulfilled",b.value=L)},function(L){b.status==="pending"&&(b.status="rejected",b.reason=L)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function D(b,L,K,W,le){var ue=typeof b;(ue==="undefined"||ue==="boolean")&&(b=null);var ve=!1;if(b===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(b.$$typeof){case i:case f:ve=!0;break;case _:return ve=b._init,D(ve(b._payload),L,K,W,le)}}if(ve)return le=le(b),ve=W===""?"."+yt(b,0):W,w(le)?(K="",ve!=null&&(K=ve.replace(Ut,"$&/")+"/"),D(le,L,K,"",function(qa){return qa})):le!=null&&(vt(le)&&(le=Dt(le,K+(le.key==null||b&&b.key===le.key?"":(""+le.key).replace(Ut,"$&/")+"/")+ve)),L.push(le)),1;ve=0;var $e=W===""?".":W+":";if(w(b))for(var Oe=0;Oe<b.length;Oe++)W=b[Oe],ue=$e+yt(W,Oe),ve+=D(W,L,K,ue,le);else if(Oe=X(b),typeof Oe=="function")for(b=Oe.call(b),Oe=0;!(W=b.next()).done;)W=W.value,ue=$e+yt(W,Oe++),ve+=D(W,L,K,ue,le);else if(ue==="object"){if(typeof b.then=="function")return D(Ue(b),L,K,W,le);throw L=String(b),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ve}function V(b,L,K){if(b==null)return b;var W=[],le=0;return D(b,W,"","",function(ue){return L.call(K,ue,le++)}),W}function ee(b){if(b._status===-1){var L=b._result;L=L(),L.then(function(K){(b._status===0||b._status===-1)&&(b._status=1,b._result=K)},function(K){(b._status===0||b._status===-1)&&(b._status=2,b._result=K)}),b._status===-1&&(b._status=0,b._result=L)}if(b._status===1)return b._result.default;throw b._result}var xe=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},je={map:V,forEach:function(b,L,K){V(b,function(){L.apply(this,arguments)},K)},count:function(b){var L=0;return V(b,function(){L++}),L},toArray:function(b){return V(b,function(L){return L})||[]},only:function(b){if(!vt(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return te.Activity=p,te.Children=je,te.Component=O,te.Fragment=o,te.Profiler=m,te.PureComponent=Y,te.StrictMode=r,te.Suspense=S,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,te.__COMPILER_RUNTIME={__proto__:null,c:function(b){return J.H.useMemoCache(b)}},te.cache=function(b){return function(){return b.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(b,L,K){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var W=Q({},b.props),le=b.key;if(L!=null)for(ue in L.key!==void 0&&(le=""+L.key),L)!se.call(L,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&L.ref===void 0||(W[ue]=L[ue]);var ue=arguments.length-2;if(ue===1)W.children=K;else if(1<ue){for(var ve=Array(ue),$e=0;$e<ue;$e++)ve[$e]=arguments[$e+2];W.children=ve}return Ne(b.type,le,W)},te.createContext=function(b){return b={$$typeof:x,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:v,_context:b},b},te.createElement=function(b,L,K){var W,le={},ue=null;if(L!=null)for(W in L.key!==void 0&&(ue=""+L.key),L)se.call(L,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(le[W]=L[W]);var ve=arguments.length-2;if(ve===1)le.children=K;else if(1<ve){for(var $e=Array(ve),Oe=0;Oe<ve;Oe++)$e[Oe]=arguments[Oe+2];le.children=$e}if(b&&b.defaultProps)for(W in ve=b.defaultProps,ve)le[W]===void 0&&(le[W]=ve[W]);return Ne(b,ue,le)},te.createRef=function(){return{current:null}},te.forwardRef=function(b){return{$$typeof:A,render:b}},te.isValidElement=vt,te.lazy=function(b){return{$$typeof:_,_payload:{_status:-1,_result:b},_init:ee}},te.memo=function(b,L){return{$$typeof:h,type:b,compare:L===void 0?null:L}},te.startTransition=function(b){var L=J.T,K={};J.T=K;try{var W=b(),le=J.S;le!==null&&le(K,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(Z,xe)}catch(ue){xe(ue)}finally{L!==null&&K.types!==null&&(L.types=K.types),J.T=L}},te.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},te.use=function(b){return J.H.use(b)},te.useActionState=function(b,L,K){return J.H.useActionState(b,L,K)},te.useCallback=function(b,L){return J.H.useCallback(b,L)},te.useContext=function(b){return J.H.useContext(b)},te.useDebugValue=function(){},te.useDeferredValue=function(b,L){return J.H.useDeferredValue(b,L)},te.useEffect=function(b,L){return J.H.useEffect(b,L)},te.useEffectEvent=function(b){return J.H.useEffectEvent(b)},te.useId=function(){return J.H.useId()},te.useImperativeHandle=function(b,L,K){return J.H.useImperativeHandle(b,L,K)},te.useInsertionEffect=function(b,L){return J.H.useInsertionEffect(b,L)},te.useLayoutEffect=function(b,L){return J.H.useLayoutEffect(b,L)},te.useMemo=function(b,L){return J.H.useMemo(b,L)},te.useOptimistic=function(b,L){return J.H.useOptimistic(b,L)},te.useReducer=function(b,L,K){return J.H.useReducer(b,L,K)},te.useRef=function(b){return J.H.useRef(b)},te.useState=function(b){return J.H.useState(b)},te.useSyncExternalStore=function(b,L,K){return J.H.useSyncExternalStore(b,L,K)},te.useTransition=function(){return J.H.useTransition()},te.version="19.2.4",te}var nm;function Qs(){return nm||(nm=1,Os.exports=vy()),Os.exports}var E=Qs(),Cs={exports:{}},Un={},Ds={exports:{}},Us={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var um;function yy(){return um||(um=1,(function(i){function f(D,
|
|
25
|
+
*/var um;function yy(){return um||(um=1,(function(i){function f(D,V){var ee=D.length;D.push(V);e:for(;0<ee;){var xe=ee-1>>>1,je=D[xe];if(0<m(je,V))D[xe]=V,D[ee]=je,ee=xe;else break e}}function o(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],ee=D.pop();if(ee!==V){D[0]=ee;e:for(var xe=0,je=D.length,b=je>>>1;xe<b;){var L=2*(xe+1)-1,K=D[L],W=L+1,le=D[W];if(0>m(K,ee))W<je&&0>m(le,K)?(D[xe]=le,D[W]=ee,xe=W):(D[xe]=K,D[L]=ee,xe=L);else if(W<je&&0>m(le,ee))D[xe]=le,D[W]=ee,xe=W;else break e}}return V}function m(D,V){var ee=D.sortIndex-V.sortIndex;return ee!==0?ee:D.id-V.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;i.unstable_now=function(){return v.now()}}else{var x=Date,A=x.now();i.unstable_now=function(){return x.now()-A}}var S=[],h=[],_=1,p=null,H=3,X=!1,k=!1,Q=!1,G=!1,O=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function M(D){for(var V=o(h);V!==null;){if(V.callback===null)r(h);else if(V.startTime<=D)r(h),V.sortIndex=V.expirationTime,f(S,V);else break;V=o(h)}}function w(D){if(Q=!1,M(D),!k)if(o(S)!==null)k=!0,Z||(Z=!0,Ke());else{var V=o(h);V!==null&&Ue(w,V.startTime-D)}}var Z=!1,J=-1,se=5,Ne=-1;function Dt(){return G?!0:!(i.unstable_now()-Ne<se)}function vt(){if(G=!1,Z){var D=i.unstable_now();Ne=D;var V=!0;try{e:{k=!1,Q&&(Q=!1,q(J),J=-1),X=!0;var ee=H;try{t:{for(M(D),p=o(S);p!==null&&!(p.expirationTime>D&&Dt());){var xe=p.callback;if(typeof xe=="function"){p.callback=null,H=p.priorityLevel;var je=xe(p.expirationTime<=D);if(D=i.unstable_now(),typeof je=="function"){p.callback=je,M(D),V=!0;break t}p===o(S)&&r(S),M(D)}else r(S);p=o(S)}if(p!==null)V=!0;else{var b=o(h);b!==null&&Ue(w,b.startTime-D),V=!1}}break e}finally{p=null,H=ee,X=!1}V=void 0}}finally{V?Ke():Z=!1}}}var Ke;if(typeof Y=="function")Ke=function(){Y(vt)};else if(typeof MessageChannel<"u"){var Ut=new MessageChannel,yt=Ut.port2;Ut.port1.onmessage=vt,Ke=function(){yt.postMessage(null)}}else Ke=function(){O(vt,0)};function Ue(D,V){J=O(function(){D(i.unstable_now())},V)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return H},i.unstable_next=function(D){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var ee=H;H=V;try{return D()}finally{H=ee}},i.unstable_requestPaint=function(){G=!0},i.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ee=H;H=D;try{return V()}finally{H=ee}},i.unstable_scheduleCallback=function(D,V,ee){var xe=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?xe+ee:xe):ee=xe,D){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=ee+je,D={id:_++,callback:V,priorityLevel:D,startTime:ee,expirationTime:je,sortIndex:-1},ee>xe?(D.sortIndex=ee,f(h,D),o(S)===null&&D===o(h)&&(Q?(q(J),J=-1):Q=!0,Ue(w,ee-xe))):(D.sortIndex=je,f(S,D),k||X||(k=!0,Z||(Z=!0,Ke()))),D},i.unstable_shouldYield=Dt,i.unstable_wrapCallback=function(D){var V=H;return function(){var ee=H;H=V;try{return D.apply(this,arguments)}finally{H=ee}}}})(Us)),Us}var im;function py(){return im||(im=1,Ds.exports=yy()),Ds.exports}var Hs={exports:{}},Je={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var cm;function xy(){if(cm)return Je;cm=1;var i=Qs();function f(S){var h="https://react.dev/errors/"+S;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)h+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+S+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(f(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(S,h,_){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:p==null?null:""+p,children:S,containerInfo:h,implementation:_}}var x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function A(S,h){if(S==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Je.createPortal=function(S,h){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(f(299));return v(S,h,null,_)},Je.flushSync=function(S){var h=x.T,_=r.p;try{if(x.T=null,r.p=2,S)return S()}finally{x.T=h,r.p=_,r.d.f()}},Je.preconnect=function(S,h){typeof S=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(S,h))},Je.prefetchDNS=function(S){typeof S=="string"&&r.d.D(S)},Je.preinit=function(S,h){if(typeof S=="string"&&h&&typeof h.as=="string"){var _=h.as,p=A(_,h.crossOrigin),H=typeof h.integrity=="string"?h.integrity:void 0,
|
|
33
|
+
*/var cm;function xy(){if(cm)return Je;cm=1;var i=Qs();function f(S){var h="https://react.dev/errors/"+S;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)h+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+S+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(f(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(S,h,_){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:p==null?null:""+p,children:S,containerInfo:h,implementation:_}}var x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function A(S,h){if(S==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Je.createPortal=function(S,h){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(f(299));return v(S,h,null,_)},Je.flushSync=function(S){var h=x.T,_=r.p;try{if(x.T=null,r.p=2,S)return S()}finally{x.T=h,r.p=_,r.d.f()}},Je.preconnect=function(S,h){typeof S=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(S,h))},Je.prefetchDNS=function(S){typeof S=="string"&&r.d.D(S)},Je.preinit=function(S,h){if(typeof S=="string"&&h&&typeof h.as=="string"){var _=h.as,p=A(_,h.crossOrigin),H=typeof h.integrity=="string"?h.integrity:void 0,X=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;_==="style"?r.d.S(S,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:H,fetchPriority:X}):_==="script"&&r.d.X(S,{crossOrigin:p,integrity:H,fetchPriority:X,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Je.preinitModule=function(S,h){if(typeof S=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var _=A(h.as,h.crossOrigin);r.d.M(S,{crossOrigin:_,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(S)},Je.preload=function(S,h){if(typeof S=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var _=h.as,p=A(_,h.crossOrigin);r.d.L(S,_,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Je.preloadModule=function(S,h){if(typeof S=="string")if(h){var _=A(h.as,h.crossOrigin);r.d.m(S,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:_,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(S)},Je.requestFormReset=function(S){r.d.r(S)},Je.unstable_batchedUpdates=function(S,h){return S(h)},Je.useFormState=function(S,h,_){return x.H.useFormState(S,h,_)},Je.useFormStatus=function(){return x.H.useHostTransitionStatus()},Je.version="19.2.4",Je}var sm;function gy(){if(sm)return Hs.exports;sm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Hs.exports=xy(),Hs.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var rm;function by(){if(rm)return Un;rm=1;var i=py(),f=Qs(),o=gy();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function x(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function A(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(v(e)!==e)throw Error(r(188))}function h(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),e;if(u===a)return S(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=u;break}if(d===a){c=!0,a=n,l=u;break}d=d.sibling}if(!c){for(d=u.child;d;){if(d===l){c=!0,l=u,a=n;break}if(d===a){c=!0,a=u,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,H=Symbol.for("react.element"),
|
|
41
|
+
*/var rm;function by(){if(rm)return Un;rm=1;var i=py(),f=Qs(),o=gy();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function x(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function A(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(v(e)!==e)throw Error(r(188))}function h(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),e;if(u===a)return S(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=u;break}if(d===a){c=!0,a=n,l=u;break}d=d.sibling}if(!c){for(d=u.child;d;){if(d===l){c=!0,l=u,a=n;break}if(d===a){c=!0,a=u,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,H=Symbol.for("react.element"),X=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),Dt=Symbol.for("react.memo_cache_sentinel"),vt=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=vt&&e[vt]||e["@@iterator"],typeof e=="function"?e:null)}var Ut=Symbol.for("react.client.reference");function yt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ut?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Q:return"Fragment";case O:return"Profiler";case G:return"StrictMode";case w:return"Suspense";case Z:return"SuspenseList";case Ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case Y:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case M:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:yt(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return yt(e(t))}catch{}}return null}var Ue=Array.isArray,D=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},xe=[],je=-1;function b(e){return{current:e}}function L(e){0>je||(e.current=xe[je],xe[je]=null,je--)}function K(e,t){je++,xe[je]=e.current,e.current=t}var W=b(null),le=b(null),ue=b(null),ve=b(null);function $e(e,t){switch(K(ue,t),K(le,e),K(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nd(t),e=Td(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(W),K(W,e)}function Oe(){L(W),L(le),L(ue)}function qa(e){e.memoizedState!==null&&K(ve,e);var t=W.current,l=Td(t,e.type);t!==l&&(K(le,e),K(W,l))}function Yn(e){le.current===e&&(L(W),L(le)),ve.current===e&&(L(ve),Mn._currentValue=ee)}var di,Is;function Dl(e){if(di===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);di=t&&t[1]||"",Is=-1<l.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
43
|
`+di+e+Is}var mi=!1;function hi(e,t){if(!e||mi)return"";mi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(R){var z=R}Reflect.construct(e,[],B)}else{try{B.call()}catch(R){z=R}e.call(B.prototype)}}else{try{throw Error()}catch(R){z=R}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(R){if(R&&z&&typeof R.stack=="string")return[R.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],d=u[1];if(c&&d){var y=c.split(`
|
|
44
44
|
`),T=d.split(`
|
|
45
45
|
`);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===T.length)for(a=y.length-1,n=T.length-1;1<=a&&0<=n&&y[a]!==T[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==T[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==T[n]){var C=`
|
|
46
46
|
`+y[a].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=a&&0<=n);break}}}finally{mi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Dl(l):""}function Qm(e,t){switch(e.tag){case 26:case 27:case 5:return Dl(e.type);case 16:return Dl("Lazy");case 13:return e.child!==t&&t!==null?Dl("Suspense Fallback"):Dl("Suspense");case 19:return Dl("SuspenseList");case 0:case 15:return hi(e.type,!1);case 11:return hi(e.type.render,!1);case 1:return hi(e.type,!0);case 31:return Dl("Activity");default:return""}}function Ps(e){try{var t="",l=null;do t+=Qm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
47
|
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var vi=Object.prototype.hasOwnProperty,yi=i.unstable_scheduleCallback,pi=i.unstable_cancelCallback,Zm=i.unstable_shouldYield,Vm=i.unstable_requestPaint,nt=i.unstable_now,Km=i.unstable_getCurrentPriorityLevel,er=i.unstable_ImmediatePriority,tr=i.unstable_UserBlockingPriority,kn=i.unstable_NormalPriority,Jm=i.unstable_LowPriority,lr=i.unstable_IdlePriority,$m=i.log,Wm=i.unstable_setDisableYieldValue,Ya=null,ut=null;function sl(e){if(typeof $m=="function"&&Wm(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(Ya,e)}catch{}}var it=Math.clz32?Math.clz32:Pm,Fm=Math.log,Im=Math.LN2;function Pm(e){return e>>>=0,e===0?32:31-(Fm(e)/Im|0)|0}var Gn=256,Xn=262144,Qn=4194304;function Ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Zn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Ul(a):(c&=d,c!==0?n=Ul(c):l||(l=d&~e,l!==0&&(n=Ul(l))))):(d=a&~u,d!==0?n=Ul(d):c!==0?n=Ul(c):l||(l=a&~e,l!==0&&(n=Ul(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function eh(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ar(){var e=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),e}function xi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ga(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function th(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,T=e.hiddenUpdates;for(l=c&~l;0<l;){var C=31-it(l),B=1<<C;d[C]=0,y[C]=-1;var z=T[C];if(z!==null)for(T[C]=null,C=0;C<z.length;C++){var R=z[C];R!==null&&(R.lane&=-536870913)}l&=~B}a!==0&&nr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function nr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-it(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function ur(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-it(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function ir(e,t){var l=t&-t;return l=(l&42)!==0?1:gi(l),(l&(e.suspendedLanes|t))!==0?0:l}function gi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function bi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cr(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Jd(e.type))}function sr(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var rl=Math.random().toString(36).slice(2),Ge="__reactFiber$"+rl,Fe="__reactProps$"+rl,ea="__reactContainer$"+rl,Si="__reactEvents$"+rl,lh="__reactListeners$"+rl,ah="__reactHandles$"+rl,rr="__reactResources$"+rl,Xa="__reactMarker$"+rl;function ji(e){delete e[Ge],delete e[Fe],delete e[Si],delete e[lh],delete e[ah]}function ta(e){var t=e[Ge];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ea]||l[Ge]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Cd(e);e!==null;){if(l=e[Ge])return l;e=Cd(e)}return t}e=l,l=e.parentNode}return null}function la(e){if(e=e[Ge]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function aa(e){var t=e[rr];return t||(t=e[rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[Xa]=!0}var fr=new Set,or={};function Hl(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(or[e]=t,e=0;e<t.length;e++)fr.add(t[e])}var nh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dr={},mr={};function uh(e){return vi.call(mr,e)?!0:vi.call(dr,e)?!1:nh.test(e)?mr[e]=!0:(dr[e]=!0,!1)}function Vn(e,t,l){if(uh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Kn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function kt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){if(!e._valueTracker){var t=hr(e)?"checked":"value";e._valueTracker=ih(e,t,""+e[t])}}function vr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=hr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Jn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ch=/[\n"\\]/g;function xt(e){return e.replace(ch,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ni(e,t,l,a,n,u,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ti(e,c,pt(t)):l!=null?Ti(e,c,pt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+pt(d):e.removeAttribute("name")}function yr(e,t,l,a,n,u,c,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ei(e);return}l=l!=null?""+pt(l):"",t=t!=null?""+pt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ei(e)}function Ti(e,t,l){t==="number"&&Jn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ua(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+pt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function pr(e,t,l){if(t!=null&&(t=""+pt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+pt(l):""}function xr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Ue(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=pt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ei(e)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var sh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function gr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||sh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function br(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&gr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&gr(e,u,t[u])}function zi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $n(e){return fh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gt(){}var Ai=null;function _i(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,sa=null;function Sr(e){var t=la(e);if(t&&(e=t.stateNode)){var l=e[Fe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ni(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Fe]||null;if(!n)throw Error(r(90));Ni(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&vr(a)}break e;case"textarea":pr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ua(e,!!l.multiple,t,!1)}}}var Mi=!1;function jr(e,t,l){if(Mi)return e(t,l);Mi=!0;try{var a=e(t);return a}finally{if(Mi=!1,(ca!==null||sa!==null)&&(Bu(),ca&&(t=ca,e=sa,sa=ca=null,Sr(t),e)))for(t=0;t<e.length;t++)Sr(e[t])}}function Za(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Fe]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=!1;if(Xt)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Ri=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Ri=!1}var fl=null,Oi=null,Wn=null;function Er(){if(Wn)return Wn;var e,t=Oi,l=t.length,a,n="value"in fl?fl.value:fl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return Wn=n.slice(e,1<a?1-a:void 0)}function Fn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function In(){return!0}function Nr(){return!1}function Ie(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?In:Nr,this.isPropagationStopped=Nr,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=In)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=In)},persist:function(){},isPersistent:In}),t}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Ie(Bl),Ka=p({},Bl,{view:0,detail:0}),oh=Ie(Ka),Ci,Di,Ja,eu=p({},Ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ja&&(Ja&&e.type==="mousemove"?(Ci=e.screenX-Ja.screenX,Di=e.screenY-Ja.screenY):Di=Ci=0,Ja=e),Ci)},movementY:function(e){return"movementY"in e?e.movementY:Di}}),Tr=Ie(eu),dh=p({},eu,{dataTransfer:0}),mh=Ie(dh),hh=p({},Ka,{relatedTarget:0}),Ui=Ie(hh),vh=p({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),yh=Ie(vh),ph=p({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xh=Ie(ph),gh=p({},Bl,{data:0}),zr=Ie(gh),bh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Eh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jh[e])?!!t[e]:!1}function Hi(){return Eh}var Nh=p({},Ka,{key:function(e){if(e.key){var t=bh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hi,charCode:function(e){return e.type==="keypress"?Fn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Th=Ie(Nh),zh=p({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ar=Ie(zh),Ah=p({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hi}),_h=Ie(Ah),Mh=p({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rh=Ie(Mh),Oh=p({},eu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ch=Ie(Oh),Dh=p({},Bl,{newState:0,oldState:0}),Uh=Ie(Dh),Hh=[9,13,27,32],Bi=Xt&&"CompositionEvent"in window,$a=null;Xt&&"documentMode"in document&&($a=document.documentMode);var Bh=Xt&&"TextEvent"in window&&!$a,_r=Xt&&(!Bi||$a&&8<$a&&11>=$a),Mr=" ",Rr=!1;function Or(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function wh(e,t){switch(e){case"compositionend":return Cr(t);case"keypress":return t.which!==32?null:(Rr=!0,Mr);case"textInput":return e=t.data,e===Mr&&Rr?null:e;default:return null}}function Lh(e,t){if(ra)return e==="compositionend"||!Bi&&Or(e,t)?(e=Er(),Wn=Oi=fl=null,ra=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _r&&t.locale!=="ko"?null:t.data;default:return null}}var qh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qh[e.type]:t==="textarea"}function Ur(e,t,l,a){ca?sa?sa.push(a):sa=[a]:ca=a,t=Xu(t,"onChange"),0<t.length&&(l=new Pn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Wa=null,Fa=null;function Yh(e){xd(e,0)}function tu(e){var t=Qa(e);if(vr(t))return e}function Hr(e,t){if(e==="change")return t}var Br=!1;if(Xt){var wi;if(Xt){var Li="oninput"in document;if(!Li){var wr=document.createElement("div");wr.setAttribute("oninput","return;"),Li=typeof wr.oninput=="function"}wi=Li}else wi=!1;Br=wi&&(!document.documentMode||9<document.documentMode)}function Lr(){Wa&&(Wa.detachEvent("onpropertychange",qr),Fa=Wa=null)}function qr(e){if(e.propertyName==="value"&&tu(Fa)){var t=[];Ur(t,Fa,e,_i(e)),jr(Yh,t)}}function kh(e,t,l){e==="focusin"?(Lr(),Wa=t,Fa=l,Wa.attachEvent("onpropertychange",qr)):e==="focusout"&&Lr()}function Gh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(Fa)}function Xh(e,t){if(e==="click")return tu(t)}function Qh(e,t){if(e==="input"||e==="change")return tu(t)}function Zh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:Zh;function Ia(e,t){if(ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!vi.call(t,n)||!ct(e[n],t[n]))return!1}return!0}function Yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kr(e,t){var l=Yr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Yr(l)}}function Gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Jn(e.document)}return t}function qi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Vh=Xt&&"documentMode"in document&&11>=document.documentMode,fa=null,Yi=null,Pa=null,ki=!1;function Qr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ki||fa==null||fa!==Jn(a)||(a=fa,"selectionStart"in a&&qi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pa&&Ia(Pa,a)||(Pa=a,a=Xu(Yi,"onSelect"),0<a.length&&(t=new Pn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=fa)))}function wl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var oa={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},Gi={},Zr={};Xt&&(Zr=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Ll(e){if(Gi[e])return Gi[e];if(!oa[e])return e;var t=oa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Zr)return Gi[e]=t[l];return e}var Vr=Ll("animationend"),Kr=Ll("animationiteration"),Jr=Ll("animationstart"),Kh=Ll("transitionrun"),Jh=Ll("transitionstart"),$h=Ll("transitioncancel"),$r=Ll("transitionend"),Wr=new Map,Xi="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Xi.push("scrollEnd");function _t(e,t){Wr.set(e,t),Hl(t,[e])}var lu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},gt=[],da=0,Qi=0;function au(){for(var e=da,t=Qi=da=0;t<e;){var l=gt[t];gt[t++]=null;var a=gt[t];gt[t++]=null;var n=gt[t];gt[t++]=null;var u=gt[t];if(gt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&Fr(l,n,u)}}function nu(e,t,l,a){gt[da++]=e,gt[da++]=t,gt[da++]=l,gt[da++]=a,Qi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Zi(e,t,l,a){return nu(e,t,l,a),uu(e)}function ql(e,t){return nu(e,null,null,t),uu(e)}function Fr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-it(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function uu(e){if(50<jn)throw jn=0,es=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function Wh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,l,a){return new Wh(e,t,l,a)}function Vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qt(e,t){var l=e.alternate;return l===null?(l=st(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ir(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")Vi(e)&&(c=1);else if(typeof e=="string")c=ty(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ne:return e=st(31,l,t,n),e.elementType=Ne,e.lanes=u,e;case q:return Yl(l.children,n,u,t);case O:c=8,n|=24;break;case M:return e=st(12,l,t,n|2),e.elementType=M,e.lanes=u,e;case Y:return e=st(13,l,t,n),e.elementType=Y,e.lanes=u,e;case $:return e=st(19,l,t,n),e.elementType=$,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:c=10;break e;case L:c=9;break e;case X:c=11;break e;case K:c=14;break e;case oe:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=st(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Yl(e,t,l,a){return e=st(7,e,a,t),e.lanes=l,e}function Ki(e,t,l){return e=st(6,e,null,t),e.lanes=l,e}function Pr(e){var t=st(18,null,null,0);return t.stateNode=e,t}function Ji(e,t,l){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ef=new WeakMap;function bt(e,t){if(typeof e=="object"&&e!==null){var l=ef.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ps(t)},ef.set(e,t),t)}return{value:e,source:t,stack:Ps(t)}}var ha=[],va=0,cu=null,en=0,St=[],jt=0,ol=null,Ht=1,Bt="";function Zt(e,t){ha[va++]=en,ha[va++]=cu,cu=e,en=t}function tf(e,t,l){St[jt++]=Ht,St[jt++]=Bt,St[jt++]=ol,ol=e;var a=Ht;e=Bt;var n=32-it(a)-1;a&=~(1<<n),l+=1;var u=32-it(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Ht=1<<32-it(t)+n|l<<n|a,Bt=u+e}else Ht=1<<u|l<<n|a,Bt=e}function $i(e){e.return!==null&&(Zt(e,1),tf(e,1,0))}function Wi(e){for(;e===cu;)cu=ha[--va],ha[va]=null,en=ha[--va],ha[va]=null;for(;e===ol;)ol=St[--jt],St[jt]=null,Bt=St[--jt],St[jt]=null,Ht=St[--jt],St[jt]=null}function lf(e,t){St[jt++]=Ht,St[jt++]=Bt,St[jt++]=ol,Ht=t.id,Bt=t.overflow,ol=e}var Xe=null,Te=null,fe=!1,dl=null,Et=!1,Fi=Error(r(519));function ml(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tn(bt(t,e)),Fi}function af(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ge]=e,t[Fe]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)ce(Nn[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),yr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),xr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||jd(t.textContent,l)?(a.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||ml(e,!0)}function nf(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:Et=!1;return;case 27:case 3:Et=!0;return;default:Xe=Xe.return}}function ya(e){if(e!==Xe)return!1;if(!fe)return nf(e),fe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||vs(e.type,e.memoizedProps)),l=!l),l&&Te&&ml(e),nf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Te=Od(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Te=Od(e)}else t===27?(t=Te,Al(e.type)?(e=bs,bs=null,Te=e):Te=t):Te=Xe?Tt(e.stateNode.nextSibling):null;return!0}function kl(){Te=Xe=null,fe=!1}function Ii(){var e=dl;return e!==null&&(lt===null?lt=e:lt.push.apply(lt,e),dl=null),e}function tn(e){dl===null?dl=[e]:dl.push(e)}var Pi=b(null),Gl=null,Vt=null;function hl(e,t,l){V(Pi,t._currentValue),t._currentValue=l}function Kt(e){e._currentValue=Pi.current,w(Pi)}function ec(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function tc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var y=0;y<t.length;y++)if(d.context===t[y]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),ec(u.return,l,e),a||(c=null);break e}u=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),ec(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function pa(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;ct(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===ve.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Mn):e=[Mn])}n=n.return}e!==null&&tc(t,e,l,a),t.flags|=262144}function su(e){for(e=e.firstContext;e!==null;){if(!ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){Gl=e,Vt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qe(e){return uf(Gl,e)}function ru(e,t){return Gl===null&&Xl(e),uf(e,t)}function uf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Vt===null){if(e===null)throw Error(r(308));Vt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vt=Vt.next=t;return l}var Fh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ih=i.unstable_scheduleCallback,Ph=i.unstable_NormalPriority,He={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new Fh,data:new Map,refCount:0}}function ln(e){e.refCount--,e.refCount===0&&Ih(Ph,function(){e.controller.abort()})}var an=null,ac=0,xa=0,ga=null;function ev(e,t){if(an===null){var l=an=[];ac=0,xa=is(),ga={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ac++,t.then(cf,cf),t}function cf(){if(--ac===0&&an!==null){ga!==null&&(ga.status="fulfilled");var e=an;an=null,xa=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tv(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var sf=D.S;D.S=function(e,t){Vo=nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ev(e,t),sf!==null&&sf(e,t)};var Ql=b(null);function nc(){var e=Ql.current;return e!==null?e:Ee.pooledCache}function fu(e,t){t===null?V(Ql,Ql.current):V(Ql,t.pool)}function rf(){var e=nc();return e===null?null:{parent:He._currentValue,pool:e}}var ba=Error(r(460)),uc=Error(r(474)),ou=Error(r(542)),du={then:function(){}};function ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function of(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Gt,Gt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e;default:if(typeof t.status=="string")t.then(Gt,Gt);else{if(e=Ee,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e}throw Vl=t,ba}}function Zl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Vl=l,ba):l}}var Vl=null;function df(){if(Vl===null)throw Error(r(459));var e=Vl;return Vl=null,e}function mf(e){if(e===ba||e===ou)throw Error(r(483))}var Sa=null,nn=0;function mu(e){var t=nn;return nn+=1,Sa===null&&(Sa=[]),of(Sa,e,t)}function un(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===H?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function hf(e){function t(j,g){if(e){var N=j.deletions;N===null?(j.deletions=[g],j.flags|=16):N.push(g)}}function l(j,g){if(!e)return null;for(;g!==null;)t(j,g),g=g.sibling;return null}function a(j){for(var g=new Map;j!==null;)j.key!==null?g.set(j.key,j):g.set(j.index,j),j=j.sibling;return g}function n(j,g){return j=Qt(j,g),j.index=0,j.sibling=null,j}function u(j,g,N){return j.index=N,e?(N=j.alternate,N!==null?(N=N.index,N<g?(j.flags|=67108866,g):N):(j.flags|=67108866,g)):(j.flags|=1048576,g)}function c(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function d(j,g,N,U){return g===null||g.tag!==6?(g=Ki(N,j.mode,U),g.return=j,g):(g=n(g,N),g.return=j,g)}function y(j,g,N,U){var I=N.type;return I===q?C(j,g,N.props.children,U,N.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===oe&&Zl(I)===g.type)?(g=n(g,N.props),un(g,N),g.return=j,g):(g=iu(N.type,N.key,N.props,null,j.mode,U),un(g,N),g.return=j,g)}function T(j,g,N,U){return g===null||g.tag!==4||g.stateNode.containerInfo!==N.containerInfo||g.stateNode.implementation!==N.implementation?(g=Ji(N,j.mode,U),g.return=j,g):(g=n(g,N.children||[]),g.return=j,g)}function C(j,g,N,U,I){return g===null||g.tag!==7?(g=Yl(N,j.mode,U,I),g.return=j,g):(g=n(g,N),g.return=j,g)}function B(j,g,N){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ki(""+g,j.mode,N),g.return=j,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case G:return N=iu(g.type,g.key,g.props,null,j.mode,N),un(N,g),N.return=j,N;case k:return g=Ji(g,j.mode,N),g.return=j,g;case oe:return g=Zl(g),B(j,g,N)}if(Ue(g)||Ke(g))return g=Yl(g,j.mode,N,null),g.return=j,g;if(typeof g.then=="function")return B(j,mu(g),N);if(g.$$typeof===Q)return B(j,ru(j,g),N);hu(j,g)}return null}function z(j,g,N,U){var I=g!==null?g.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return I!==null?null:d(j,g,""+N,U);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case G:return N.key===I?y(j,g,N,U):null;case k:return N.key===I?T(j,g,N,U):null;case oe:return N=Zl(N),z(j,g,N,U)}if(Ue(N)||Ke(N))return I!==null?null:C(j,g,N,U,null);if(typeof N.then=="function")return z(j,g,mu(N),U);if(N.$$typeof===Q)return z(j,g,ru(j,N),U);hu(j,N)}return null}function R(j,g,N,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return j=j.get(N)||null,d(g,j,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case G:return j=j.get(U.key===null?N:U.key)||null,y(g,j,U,I);case k:return j=j.get(U.key===null?N:U.key)||null,T(g,j,U,I);case oe:return U=Zl(U),R(j,g,N,U,I)}if(Ue(U)||Ke(U))return j=j.get(N)||null,C(g,j,U,I,null);if(typeof U.then=="function")return R(j,g,N,mu(U),I);if(U.$$typeof===Q)return R(j,g,N,ru(g,U),I);hu(g,U)}return null}function J(j,g,N,U){for(var I=null,de=null,F=g,ne=g=0,re=null;F!==null&&ne<N.length;ne++){F.index>ne?(re=F,F=null):re=F.sibling;var me=z(j,F,N[ne],U);if(me===null){F===null&&(F=re);break}e&&F&&me.alternate===null&&t(j,F),g=u(me,g,ne),de===null?I=me:de.sibling=me,de=me,F=re}if(ne===N.length)return l(j,F),fe&&Zt(j,ne),I;if(F===null){for(;ne<N.length;ne++)F=B(j,N[ne],U),F!==null&&(g=u(F,g,ne),de===null?I=F:de.sibling=F,de=F);return fe&&Zt(j,ne),I}for(F=a(F);ne<N.length;ne++)re=R(F,j,ne,N[ne],U),re!==null&&(e&&re.alternate!==null&&F.delete(re.key===null?ne:re.key),g=u(re,g,ne),de===null?I=re:de.sibling=re,de=re);return e&&F.forEach(function(Cl){return t(j,Cl)}),fe&&Zt(j,ne),I}function P(j,g,N,U){if(N==null)throw Error(r(151));for(var I=null,de=null,F=g,ne=g=0,re=null,me=N.next();F!==null&&!me.done;ne++,me=N.next()){F.index>ne?(re=F,F=null):re=F.sibling;var Cl=z(j,F,me.value,U);if(Cl===null){F===null&&(F=re);break}e&&F&&Cl.alternate===null&&t(j,F),g=u(Cl,g,ne),de===null?I=Cl:de.sibling=Cl,de=Cl,F=re}if(me.done)return l(j,F),fe&&Zt(j,ne),I;if(F===null){for(;!me.done;ne++,me=N.next())me=B(j,me.value,U),me!==null&&(g=u(me,g,ne),de===null?I=me:de.sibling=me,de=me);return fe&&Zt(j,ne),I}for(F=a(F);!me.done;ne++,me=N.next())me=R(F,j,ne,me.value,U),me!==null&&(e&&me.alternate!==null&&F.delete(me.key===null?ne:me.key),g=u(me,g,ne),de===null?I=me:de.sibling=me,de=me);return e&&F.forEach(function(dy){return t(j,dy)}),fe&&Zt(j,ne),I}function Se(j,g,N,U){if(typeof N=="object"&&N!==null&&N.type===q&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case G:e:{for(var I=N.key;g!==null;){if(g.key===I){if(I=N.type,I===q){if(g.tag===7){l(j,g.sibling),U=n(g,N.props.children),U.return=j,j=U;break e}}else if(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===oe&&Zl(I)===g.type){l(j,g.sibling),U=n(g,N.props),un(U,N),U.return=j,j=U;break e}l(j,g);break}else t(j,g);g=g.sibling}N.type===q?(U=Yl(N.props.children,j.mode,U,N.key),U.return=j,j=U):(U=iu(N.type,N.key,N.props,null,j.mode,U),un(U,N),U.return=j,j=U)}return c(j);case k:e:{for(I=N.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===N.containerInfo&&g.stateNode.implementation===N.implementation){l(j,g.sibling),U=n(g,N.children||[]),U.return=j,j=U;break e}else{l(j,g);break}else t(j,g);g=g.sibling}U=Ji(N,j.mode,U),U.return=j,j=U}return c(j);case oe:return N=Zl(N),Se(j,g,N,U)}if(Ue(N))return J(j,g,N,U);if(Ke(N)){if(I=Ke(N),typeof I!="function")throw Error(r(150));return N=I.call(N),P(j,g,N,U)}if(typeof N.then=="function")return Se(j,g,mu(N),U);if(N.$$typeof===Q)return Se(j,g,ru(j,N),U);hu(j,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,g!==null&&g.tag===6?(l(j,g.sibling),U=n(g,N),U.return=j,j=U):(l(j,g),U=Ki(N,j.mode,U),U.return=j,j=U),c(j)):l(j,g)}return function(j,g,N,U){try{nn=0;var I=Se(j,g,N,U);return Sa=null,I}catch(F){if(F===ba||F===ou)throw F;var de=st(29,F,null,j.mode);return de.lanes=U,de.return=j,de}finally{}}}var Kl=hf(!0),vf=hf(!1),vl=!1;function ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(he&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=uu(e),Fr(e,null,l),t}return nu(e,a,t,l),uu(e)}function cn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ur(e,l)}}function sc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var rc=!1;function sn(){if(rc){var e=ga;if(e!==null)throw e}}function rn(e,t,l,a){rc=!1;var n=e.updateQueue;vl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var y=d,T=y.next;y.next=null,c===null?u=T:c.next=T,c=y;var C=e.alternate;C!==null&&(C=C.updateQueue,d=C.lastBaseUpdate,d!==c&&(d===null?C.firstBaseUpdate=T:d.next=T,C.lastBaseUpdate=y))}if(u!==null){var B=n.baseState;c=0,C=T=y=null,d=u;do{var z=d.lane&-536870913,R=z!==d.lane;if(R?(se&z)===z:(a&z)===z){z!==0&&z===xa&&(rc=!0),C!==null&&(C=C.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,P=d;z=t;var Se=l;switch(P.tag){case 1:if(J=P.payload,typeof J=="function"){B=J.call(Se,B,z);break e}B=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=P.payload,z=typeof J=="function"?J.call(Se,B,z):J,z==null)break e;B=p({},B,z);break e;case 2:vl=!0}}z=d.callback,z!==null&&(e.flags|=64,R&&(e.flags|=8192),R=n.callbacks,R===null?n.callbacks=[z]:R.push(z))}else R={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},C===null?(T=C=R,y=B):C=C.next=R,c|=z;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;R=d,d=R.next,R.next=null,n.lastBaseUpdate=R,n.shared.pending=null}}while(!0);C===null&&(y=B),n.baseState=y,n.firstBaseUpdate=T,n.lastBaseUpdate=C,u===null&&(n.shared.lanes=0),jl|=c,e.lanes=c,e.memoizedState=B}}function yf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function pf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)yf(l[e],t)}var ja=b(null),vu=b(0);function xf(e,t){e=ll,V(vu,e),V(ja,t),ll=e|t.baseLanes}function fc(){V(vu,ll),V(ja,ja.current)}function oc(){ll=vu.current,w(ja),w(vu)}var rt=b(null),Nt=null;function xl(e){var t=e.alternate;V(Ce,Ce.current&1),V(rt,e),Nt===null&&(t===null||ja.current!==null||t.memoizedState!==null)&&(Nt=e)}function dc(e){V(Ce,Ce.current),V(rt,e),Nt===null&&(Nt=e)}function gf(e){e.tag===22?(V(Ce,Ce.current),V(rt,e),Nt===null&&(Nt=e)):gl()}function gl(){V(Ce,Ce.current),V(rt,rt.current)}function ft(e){w(rt),Nt===e&&(Nt=null),w(Ce)}var Ce=b(0);function yu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||xs(l)||gs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Jt=0,ae=null,ge=null,Be=null,pu=!1,Ea=!1,Jl=!1,xu=0,fn=0,Na=null,lv=0;function Me(){throw Error(r(321))}function mc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ct(e[l],t[l]))return!1;return!0}function hc(e,t,l,a,n,u){return Jt=u,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?lo:Mc,Jl=!1,u=l(a,n),Jl=!1,Ea&&(u=Sf(t,l,a,n)),bf(e),u}function bf(e){D.H=mn;var t=ge!==null&&ge.next!==null;if(Jt=0,Be=ge=ae=null,pu=!1,fn=0,Na=null,t)throw Error(r(300));e===null||we||(e=e.dependencies,e!==null&&su(e)&&(we=!0))}function Sf(e,t,l,a){ae=e;var n=0;do{if(Ea&&(Na=null),fn=0,Ea=!1,25<=n)throw Error(r(301));if(n+=1,Be=ge=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=ao,u=t(l,a)}while(Ea);return u}function av(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?on(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(ae.flags|=1024),t}function vc(){var e=xu!==0;return xu=0,e}function yc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function pc(e){if(pu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pu=!1}Jt=0,Be=ge=ae=null,Ea=!1,fn=xu=0,Na=null}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ae.memoizedState=Be=e:Be=Be.next=e,Be}function De(){if(ge===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=Be===null?ae.memoizedState:Be.next;if(t!==null)Be=t,ge=e;else{if(e===null)throw ae.alternate===null?Error(r(467)):Error(r(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},Be===null?ae.memoizedState=Be=e:Be=Be.next=e}return Be}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function on(e){var t=fn;return fn+=1,Na===null&&(Na=[]),e=of(Na,e,t),t=ae,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?lo:Mc),e}function bu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return on(e);if(e.$$typeof===Q)return Qe(e)}throw Error(r(438,String(e)))}function xc(e){var t=null,l=ae.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ae.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=gu(),ae.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Dt;return t.index++,l}function $t(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=De();return gc(t,ge,e)}function gc(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=c=null,y=null,T=t,C=!1;do{var B=T.lane&-536870913;if(B!==T.lane?(se&B)===B:(Jt&B)===B){var z=T.revertLane;if(z===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),B===xa&&(C=!0);else if((Jt&z)===z){T=T.next,z===xa&&(C=!0);continue}else B={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(d=y=B,c=u):y=y.next=B,ae.lanes|=z,jl|=z;B=T.action,Jl&&l(u,B),u=T.hasEagerState?T.eagerState:l(u,B)}else z={lane:B,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(d=y=z,c=u):y=y.next=z,ae.lanes|=B,jl|=B;T=T.next}while(T!==null&&T!==t);if(y===null?c=u:y.next=d,!ct(u,e.memoizedState)&&(we=!0,C&&(l=ga,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=y,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function bc(e){var t=De(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);ct(u,t.memoizedState)||(we=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function jf(e,t,l){var a=ae,n=De(),u=fe;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!ct((ge||n).memoizedState,l);if(c&&(n.memoizedState=l,we=!0),n=n.queue,Ec(Tf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,Ta(9,{destroy:void 0},Nf.bind(null,a,n,l,t),null),Ee===null)throw Error(r(349));u||(Jt&127)!==0||Ef(a,t,l)}return l}function Ef(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=gu(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Nf(e,t,l,a){t.value=l,t.getSnapshot=a,zf(t)&&Af(e)}function Tf(e,t,l){return l(function(){zf(t)&&Af(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ct(e,l)}catch{return!0}}function Af(e){var t=ql(e,2);t!==null&&at(t,e,2)}function Sc(e){var t=We();if(typeof e=="function"){var l=e;if(e=l(),Jl){sl(!0);try{l()}finally{sl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:e},t}function _f(e,t,l,a){return e.baseState=l,gc(e,ge,typeof a=="function"?a:$t)}function nv(e,t,l,a,n){if(Nu(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Mf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Mf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=D.T,c={};D.T=c;try{var d=l(n,a),y=D.S;y!==null&&y(c,d),Rf(e,t,d)}catch(T){jc(e,t,T)}finally{u!==null&&c.types!==null&&(u.types=c.types),D.T=u}}else try{u=l(n,a),Rf(e,t,u)}catch(T){jc(e,t,T)}}function Rf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Of(e,t,a)},function(a){return jc(e,t,a)}):Of(e,t,l)}function Of(e,t,l){t.status="fulfilled",t.value=l,Cf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Mf(e,l)))}function jc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Cf(t),t=t.next;while(t!==a)}e.action=null}function Cf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Df(e,t){return t}function Uf(e,t){if(fe){var l=Ee.formState;if(l!==null){e:{var a=ae;if(fe){if(Te){t:{for(var n=Te,u=Et;n.nodeType!==8;){if(!u){n=null;break t}if(n=Tt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Te=Tt(n.nextSibling),a=n.data==="F!";break e}}ml(a)}a=!1}a&&(t=l[0])}}return l=We(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Df,lastRenderedState:t},l.queue=a,l=Pf.bind(null,ae,a),a.dispatch=l,a=Sc(!1),u=_c.bind(null,ae,!1,a.queue),a=We(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=nv.bind(null,ae,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Hf(e){var t=De();return Bf(t,ge,e)}function Bf(e,t,l){if(t=gc(e,t,Df)[0],e=Su($t)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=on(t)}catch(c){throw c===ba?ou:c}else a=t;t=De();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,Ta(9,{destroy:void 0},uv.bind(null,n,l),null)),[a,u,e]}function uv(e,t){e.action=t}function wf(e){var t=De(),l=ge;if(l!==null)return Bf(t,l,e);De(),t=t.memoizedState,l=De();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ta(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=gu(),ae.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Lf(){return De().memoizedState}function ju(e,t,l,a){var n=We();ae.flags|=e,n.memoizedState=Ta(1|t,{destroy:void 0},l,a===void 0?null:a)}function Eu(e,t,l,a){var n=De();a=a===void 0?null:a;var u=n.memoizedState.inst;ge!==null&&a!==null&&mc(a,ge.memoizedState.deps)?n.memoizedState=Ta(t,u,l,a):(ae.flags|=e,n.memoizedState=Ta(1|t,u,l,a))}function qf(e,t){ju(8390656,8,e,t)}function Ec(e,t){Eu(2048,8,e,t)}function iv(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=gu(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Yf(e){var t=De().memoizedState;return iv({ref:t,nextImpl:e}),function(){if((he&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function kf(e,t){return Eu(4,2,e,t)}function Gf(e,t){return Eu(4,4,e,t)}function Xf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qf(e,t,l){l=l!=null?l.concat([e]):null,Eu(4,4,Xf.bind(null,t,e),l)}function Nc(){}function Zf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&mc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Vf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&mc(t,a[1]))return a[0];if(a=e(),Jl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a}function Tc(e,t,l){return l===void 0||(Jt&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Jo(),ae.lanes|=e,jl|=e,l)}function Kf(e,t,l,a){return ct(l,t)?l:ja.current!==null?(e=Tc(e,l,a),ct(e,t)||(we=!0),e):(Jt&42)===0||(Jt&1073741824)!==0&&(se&261930)===0?(we=!0,e.memoizedState=l):(e=Jo(),ae.lanes|=e,jl|=e,t)}function Jf(e,t,l,a,n){var u=Z.p;Z.p=u!==0&&8>u?u:8;var c=D.T,d={};D.T=d,_c(e,!1,t,l);try{var y=n(),T=D.S;if(T!==null&&T(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var C=tv(y,a);dn(e,t,C,mt(e))}else dn(e,t,a,mt(e))}catch(B){dn(e,t,{then:function(){},status:"rejected",reason:B},mt())}finally{Z.p=u,c!==null&&d.types!==null&&(c.types=d.types),D.T=c}}function cv(){}function zc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=$f(e).queue;Jf(e,n,t,ee,l===null?cv:function(){return Wf(e),l(a)})}function $f(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=$f(e);t.next===null&&(t=e.alternate.memoizedState),dn(e,t.next.queue,{},mt())}function Ac(){return Qe(Mn)}function Ff(){return De().memoizedState}function If(){return De().memoizedState}function sv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=mt();e=yl(l);var a=pl(t,e,l);a!==null&&(at(a,t,l),cn(a,t,l)),t={cache:lc()},e.payload=t;return}t=t.return}}function rv(e,t,l){var a=mt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nu(e)?eo(t,l):(l=Zi(e,t,l,a),l!==null&&(at(l,e,a),to(l,t,a)))}function Pf(e,t,l){var a=mt();dn(e,t,l,a)}function dn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Nu(e))eo(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,d=u(c,l);if(n.hasEagerState=!0,n.eagerState=d,ct(d,c))return nu(e,t,n,0),Ee===null&&au(),!1}catch{}finally{}if(l=Zi(e,t,n,a),l!==null)return at(l,e,a),to(l,t,a),!0}return!1}function _c(e,t,l,a){if(a={lane:2,revertLane:is(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nu(e)){if(t)throw Error(r(479))}else t=Zi(e,l,a,2),t!==null&&at(t,e,2)}function Nu(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function eo(e,t){Ea=pu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function to(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ur(e,l)}}var mn={readContext:Qe,use:bu,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useLayoutEffect:Me,useInsertionEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useSyncExternalStore:Me,useId:Me,useHostTransitionStatus:Me,useFormState:Me,useActionState:Me,useOptimistic:Me,useMemoCache:Me,useCacheRefresh:Me};mn.useEffectEvent=Me;var lo={readContext:Qe,use:bu,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:qf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ju(4194308,4,Xf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ju(4194308,4,e,t)},useInsertionEffect:function(e,t){ju(4,2,e,t)},useMemo:function(e,t){var l=We();t=t===void 0?null:t;var a=e();if(Jl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=We();if(l!==void 0){var n=l(t);if(Jl){sl(!0);try{l(t)}finally{sl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=rv.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:function(e){e=Sc(e);var t=e.queue,l=Pf.bind(null,ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Nc,useDeferredValue:function(e,t){var l=We();return Tc(l,e,t)},useTransition:function(){var e=Sc(!1);return e=Jf.bind(null,ae,e.queue,!0,!1),We().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,n=We();if(fe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ee===null)throw Error(r(349));(se&127)!==0||Ef(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,qf(Tf.bind(null,a,u,e),[e]),a.flags|=2048,Ta(9,{destroy:void 0},Nf.bind(null,a,u,l,t),null),l},useId:function(){var e=We(),t=Ee.identifierPrefix;if(fe){var l=Bt,a=Ht;l=(a&~(1<<32-it(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=xu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=lv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ac,useFormState:Uf,useActionState:Uf,useOptimistic:function(e){var t=We();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=_c.bind(null,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:xc,useCacheRefresh:function(){return We().memoizedState=sv.bind(null,ae)},useEffectEvent:function(e){var t=We(),l={impl:e};return t.memoizedState=l,function(){if((he&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Mc={readContext:Qe,use:bu,useCallback:Zf,useContext:Qe,useEffect:Ec,useImperativeHandle:Qf,useInsertionEffect:kf,useLayoutEffect:Gf,useMemo:Vf,useReducer:Su,useRef:Lf,useState:function(){return Su($t)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return Kf(l,ge.memoizedState,e,t)},useTransition:function(){var e=Su($t)[0],t=De().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:jf,useId:Ff,useHostTransitionStatus:Ac,useFormState:Hf,useActionState:Hf,useOptimistic:function(e,t){var l=De();return _f(l,ge,e,t)},useMemoCache:xc,useCacheRefresh:If};Mc.useEffectEvent=Yf;var ao={readContext:Qe,use:bu,useCallback:Zf,useContext:Qe,useEffect:Ec,useImperativeHandle:Qf,useInsertionEffect:kf,useLayoutEffect:Gf,useMemo:Vf,useReducer:bc,useRef:Lf,useState:function(){return bc($t)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return ge===null?Tc(l,e,t):Kf(l,ge.memoizedState,e,t)},useTransition:function(){var e=bc($t)[0],t=De().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:jf,useId:Ff,useHostTransitionStatus:Ac,useFormState:wf,useActionState:wf,useOptimistic:function(e,t){var l=De();return ge!==null?_f(l,ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:xc,useCacheRefresh:If};ao.useEffectEvent=Yf;function Rc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Oc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=mt(),n=yl(a);n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=mt(),n=yl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=mt(),a=yl(l);a.tag=2,t!=null&&(a.callback=t),t=pl(e,a,l),t!==null&&(at(t,e,l),cn(t,e,l))}};function no(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Ia(l,a)||!Ia(n,u):!0}function uo(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Oc.enqueueReplaceState(t,t.state,null)}function $l(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=p({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function io(e){lu(e)}function co(e){console.error(e)}function so(e){lu(e)}function Tu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ro(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Cc(e,t,l){return l=yl(l),l.tag=3,l.payload={element:null},l.callback=function(){Tu(e,t)},l}function fo(e){return e=yl(e),e.tag=3,e}function oo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){ro(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){ro(t,l,a),typeof n!="function"&&(El===null?El=new Set([this]):El.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function fv(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pa(t,l,n,!0),l=rt.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?wu():l.alternate===null&&Re===0&&(Re=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===du?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),as(e,a,n)),!1;case 22:return l.flags|=65536,a===du?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),as(e,a,n)),!1}throw Error(r(435,l.tag))}return as(e,a,n),wu(),!1}if(fe)return t=rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Fi&&(e=Error(r(422),{cause:a}),tn(bt(e,l)))):(a!==Fi&&(t=Error(r(423),{cause:a}),tn(bt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=bt(a,l),n=Cc(e.stateNode,a,n),sc(e,n),Re!==4&&(Re=2)),!1;var u=Error(r(520),{cause:a});if(u=bt(u,l),Sn===null?Sn=[u]:Sn.push(u),Re!==4&&(Re=2),t===null)return!0;a=bt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Cc(l.stateNode,a,e),sc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(El===null||!El.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=fo(n),oo(n,e,l,a),sc(l,n),!1}l=l.return}while(l!==null);return!1}var Dc=Error(r(461)),we=!1;function Ze(e,t,l,a){t.child=e===null?vf(t,null,l,a):Kl(t,e.child,l,a)}function mo(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Xl(t),a=hc(e,t,l,c,u,n),d=vc(),e!==null&&!we?(yc(e,t,n),Wt(e,t,n)):(fe&&d&&$i(t),t.flags|=1,Ze(e,t,a,n),t.child)}function ho(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Vi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,vo(e,t,u,a,n)):(e=iu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!kc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(c,a)&&e.ref===t.ref)return Wt(e,t,n)}return t.flags|=1,e=Qt(u,a),e.ref=t.ref,e.return=t,t.child=e}function vo(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Ia(u,a)&&e.ref===t.ref)if(we=!1,t.pendingProps=a=u,kc(e,n))(e.flags&131072)!==0&&(we=!0);else return t.lanes=e.lanes,Wt(e,t,n)}return Uc(e,t,l,a,n)}function yo(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return po(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fu(t,u!==null?u.cachePool:null),u!==null?xf(t,u):fc(),gf(t);else return a=t.lanes=536870912,po(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(fu(t,u.cachePool),xf(t,u),gl(),t.memoizedState=null):(e!==null&&fu(t,null),fc(),gl());return Ze(e,t,n,l),t.child}function hn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function po(e,t,l,a,n){var u=nc();return u=u===null?null:{parent:He._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&fu(t,null),fc(),gf(t),e!==null&&pa(e,t,a,!0),t.childLanes=n,null}function zu(e,t){return t=_u({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function xo(e,t,l){return Kl(t,e.child,null,l),e=zu(t,t.pendingProps),e.flags|=2,ft(t),t.memoizedState=null,e}function ov(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(fe){if(a.mode==="hidden")return e=zu(t,a),t.lanes=536870912,hn(null,e);if(dc(t),(e=Te)?(e=Rd(e,Et),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ol!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return zu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(dc(t),n)if(t.flags&256)t.flags&=-257,t=xo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(we||pa(e,t,l,!1),n=(l&e.childLanes)!==0,we||n){if(a=Ee,a!==null&&(c=ir(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,ql(e,c),at(a,e,c),Dc;wu(),t=xo(e,t,l)}else e=u.treeContext,Te=Tt(c.nextSibling),Xe=t,fe=!0,dl=null,Et=!1,e!==null&&lf(t,e),t=zu(t,a),t.flags|=4096;return t}return e=Qt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Au(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Uc(e,t,l,a,n){return Xl(t),l=hc(e,t,l,a,void 0,n),a=vc(),e!==null&&!we?(yc(e,t,n),Wt(e,t,n)):(fe&&a&&$i(t),t.flags|=1,Ze(e,t,l,n),t.child)}function go(e,t,l,a,n,u){return Xl(t),t.updateQueue=null,l=Sf(t,a,l,n),bf(e),a=vc(),e!==null&&!we?(yc(e,t,u),Wt(e,t,u)):(fe&&a&&$i(t),t.flags|=1,Ze(e,t,l,u),t.child)}function bo(e,t,l,a,n){if(Xl(t),t.stateNode===null){var u=ma,c=l.contextType;typeof c=="object"&&c!==null&&(u=Qe(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Oc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},ic(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?Qe(c):ma,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Rc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Oc.enqueueReplaceState(u,u.state,null),rn(t,a,u,n),sn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,y=$l(l,d);u.props=y;var T=u.context,C=l.contextType;c=ma,typeof C=="object"&&C!==null&&(c=Qe(C));var B=l.getDerivedStateFromProps;C=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,C||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||T!==c)&&uo(t,u,a,c),vl=!1;var z=t.memoizedState;u.state=z,rn(t,a,u,n),sn(),T=t.memoizedState,d||z!==T||vl?(typeof B=="function"&&(Rc(t,l,B,a),T=t.memoizedState),(y=vl||no(t,l,y,a,z,T,c))?(C||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=a,t.memoizedState=T),u.props=a,u.state=T,u.context=c,a=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,cc(e,t),c=t.memoizedProps,C=$l(l,c),u.props=C,B=t.pendingProps,z=u.context,T=l.contextType,y=ma,typeof T=="object"&&T!==null&&(y=Qe(T)),d=l.getDerivedStateFromProps,(T=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==B||z!==y)&&uo(t,u,a,y),vl=!1,z=t.memoizedState,u.state=z,rn(t,a,u,n),sn();var R=t.memoizedState;c!==B||z!==R||vl||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof d=="function"&&(Rc(t,l,d,a),R=t.memoizedState),(C=vl||no(t,l,C,a,z,R,y)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(T||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,R,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,R,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=R),u.props=a,u.state=R,u.context=y,a=C):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Au(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Kl(t,e.child,null,n),t.child=Kl(t,null,l,n)):Ze(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Wt(e,t,n),e}function So(e,t,l,a){return kl(),t.flags|=256,Ze(e,t,l,a),t.child}var Hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(e){return{baseLanes:e,cachePool:rf()}}function wc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=dt),e}function jo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Ce.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(fe){if(n?xl(t):gl(),(e=Te)?(e=Rd(e,Et),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ol!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ml(t);return gs(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(gl(),n=t.mode,d=_u({mode:"hidden",children:d},n),a=Yl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,c,l),t.memoizedState=Hc,hn(null,a)):(xl(t),Lc(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(u)t.flags&256?(xl(t),t.flags&=-257,t=qc(e,t,l)):t.memoizedState!==null?(gl(),t.child=e.child,t.flags|=128,t=null):(gl(),d=a.fallback,n=t.mode,a=_u({mode:"visible",children:a.children},n),d=Yl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,Kl(t,e.child,null,l),a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,c,l),t.memoizedState=Hc,t=hn(null,a));else if(xl(t),gs(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var T=c.dgst;c=T,a=Error(r(419)),a.stack="",a.digest=c,tn({value:a,source:null,stack:null}),t=qc(e,t,l)}else if(we||pa(e,t,l,!1),c=(l&e.childLanes)!==0,we||c){if(c=Ee,c!==null&&(a=ir(c,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,ql(e,a),at(c,e,a),Dc;xs(d)||wu(),t=qc(e,t,l)}else xs(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Te=Tt(d.nextSibling),Xe=t,fe=!0,dl=null,Et=!1,e!==null&&lf(t,e),t=Lc(t,a.children),t.flags|=4096);return t}return n?(gl(),d=a.fallback,n=t.mode,y=e.child,T=y.sibling,a=Qt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,T!==null?d=Qt(T,d):(d=Yl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,hn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Bc(l):(n=d.cachePool,n!==null?(y=He._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=rf(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=wc(e,c,l),t.memoizedState=Hc,hn(e.child,a)):(xl(t),l=e.child,e=l.sibling,l=Qt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Lc(e,t){return t=_u({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _u(e,t){return e=st(22,e,null,t),e.lanes=0,e}function qc(e,t,l){return Kl(t,e.child,null,l),e=Lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Eo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ec(e.return,t,l)}function Yc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function No(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=Ce.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,V(Ce,c),Ze(e,t,a,l),a=fe?en:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eo(e,l,t);else if(e.tag===19)Eo(e,l,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}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&yu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Yc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&yu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Yc(t,!0,l,null,u,a);break;case"together":Yc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),jl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Qt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Qt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&su(e)))}function dv(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),hl(t,He,e.memoizedState.cache),kl();break;case 27:case 5:qa(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:hl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,dc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?jo(e,t,l):(xl(t),e=Wt(e,t,l),e!==null?e.sibling:null);xl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return No(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),V(Ce,Ce.current),a)break;return null;case 22:return t.lanes=0,yo(e,t,l,t.pendingProps);case 24:hl(t,He,e.memoizedState.cache)}return Wt(e,t,l)}function To(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)we=!0;else{if(!kc(e,l)&&(t.flags&128)===0)return we=!1,dv(e,t,l);we=(e.flags&131072)!==0}else we=!1,fe&&(t.flags&1048576)!==0&&tf(t,en,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Zl(t.elementType),t.type=e,typeof e=="function")Vi(e)?(a=$l(e,a),t.tag=1,t=bo(null,t,e,a,l)):(t.tag=0,t=Uc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===X){t.tag=11,t=mo(null,t,e,a,l);break e}else if(n===K){t.tag=14,t=ho(null,t,e,a,l);break e}}throw t=yt(e)||e,Error(r(306,t,""))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=$l(a,t.pendingProps),bo(e,t,a,n,l);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,cc(e,t),rn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,hl(t,He,a),a!==u.cache&&tc(t,[He],l,!0),sn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=So(e,t,a,l);break e}else if(a!==n){n=bt(Error(r(424)),t),tn(n),t=So(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Te=Tt(e.firstChild),Xe=t,fe=!0,dl=null,Et=!0,l=vf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(kl(),a===n){t=Wt(e,t,l);break e}Ze(e,t,a,l)}t=t.child}return t;case 26:return Au(e,t),e===null?(l=Bd(t.type,null,t.pendingProps,null))?t.memoizedState=l:fe||(l=t.type,e=t.pendingProps,a=Qu(ue.current).createElement(l),a[Ge]=t,a[Fe]=e,Ve(a,l,e),Ye(a),t.stateNode=a):t.memoizedState=Bd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qa(t),e===null&&fe&&(a=t.stateNode=Dd(t.type,t.pendingProps,ue.current),Xe=t,Et=!0,n=Te,Al(t.type)?(bs=n,Te=Tt(a.firstChild)):Te=n),Ze(e,t,t.pendingProps.children,l),Au(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&fe&&((n=a=Te)&&(a=Gv(a,t.type,t.pendingProps,Et),a!==null?(t.stateNode=a,Xe=t,Te=Tt(a.firstChild),Et=!1,n=!0):n=!1),n||ml(t)),qa(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,vs(n,u)?a=null:c!==null&&vs(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=hc(e,t,av,null,null,l),Mn._currentValue=n),Au(e,t),Ze(e,t,a,l),t.child;case 6:return e===null&&fe&&((e=l=Te)&&(l=Xv(l,t.pendingProps,Et),l!==null?(t.stateNode=l,Xe=t,Te=null,e=!0):e=!1),e||ml(t)),null;case 13:return jo(e,t,l);case 4:return $e(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Kl(t,null,a,l):Ze(e,t,a,l),t.child;case 11:return mo(e,t,t.type,t.pendingProps,l);case 7:return Ze(e,t,t.pendingProps,l),t.child;case 8:return Ze(e,t,t.pendingProps.children,l),t.child;case 12:return Ze(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,hl(t,t.type,a.value),Ze(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Xl(t),n=Qe(n),a=a(n),t.flags|=1,Ze(e,t,a,l),t.child;case 14:return ho(e,t,t.type,t.pendingProps,l);case 15:return vo(e,t,t.type,t.pendingProps,l);case 19:return No(e,t,l);case 31:return ov(e,t,l);case 22:return yo(e,t,l,t.pendingProps);case 24:return Xl(t),a=Qe(He),e===null?(n=nc(),n===null&&(n=Ee,u=lc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},ic(t),hl(t,He,n)):((e.lanes&l)!==0&&(cc(e,t),rn(t,null,null,l),sn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),hl(t,He,a)):(a=u.cache,hl(t,He,a),a!==n.cache&&tc(t,[He],l,!0))),Ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ft(e){e.flags|=4}function Gc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Io())e.flags|=8192;else throw Vl=du,uc}else e.flags&=-16777217}function zo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!kd(t))if(Io())e.flags|=8192;else throw Vl=du,uc}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ar():536870912,e.lanes|=t,Ma|=t)}function vn(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function mv(e,t,l){var a=t.pendingProps;switch(Wi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return ze(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Kt(He),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ya(t)?Ft(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ii())),ze(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Ft(t),u!==null?(ze(t),zo(t,u)):(ze(t),Gc(t,n,null,a,l))):u?u!==e.memoizedState?(Ft(t),ze(t),zo(t,u)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Ft(t),ze(t),Gc(t,n,e,a,l)),null;case 27:if(Yn(t),l=ue.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}e=W.current,ya(t)?af(t):(e=Dd(n,a,l),t.stateNode=e,Ft(t))}return ze(t),null;case 5:if(Yn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}if(u=W.current,ya(t))af(t);else{var c=Qu(ue.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Ge]=t,u[Fe]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Ve(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ft(t)}}return ze(t),Gc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,ya(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Xe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ge]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jd(e.nodeValue,l)),e||ml(t,!0)}else e=Qu(e).createTextNode(a),e[Ge]=t,t.stateNode=e}return ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ya(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ge]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else l=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ft(t),t):(ft(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ya(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Ge]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),n=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(ft(t),t):(ft(t),null)}return ft(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Mu(t,t.updateQueue),ze(t),null);case 4:return Oe(),e===null&&fs(t.stateNode.containerInfo),ze(t),null;case 10:return Kt(t.type),ze(t),null;case 19:if(w(Ce),a=t.memoizedState,a===null)return ze(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)vn(a,!1);else{if(Re!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=yu(e),u!==null){for(t.flags|=128,vn(a,!1),e=u.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ir(l,e),l=l.sibling;return V(Ce,Ce.current&1|2),fe&&Zt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&nt()>Uu&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304)}else{if(!n)if(e=yu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),vn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!fe)return ze(t),null}else 2*nt()-a.renderingStartTime>Uu&&l!==536870912&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=nt(),e.sibling=null,l=Ce.current,V(Ce,n?l&1|2:l&1),fe&&Zt(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return ft(t),oc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),l=t.updateQueue,l!==null&&Mu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&w(Ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Kt(He),ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function hv(e,t){switch(Wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kt(He),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Yn(t),null;case 31:if(t.memoizedState!==null){if(ft(t),t.alternate===null)throw Error(r(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return w(Ce),null;case 4:return Oe(),null;case 10:return Kt(t.type),null;case 22:case 23:return ft(t),oc(),e!==null&&w(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Kt(He),null;case 25:return null;default:return null}}function Ao(e,t){switch(Wi(t),t.tag){case 3:Kt(He),Oe();break;case 26:case 27:case 5:Yn(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&ft(t);break;case 13:ft(t);break;case 19:w(Ce);break;case 10:Kt(t.type);break;case 22:case 23:ft(t),oc(),e!==null&&w(Ql);break;case 24:Kt(He)}}function yn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){pe(t,t.return,d)}}function bl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var y=l,T=d;try{T()}catch(C){pe(n,y,C)}}}a=a.next}while(a!==u)}}catch(C){pe(t,t.return,C)}}function _o(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{pf(t,l)}catch(a){pe(e,e.return,a)}}}function Mo(e,t,l){l.props=$l(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){pe(e,t,a)}}function pn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){pe(e,t,n)}}function wt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){pe(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){pe(e,t,n)}else l.current=null}function Ro(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){pe(e,e.return,n)}}function Xc(e,t,l){try{var a=e.stateNode;Bv(a,e.type,l,t),a[Fe]=t}catch(n){pe(e,e.return,n)}}function Oo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Al(e.type)||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oo(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Al(e.type)||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 Zc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Gt));else if(a!==4&&(a===27&&Al(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,l),e=e.sibling;e!==null;)Zc(e,t,l),e=e.sibling}function Ru(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Al(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ru(e,t,l),e=e.sibling;e!==null;)Ru(e,t,l),e=e.sibling}function Co(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ve(t,a,l),t[Ge]=e,t[Fe]=l}catch(u){pe(e,e.return,u)}}var It=!1,Le=!1,Vc=!1,Do=typeof WeakSet=="function"?WeakSet:Set,ke=null;function vv(e,t){if(e=e.containerInfo,ms=Fu,e=Xr(e),qi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,d=-1,y=-1,T=0,C=0,B=e,z=null;t:for(;;){for(var R;B!==l||n!==0&&B.nodeType!==3||(d=c+n),B!==u||a!==0&&B.nodeType!==3||(y=c+a),B.nodeType===3&&(c+=B.nodeValue.length),(R=B.firstChild)!==null;)z=B,B=R;for(;;){if(B===e)break t;if(z===l&&++T===n&&(d=c),z===u&&++C===a&&(y=c),(R=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=R}l=d===-1||y===-1?null:{start:d,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(hs={focusedElem:e,selectionRange:l},Fu=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){switch(t=ke,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var J=$l(l.type,n);e=a.getSnapshotBeforeUpdate(J,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){pe(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ps(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ps(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}}function Uo(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:el(e,l),a&4&&yn(5,l);break;case 1:if(el(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){pe(l,l.return,c)}else{var n=$l(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){pe(l,l.return,c)}}a&64&&_o(l),a&512&&pn(l,l.return);break;case 3:if(el(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{pf(e,t)}catch(c){pe(l,l.return,c)}}break;case 27:t===null&&a&4&&Co(l);case 26:case 5:el(e,l),t===null&&a&4&&Ro(l),a&512&&pn(l,l.return);break;case 12:el(e,l);break;case 31:el(e,l),a&4&&wo(e,l);break;case 13:el(e,l),a&4&&Lo(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Nv.bind(null,l),Qv(e,l))));break;case 22:if(a=l.memoizedState!==null||It,!a){t=t!==null&&t.memoizedState!==null||Le,n=It;var u=Le;It=a,(Le=t)&&!u?tl(e,l,(l.subtreeFlags&8772)!==0):el(e,l),It=n,Le=u}break;case 30:break;default:el(e,l)}}function Ho(e){var t=e.alternate;t!==null&&(e.alternate=null,Ho(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ji(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ae=null,Pe=!1;function Pt(e,t,l){for(l=l.child;l!==null;)Bo(e,t,l),l=l.sibling}function Bo(e,t,l){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Ya,l)}catch{}switch(l.tag){case 26:Le||wt(l,t),Pt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||wt(l,t);var a=Ae,n=Pe;Al(l.type)&&(Ae=l.stateNode,Pe=!1),Pt(e,t,l),zn(l.stateNode),Ae=a,Pe=n;break;case 5:Le||wt(l,t);case 6:if(a=Ae,n=Pe,Ae=null,Pt(e,t,l),Ae=a,Pe=n,Ae!==null)if(Pe)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(l.stateNode)}catch(u){pe(l,t,u)}else try{Ae.removeChild(l.stateNode)}catch(u){pe(l,t,u)}break;case 18:Ae!==null&&(Pe?(e=Ae,_d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),wa(e)):_d(Ae,l.stateNode));break;case 4:a=Ae,n=Pe,Ae=l.stateNode.containerInfo,Pe=!0,Pt(e,t,l),Ae=a,Pe=n;break;case 0:case 11:case 14:case 15:bl(2,l,t),Le||bl(4,l,t),Pt(e,t,l);break;case 1:Le||(wt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Mo(l,t,a)),Pt(e,t,l);break;case 21:Pt(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,Pt(e,t,l),Le=a;break;default:Pt(e,t,l)}}function wo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wa(e)}catch(l){pe(t,t.return,l)}}}function Lo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wa(e)}catch(l){pe(t,t.return,l)}}function yv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Do),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Do),t;default:throw Error(r(435,e.tag))}}function Ou(e,t){var l=yv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Tv.bind(null,e,a);a.then(n,n)}})}function et(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Al(d.type)){Ae=d.stateNode,Pe=!1;break e}break;case 5:Ae=d.stateNode,Pe=!1;break e;case 3:case 4:Ae=d.stateNode.containerInfo,Pe=!0;break e}d=d.return}if(Ae===null)throw Error(r(160));Bo(u,c,n),Ae=null,Pe=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qo(t,e),t=t.sibling}var Mt=null;function qo(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:et(t,e),tt(e),a&4&&(bl(3,e,e.return),yn(3,e),bl(5,e,e.return));break;case 1:et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),a&64&&It&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Mt;if(et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Xa]||u[Ge]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ve(u,a,l),u[Ge]=e,Ye(u),a=u;break e;case"link":var c=qd("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(u=c[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;case"meta":if(c=qd("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(u=c[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Ge]=e,Ye(u),a=u}e.stateNode=a}else Yd(n,e.type,e.stateNode);else e.stateNode=Ld(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Yd(n,e.type,e.stateNode):Ld(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,l.memoizedProps)}break;case 27:et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),l!==null&&a&4&&Xc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),e.flags&32){n=e.stateNode;try{ia(n,"")}catch(J){pe(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Xc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Vc=!0);break;case 6:if(et(t,e),tt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){pe(e,e.return,J)}}break;case 3:if(Ku=null,n=Mt,Mt=Zu(t.containerInfo),et(t,e),Mt=n,tt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{wa(t.containerInfo)}catch(J){pe(e,e.return,J)}Vc&&(Vc=!1,Yo(e));break;case 4:a=Mt,Mt=Zu(e.stateNode.containerInfo),et(t,e),tt(e),Mt=a;break;case 12:et(t,e),tt(e);break;case 31:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 13:et(t,e),tt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Du=nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 22:n=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,T=It,C=Le;if(It=T||n,Le=C||y,et(t,e),Le=C,It=T,tt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||It||Le||Wl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(u=y.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=y.stateNode;var B=y.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(J){pe(y,y.return,J)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(J){pe(y,y.return,J)}}}else if(t.tag===18){if(l===null){y=t;try{var R=y.stateNode;n?Md(R,!0):Md(y.stateNode,!1)}catch(J){pe(y,y.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ou(e,l))));break;case 19:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 30:break;case 21:break;default:et(t,e),tt(e)}}function tt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Oo(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=Qc(e);Ru(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ia(c,""),l.flags&=-33);var d=Qc(e);Ru(e,d,c);break;case 3:case 4:var y=l.stateNode.containerInfo,T=Qc(e);Zc(e,T,y);break;default:throw Error(r(161))}}catch(C){pe(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yo(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yo(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function el(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Uo(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Wl(t);break;case 1:wt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Mo(t,t.return,l),Wl(t);break;case 27:zn(t.stateNode);case 26:case 5:wt(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function tl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:tl(n,u,l),yn(4,u);break;case 1:if(tl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){pe(a,a.return,T)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)yf(y[n],d)}catch(T){pe(a,a.return,T)}}l&&c&64&&_o(u),pn(u,u.return);break;case 27:Co(u);case 26:case 5:tl(n,u,l),l&&a===null&&c&4&&Ro(u),pn(u,u.return);break;case 12:tl(n,u,l);break;case 31:tl(n,u,l),l&&c&4&&wo(n,u);break;case 13:tl(n,u,l),l&&c&4&&Lo(n,u);break;case 22:u.memoizedState===null&&tl(n,u,l),pn(u,u.return);break;case 30:break;default:tl(n,u,l)}t=t.sibling}}function Kc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ln(l))}function Jc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ln(e))}function Rt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ko(e,t,l,a),t=t.sibling}function ko(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Rt(e,t,l,a),n&2048&&yn(9,t);break;case 1:Rt(e,t,l,a);break;case 3:Rt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ln(e)));break;case 12:if(n&2048){Rt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,d=u.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){pe(t,t.return,y)}}else Rt(e,t,l,a);break;case 31:Rt(e,t,l,a);break;case 13:Rt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Rt(e,t,l,a):xn(e,t):u._visibility&2?Rt(e,t,l,a):(u._visibility|=2,za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Kc(c,t);break;case 24:Rt(e,t,l,a),n&2048&&Jc(t.alternate,t);break;default:Rt(e,t,l,a)}}function za(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,d=l,y=a,T=c.flags;switch(c.tag){case 0:case 11:case 15:za(u,c,d,y,n),yn(8,c);break;case 23:break;case 22:var C=c.stateNode;c.memoizedState!==null?C._visibility&2?za(u,c,d,y,n):xn(u,c):(C._visibility|=2,za(u,c,d,y,n)),n&&T&2048&&Kc(c.alternate,c);break;case 24:za(u,c,d,y,n),n&&T&2048&&Jc(c.alternate,c);break;default:za(u,c,d,y,n)}t=t.sibling}}function xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:xn(l,a),n&2048&&Kc(a.alternate,a);break;case 24:xn(l,a),n&2048&&Jc(a.alternate,a);break;default:xn(l,a)}t=t.sibling}}var gn=8192;function Aa(e,t,l){if(e.subtreeFlags&gn)for(e=e.child;e!==null;)Go(e,t,l),e=e.sibling}function Go(e,t,l){switch(e.tag){case 26:Aa(e,t,l),e.flags&gn&&e.memoizedState!==null&&ly(l,Mt,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,l);break;case 3:case 4:var a=Mt;Mt=Zu(e.stateNode.containerInfo),Aa(e,t,l),Mt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gn,gn=16777216,Aa(e,t,l),gn=a):Aa(e,t,l));break;default:Aa(e,t,l)}}function Xo(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function bn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,Zo(a,e)}Xo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qo(e),e=e.sibling}function Qo(e){switch(e.tag){case 0:case 11:case 15:bn(e),e.flags&2048&&bl(9,e,e.return);break;case 3:bn(e);break;case 12:bn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cu(e)):bn(e);break;default:bn(e)}}function Cu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,Zo(a,e)}Xo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bl(8,t,t.return),Cu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Cu(t));break;default:Cu(t)}e=e.sibling}}function Zo(e,t){for(;ke!==null;){var l=ke;switch(l.tag){case 0:case 11:case 15:bl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ln(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ke=a;else e:for(l=e;ke!==null;){a=ke;var n=a.sibling,u=a.return;if(Ho(a),a===l){ke=null;break e}if(n!==null){n.return=u,ke=n;break e}ke=u}}}var pv={getCacheForType:function(e){var t=Qe(He),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Qe(He).controller.signal}},xv=typeof WeakMap=="function"?WeakMap:Map,he=0,Ee=null,ie=null,se=0,ye=0,ot=null,Sl=!1,_a=!1,$c=!1,ll=0,Re=0,jl=0,Fl=0,Wc=0,dt=0,Ma=0,Sn=null,lt=null,Fc=!1,Du=0,Vo=0,Uu=1/0,Hu=null,El=null,qe=0,Nl=null,Ra=null,al=0,Ic=0,Pc=null,Ko=null,jn=0,es=null;function mt(){return(he&2)!==0&&se!==0?se&-se:D.T!==null?is():cr()}function Jo(){if(dt===0)if((se&536870912)===0||fe){var e=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),dt=e}else dt=536870912;return e=rt.current,e!==null&&(e.flags|=32),dt}function at(e,t,l){(e===Ee&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Oa(e,0),Tl(e,se,dt,!1)),Ga(e,l),((he&2)===0||e!==Ee)&&(e===Ee&&((he&2)===0&&(Fl|=l),Re===4&&Tl(e,se,dt,!1)),Lt(e))}function $o(e,t,l){if((he&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ka(e,t),n=a?Sv(e,t):ls(e,t,!0),u=a;do{if(n===0){_a&&!a&&Tl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!gv(l)){n=ls(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Sn;var y=d.current.memoizedState.isDehydrated;if(y&&(Oa(d,c).flags|=256),c=ls(d,c,!1),c!==2){if($c&&!y){d.errorRecoveryDisabledLanes|=u,Fl|=u,n=4;break e}u=lt,lt=n,u!==null&&(lt===null?lt=u:lt.push.apply(lt,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Oa(e,0),Tl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Tl(a,t,dt,!Sl);break e;case 2:lt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Du+300-nt(),10<n)){if(Tl(a,t,dt,!Sl),Zn(a,0,!0)!==0)break e;al=t,a.timeoutHandle=zd(Wo.bind(null,a,l,lt,Hu,Fc,t,dt,Fl,Ma,Sl,u,"Throttled",-0,0),n);break e}Wo(a,l,lt,Hu,Fc,t,dt,Fl,Ma,Sl,u,null,-0,0)}}break}while(!0);Lt(e)}function Wo(e,t,l,a,n,u,c,d,y,T,C,B,z,R){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},Go(t,u,B);var J=(u&62914560)===u?Du-nt():(u&4194048)===u?Vo-nt():0;if(J=ay(B,J),J!==null){al=u,e.cancelPendingCommit=J(nd.bind(null,e,t,u,l,a,n,c,d,y,C,B,null,z,R)),Tl(e,u,c,!T);return}}nd(e,t,u,l,a,n,c,d,y)}function gv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!ct(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Tl(e,t,l,a){t&=~Wc,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-it(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&nr(e,l,t)}function Bu(){return(he&6)===0?(En(0),!1):!0}function ts(){if(ie!==null){if(ye===0)var e=ie.return;else e=ie,Vt=Gl=null,pc(e),Sa=null,nn=0,e=ie;for(;e!==null;)Ao(e.alternate,e),e=e.return;ie=null}}function Oa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,qv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),al=0,ts(),Ee=e,ie=l=Qt(e.current,null),se=t,ye=0,ot=null,Sl=!1,_a=ka(e,t),$c=!1,Ma=dt=Wc=Fl=jl=Re=0,lt=Sn=null,Fc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-it(a),u=1<<n;t|=e[n],a&=~u}return ll=t,au(),l}function Fo(e,t){ae=null,D.H=mn,t===ba||t===ou?(t=df(),ye=3):t===uc?(t=df(),ye=4):ye=t===Dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ot=t,ie===null&&(Re=1,Tu(e,bt(t,e.current)))}function Io(){var e=rt.current;return e===null?!0:(se&4194048)===se?Nt===null:(se&62914560)===se||(se&536870912)!==0?e===Nt:!1}function Po(){var e=D.H;return D.H=mn,e===null?mn:e}function ed(){var e=D.A;return D.A=pv,e}function wu(){Re=4,Sl||(se&4194048)!==se&&rt.current!==null||(_a=!0),(jl&134217727)===0&&(Fl&134217727)===0||Ee===null||Tl(Ee,se,dt,!1)}function ls(e,t,l){var a=he;he|=2;var n=Po(),u=ed();(Ee!==e||se!==t)&&(Hu=null,Oa(e,t)),t=!1;var c=Re;e:do try{if(ye!==0&&ie!==null){var d=ie,y=ot;switch(ye){case 8:ts(),c=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var T=ye;if(ye=0,ot=null,Ca(e,d,y,T),l&&_a){c=0;break e}break;default:T=ye,ye=0,ot=null,Ca(e,d,y,T)}}bv(),c=Re;break}catch(C){Fo(e,C)}while(!0);return t&&e.shellSuspendCounter++,Vt=Gl=null,he=a,D.H=n,D.A=u,ie===null&&(Ee=null,se=0,au()),c}function bv(){for(;ie!==null;)td(ie)}function Sv(e,t){var l=he;he|=2;var a=Po(),n=ed();Ee!==e||se!==t?(Hu=null,Uu=nt()+500,Oa(e,t)):_a=ka(e,t);e:do try{if(ye!==0&&ie!==null){t=ie;var u=ot;t:switch(ye){case 1:ye=0,ot=null,Ca(e,t,u,1);break;case 2:case 9:if(ff(u)){ye=0,ot=null,ld(t);break}t=function(){ye!==2&&ye!==9||Ee!==e||(ye=7),Lt(e)},u.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:ff(u)?(ye=0,ot=null,ld(t)):(ye=0,ot=null,Ca(e,t,u,7));break;case 5:var c=null;switch(ie.tag){case 26:c=ie.memoizedState;case 5:case 27:var d=ie;if(c?kd(c):d.stateNode.complete){ye=0,ot=null;var y=d.sibling;if(y!==null)ie=y;else{var T=d.return;T!==null?(ie=T,Lu(T)):ie=null}break t}}ye=0,ot=null,Ca(e,t,u,5);break;case 6:ye=0,ot=null,Ca(e,t,u,6);break;case 8:ts(),Re=6;break e;default:throw Error(r(462))}}jv();break}catch(C){Fo(e,C)}while(!0);return Vt=Gl=null,D.H=a,D.A=n,he=l,ie!==null?0:(Ee=null,se=0,au(),Re)}function jv(){for(;ie!==null&&!Zm();)td(ie)}function td(e){var t=To(e.alternate,e,ll);e.memoizedProps=e.pendingProps,t===null?Lu(e):ie=t}function ld(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=go(l,t,t.pendingProps,t.type,void 0,se);break;case 11:t=go(l,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:pc(t);default:Ao(l,t),t=ie=Ir(t,ll),t=To(l,t,ll)}e.memoizedProps=e.pendingProps,t===null?Lu(e):ie=t}function Ca(e,t,l,a){Vt=Gl=null,pc(t),Sa=null,nn=0;var n=t.return;try{if(fv(e,n,t,l,se)){Re=1,Tu(e,bt(l,e.current)),ie=null;return}}catch(u){if(n!==null)throw ie=n,u;Re=1,Tu(e,bt(l,e.current)),ie=null;return}t.flags&32768?(fe||a===1?e=!0:_a||(se&536870912)!==0?e=!1:(Sl=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),ad(t,e)):Lu(t)}function Lu(e){var t=e;do{if((t.flags&32768)!==0){ad(t,Sl);return}e=t.return;var l=mv(t.alternate,t,ll);if(l!==null){ie=l;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);Re===0&&(Re=5)}function ad(e,t){do{var l=hv(e.alternate,e);if(l!==null){l.flags&=32767,ie=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=l}while(e!==null);Re=6,ie=null}function nd(e,t,l,a,n,u,c,d,y){e.cancelPendingCommit=null;do qu();while(qe!==0);if((he&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Qi,th(e,l,u,c,d,y),e===Ee&&(ie=Ee=null,se=0),Ra=t,Nl=e,al=l,Ic=u,Pc=n,Ko=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,zv(kn,function(){return rd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=Z.p,Z.p=2,c=he,he|=4;try{vv(e,t,l)}finally{he=c,Z.p=n,D.T=a}}qe=1,ud(),id(),cd()}}function ud(){if(qe===1){qe=0;var e=Nl,t=Ra,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=Z.p;Z.p=2;var n=he;he|=4;try{qo(t,e);var u=hs,c=Xr(e.containerInfo),d=u.focusedElem,y=u.selectionRange;if(c!==d&&d&&d.ownerDocument&&Gr(d.ownerDocument.documentElement,d)){if(y!==null&&qi(d)){var T=y.start,C=y.end;if(C===void 0&&(C=T),"selectionStart"in d)d.selectionStart=T,d.selectionEnd=Math.min(C,d.value.length);else{var B=d.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var R=z.getSelection(),J=d.textContent.length,P=Math.min(y.start,J),Se=y.end===void 0?P:Math.min(y.end,J);!R.extend&&P>Se&&(c=Se,Se=P,P=c);var j=kr(d,P),g=kr(d,Se);if(j&&g&&(R.rangeCount!==1||R.anchorNode!==j.node||R.anchorOffset!==j.offset||R.focusNode!==g.node||R.focusOffset!==g.offset)){var N=B.createRange();N.setStart(j.node,j.offset),R.removeAllRanges(),P>Se?(R.addRange(N),R.extend(g.node,g.offset)):(N.setEnd(g.node,g.offset),R.addRange(N))}}}}for(B=[],R=d;R=R.parentNode;)R.nodeType===1&&B.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<B.length;d++){var U=B[d];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Fu=!!ms,hs=ms=null}finally{he=n,Z.p=a,D.T=l}}e.current=t,qe=2}}function id(){if(qe===2){qe=0;var e=Nl,t=Ra,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=Z.p;Z.p=2;var n=he;he|=4;try{Uo(e,t.alternate,t)}finally{he=n,Z.p=a,D.T=l}}qe=3}}function cd(){if(qe===4||qe===3){qe=0,Vm();var e=Nl,t=Ra,l=al,a=Ko;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?qe=5:(qe=0,Ra=Nl=null,sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(El=null),bi(l),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(Ya,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=Z.p,Z.p=2,D.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];u(d.value,{componentStack:d.stack})}}finally{D.T=t,Z.p=n}}(al&3)!==0&&qu(),Lt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===es?jn++:(jn=0,es=e):jn=0,En(0)}}function sd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ln(t)))}function qu(){return ud(),id(),cd(),rd()}function rd(){if(qe!==5)return!1;var e=Nl,t=Ic;Ic=0;var l=bi(al),a=D.T,n=Z.p;try{Z.p=32>l?32:l,D.T=null,l=Pc,Pc=null;var u=Nl,c=al;if(qe=0,Ra=Nl=null,al=0,(he&6)!==0)throw Error(r(331));var d=he;if(he|=4,Qo(u.current),ko(u,u.current,c,l),he=d,En(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(Ya,u)}catch{}return!0}finally{Z.p=n,D.T=a,sd(e,t)}}function fd(e,t,l){t=bt(l,t),t=Cc(e.stateNode,t,2),e=pl(e,t,2),e!==null&&(Ga(e,2),Lt(e))}function pe(e,t,l){if(e.tag===3)fd(e,e,l);else for(;t!==null;){if(t.tag===3){fd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(El===null||!El.has(a))){e=bt(l,e),l=fo(2),a=pl(t,l,2),a!==null&&(oo(l,a,t,e),Ga(a,2),Lt(a));break}}t=t.return}}function as(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new xv;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||($c=!0,n.add(l),e=Ev.bind(null,e,t,l),t.then(e,e))}function Ev(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(se&l)===l&&(Re===4||Re===3&&(se&62914560)===se&&300>nt()-Du?(he&2)===0&&Oa(e,0):Wc|=l,Ma===se&&(Ma=0)),Lt(e)}function od(e,t){t===0&&(t=ar()),e=ql(e,t),e!==null&&(Ga(e,t),Lt(e))}function Nv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),od(e,l)}function Tv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),od(e,l)}function zv(e,t){return yi(e,t)}var Yu=null,Da=null,ns=!1,ku=!1,us=!1,zl=0;function Lt(e){e!==Da&&e.next===null&&(Da===null?Yu=Da=e:Da=Da.next=e),ku=!0,ns||(ns=!0,_v())}function En(e,t){if(!us&&ku){us=!0;do for(var l=!1,a=Yu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-it(42|e)+1)-1,u&=n&~(c&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,vd(a,u))}else u=se,u=Zn(a,a===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||ka(a,u)||(l=!0,vd(a,u));a=a.next}while(l);us=!1}}function Av(){dd()}function dd(){ku=ns=!1;var e=0;zl!==0&&Lv()&&(e=zl);for(var t=nt(),l=null,a=Yu;a!==null;){var n=a.next,u=md(a,t);u===0?(a.next=null,l===null?Yu=n:l.next=n,n===null&&(Da=l)):(l=a,(e!==0||(u&3)!==0)&&(ku=!0)),a=n}qe!==0&&qe!==5||En(e),zl!==0&&(zl=0)}function md(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-it(u),d=1<<c,y=n[c];y===-1?((d&l)===0||(d&a)!==0)&&(n[c]=eh(d,t)):y<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ee,l=se,l=Zn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&pi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&pi(a),bi(l)){case 2:case 8:l=tr;break;case 32:l=kn;break;case 268435456:l=lr;break;default:l=kn}return a=hd.bind(null,e),l=yi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&pi(a),e.callbackPriority=2,e.callbackNode=null,2}function hd(e,t){if(qe!==0&&qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qu()&&e.callbackNode!==l)return null;var a=se;return a=Zn(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($o(e,a,t),md(e,nt()),e.callbackNode!=null&&e.callbackNode===l?hd.bind(null,e):null)}function vd(e,t){if(qu())return null;$o(e,t,!0)}function _v(){Yv(function(){(he&6)!==0?yi(er,Av):dd()})}function is(){if(zl===0){var e=xa;e===0&&(e=Gn,Gn<<=1,(Gn&261888)===0&&(Gn=256)),zl=e}return zl}function yd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$n(""+e)}function pd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Mv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=yd((n[Fe]||null).action),c=a.submitter;c&&(t=(t=c[Fe]||null)?yd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var d=new Pn("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(zl!==0){var y=c?pd(n,c):new FormData(n);zc(l,{pending:!0,data:y,method:n.method,action:u},null,y)}}else typeof u=="function"&&(d.preventDefault(),y=c?pd(n,c):new FormData(n),zc(l,{pending:!0,data:y,method:n.method,action:u},u,y))},currentTarget:n}]})}}for(var cs=0;cs<Xi.length;cs++){var ss=Xi[cs],Rv=ss.toLowerCase(),Ov=ss[0].toUpperCase()+ss.slice(1);_t(Rv,"on"+Ov)}_t(Vr,"onAnimationEnd"),_t(Kr,"onAnimationIteration"),_t(Jr,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(Kh,"onTransitionRun"),_t(Jh,"onTransitionStart"),_t($h,"onTransitionCancel"),_t($r,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function xd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],y=d.instance,T=d.currentTarget;if(d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=T;try{u(n)}catch(C){lu(C)}n.currentTarget=null,u=y}else for(c=0;c<a.length;c++){if(d=a[c],y=d.instance,T=d.currentTarget,d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=T;try{u(n)}catch(C){lu(C)}n.currentTarget=null,u=y}}}}function ce(e,t){var l=t[Si];l===void 0&&(l=t[Si]=new Set);var a=e+"__bubble";l.has(a)||(gd(t,e,2,!1),l.add(a))}function rs(e,t,l){var a=0;t&&(a|=4),gd(l,e,a,t)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[Gu]){e[Gu]=!0,fr.forEach(function(l){l!=="selectionchange"&&(Cv.has(l)||rs(l,!1,e),rs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gu]||(t[Gu]=!0,rs("selectionchange",!1,t))}}function gd(e,t,l,a){switch(Jd(t)){case 2:var n=iy;break;case 8:n=cy;break;default:n=Ts}l=n.bind(null,t,l,e),n=void 0,!Ri||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function os(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=ta(d),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=u=c;continue e}d=d.parentNode}}a=a.return}jr(function(){var T=u,C=_i(l),B=[];e:{var z=Wr.get(e);if(z!==void 0){var R=Pn,J=e;switch(e){case"keypress":if(Fn(l)===0)break e;case"keydown":case"keyup":R=Th;break;case"focusin":J="focus",R=Ui;break;case"focusout":J="blur",R=Ui;break;case"beforeblur":case"afterblur":R=Ui;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=_h;break;case Vr:case Kr:case Jr:R=yh;break;case $r:R=Rh;break;case"scroll":case"scrollend":R=oh;break;case"wheel":R=Ch;break;case"copy":case"cut":case"paste":R=xh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Ar;break;case"toggle":case"beforetoggle":R=Uh}var P=(t&4)!==0,Se=!P&&(e==="scroll"||e==="scrollend"),j=P?z!==null?z+"Capture":null:z;P=[];for(var g=T,N;g!==null;){var U=g;if(N=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||N===null||j===null||(U=Za(g,j),U!=null&&P.push(Tn(g,U,N))),Se)break;g=g.return}0<P.length&&(z=new R(z,J,null,l,C),B.push({event:z,listeners:P}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",z&&l!==Ai&&(J=l.relatedTarget||l.fromElement)&&(ta(J)||J[ea]))break e;if((R||z)&&(z=C.window===C?C:(z=C.ownerDocument)?z.defaultView||z.parentWindow:window,R?(J=l.relatedTarget||l.toElement,R=T,J=J?ta(J):null,J!==null&&(Se=v(J),P=J.tag,J!==Se||P!==5&&P!==27&&P!==6)&&(J=null)):(R=null,J=T),R!==J)){if(P=Tr,U="onMouseLeave",j="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(P=Ar,U="onPointerLeave",j="onPointerEnter",g="pointer"),Se=R==null?z:Qa(R),N=J==null?z:Qa(J),z=new P(U,g+"leave",R,l,C),z.target=Se,z.relatedTarget=N,U=null,ta(C)===T&&(P=new P(j,g+"enter",J,l,C),P.target=N,P.relatedTarget=Se,U=P),Se=U,R&&J)t:{for(P=Dv,j=R,g=J,N=0,U=j;U;U=P(U))N++;U=0;for(var I=g;I;I=P(I))U++;for(;0<N-U;)j=P(j),N--;for(;0<U-N;)g=P(g),U--;for(;N--;){if(j===g||g!==null&&j===g.alternate){P=j;break t}j=P(j),g=P(g)}P=null}else P=null;R!==null&&bd(B,z,R,P,!1),J!==null&&Se!==null&&bd(B,Se,J,P,!0)}}e:{if(z=T?Qa(T):window,R=z.nodeName&&z.nodeName.toLowerCase(),R==="select"||R==="input"&&z.type==="file")var de=Hr;else if(Dr(z))if(Br)de=Qh;else{de=Gh;var F=kh}else R=z.nodeName,!R||R.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?T&&zi(T.elementType)&&(de=Hr):de=Xh;if(de&&(de=de(e,T))){Ur(B,de,l,C);break e}F&&F(e,z,T),e==="focusout"&&T&&z.type==="number"&&T.memoizedProps.value!=null&&Ti(z,"number",z.value)}switch(F=T?Qa(T):window,e){case"focusin":(Dr(F)||F.contentEditable==="true")&&(fa=F,Yi=T,Pa=null);break;case"focusout":Pa=Yi=fa=null;break;case"mousedown":ki=!0;break;case"contextmenu":case"mouseup":case"dragend":ki=!1,Qr(B,l,C);break;case"selectionchange":if(Vh)break;case"keydown":case"keyup":Qr(B,l,C)}var ne;if(Bi)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else ra?Or(e,l)&&(re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(re="onCompositionStart");re&&(_r&&l.locale!=="ko"&&(ra||re!=="onCompositionStart"?re==="onCompositionEnd"&&ra&&(ne=Er()):(fl=C,Oi="value"in fl?fl.value:fl.textContent,ra=!0)),F=Xu(T,re),0<F.length&&(re=new zr(re,e,null,l,C),B.push({event:re,listeners:F}),ne?re.data=ne:(ne=Cr(l),ne!==null&&(re.data=ne)))),(ne=Bh?wh(e,l):Lh(e,l))&&(re=Xu(T,"onBeforeInput"),0<re.length&&(F=new zr("onBeforeInput","beforeinput",null,l,C),B.push({event:F,listeners:re}),F.data=ne)),Mv(B,e,T,l,C)}xd(B,t)})}function Tn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Xu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Za(e,l),n!=null&&a.unshift(Tn(e,n,u)),n=Za(e,t),n!=null&&a.push(Tn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Dv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var d=l,y=d.alternate,T=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||T===null||(y=T,n?(T=Za(l,u),T!=null&&c.unshift(Tn(l,T,y))):n||(T=Za(l,u),T!=null&&c.push(Tn(l,T,y)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Uv=/\r\n?/g,Hv=/\u0000|\uFFFD/g;function Sd(e){return(typeof e=="string"?e:""+e).replace(Uv,`
|
|
49
|
-
`).replace(Hv,"")}function jd(e,t){return t=Sd(t),Sd(e)===t}function be(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ia(e,""+a);break;case"className":Kn(e,"class",a);break;case"tabIndex":Kn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(e,l,a);break;case"style":br(e,a,u);break;case"data":if(t!=="object"){Kn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=$n(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&be(e,t,"name",n.name,n,null),be(e,t,"formEncType",n.formEncType,n,null),be(e,t,"formMethod",n.formMethod,n,null),be(e,t,"formTarget",n.formTarget,n,null)):(be(e,t,"encType",n.encType,n,null),be(e,t,"method",n.method,n,null),be(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=$n(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=$n(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Vn(e,"popover",a);break;case"xlinkActuate":kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=rh.get(l)||l,Vn(e,l,a))}}function ds(e,t,l,a,n,u){switch(l){case"style":br(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ia(e,a):(typeof a=="number"||typeof a=="bigint")&&ia(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!or.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Fe]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Vn(e,l,a)}}}function Ve(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,u,c,l,null)}}n&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var d=u=c=n=null,y=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var C=l[a];if(C!=null)switch(a){case"name":n=C;break;case"type":c=C;break;case"checked":y=C;break;case"defaultChecked":T=C;break;case"value":u=C;break;case"defaultValue":d=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,t));break;default:be(e,t,a,C,l,null)}}yr(e,u,d,y,T,c,n,!1);return;case"select":ce("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:be(e,t,n,d,l,null)}t=u,l=c,e.multiple=!!a,t!=null?ua(e,!!a,t,!1):l!=null&&ua(e,!!a,l,!0);return;case"textarea":ce("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:be(e,t,c,d,l,null)}xr(e,a,n,u);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:be(e,t,y,a,l,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<Nn.length;a++)ce(Nn[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,T,a,l,null)}return;default:if(zi(t)){for(C in l)l.hasOwnProperty(C)&&(a=l[C],a!==void 0&&ds(e,t,C,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&be(e,t,d,a,l,null))}function Bv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,d=null,y=null,T=null,C=null;for(R in l){var B=l[R];if(l.hasOwnProperty(R)&&B!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":y=B;default:a.hasOwnProperty(R)||be(e,t,R,null,a,B)}}for(var z in a){var R=a[z];if(B=l[z],a.hasOwnProperty(z)&&(R!=null||B!=null))switch(z){case"type":u=R;break;case"name":n=R;break;case"checked":T=R;break;case"defaultChecked":C=R;break;case"value":c=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:R!==B&&be(e,t,z,R,a,B)}}Ni(e,c,d,y,T,C,u,n);return;case"select":R=c=d=z=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":R=y;default:a.hasOwnProperty(u)||be(e,t,u,null,a,y)}for(n in a)if(u=a[n],y=l[n],a.hasOwnProperty(n)&&(u!=null||y!=null))switch(n){case"value":z=u;break;case"defaultValue":d=u;break;case"multiple":c=u;default:u!==y&&be(e,t,n,u,a,y)}t=d,l=c,a=R,z!=null?ua(e,!!l,z,!1):!!a!=!!l&&(t!=null?ua(e,!!l,t,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":R=z=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:be(e,t,d,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":z=n;break;case"defaultValue":R=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&be(e,t,c,n,a,u)}pr(e,z,R);return;case"option":for(var J in l)if(z=l[J],l.hasOwnProperty(J)&&z!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:be(e,t,J,null,a,z)}for(y in a)if(z=a[y],R=l[y],a.hasOwnProperty(y)&&z!==R&&(z!=null||R!=null))switch(y){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:be(e,t,y,z,a,R)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in l)z=l[P],l.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P)&&be(e,t,P,null,a,z);for(T in a)if(z=a[T],R=l[T],a.hasOwnProperty(T)&&z!==R&&(z!=null||R!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:be(e,t,T,z,a,R)}return;default:if(zi(t)){for(var Se in l)z=l[Se],l.hasOwnProperty(Se)&&z!==void 0&&!a.hasOwnProperty(Se)&&ds(e,t,Se,void 0,a,z);for(C in a)z=a[C],R=l[C],!a.hasOwnProperty(C)||z===R||z===void 0&&R===void 0||ds(e,t,C,z,a,R);return}}for(var j in l)z=l[j],l.hasOwnProperty(j)&&z!=null&&!a.hasOwnProperty(j)&&be(e,t,j,null,a,z);for(B in a)z=a[B],R=l[B],!a.hasOwnProperty(B)||z===R||z==null&&R==null||be(e,t,B,z,a,R)}function Ed(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,d=n.duration;if(u&&d&&Ed(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],T=y.startTime;if(T>d)break;var C=y.transferSize,B=y.initiatorType;C&&Ed(B)&&(y=y.responseEnd,c+=C*(y<d?1:(d-T)/(y-T)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ms=null,hs=null;function Qu(e){return e.nodeType===9?e:e.ownerDocument}function Nd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Td(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function vs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ys=null;function Lv(){var e=window.event;return e&&e.type==="popstate"?e===ys?!1:(ys=e,!0):(ys=null,!1)}var zd=typeof setTimeout=="function"?setTimeout:void 0,qv=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,Yv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(kv)}:zd;function kv(e){setTimeout(function(){throw e})}function Al(e){return e==="head"}function _d(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),wa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")zn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,zn(l);for(var u=l.firstChild;u;){var c=u.nextSibling,d=u.nodeName;u[Xa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&zn(e.ownerDocument.body);l=n}while(l);wa(t)}function Md(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function ps(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ps(l),ji(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Gv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Tt(e.nextSibling),e===null)break}return null}function Xv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Tt(e.nextSibling),e===null))return null;return e}function Rd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tt(e.nextSibling),e===null))return null;return e}function xs(e){return e.data==="$?"||e.data==="$~"}function gs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Tt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var bs=null;function Od(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Tt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Cd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Dd(e,t,l){switch(t=Qu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function zn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ji(e)}var zt=new Map,Ud=new Set;function Zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var nl=Z.d;Z.d={f:Zv,r:Vv,D:Kv,C:Jv,L:$v,m:Wv,X:Iv,S:Fv,M:Pv};function Zv(){var e=nl.f(),t=Bu();return e||t}function Vv(e){var t=la(e);t!==null&&t.tag===5&&t.type==="form"?Wf(t):nl.r(e)}var Ua=typeof document>"u"?null:document;function Hd(e,t,l){var a=Ua;if(a&&typeof t=="string"&&t){var n=xt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Ud.has(n)||(Ud.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ve(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Kv(e){nl.D(e),Hd("dns-prefetch",e,null)}function Jv(e,t){nl.C(e,t),Hd("preconnect",e,t)}function $v(e,t,l){nl.L(e,t,l);var a=Ua;if(a&&e&&t){var n='link[rel="preload"][as="'+xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+xt(l.imageSizes)+'"]')):n+='[href="'+xt(e)+'"]';var u=n;switch(t){case"style":u=Ha(e);break;case"script":u=Ba(e)}zt.has(u)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),zt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(An(u))||t==="script"&&a.querySelector(_n(u))||(t=a.createElement("link"),Ve(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Wv(e,t){nl.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+xt(a)+'"][href="'+xt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ba(e)}if(!zt.has(u)&&(e=p({rel:"modulepreload",href:e},t),zt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_n(u)))return}a=l.createElement("link"),Ve(a,"link",e),Ye(a),l.head.appendChild(a)}}}function Fv(e,t,l){nl.S(e,t,l);var a=Ua;if(a&&e){var n=aa(a).hoistableStyles,u=Ha(e);t=t||"default";var c=n.get(u);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(An(u)))d.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=zt.get(u))&&Ss(e,l);var y=c=a.createElement("link");Ye(y),Ve(y,"link",e),y._p=new Promise(function(T,C){y.onload=T,y.onerror=C}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Vu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(u,c)}}}function Iv(e,t){nl.X(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=Ba(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0},t),(t=zt.get(n))&&js(e,t),u=l.createElement("script"),Ye(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Pv(e,t){nl.M(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=Ba(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0,type:"module"},t),(t=zt.get(n))&&js(e,t),u=l.createElement("script"),Ye(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Bd(e,t,l,a){var n=(n=ue.current)?Zu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ha(l.href),l=aa(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ha(l.href);var u=aa(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(An(e)))&&!u._p&&(c.instance=u,c.state.loading=5),zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zt.set(e,l),u||ey(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ba(l),l=aa(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ha(e){return'href="'+xt(e)+'"'}function An(e){return'link[rel="stylesheet"]['+e+"]"}function wd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function ey(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ve(t,"link",l),Ye(t),e.head.appendChild(t))}function Ba(e){return'[src="'+xt(e)+'"]'}function _n(e){return"script[async]"+e}function Ld(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+xt(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),Ve(a,"style",n),Vu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var u=e.querySelector(An(n));if(u)return t.state.loading|=4,t.instance=u,Ye(u),u;a=wd(l),(n=zt.get(n))&&Ss(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var c=u;return c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),Ve(u,"link",a),t.state.loading|=4,Vu(u,l.precedence,e),t.instance=u;case"script":return u=Ba(l.src),(n=e.querySelector(_n(u)))?(t.instance=n,Ye(n),n):(a=l,(n=zt.get(u))&&(a=p({},l),js(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),Ve(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Vu(a,l.precedence,e));return t.instance}function Vu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ss(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function js(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ku=null;function qd(e,t,l){if(Ku===null){var a=new Map,n=Ku=new Map;n.set(l,a)}else n=Ku,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Xa]||u[Ge]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(u):a.set(c,[u])}}return a}function Yd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ty(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function kd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ly(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ha(a.href),u=t.querySelector(An(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ye(u);return}u=t.ownerDocument||t,a=wd(a),(n=zt.get(n))&&Ss(a,n),u=u.createElement("link"),Ye(u);var c=u;c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),Ve(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Es=0;function ay(e,t){return e.stylesheets&&e.count===0&&Wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Es===0&&(Es=62500*wv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Es?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $u=null;function Wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$u=new Map,t.forEach(ny,e),$u=null,Ju.call(e))}function ny(e,t){if(!(t.state.loading&4)){var l=$u.get(e);if(l)var a=l.get(null);else{l=new Map,$u.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=Ju.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Mn={$$typeof:Q,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function uy(e,t,l,a,n,u,c,d,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xi(0),this.hiddenUpdates=xi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function Gd(e,t,l,a,n,u,c,d,y,T,C,B){return e=new uy(e,t,l,c,y,T,C,B,d),t=1,u===!0&&(t|=24),u=st(3,null,null,t),e.current=u,u.stateNode=e,t=lc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},ic(u),e}function Xd(e){return e?(e=ma,e):ma}function Qd(e,t,l,a,n,u){n=Xd(n),a.context===null?a.context=n:a.pendingContext=n,a=yl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=pl(e,a,t),l!==null&&(at(l,e,t),cn(l,e,t))}function Zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ns(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function Vd(e){if(e.tag===13||e.tag===31){var t=ql(e,67108864);t!==null&&at(t,e,67108864),Ns(e,67108864)}}function Kd(e){if(e.tag===13||e.tag===31){var t=mt();t=gi(t);var l=ql(e,t);l!==null&&at(l,e,t),Ns(e,t)}}var Fu=!0;function iy(e,t,l,a){var n=D.T;D.T=null;var u=Z.p;try{Z.p=2,Ts(e,t,l,a)}finally{Z.p=u,D.T=n}}function cy(e,t,l,a){var n=D.T;D.T=null;var u=Z.p;try{Z.p=8,Ts(e,t,l,a)}finally{Z.p=u,D.T=n}}function Ts(e,t,l,a){if(Fu){var n=zs(a);if(n===null)os(e,t,a,Iu,l),$d(e,a);else if(ry(n,e,t,l,a))a.stopPropagation();else if($d(e,a),t&4&&-1<sy.indexOf(e)){for(;n!==null;){var u=la(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Ul(u.pendingLanes);if(c!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var y=1<<31-it(c);d.entanglements[1]|=y,c&=~y}Lt(u),(he&6)===0&&(Uu=nt()+500,En(0))}}break;case 31:case 13:d=ql(u,2),d!==null&&at(d,u,2),Bu(),Ns(u,2)}if(u=zs(a),u===null&&os(e,t,a,Iu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else os(e,t,a,null,l)}}function zs(e){return e=_i(e),As(e)}var Iu=null;function As(e){if(Iu=null,e=ta(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(t),e!==null)return e;e=null}else if(l===31){if(e=A(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Iu=e,null}function Jd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Km()){case er:return 2;case tr:return 8;case kn:case Jm:return 32;case lr:return 268435456;default:return 32}default:return 32}}var _s=!1,_l=null,Ml=null,Rl=null,Rn=new Map,On=new Map,Ol=[],sy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function $d(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":Rn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":On.delete(t.pointerId)}}function Cn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=la(t),t!==null&&Vd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function ry(e,t,l,a,n){switch(t){case"focusin":return _l=Cn(_l,e,t,l,a,n),!0;case"dragenter":return Ml=Cn(Ml,e,t,l,a,n),!0;case"mouseover":return Rl=Cn(Rl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Rn.set(u,Cn(Rn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,On.set(u,Cn(On.get(u)||null,e,t,l,a,n)),!0}return!1}function Wd(e){var t=ta(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,sr(e.priority,function(){Kd(l)});return}}else if(t===31){if(t=A(l),t!==null){e.blockedOn=t,sr(e.priority,function(){Kd(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=zs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ai=a,l.target.dispatchEvent(a),Ai=null}else return t=la(l),t!==null&&Vd(t),e.blockedOn=l,!1;t.shift()}return!0}function Fd(e,t,l){Pu(e)&&l.delete(t)}function fy(){_s=!1,_l!==null&&Pu(_l)&&(_l=null),Ml!==null&&Pu(Ml)&&(Ml=null),Rl!==null&&Pu(Rl)&&(Rl=null),Rn.forEach(Fd),On.forEach(Fd)}function ei(e,t){e.blockedOn===t&&(e.blockedOn=null,_s||(_s=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,fy)))}var ti=null;function Id(e){ti!==e&&(ti=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ti===e&&(ti=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(As(a||l)===null)continue;break}var u=la(l);u!==null&&(e.splice(t,3),t-=3,zc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function wa(e){function t(y){return ei(y,e)}_l!==null&&ei(_l,e),Ml!==null&&ei(Ml,e),Rl!==null&&ei(Rl,e),Rn.forEach(t),On.forEach(t);for(var l=0;l<Ol.length;l++){var a=Ol[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ol.length&&(l=Ol[0],l.blockedOn===null);)Wd(l),l.blockedOn===null&&Ol.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[Fe]||null;if(typeof u=="function")c||Id(l);else if(c){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Fe]||null)d=c.formAction;else if(As(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Id(l)}}}function Pd(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Ms(e){this._internalRoot=e}li.prototype.render=Ms.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=mt();Qd(l,a,e,t,null,null)},li.prototype.unmount=Ms.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qd(e.current,2,null,e,null,null),Bu(),t[ea]=null}};function li(e){this._internalRoot=e}li.prototype.unstable_scheduleHydration=function(e){if(e){var t=cr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ol.length&&t!==0&&t<Ol[l].priority;l++);Ol.splice(l,0,e),l===0&&Wd(e)}};var em=f.version;if(em!=="19.2.4")throw Error(r(527,em,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=h(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var oy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ai.isDisabled&&ai.supportsFiber)try{Ya=ai.inject(oy),ut=ai}catch{}}return Un.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=io,u=co,c=so;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Gd(e,1,!1,null,null,l,a,null,n,u,c,Pd),e[ea]=t.current,fs(e),new Ms(t)},Un.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",u=io,c=co,d=so,y=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=Gd(e,1,!0,t,l??null,a,n,y,u,c,d,Pd),t.context=Xd(null),l=t.current,a=mt(),a=gi(a),n=yl(a),n.callback=null,pl(l,n,a),l=a,t.current.lanes=l,Ga(t,l),Lt(t),e[ea]=t.current,fs(e),new li(t)},Un.version="19.2.4",Un}var fm;function Sy(){if(fm)return Cs.exports;fm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Cs.exports=by(),Cs.exports}var jy=Sy();/**
|
|
48
|
+
`+a.stack}}var vi=Object.prototype.hasOwnProperty,yi=i.unstable_scheduleCallback,pi=i.unstable_cancelCallback,Zm=i.unstable_shouldYield,Vm=i.unstable_requestPaint,nt=i.unstable_now,Km=i.unstable_getCurrentPriorityLevel,er=i.unstable_ImmediatePriority,tr=i.unstable_UserBlockingPriority,kn=i.unstable_NormalPriority,Jm=i.unstable_LowPriority,lr=i.unstable_IdlePriority,$m=i.log,Wm=i.unstable_setDisableYieldValue,Ya=null,ut=null;function sl(e){if(typeof $m=="function"&&Wm(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(Ya,e)}catch{}}var it=Math.clz32?Math.clz32:Pm,Fm=Math.log,Im=Math.LN2;function Pm(e){return e>>>=0,e===0?32:31-(Fm(e)/Im|0)|0}var Gn=256,Xn=262144,Qn=4194304;function Ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Zn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Ul(a):(c&=d,c!==0?n=Ul(c):l||(l=d&~e,l!==0&&(n=Ul(l))))):(d=a&~u,d!==0?n=Ul(d):c!==0?n=Ul(c):l||(l=a&~e,l!==0&&(n=Ul(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function eh(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ar(){var e=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),e}function xi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ga(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function th(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,T=e.hiddenUpdates;for(l=c&~l;0<l;){var C=31-it(l),B=1<<C;d[C]=0,y[C]=-1;var z=T[C];if(z!==null)for(T[C]=null,C=0;C<z.length;C++){var R=z[C];R!==null&&(R.lane&=-536870913)}l&=~B}a!==0&&nr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function nr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-it(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function ur(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-it(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function ir(e,t){var l=t&-t;return l=(l&42)!==0?1:gi(l),(l&(e.suspendedLanes|t))!==0?0:l}function gi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function bi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Jd(e.type))}function sr(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var rl=Math.random().toString(36).slice(2),Ge="__reactFiber$"+rl,Fe="__reactProps$"+rl,ea="__reactContainer$"+rl,Si="__reactEvents$"+rl,lh="__reactListeners$"+rl,ah="__reactHandles$"+rl,rr="__reactResources$"+rl,Xa="__reactMarker$"+rl;function ji(e){delete e[Ge],delete e[Fe],delete e[Si],delete e[lh],delete e[ah]}function ta(e){var t=e[Ge];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ea]||l[Ge]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Cd(e);e!==null;){if(l=e[Ge])return l;e=Cd(e)}return t}e=l,l=e.parentNode}return null}function la(e){if(e=e[Ge]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function aa(e){var t=e[rr];return t||(t=e[rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[Xa]=!0}var fr=new Set,or={};function Hl(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(or[e]=t,e=0;e<t.length;e++)fr.add(t[e])}var nh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dr={},mr={};function uh(e){return vi.call(mr,e)?!0:vi.call(dr,e)?!1:nh.test(e)?mr[e]=!0:(dr[e]=!0,!1)}function Vn(e,t,l){if(uh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Kn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function kt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){if(!e._valueTracker){var t=hr(e)?"checked":"value";e._valueTracker=ih(e,t,""+e[t])}}function vr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=hr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Jn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ch=/[\n"\\]/g;function xt(e){return e.replace(ch,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ni(e,t,l,a,n,u,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ti(e,c,pt(t)):l!=null?Ti(e,c,pt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+pt(d):e.removeAttribute("name")}function yr(e,t,l,a,n,u,c,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ei(e);return}l=l!=null?""+pt(l):"",t=t!=null?""+pt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ei(e)}function Ti(e,t,l){t==="number"&&Jn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ua(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+pt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function pr(e,t,l){if(t!=null&&(t=""+pt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+pt(l):""}function xr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Ue(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=pt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ei(e)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var sh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function gr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||sh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function br(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&gr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&gr(e,u,t[u])}function zi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $n(e){return fh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gt(){}var Ai=null;function _i(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,sa=null;function Sr(e){var t=la(e);if(t&&(e=t.stateNode)){var l=e[Fe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ni(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Fe]||null;if(!n)throw Error(r(90));Ni(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&vr(a)}break e;case"textarea":pr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ua(e,!!l.multiple,t,!1)}}}var Mi=!1;function jr(e,t,l){if(Mi)return e(t,l);Mi=!0;try{var a=e(t);return a}finally{if(Mi=!1,(ca!==null||sa!==null)&&(Bu(),ca&&(t=ca,e=sa,sa=ca=null,Sr(t),e)))for(t=0;t<e.length;t++)Sr(e[t])}}function Za(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Fe]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=!1;if(Xt)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Ri=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Ri=!1}var fl=null,Oi=null,Wn=null;function Er(){if(Wn)return Wn;var e,t=Oi,l=t.length,a,n="value"in fl?fl.value:fl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return Wn=n.slice(e,1<a?1-a:void 0)}function Fn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function In(){return!0}function Nr(){return!1}function Ie(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?In:Nr,this.isPropagationStopped=Nr,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=In)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=In)},persist:function(){},isPersistent:In}),t}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Ie(Bl),Ka=p({},Bl,{view:0,detail:0}),oh=Ie(Ka),Ci,Di,Ja,eu=p({},Ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ja&&(Ja&&e.type==="mousemove"?(Ci=e.screenX-Ja.screenX,Di=e.screenY-Ja.screenY):Di=Ci=0,Ja=e),Ci)},movementY:function(e){return"movementY"in e?e.movementY:Di}}),Tr=Ie(eu),dh=p({},eu,{dataTransfer:0}),mh=Ie(dh),hh=p({},Ka,{relatedTarget:0}),Ui=Ie(hh),vh=p({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),yh=Ie(vh),ph=p({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xh=Ie(ph),gh=p({},Bl,{data:0}),zr=Ie(gh),bh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Eh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jh[e])?!!t[e]:!1}function Hi(){return Eh}var Nh=p({},Ka,{key:function(e){if(e.key){var t=bh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hi,charCode:function(e){return e.type==="keypress"?Fn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Th=Ie(Nh),zh=p({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ar=Ie(zh),Ah=p({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hi}),_h=Ie(Ah),Mh=p({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rh=Ie(Mh),Oh=p({},eu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ch=Ie(Oh),Dh=p({},Bl,{newState:0,oldState:0}),Uh=Ie(Dh),Hh=[9,13,27,32],Bi=Xt&&"CompositionEvent"in window,$a=null;Xt&&"documentMode"in document&&($a=document.documentMode);var Bh=Xt&&"TextEvent"in window&&!$a,_r=Xt&&(!Bi||$a&&8<$a&&11>=$a),Mr=" ",Rr=!1;function Or(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function wh(e,t){switch(e){case"compositionend":return Cr(t);case"keypress":return t.which!==32?null:(Rr=!0,Mr);case"textInput":return e=t.data,e===Mr&&Rr?null:e;default:return null}}function Lh(e,t){if(ra)return e==="compositionend"||!Bi&&Or(e,t)?(e=Er(),Wn=Oi=fl=null,ra=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _r&&t.locale!=="ko"?null:t.data;default:return null}}var qh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qh[e.type]:t==="textarea"}function Ur(e,t,l,a){ca?sa?sa.push(a):sa=[a]:ca=a,t=Xu(t,"onChange"),0<t.length&&(l=new Pn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Wa=null,Fa=null;function Yh(e){xd(e,0)}function tu(e){var t=Qa(e);if(vr(t))return e}function Hr(e,t){if(e==="change")return t}var Br=!1;if(Xt){var wi;if(Xt){var Li="oninput"in document;if(!Li){var wr=document.createElement("div");wr.setAttribute("oninput","return;"),Li=typeof wr.oninput=="function"}wi=Li}else wi=!1;Br=wi&&(!document.documentMode||9<document.documentMode)}function Lr(){Wa&&(Wa.detachEvent("onpropertychange",qr),Fa=Wa=null)}function qr(e){if(e.propertyName==="value"&&tu(Fa)){var t=[];Ur(t,Fa,e,_i(e)),jr(Yh,t)}}function kh(e,t,l){e==="focusin"?(Lr(),Wa=t,Fa=l,Wa.attachEvent("onpropertychange",qr)):e==="focusout"&&Lr()}function Gh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(Fa)}function Xh(e,t){if(e==="click")return tu(t)}function Qh(e,t){if(e==="input"||e==="change")return tu(t)}function Zh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:Zh;function Ia(e,t){if(ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!vi.call(t,n)||!ct(e[n],t[n]))return!1}return!0}function Yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kr(e,t){var l=Yr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Yr(l)}}function Gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Jn(e.document)}return t}function qi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Vh=Xt&&"documentMode"in document&&11>=document.documentMode,fa=null,Yi=null,Pa=null,ki=!1;function Qr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ki||fa==null||fa!==Jn(a)||(a=fa,"selectionStart"in a&&qi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pa&&Ia(Pa,a)||(Pa=a,a=Xu(Yi,"onSelect"),0<a.length&&(t=new Pn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=fa)))}function wl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var oa={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},Gi={},Zr={};Xt&&(Zr=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Ll(e){if(Gi[e])return Gi[e];if(!oa[e])return e;var t=oa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Zr)return Gi[e]=t[l];return e}var Vr=Ll("animationend"),Kr=Ll("animationiteration"),Jr=Ll("animationstart"),Kh=Ll("transitionrun"),Jh=Ll("transitionstart"),$h=Ll("transitioncancel"),$r=Ll("transitionend"),Wr=new Map,Xi="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Xi.push("scrollEnd");function _t(e,t){Wr.set(e,t),Hl(t,[e])}var lu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},gt=[],da=0,Qi=0;function au(){for(var e=da,t=Qi=da=0;t<e;){var l=gt[t];gt[t++]=null;var a=gt[t];gt[t++]=null;var n=gt[t];gt[t++]=null;var u=gt[t];if(gt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&Fr(l,n,u)}}function nu(e,t,l,a){gt[da++]=e,gt[da++]=t,gt[da++]=l,gt[da++]=a,Qi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Zi(e,t,l,a){return nu(e,t,l,a),uu(e)}function ql(e,t){return nu(e,null,null,t),uu(e)}function Fr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-it(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function uu(e){if(50<jn)throw jn=0,es=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function Wh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,l,a){return new Wh(e,t,l,a)}function Vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qt(e,t){var l=e.alternate;return l===null?(l=st(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ir(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")Vi(e)&&(c=1);else if(typeof e=="string")c=ty(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ne:return e=st(31,l,t,n),e.elementType=Ne,e.lanes=u,e;case Q:return Yl(l.children,n,u,t);case G:c=8,n|=24;break;case O:return e=st(12,l,t,n|2),e.elementType=O,e.lanes=u,e;case w:return e=st(13,l,t,n),e.elementType=w,e.lanes=u,e;case Z:return e=st(19,l,t,n),e.elementType=Z,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:c=10;break e;case q:c=9;break e;case M:c=11;break e;case J:c=14;break e;case se:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=st(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Yl(e,t,l,a){return e=st(7,e,a,t),e.lanes=l,e}function Ki(e,t,l){return e=st(6,e,null,t),e.lanes=l,e}function Pr(e){var t=st(18,null,null,0);return t.stateNode=e,t}function Ji(e,t,l){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ef=new WeakMap;function bt(e,t){if(typeof e=="object"&&e!==null){var l=ef.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ps(t)},ef.set(e,t),t)}return{value:e,source:t,stack:Ps(t)}}var ha=[],va=0,cu=null,en=0,St=[],jt=0,ol=null,Ht=1,Bt="";function Zt(e,t){ha[va++]=en,ha[va++]=cu,cu=e,en=t}function tf(e,t,l){St[jt++]=Ht,St[jt++]=Bt,St[jt++]=ol,ol=e;var a=Ht;e=Bt;var n=32-it(a)-1;a&=~(1<<n),l+=1;var u=32-it(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Ht=1<<32-it(t)+n|l<<n|a,Bt=u+e}else Ht=1<<u|l<<n|a,Bt=e}function $i(e){e.return!==null&&(Zt(e,1),tf(e,1,0))}function Wi(e){for(;e===cu;)cu=ha[--va],ha[va]=null,en=ha[--va],ha[va]=null;for(;e===ol;)ol=St[--jt],St[jt]=null,Bt=St[--jt],St[jt]=null,Ht=St[--jt],St[jt]=null}function lf(e,t){St[jt++]=Ht,St[jt++]=Bt,St[jt++]=ol,Ht=t.id,Bt=t.overflow,ol=e}var Xe=null,Te=null,oe=!1,dl=null,Et=!1,Fi=Error(r(519));function ml(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tn(bt(t,e)),Fi}function af(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ge]=e,t[Fe]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)ce(Nn[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),yr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),xr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||jd(t.textContent,l)?(a.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||ml(e,!0)}function nf(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:Et=!1;return;case 27:case 3:Et=!0;return;default:Xe=Xe.return}}function ya(e){if(e!==Xe)return!1;if(!oe)return nf(e),oe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||vs(e.type,e.memoizedProps)),l=!l),l&&Te&&ml(e),nf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Te=Od(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Te=Od(e)}else t===27?(t=Te,Al(e.type)?(e=bs,bs=null,Te=e):Te=t):Te=Xe?Tt(e.stateNode.nextSibling):null;return!0}function kl(){Te=Xe=null,oe=!1}function Ii(){var e=dl;return e!==null&&(lt===null?lt=e:lt.push.apply(lt,e),dl=null),e}function tn(e){dl===null?dl=[e]:dl.push(e)}var Pi=b(null),Gl=null,Vt=null;function hl(e,t,l){K(Pi,t._currentValue),t._currentValue=l}function Kt(e){e._currentValue=Pi.current,L(Pi)}function ec(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function tc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var y=0;y<t.length;y++)if(d.context===t[y]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),ec(u.return,l,e),a||(c=null);break e}u=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),ec(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function pa(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;ct(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===ve.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Mn):e=[Mn])}n=n.return}e!==null&&tc(t,e,l,a),t.flags|=262144}function su(e){for(e=e.firstContext;e!==null;){if(!ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){Gl=e,Vt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qe(e){return uf(Gl,e)}function ru(e,t){return Gl===null&&Xl(e),uf(e,t)}function uf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Vt===null){if(e===null)throw Error(r(308));Vt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vt=Vt.next=t;return l}var Fh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ih=i.unstable_scheduleCallback,Ph=i.unstable_NormalPriority,He={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new Fh,data:new Map,refCount:0}}function ln(e){e.refCount--,e.refCount===0&&Ih(Ph,function(){e.controller.abort()})}var an=null,ac=0,xa=0,ga=null;function ev(e,t){if(an===null){var l=an=[];ac=0,xa=is(),ga={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ac++,t.then(cf,cf),t}function cf(){if(--ac===0&&an!==null){ga!==null&&(ga.status="fulfilled");var e=an;an=null,xa=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tv(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var sf=D.S;D.S=function(e,t){Vo=nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ev(e,t),sf!==null&&sf(e,t)};var Ql=b(null);function nc(){var e=Ql.current;return e!==null?e:Ee.pooledCache}function fu(e,t){t===null?K(Ql,Ql.current):K(Ql,t.pool)}function rf(){var e=nc();return e===null?null:{parent:He._currentValue,pool:e}}var ba=Error(r(460)),uc=Error(r(474)),ou=Error(r(542)),du={then:function(){}};function ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function of(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Gt,Gt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e;default:if(typeof t.status=="string")t.then(Gt,Gt);else{if(e=Ee,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e}throw Vl=t,ba}}function Zl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Vl=l,ba):l}}var Vl=null;function df(){if(Vl===null)throw Error(r(459));var e=Vl;return Vl=null,e}function mf(e){if(e===ba||e===ou)throw Error(r(483))}var Sa=null,nn=0;function mu(e){var t=nn;return nn+=1,Sa===null&&(Sa=[]),of(Sa,e,t)}function un(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===H?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function hf(e){function t(j,g){if(e){var N=j.deletions;N===null?(j.deletions=[g],j.flags|=16):N.push(g)}}function l(j,g){if(!e)return null;for(;g!==null;)t(j,g),g=g.sibling;return null}function a(j){for(var g=new Map;j!==null;)j.key!==null?g.set(j.key,j):g.set(j.index,j),j=j.sibling;return g}function n(j,g){return j=Qt(j,g),j.index=0,j.sibling=null,j}function u(j,g,N){return j.index=N,e?(N=j.alternate,N!==null?(N=N.index,N<g?(j.flags|=67108866,g):N):(j.flags|=67108866,g)):(j.flags|=1048576,g)}function c(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function d(j,g,N,U){return g===null||g.tag!==6?(g=Ki(N,j.mode,U),g.return=j,g):(g=n(g,N),g.return=j,g)}function y(j,g,N,U){var I=N.type;return I===Q?C(j,g,N.props.children,U,N.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===se&&Zl(I)===g.type)?(g=n(g,N.props),un(g,N),g.return=j,g):(g=iu(N.type,N.key,N.props,null,j.mode,U),un(g,N),g.return=j,g)}function T(j,g,N,U){return g===null||g.tag!==4||g.stateNode.containerInfo!==N.containerInfo||g.stateNode.implementation!==N.implementation?(g=Ji(N,j.mode,U),g.return=j,g):(g=n(g,N.children||[]),g.return=j,g)}function C(j,g,N,U,I){return g===null||g.tag!==7?(g=Yl(N,j.mode,U,I),g.return=j,g):(g=n(g,N),g.return=j,g)}function B(j,g,N){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ki(""+g,j.mode,N),g.return=j,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case X:return N=iu(g.type,g.key,g.props,null,j.mode,N),un(N,g),N.return=j,N;case k:return g=Ji(g,j.mode,N),g.return=j,g;case se:return g=Zl(g),B(j,g,N)}if(Ue(g)||Ke(g))return g=Yl(g,j.mode,N,null),g.return=j,g;if(typeof g.then=="function")return B(j,mu(g),N);if(g.$$typeof===Y)return B(j,ru(j,g),N);hu(j,g)}return null}function z(j,g,N,U){var I=g!==null?g.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return I!==null?null:d(j,g,""+N,U);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case X:return N.key===I?y(j,g,N,U):null;case k:return N.key===I?T(j,g,N,U):null;case se:return N=Zl(N),z(j,g,N,U)}if(Ue(N)||Ke(N))return I!==null?null:C(j,g,N,U,null);if(typeof N.then=="function")return z(j,g,mu(N),U);if(N.$$typeof===Y)return z(j,g,ru(j,N),U);hu(j,N)}return null}function R(j,g,N,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return j=j.get(N)||null,d(g,j,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case X:return j=j.get(U.key===null?N:U.key)||null,y(g,j,U,I);case k:return j=j.get(U.key===null?N:U.key)||null,T(g,j,U,I);case se:return U=Zl(U),R(j,g,N,U,I)}if(Ue(U)||Ke(U))return j=j.get(N)||null,C(g,j,U,I,null);if(typeof U.then=="function")return R(j,g,N,mu(U),I);if(U.$$typeof===Y)return R(j,g,N,ru(g,U),I);hu(g,U)}return null}function $(j,g,N,U){for(var I=null,de=null,F=g,ne=g=0,fe=null;F!==null&&ne<N.length;ne++){F.index>ne?(fe=F,F=null):fe=F.sibling;var me=z(j,F,N[ne],U);if(me===null){F===null&&(F=fe);break}e&&F&&me.alternate===null&&t(j,F),g=u(me,g,ne),de===null?I=me:de.sibling=me,de=me,F=fe}if(ne===N.length)return l(j,F),oe&&Zt(j,ne),I;if(F===null){for(;ne<N.length;ne++)F=B(j,N[ne],U),F!==null&&(g=u(F,g,ne),de===null?I=F:de.sibling=F,de=F);return oe&&Zt(j,ne),I}for(F=a(F);ne<N.length;ne++)fe=R(F,j,ne,N[ne],U),fe!==null&&(e&&fe.alternate!==null&&F.delete(fe.key===null?ne:fe.key),g=u(fe,g,ne),de===null?I=fe:de.sibling=fe,de=fe);return e&&F.forEach(function(Cl){return t(j,Cl)}),oe&&Zt(j,ne),I}function P(j,g,N,U){if(N==null)throw Error(r(151));for(var I=null,de=null,F=g,ne=g=0,fe=null,me=N.next();F!==null&&!me.done;ne++,me=N.next()){F.index>ne?(fe=F,F=null):fe=F.sibling;var Cl=z(j,F,me.value,U);if(Cl===null){F===null&&(F=fe);break}e&&F&&Cl.alternate===null&&t(j,F),g=u(Cl,g,ne),de===null?I=Cl:de.sibling=Cl,de=Cl,F=fe}if(me.done)return l(j,F),oe&&Zt(j,ne),I;if(F===null){for(;!me.done;ne++,me=N.next())me=B(j,me.value,U),me!==null&&(g=u(me,g,ne),de===null?I=me:de.sibling=me,de=me);return oe&&Zt(j,ne),I}for(F=a(F);!me.done;ne++,me=N.next())me=R(F,j,ne,me.value,U),me!==null&&(e&&me.alternate!==null&&F.delete(me.key===null?ne:me.key),g=u(me,g,ne),de===null?I=me:de.sibling=me,de=me);return e&&F.forEach(function(dy){return t(j,dy)}),oe&&Zt(j,ne),I}function Se(j,g,N,U){if(typeof N=="object"&&N!==null&&N.type===Q&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case X:e:{for(var I=N.key;g!==null;){if(g.key===I){if(I=N.type,I===Q){if(g.tag===7){l(j,g.sibling),U=n(g,N.props.children),U.return=j,j=U;break e}}else if(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===se&&Zl(I)===g.type){l(j,g.sibling),U=n(g,N.props),un(U,N),U.return=j,j=U;break e}l(j,g);break}else t(j,g);g=g.sibling}N.type===Q?(U=Yl(N.props.children,j.mode,U,N.key),U.return=j,j=U):(U=iu(N.type,N.key,N.props,null,j.mode,U),un(U,N),U.return=j,j=U)}return c(j);case k:e:{for(I=N.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===N.containerInfo&&g.stateNode.implementation===N.implementation){l(j,g.sibling),U=n(g,N.children||[]),U.return=j,j=U;break e}else{l(j,g);break}else t(j,g);g=g.sibling}U=Ji(N,j.mode,U),U.return=j,j=U}return c(j);case se:return N=Zl(N),Se(j,g,N,U)}if(Ue(N))return $(j,g,N,U);if(Ke(N)){if(I=Ke(N),typeof I!="function")throw Error(r(150));return N=I.call(N),P(j,g,N,U)}if(typeof N.then=="function")return Se(j,g,mu(N),U);if(N.$$typeof===Y)return Se(j,g,ru(j,N),U);hu(j,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,g!==null&&g.tag===6?(l(j,g.sibling),U=n(g,N),U.return=j,j=U):(l(j,g),U=Ki(N,j.mode,U),U.return=j,j=U),c(j)):l(j,g)}return function(j,g,N,U){try{nn=0;var I=Se(j,g,N,U);return Sa=null,I}catch(F){if(F===ba||F===ou)throw F;var de=st(29,F,null,j.mode);return de.lanes=U,de.return=j,de}finally{}}}var Kl=hf(!0),vf=hf(!1),vl=!1;function ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(he&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=uu(e),Fr(e,null,l),t}return nu(e,a,t,l),uu(e)}function cn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ur(e,l)}}function sc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var rc=!1;function sn(){if(rc){var e=ga;if(e!==null)throw e}}function rn(e,t,l,a){rc=!1;var n=e.updateQueue;vl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var y=d,T=y.next;y.next=null,c===null?u=T:c.next=T,c=y;var C=e.alternate;C!==null&&(C=C.updateQueue,d=C.lastBaseUpdate,d!==c&&(d===null?C.firstBaseUpdate=T:d.next=T,C.lastBaseUpdate=y))}if(u!==null){var B=n.baseState;c=0,C=T=y=null,d=u;do{var z=d.lane&-536870913,R=z!==d.lane;if(R?(re&z)===z:(a&z)===z){z!==0&&z===xa&&(rc=!0),C!==null&&(C=C.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var $=e,P=d;z=t;var Se=l;switch(P.tag){case 1:if($=P.payload,typeof $=="function"){B=$.call(Se,B,z);break e}B=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=P.payload,z=typeof $=="function"?$.call(Se,B,z):$,z==null)break e;B=p({},B,z);break e;case 2:vl=!0}}z=d.callback,z!==null&&(e.flags|=64,R&&(e.flags|=8192),R=n.callbacks,R===null?n.callbacks=[z]:R.push(z))}else R={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},C===null?(T=C=R,y=B):C=C.next=R,c|=z;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;R=d,d=R.next,R.next=null,n.lastBaseUpdate=R,n.shared.pending=null}}while(!0);C===null&&(y=B),n.baseState=y,n.firstBaseUpdate=T,n.lastBaseUpdate=C,u===null&&(n.shared.lanes=0),jl|=c,e.lanes=c,e.memoizedState=B}}function yf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function pf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)yf(l[e],t)}var ja=b(null),vu=b(0);function xf(e,t){e=ll,K(vu,e),K(ja,t),ll=e|t.baseLanes}function fc(){K(vu,ll),K(ja,ja.current)}function oc(){ll=vu.current,L(ja),L(vu)}var rt=b(null),Nt=null;function xl(e){var t=e.alternate;K(Ce,Ce.current&1),K(rt,e),Nt===null&&(t===null||ja.current!==null||t.memoizedState!==null)&&(Nt=e)}function dc(e){K(Ce,Ce.current),K(rt,e),Nt===null&&(Nt=e)}function gf(e){e.tag===22?(K(Ce,Ce.current),K(rt,e),Nt===null&&(Nt=e)):gl()}function gl(){K(Ce,Ce.current),K(rt,rt.current)}function ft(e){L(rt),Nt===e&&(Nt=null),L(Ce)}var Ce=b(0);function yu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||xs(l)||gs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Jt=0,ae=null,ge=null,Be=null,pu=!1,Ea=!1,Jl=!1,xu=0,fn=0,Na=null,lv=0;function Me(){throw Error(r(321))}function mc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ct(e[l],t[l]))return!1;return!0}function hc(e,t,l,a,n,u){return Jt=u,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?lo:Mc,Jl=!1,u=l(a,n),Jl=!1,Ea&&(u=Sf(t,l,a,n)),bf(e),u}function bf(e){D.H=mn;var t=ge!==null&&ge.next!==null;if(Jt=0,Be=ge=ae=null,pu=!1,fn=0,Na=null,t)throw Error(r(300));e===null||we||(e=e.dependencies,e!==null&&su(e)&&(we=!0))}function Sf(e,t,l,a){ae=e;var n=0;do{if(Ea&&(Na=null),fn=0,Ea=!1,25<=n)throw Error(r(301));if(n+=1,Be=ge=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=ao,u=t(l,a)}while(Ea);return u}function av(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?on(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(ae.flags|=1024),t}function vc(){var e=xu!==0;return xu=0,e}function yc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function pc(e){if(pu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pu=!1}Jt=0,Be=ge=ae=null,Ea=!1,fn=xu=0,Na=null}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ae.memoizedState=Be=e:Be=Be.next=e,Be}function De(){if(ge===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=Be===null?ae.memoizedState:Be.next;if(t!==null)Be=t,ge=e;else{if(e===null)throw ae.alternate===null?Error(r(467)):Error(r(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},Be===null?ae.memoizedState=Be=e:Be=Be.next=e}return Be}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function on(e){var t=fn;return fn+=1,Na===null&&(Na=[]),e=of(Na,e,t),t=ae,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?lo:Mc),e}function bu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return on(e);if(e.$$typeof===Y)return Qe(e)}throw Error(r(438,String(e)))}function xc(e){var t=null,l=ae.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ae.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=gu(),ae.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Dt;return t.index++,l}function $t(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=De();return gc(t,ge,e)}function gc(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=c=null,y=null,T=t,C=!1;do{var B=T.lane&-536870913;if(B!==T.lane?(re&B)===B:(Jt&B)===B){var z=T.revertLane;if(z===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),B===xa&&(C=!0);else if((Jt&z)===z){T=T.next,z===xa&&(C=!0);continue}else B={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(d=y=B,c=u):y=y.next=B,ae.lanes|=z,jl|=z;B=T.action,Jl&&l(u,B),u=T.hasEagerState?T.eagerState:l(u,B)}else z={lane:B,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(d=y=z,c=u):y=y.next=z,ae.lanes|=B,jl|=B;T=T.next}while(T!==null&&T!==t);if(y===null?c=u:y.next=d,!ct(u,e.memoizedState)&&(we=!0,C&&(l=ga,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=y,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function bc(e){var t=De(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);ct(u,t.memoizedState)||(we=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function jf(e,t,l){var a=ae,n=De(),u=oe;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!ct((ge||n).memoizedState,l);if(c&&(n.memoizedState=l,we=!0),n=n.queue,Ec(Tf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,Ta(9,{destroy:void 0},Nf.bind(null,a,n,l,t),null),Ee===null)throw Error(r(349));u||(Jt&127)!==0||Ef(a,t,l)}return l}function Ef(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=gu(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Nf(e,t,l,a){t.value=l,t.getSnapshot=a,zf(t)&&Af(e)}function Tf(e,t,l){return l(function(){zf(t)&&Af(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ct(e,l)}catch{return!0}}function Af(e){var t=ql(e,2);t!==null&&at(t,e,2)}function Sc(e){var t=We();if(typeof e=="function"){var l=e;if(e=l(),Jl){sl(!0);try{l()}finally{sl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:e},t}function _f(e,t,l,a){return e.baseState=l,gc(e,ge,typeof a=="function"?a:$t)}function nv(e,t,l,a,n){if(Nu(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Mf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Mf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=D.T,c={};D.T=c;try{var d=l(n,a),y=D.S;y!==null&&y(c,d),Rf(e,t,d)}catch(T){jc(e,t,T)}finally{u!==null&&c.types!==null&&(u.types=c.types),D.T=u}}else try{u=l(n,a),Rf(e,t,u)}catch(T){jc(e,t,T)}}function Rf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Of(e,t,a)},function(a){return jc(e,t,a)}):Of(e,t,l)}function Of(e,t,l){t.status="fulfilled",t.value=l,Cf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Mf(e,l)))}function jc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Cf(t),t=t.next;while(t!==a)}e.action=null}function Cf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Df(e,t){return t}function Uf(e,t){if(oe){var l=Ee.formState;if(l!==null){e:{var a=ae;if(oe){if(Te){t:{for(var n=Te,u=Et;n.nodeType!==8;){if(!u){n=null;break t}if(n=Tt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Te=Tt(n.nextSibling),a=n.data==="F!";break e}}ml(a)}a=!1}a&&(t=l[0])}}return l=We(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Df,lastRenderedState:t},l.queue=a,l=Pf.bind(null,ae,a),a.dispatch=l,a=Sc(!1),u=_c.bind(null,ae,!1,a.queue),a=We(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=nv.bind(null,ae,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Hf(e){var t=De();return Bf(t,ge,e)}function Bf(e,t,l){if(t=gc(e,t,Df)[0],e=Su($t)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=on(t)}catch(c){throw c===ba?ou:c}else a=t;t=De();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,Ta(9,{destroy:void 0},uv.bind(null,n,l),null)),[a,u,e]}function uv(e,t){e.action=t}function wf(e){var t=De(),l=ge;if(l!==null)return Bf(t,l,e);De(),t=t.memoizedState,l=De();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ta(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=gu(),ae.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Lf(){return De().memoizedState}function ju(e,t,l,a){var n=We();ae.flags|=e,n.memoizedState=Ta(1|t,{destroy:void 0},l,a===void 0?null:a)}function Eu(e,t,l,a){var n=De();a=a===void 0?null:a;var u=n.memoizedState.inst;ge!==null&&a!==null&&mc(a,ge.memoizedState.deps)?n.memoizedState=Ta(t,u,l,a):(ae.flags|=e,n.memoizedState=Ta(1|t,u,l,a))}function qf(e,t){ju(8390656,8,e,t)}function Ec(e,t){Eu(2048,8,e,t)}function iv(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=gu(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Yf(e){var t=De().memoizedState;return iv({ref:t,nextImpl:e}),function(){if((he&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function kf(e,t){return Eu(4,2,e,t)}function Gf(e,t){return Eu(4,4,e,t)}function Xf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qf(e,t,l){l=l!=null?l.concat([e]):null,Eu(4,4,Xf.bind(null,t,e),l)}function Nc(){}function Zf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&mc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Vf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&mc(t,a[1]))return a[0];if(a=e(),Jl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a}function Tc(e,t,l){return l===void 0||(Jt&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Jo(),ae.lanes|=e,jl|=e,l)}function Kf(e,t,l,a){return ct(l,t)?l:ja.current!==null?(e=Tc(e,l,a),ct(e,t)||(we=!0),e):(Jt&42)===0||(Jt&1073741824)!==0&&(re&261930)===0?(we=!0,e.memoizedState=l):(e=Jo(),ae.lanes|=e,jl|=e,t)}function Jf(e,t,l,a,n){var u=V.p;V.p=u!==0&&8>u?u:8;var c=D.T,d={};D.T=d,_c(e,!1,t,l);try{var y=n(),T=D.S;if(T!==null&&T(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var C=tv(y,a);dn(e,t,C,mt(e))}else dn(e,t,a,mt(e))}catch(B){dn(e,t,{then:function(){},status:"rejected",reason:B},mt())}finally{V.p=u,c!==null&&d.types!==null&&(c.types=d.types),D.T=c}}function cv(){}function zc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=$f(e).queue;Jf(e,n,t,ee,l===null?cv:function(){return Wf(e),l(a)})}function $f(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=$f(e);t.next===null&&(t=e.alternate.memoizedState),dn(e,t.next.queue,{},mt())}function Ac(){return Qe(Mn)}function Ff(){return De().memoizedState}function If(){return De().memoizedState}function sv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=mt();e=yl(l);var a=pl(t,e,l);a!==null&&(at(a,t,l),cn(a,t,l)),t={cache:lc()},e.payload=t;return}t=t.return}}function rv(e,t,l){var a=mt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nu(e)?eo(t,l):(l=Zi(e,t,l,a),l!==null&&(at(l,e,a),to(l,t,a)))}function Pf(e,t,l){var a=mt();dn(e,t,l,a)}function dn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Nu(e))eo(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,d=u(c,l);if(n.hasEagerState=!0,n.eagerState=d,ct(d,c))return nu(e,t,n,0),Ee===null&&au(),!1}catch{}finally{}if(l=Zi(e,t,n,a),l!==null)return at(l,e,a),to(l,t,a),!0}return!1}function _c(e,t,l,a){if(a={lane:2,revertLane:is(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nu(e)){if(t)throw Error(r(479))}else t=Zi(e,l,a,2),t!==null&&at(t,e,2)}function Nu(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function eo(e,t){Ea=pu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function to(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ur(e,l)}}var mn={readContext:Qe,use:bu,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useLayoutEffect:Me,useInsertionEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useSyncExternalStore:Me,useId:Me,useHostTransitionStatus:Me,useFormState:Me,useActionState:Me,useOptimistic:Me,useMemoCache:Me,useCacheRefresh:Me};mn.useEffectEvent=Me;var lo={readContext:Qe,use:bu,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:qf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ju(4194308,4,Xf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ju(4194308,4,e,t)},useInsertionEffect:function(e,t){ju(4,2,e,t)},useMemo:function(e,t){var l=We();t=t===void 0?null:t;var a=e();if(Jl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=We();if(l!==void 0){var n=l(t);if(Jl){sl(!0);try{l(t)}finally{sl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=rv.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:function(e){e=Sc(e);var t=e.queue,l=Pf.bind(null,ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Nc,useDeferredValue:function(e,t){var l=We();return Tc(l,e,t)},useTransition:function(){var e=Sc(!1);return e=Jf.bind(null,ae,e.queue,!0,!1),We().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,n=We();if(oe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ee===null)throw Error(r(349));(re&127)!==0||Ef(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,qf(Tf.bind(null,a,u,e),[e]),a.flags|=2048,Ta(9,{destroy:void 0},Nf.bind(null,a,u,l,t),null),l},useId:function(){var e=We(),t=Ee.identifierPrefix;if(oe){var l=Bt,a=Ht;l=(a&~(1<<32-it(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=xu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=lv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ac,useFormState:Uf,useActionState:Uf,useOptimistic:function(e){var t=We();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=_c.bind(null,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:xc,useCacheRefresh:function(){return We().memoizedState=sv.bind(null,ae)},useEffectEvent:function(e){var t=We(),l={impl:e};return t.memoizedState=l,function(){if((he&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Mc={readContext:Qe,use:bu,useCallback:Zf,useContext:Qe,useEffect:Ec,useImperativeHandle:Qf,useInsertionEffect:kf,useLayoutEffect:Gf,useMemo:Vf,useReducer:Su,useRef:Lf,useState:function(){return Su($t)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return Kf(l,ge.memoizedState,e,t)},useTransition:function(){var e=Su($t)[0],t=De().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:jf,useId:Ff,useHostTransitionStatus:Ac,useFormState:Hf,useActionState:Hf,useOptimistic:function(e,t){var l=De();return _f(l,ge,e,t)},useMemoCache:xc,useCacheRefresh:If};Mc.useEffectEvent=Yf;var ao={readContext:Qe,use:bu,useCallback:Zf,useContext:Qe,useEffect:Ec,useImperativeHandle:Qf,useInsertionEffect:kf,useLayoutEffect:Gf,useMemo:Vf,useReducer:bc,useRef:Lf,useState:function(){return bc($t)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return ge===null?Tc(l,e,t):Kf(l,ge.memoizedState,e,t)},useTransition:function(){var e=bc($t)[0],t=De().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:jf,useId:Ff,useHostTransitionStatus:Ac,useFormState:wf,useActionState:wf,useOptimistic:function(e,t){var l=De();return ge!==null?_f(l,ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:xc,useCacheRefresh:If};ao.useEffectEvent=Yf;function Rc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Oc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=mt(),n=yl(a);n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=mt(),n=yl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=mt(),a=yl(l);a.tag=2,t!=null&&(a.callback=t),t=pl(e,a,l),t!==null&&(at(t,e,l),cn(t,e,l))}};function no(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Ia(l,a)||!Ia(n,u):!0}function uo(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Oc.enqueueReplaceState(t,t.state,null)}function $l(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=p({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function io(e){lu(e)}function co(e){console.error(e)}function so(e){lu(e)}function Tu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ro(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Cc(e,t,l){return l=yl(l),l.tag=3,l.payload={element:null},l.callback=function(){Tu(e,t)},l}function fo(e){return e=yl(e),e.tag=3,e}function oo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){ro(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){ro(t,l,a),typeof n!="function"&&(El===null?El=new Set([this]):El.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function fv(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pa(t,l,n,!0),l=rt.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?wu():l.alternate===null&&Re===0&&(Re=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===du?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),as(e,a,n)),!1;case 22:return l.flags|=65536,a===du?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),as(e,a,n)),!1}throw Error(r(435,l.tag))}return as(e,a,n),wu(),!1}if(oe)return t=rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Fi&&(e=Error(r(422),{cause:a}),tn(bt(e,l)))):(a!==Fi&&(t=Error(r(423),{cause:a}),tn(bt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=bt(a,l),n=Cc(e.stateNode,a,n),sc(e,n),Re!==4&&(Re=2)),!1;var u=Error(r(520),{cause:a});if(u=bt(u,l),Sn===null?Sn=[u]:Sn.push(u),Re!==4&&(Re=2),t===null)return!0;a=bt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Cc(l.stateNode,a,e),sc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(El===null||!El.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=fo(n),oo(n,e,l,a),sc(l,n),!1}l=l.return}while(l!==null);return!1}var Dc=Error(r(461)),we=!1;function Ze(e,t,l,a){t.child=e===null?vf(t,null,l,a):Kl(t,e.child,l,a)}function mo(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Xl(t),a=hc(e,t,l,c,u,n),d=vc(),e!==null&&!we?(yc(e,t,n),Wt(e,t,n)):(oe&&d&&$i(t),t.flags|=1,Ze(e,t,a,n),t.child)}function ho(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Vi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,vo(e,t,u,a,n)):(e=iu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!kc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(c,a)&&e.ref===t.ref)return Wt(e,t,n)}return t.flags|=1,e=Qt(u,a),e.ref=t.ref,e.return=t,t.child=e}function vo(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Ia(u,a)&&e.ref===t.ref)if(we=!1,t.pendingProps=a=u,kc(e,n))(e.flags&131072)!==0&&(we=!0);else return t.lanes=e.lanes,Wt(e,t,n)}return Uc(e,t,l,a,n)}function yo(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return po(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fu(t,u!==null?u.cachePool:null),u!==null?xf(t,u):fc(),gf(t);else return a=t.lanes=536870912,po(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(fu(t,u.cachePool),xf(t,u),gl(),t.memoizedState=null):(e!==null&&fu(t,null),fc(),gl());return Ze(e,t,n,l),t.child}function hn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function po(e,t,l,a,n){var u=nc();return u=u===null?null:{parent:He._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&fu(t,null),fc(),gf(t),e!==null&&pa(e,t,a,!0),t.childLanes=n,null}function zu(e,t){return t=_u({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function xo(e,t,l){return Kl(t,e.child,null,l),e=zu(t,t.pendingProps),e.flags|=2,ft(t),t.memoizedState=null,e}function ov(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=zu(t,a),t.lanes=536870912,hn(null,e);if(dc(t),(e=Te)?(e=Rd(e,Et),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ol!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return zu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(dc(t),n)if(t.flags&256)t.flags&=-257,t=xo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(we||pa(e,t,l,!1),n=(l&e.childLanes)!==0,we||n){if(a=Ee,a!==null&&(c=ir(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,ql(e,c),at(a,e,c),Dc;wu(),t=xo(e,t,l)}else e=u.treeContext,Te=Tt(c.nextSibling),Xe=t,oe=!0,dl=null,Et=!1,e!==null&&lf(t,e),t=zu(t,a),t.flags|=4096;return t}return e=Qt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Au(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Uc(e,t,l,a,n){return Xl(t),l=hc(e,t,l,a,void 0,n),a=vc(),e!==null&&!we?(yc(e,t,n),Wt(e,t,n)):(oe&&a&&$i(t),t.flags|=1,Ze(e,t,l,n),t.child)}function go(e,t,l,a,n,u){return Xl(t),t.updateQueue=null,l=Sf(t,a,l,n),bf(e),a=vc(),e!==null&&!we?(yc(e,t,u),Wt(e,t,u)):(oe&&a&&$i(t),t.flags|=1,Ze(e,t,l,u),t.child)}function bo(e,t,l,a,n){if(Xl(t),t.stateNode===null){var u=ma,c=l.contextType;typeof c=="object"&&c!==null&&(u=Qe(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Oc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},ic(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?Qe(c):ma,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Rc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Oc.enqueueReplaceState(u,u.state,null),rn(t,a,u,n),sn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,y=$l(l,d);u.props=y;var T=u.context,C=l.contextType;c=ma,typeof C=="object"&&C!==null&&(c=Qe(C));var B=l.getDerivedStateFromProps;C=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,C||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||T!==c)&&uo(t,u,a,c),vl=!1;var z=t.memoizedState;u.state=z,rn(t,a,u,n),sn(),T=t.memoizedState,d||z!==T||vl?(typeof B=="function"&&(Rc(t,l,B,a),T=t.memoizedState),(y=vl||no(t,l,y,a,z,T,c))?(C||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=a,t.memoizedState=T),u.props=a,u.state=T,u.context=c,a=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,cc(e,t),c=t.memoizedProps,C=$l(l,c),u.props=C,B=t.pendingProps,z=u.context,T=l.contextType,y=ma,typeof T=="object"&&T!==null&&(y=Qe(T)),d=l.getDerivedStateFromProps,(T=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==B||z!==y)&&uo(t,u,a,y),vl=!1,z=t.memoizedState,u.state=z,rn(t,a,u,n),sn();var R=t.memoizedState;c!==B||z!==R||vl||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof d=="function"&&(Rc(t,l,d,a),R=t.memoizedState),(C=vl||no(t,l,C,a,z,R,y)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(T||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,R,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,R,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=R),u.props=a,u.state=R,u.context=y,a=C):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Au(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Kl(t,e.child,null,n),t.child=Kl(t,null,l,n)):Ze(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Wt(e,t,n),e}function So(e,t,l,a){return kl(),t.flags|=256,Ze(e,t,l,a),t.child}var Hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(e){return{baseLanes:e,cachePool:rf()}}function wc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=dt),e}function jo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Ce.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(n?xl(t):gl(),(e=Te)?(e=Rd(e,Et),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ol!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ml(t);return gs(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(gl(),n=t.mode,d=_u({mode:"hidden",children:d},n),a=Yl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,c,l),t.memoizedState=Hc,hn(null,a)):(xl(t),Lc(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(u)t.flags&256?(xl(t),t.flags&=-257,t=qc(e,t,l)):t.memoizedState!==null?(gl(),t.child=e.child,t.flags|=128,t=null):(gl(),d=a.fallback,n=t.mode,a=_u({mode:"visible",children:a.children},n),d=Yl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,Kl(t,e.child,null,l),a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,c,l),t.memoizedState=Hc,t=hn(null,a));else if(xl(t),gs(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var T=c.dgst;c=T,a=Error(r(419)),a.stack="",a.digest=c,tn({value:a,source:null,stack:null}),t=qc(e,t,l)}else if(we||pa(e,t,l,!1),c=(l&e.childLanes)!==0,we||c){if(c=Ee,c!==null&&(a=ir(c,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,ql(e,a),at(c,e,a),Dc;xs(d)||wu(),t=qc(e,t,l)}else xs(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Te=Tt(d.nextSibling),Xe=t,oe=!0,dl=null,Et=!1,e!==null&&lf(t,e),t=Lc(t,a.children),t.flags|=4096);return t}return n?(gl(),d=a.fallback,n=t.mode,y=e.child,T=y.sibling,a=Qt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,T!==null?d=Qt(T,d):(d=Yl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,hn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Bc(l):(n=d.cachePool,n!==null?(y=He._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=rf(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=wc(e,c,l),t.memoizedState=Hc,hn(e.child,a)):(xl(t),l=e.child,e=l.sibling,l=Qt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Lc(e,t){return t=_u({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _u(e,t){return e=st(22,e,null,t),e.lanes=0,e}function qc(e,t,l){return Kl(t,e.child,null,l),e=Lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Eo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ec(e.return,t,l)}function Yc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function No(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=Ce.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,K(Ce,c),Ze(e,t,a,l),a=oe?en:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eo(e,l,t);else if(e.tag===19)Eo(e,l,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}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&yu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Yc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&yu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Yc(t,!0,l,null,u,a);break;case"together":Yc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),jl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Qt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Qt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&su(e)))}function dv(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),hl(t,He,e.memoizedState.cache),kl();break;case 27:case 5:qa(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:hl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,dc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?jo(e,t,l):(xl(t),e=Wt(e,t,l),e!==null?e.sibling:null);xl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return No(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Ce,Ce.current),a)break;return null;case 22:return t.lanes=0,yo(e,t,l,t.pendingProps);case 24:hl(t,He,e.memoizedState.cache)}return Wt(e,t,l)}function To(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)we=!0;else{if(!kc(e,l)&&(t.flags&128)===0)return we=!1,dv(e,t,l);we=(e.flags&131072)!==0}else we=!1,oe&&(t.flags&1048576)!==0&&tf(t,en,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Zl(t.elementType),t.type=e,typeof e=="function")Vi(e)?(a=$l(e,a),t.tag=1,t=bo(null,t,e,a,l)):(t.tag=0,t=Uc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===M){t.tag=11,t=mo(null,t,e,a,l);break e}else if(n===J){t.tag=14,t=ho(null,t,e,a,l);break e}}throw t=yt(e)||e,Error(r(306,t,""))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=$l(a,t.pendingProps),bo(e,t,a,n,l);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,cc(e,t),rn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,hl(t,He,a),a!==u.cache&&tc(t,[He],l,!0),sn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=So(e,t,a,l);break e}else if(a!==n){n=bt(Error(r(424)),t),tn(n),t=So(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Te=Tt(e.firstChild),Xe=t,oe=!0,dl=null,Et=!0,l=vf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(kl(),a===n){t=Wt(e,t,l);break e}Ze(e,t,a,l)}t=t.child}return t;case 26:return Au(e,t),e===null?(l=Bd(t.type,null,t.pendingProps,null))?t.memoizedState=l:oe||(l=t.type,e=t.pendingProps,a=Qu(ue.current).createElement(l),a[Ge]=t,a[Fe]=e,Ve(a,l,e),Ye(a),t.stateNode=a):t.memoizedState=Bd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qa(t),e===null&&oe&&(a=t.stateNode=Dd(t.type,t.pendingProps,ue.current),Xe=t,Et=!0,n=Te,Al(t.type)?(bs=n,Te=Tt(a.firstChild)):Te=n),Ze(e,t,t.pendingProps.children,l),Au(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((n=a=Te)&&(a=Gv(a,t.type,t.pendingProps,Et),a!==null?(t.stateNode=a,Xe=t,Te=Tt(a.firstChild),Et=!1,n=!0):n=!1),n||ml(t)),qa(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,vs(n,u)?a=null:c!==null&&vs(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=hc(e,t,av,null,null,l),Mn._currentValue=n),Au(e,t),Ze(e,t,a,l),t.child;case 6:return e===null&&oe&&((e=l=Te)&&(l=Xv(l,t.pendingProps,Et),l!==null?(t.stateNode=l,Xe=t,Te=null,e=!0):e=!1),e||ml(t)),null;case 13:return jo(e,t,l);case 4:return $e(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Kl(t,null,a,l):Ze(e,t,a,l),t.child;case 11:return mo(e,t,t.type,t.pendingProps,l);case 7:return Ze(e,t,t.pendingProps,l),t.child;case 8:return Ze(e,t,t.pendingProps.children,l),t.child;case 12:return Ze(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,hl(t,t.type,a.value),Ze(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Xl(t),n=Qe(n),a=a(n),t.flags|=1,Ze(e,t,a,l),t.child;case 14:return ho(e,t,t.type,t.pendingProps,l);case 15:return vo(e,t,t.type,t.pendingProps,l);case 19:return No(e,t,l);case 31:return ov(e,t,l);case 22:return yo(e,t,l,t.pendingProps);case 24:return Xl(t),a=Qe(He),e===null?(n=nc(),n===null&&(n=Ee,u=lc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},ic(t),hl(t,He,n)):((e.lanes&l)!==0&&(cc(e,t),rn(t,null,null,l),sn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),hl(t,He,a)):(a=u.cache,hl(t,He,a),a!==n.cache&&tc(t,[He],l,!0))),Ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ft(e){e.flags|=4}function Gc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Io())e.flags|=8192;else throw Vl=du,uc}else e.flags&=-16777217}function zo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!kd(t))if(Io())e.flags|=8192;else throw Vl=du,uc}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ar():536870912,e.lanes|=t,Ma|=t)}function vn(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function mv(e,t,l){var a=t.pendingProps;switch(Wi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return ze(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Kt(He),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ya(t)?Ft(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ii())),ze(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Ft(t),u!==null?(ze(t),zo(t,u)):(ze(t),Gc(t,n,null,a,l))):u?u!==e.memoizedState?(Ft(t),ze(t),zo(t,u)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Ft(t),ze(t),Gc(t,n,e,a,l)),null;case 27:if(Yn(t),l=ue.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}e=W.current,ya(t)?af(t):(e=Dd(n,a,l),t.stateNode=e,Ft(t))}return ze(t),null;case 5:if(Yn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}if(u=W.current,ya(t))af(t);else{var c=Qu(ue.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Ge]=t,u[Fe]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Ve(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ft(t)}}return ze(t),Gc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,ya(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Xe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ge]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jd(e.nodeValue,l)),e||ml(t,!0)}else e=Qu(e).createTextNode(a),e[Ge]=t,t.stateNode=e}return ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ya(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ge]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else l=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ft(t),t):(ft(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ya(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Ge]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),n=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(ft(t),t):(ft(t),null)}return ft(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Mu(t,t.updateQueue),ze(t),null);case 4:return Oe(),e===null&&fs(t.stateNode.containerInfo),ze(t),null;case 10:return Kt(t.type),ze(t),null;case 19:if(L(Ce),a=t.memoizedState,a===null)return ze(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)vn(a,!1);else{if(Re!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=yu(e),u!==null){for(t.flags|=128,vn(a,!1),e=u.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ir(l,e),l=l.sibling;return K(Ce,Ce.current&1|2),oe&&Zt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&nt()>Uu&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304)}else{if(!n)if(e=yu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),vn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!oe)return ze(t),null}else 2*nt()-a.renderingStartTime>Uu&&l!==536870912&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=nt(),e.sibling=null,l=Ce.current,K(Ce,n?l&1|2:l&1),oe&&Zt(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return ft(t),oc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),l=t.updateQueue,l!==null&&Mu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&L(Ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Kt(He),ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function hv(e,t){switch(Wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kt(He),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Yn(t),null;case 31:if(t.memoizedState!==null){if(ft(t),t.alternate===null)throw Error(r(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Ce),null;case 4:return Oe(),null;case 10:return Kt(t.type),null;case 22:case 23:return ft(t),oc(),e!==null&&L(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Kt(He),null;case 25:return null;default:return null}}function Ao(e,t){switch(Wi(t),t.tag){case 3:Kt(He),Oe();break;case 26:case 27:case 5:Yn(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&ft(t);break;case 13:ft(t);break;case 19:L(Ce);break;case 10:Kt(t.type);break;case 22:case 23:ft(t),oc(),e!==null&&L(Ql);break;case 24:Kt(He)}}function yn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){pe(t,t.return,d)}}function bl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var y=l,T=d;try{T()}catch(C){pe(n,y,C)}}}a=a.next}while(a!==u)}}catch(C){pe(t,t.return,C)}}function _o(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{pf(t,l)}catch(a){pe(e,e.return,a)}}}function Mo(e,t,l){l.props=$l(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){pe(e,t,a)}}function pn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){pe(e,t,n)}}function wt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){pe(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){pe(e,t,n)}else l.current=null}function Ro(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){pe(e,e.return,n)}}function Xc(e,t,l){try{var a=e.stateNode;Bv(a,e.type,l,t),a[Fe]=t}catch(n){pe(e,e.return,n)}}function Oo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Al(e.type)||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oo(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Al(e.type)||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 Zc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Gt));else if(a!==4&&(a===27&&Al(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,l),e=e.sibling;e!==null;)Zc(e,t,l),e=e.sibling}function Ru(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Al(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ru(e,t,l),e=e.sibling;e!==null;)Ru(e,t,l),e=e.sibling}function Co(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ve(t,a,l),t[Ge]=e,t[Fe]=l}catch(u){pe(e,e.return,u)}}var It=!1,Le=!1,Vc=!1,Do=typeof WeakSet=="function"?WeakSet:Set,ke=null;function vv(e,t){if(e=e.containerInfo,ms=Fu,e=Xr(e),qi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,d=-1,y=-1,T=0,C=0,B=e,z=null;t:for(;;){for(var R;B!==l||n!==0&&B.nodeType!==3||(d=c+n),B!==u||a!==0&&B.nodeType!==3||(y=c+a),B.nodeType===3&&(c+=B.nodeValue.length),(R=B.firstChild)!==null;)z=B,B=R;for(;;){if(B===e)break t;if(z===l&&++T===n&&(d=c),z===u&&++C===a&&(y=c),(R=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=R}l=d===-1||y===-1?null:{start:d,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(hs={focusedElem:e,selectionRange:l},Fu=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){switch(t=ke,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var $=$l(l.type,n);e=a.getSnapshotBeforeUpdate($,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){pe(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ps(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ps(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}}function Uo(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:el(e,l),a&4&&yn(5,l);break;case 1:if(el(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){pe(l,l.return,c)}else{var n=$l(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){pe(l,l.return,c)}}a&64&&_o(l),a&512&&pn(l,l.return);break;case 3:if(el(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{pf(e,t)}catch(c){pe(l,l.return,c)}}break;case 27:t===null&&a&4&&Co(l);case 26:case 5:el(e,l),t===null&&a&4&&Ro(l),a&512&&pn(l,l.return);break;case 12:el(e,l);break;case 31:el(e,l),a&4&&wo(e,l);break;case 13:el(e,l),a&4&&Lo(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Nv.bind(null,l),Qv(e,l))));break;case 22:if(a=l.memoizedState!==null||It,!a){t=t!==null&&t.memoizedState!==null||Le,n=It;var u=Le;It=a,(Le=t)&&!u?tl(e,l,(l.subtreeFlags&8772)!==0):el(e,l),It=n,Le=u}break;case 30:break;default:el(e,l)}}function Ho(e){var t=e.alternate;t!==null&&(e.alternate=null,Ho(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ji(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ae=null,Pe=!1;function Pt(e,t,l){for(l=l.child;l!==null;)Bo(e,t,l),l=l.sibling}function Bo(e,t,l){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Ya,l)}catch{}switch(l.tag){case 26:Le||wt(l,t),Pt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||wt(l,t);var a=Ae,n=Pe;Al(l.type)&&(Ae=l.stateNode,Pe=!1),Pt(e,t,l),zn(l.stateNode),Ae=a,Pe=n;break;case 5:Le||wt(l,t);case 6:if(a=Ae,n=Pe,Ae=null,Pt(e,t,l),Ae=a,Pe=n,Ae!==null)if(Pe)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(l.stateNode)}catch(u){pe(l,t,u)}else try{Ae.removeChild(l.stateNode)}catch(u){pe(l,t,u)}break;case 18:Ae!==null&&(Pe?(e=Ae,_d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),wa(e)):_d(Ae,l.stateNode));break;case 4:a=Ae,n=Pe,Ae=l.stateNode.containerInfo,Pe=!0,Pt(e,t,l),Ae=a,Pe=n;break;case 0:case 11:case 14:case 15:bl(2,l,t),Le||bl(4,l,t),Pt(e,t,l);break;case 1:Le||(wt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Mo(l,t,a)),Pt(e,t,l);break;case 21:Pt(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,Pt(e,t,l),Le=a;break;default:Pt(e,t,l)}}function wo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wa(e)}catch(l){pe(t,t.return,l)}}}function Lo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wa(e)}catch(l){pe(t,t.return,l)}}function yv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Do),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Do),t;default:throw Error(r(435,e.tag))}}function Ou(e,t){var l=yv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Tv.bind(null,e,a);a.then(n,n)}})}function et(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Al(d.type)){Ae=d.stateNode,Pe=!1;break e}break;case 5:Ae=d.stateNode,Pe=!1;break e;case 3:case 4:Ae=d.stateNode.containerInfo,Pe=!0;break e}d=d.return}if(Ae===null)throw Error(r(160));Bo(u,c,n),Ae=null,Pe=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qo(t,e),t=t.sibling}var Mt=null;function qo(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:et(t,e),tt(e),a&4&&(bl(3,e,e.return),yn(3,e),bl(5,e,e.return));break;case 1:et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),a&64&&It&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Mt;if(et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Xa]||u[Ge]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ve(u,a,l),u[Ge]=e,Ye(u),a=u;break e;case"link":var c=qd("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(u=c[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;case"meta":if(c=qd("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(u=c[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Ge]=e,Ye(u),a=u}e.stateNode=a}else Yd(n,e.type,e.stateNode);else e.stateNode=Ld(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Yd(n,e.type,e.stateNode):Ld(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,l.memoizedProps)}break;case 27:et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),l!==null&&a&4&&Xc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),e.flags&32){n=e.stateNode;try{ia(n,"")}catch($){pe(e,e.return,$)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Xc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Vc=!0);break;case 6:if(et(t,e),tt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch($){pe(e,e.return,$)}}break;case 3:if(Ku=null,n=Mt,Mt=Zu(t.containerInfo),et(t,e),Mt=n,tt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{wa(t.containerInfo)}catch($){pe(e,e.return,$)}Vc&&(Vc=!1,Yo(e));break;case 4:a=Mt,Mt=Zu(e.stateNode.containerInfo),et(t,e),tt(e),Mt=a;break;case 12:et(t,e),tt(e);break;case 31:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 13:et(t,e),tt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Du=nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 22:n=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,T=It,C=Le;if(It=T||n,Le=C||y,et(t,e),Le=C,It=T,tt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||It||Le||Wl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(u=y.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=y.stateNode;var B=y.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch($){pe(y,y.return,$)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch($){pe(y,y.return,$)}}}else if(t.tag===18){if(l===null){y=t;try{var R=y.stateNode;n?Md(R,!0):Md(y.stateNode,!1)}catch($){pe(y,y.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ou(e,l))));break;case 19:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 30:break;case 21:break;default:et(t,e),tt(e)}}function tt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Oo(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=Qc(e);Ru(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ia(c,""),l.flags&=-33);var d=Qc(e);Ru(e,d,c);break;case 3:case 4:var y=l.stateNode.containerInfo,T=Qc(e);Zc(e,T,y);break;default:throw Error(r(161))}}catch(C){pe(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yo(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yo(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function el(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Uo(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Wl(t);break;case 1:wt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Mo(t,t.return,l),Wl(t);break;case 27:zn(t.stateNode);case 26:case 5:wt(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function tl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:tl(n,u,l),yn(4,u);break;case 1:if(tl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){pe(a,a.return,T)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)yf(y[n],d)}catch(T){pe(a,a.return,T)}}l&&c&64&&_o(u),pn(u,u.return);break;case 27:Co(u);case 26:case 5:tl(n,u,l),l&&a===null&&c&4&&Ro(u),pn(u,u.return);break;case 12:tl(n,u,l);break;case 31:tl(n,u,l),l&&c&4&&wo(n,u);break;case 13:tl(n,u,l),l&&c&4&&Lo(n,u);break;case 22:u.memoizedState===null&&tl(n,u,l),pn(u,u.return);break;case 30:break;default:tl(n,u,l)}t=t.sibling}}function Kc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ln(l))}function Jc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ln(e))}function Rt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ko(e,t,l,a),t=t.sibling}function ko(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Rt(e,t,l,a),n&2048&&yn(9,t);break;case 1:Rt(e,t,l,a);break;case 3:Rt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ln(e)));break;case 12:if(n&2048){Rt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,d=u.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){pe(t,t.return,y)}}else Rt(e,t,l,a);break;case 31:Rt(e,t,l,a);break;case 13:Rt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Rt(e,t,l,a):xn(e,t):u._visibility&2?Rt(e,t,l,a):(u._visibility|=2,za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Kc(c,t);break;case 24:Rt(e,t,l,a),n&2048&&Jc(t.alternate,t);break;default:Rt(e,t,l,a)}}function za(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,d=l,y=a,T=c.flags;switch(c.tag){case 0:case 11:case 15:za(u,c,d,y,n),yn(8,c);break;case 23:break;case 22:var C=c.stateNode;c.memoizedState!==null?C._visibility&2?za(u,c,d,y,n):xn(u,c):(C._visibility|=2,za(u,c,d,y,n)),n&&T&2048&&Kc(c.alternate,c);break;case 24:za(u,c,d,y,n),n&&T&2048&&Jc(c.alternate,c);break;default:za(u,c,d,y,n)}t=t.sibling}}function xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:xn(l,a),n&2048&&Kc(a.alternate,a);break;case 24:xn(l,a),n&2048&&Jc(a.alternate,a);break;default:xn(l,a)}t=t.sibling}}var gn=8192;function Aa(e,t,l){if(e.subtreeFlags&gn)for(e=e.child;e!==null;)Go(e,t,l),e=e.sibling}function Go(e,t,l){switch(e.tag){case 26:Aa(e,t,l),e.flags&gn&&e.memoizedState!==null&&ly(l,Mt,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,l);break;case 3:case 4:var a=Mt;Mt=Zu(e.stateNode.containerInfo),Aa(e,t,l),Mt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gn,gn=16777216,Aa(e,t,l),gn=a):Aa(e,t,l));break;default:Aa(e,t,l)}}function Xo(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function bn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,Zo(a,e)}Xo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qo(e),e=e.sibling}function Qo(e){switch(e.tag){case 0:case 11:case 15:bn(e),e.flags&2048&&bl(9,e,e.return);break;case 3:bn(e);break;case 12:bn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cu(e)):bn(e);break;default:bn(e)}}function Cu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,Zo(a,e)}Xo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bl(8,t,t.return),Cu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Cu(t));break;default:Cu(t)}e=e.sibling}}function Zo(e,t){for(;ke!==null;){var l=ke;switch(l.tag){case 0:case 11:case 15:bl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ln(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ke=a;else e:for(l=e;ke!==null;){a=ke;var n=a.sibling,u=a.return;if(Ho(a),a===l){ke=null;break e}if(n!==null){n.return=u,ke=n;break e}ke=u}}}var pv={getCacheForType:function(e){var t=Qe(He),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Qe(He).controller.signal}},xv=typeof WeakMap=="function"?WeakMap:Map,he=0,Ee=null,ie=null,re=0,ye=0,ot=null,Sl=!1,_a=!1,$c=!1,ll=0,Re=0,jl=0,Fl=0,Wc=0,dt=0,Ma=0,Sn=null,lt=null,Fc=!1,Du=0,Vo=0,Uu=1/0,Hu=null,El=null,qe=0,Nl=null,Ra=null,al=0,Ic=0,Pc=null,Ko=null,jn=0,es=null;function mt(){return(he&2)!==0&&re!==0?re&-re:D.T!==null?is():cr()}function Jo(){if(dt===0)if((re&536870912)===0||oe){var e=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),dt=e}else dt=536870912;return e=rt.current,e!==null&&(e.flags|=32),dt}function at(e,t,l){(e===Ee&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Oa(e,0),Tl(e,re,dt,!1)),Ga(e,l),((he&2)===0||e!==Ee)&&(e===Ee&&((he&2)===0&&(Fl|=l),Re===4&&Tl(e,re,dt,!1)),Lt(e))}function $o(e,t,l){if((he&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ka(e,t),n=a?Sv(e,t):ls(e,t,!0),u=a;do{if(n===0){_a&&!a&&Tl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!gv(l)){n=ls(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Sn;var y=d.current.memoizedState.isDehydrated;if(y&&(Oa(d,c).flags|=256),c=ls(d,c,!1),c!==2){if($c&&!y){d.errorRecoveryDisabledLanes|=u,Fl|=u,n=4;break e}u=lt,lt=n,u!==null&&(lt===null?lt=u:lt.push.apply(lt,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Oa(e,0),Tl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Tl(a,t,dt,!Sl);break e;case 2:lt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Du+300-nt(),10<n)){if(Tl(a,t,dt,!Sl),Zn(a,0,!0)!==0)break e;al=t,a.timeoutHandle=zd(Wo.bind(null,a,l,lt,Hu,Fc,t,dt,Fl,Ma,Sl,u,"Throttled",-0,0),n);break e}Wo(a,l,lt,Hu,Fc,t,dt,Fl,Ma,Sl,u,null,-0,0)}}break}while(!0);Lt(e)}function Wo(e,t,l,a,n,u,c,d,y,T,C,B,z,R){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},Go(t,u,B);var $=(u&62914560)===u?Du-nt():(u&4194048)===u?Vo-nt():0;if($=ay(B,$),$!==null){al=u,e.cancelPendingCommit=$(nd.bind(null,e,t,u,l,a,n,c,d,y,C,B,null,z,R)),Tl(e,u,c,!T);return}}nd(e,t,u,l,a,n,c,d,y)}function gv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!ct(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Tl(e,t,l,a){t&=~Wc,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-it(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&nr(e,l,t)}function Bu(){return(he&6)===0?(En(0),!1):!0}function ts(){if(ie!==null){if(ye===0)var e=ie.return;else e=ie,Vt=Gl=null,pc(e),Sa=null,nn=0,e=ie;for(;e!==null;)Ao(e.alternate,e),e=e.return;ie=null}}function Oa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,qv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),al=0,ts(),Ee=e,ie=l=Qt(e.current,null),re=t,ye=0,ot=null,Sl=!1,_a=ka(e,t),$c=!1,Ma=dt=Wc=Fl=jl=Re=0,lt=Sn=null,Fc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-it(a),u=1<<n;t|=e[n],a&=~u}return ll=t,au(),l}function Fo(e,t){ae=null,D.H=mn,t===ba||t===ou?(t=df(),ye=3):t===uc?(t=df(),ye=4):ye=t===Dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ot=t,ie===null&&(Re=1,Tu(e,bt(t,e.current)))}function Io(){var e=rt.current;return e===null?!0:(re&4194048)===re?Nt===null:(re&62914560)===re||(re&536870912)!==0?e===Nt:!1}function Po(){var e=D.H;return D.H=mn,e===null?mn:e}function ed(){var e=D.A;return D.A=pv,e}function wu(){Re=4,Sl||(re&4194048)!==re&&rt.current!==null||(_a=!0),(jl&134217727)===0&&(Fl&134217727)===0||Ee===null||Tl(Ee,re,dt,!1)}function ls(e,t,l){var a=he;he|=2;var n=Po(),u=ed();(Ee!==e||re!==t)&&(Hu=null,Oa(e,t)),t=!1;var c=Re;e:do try{if(ye!==0&&ie!==null){var d=ie,y=ot;switch(ye){case 8:ts(),c=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var T=ye;if(ye=0,ot=null,Ca(e,d,y,T),l&&_a){c=0;break e}break;default:T=ye,ye=0,ot=null,Ca(e,d,y,T)}}bv(),c=Re;break}catch(C){Fo(e,C)}while(!0);return t&&e.shellSuspendCounter++,Vt=Gl=null,he=a,D.H=n,D.A=u,ie===null&&(Ee=null,re=0,au()),c}function bv(){for(;ie!==null;)td(ie)}function Sv(e,t){var l=he;he|=2;var a=Po(),n=ed();Ee!==e||re!==t?(Hu=null,Uu=nt()+500,Oa(e,t)):_a=ka(e,t);e:do try{if(ye!==0&&ie!==null){t=ie;var u=ot;t:switch(ye){case 1:ye=0,ot=null,Ca(e,t,u,1);break;case 2:case 9:if(ff(u)){ye=0,ot=null,ld(t);break}t=function(){ye!==2&&ye!==9||Ee!==e||(ye=7),Lt(e)},u.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:ff(u)?(ye=0,ot=null,ld(t)):(ye=0,ot=null,Ca(e,t,u,7));break;case 5:var c=null;switch(ie.tag){case 26:c=ie.memoizedState;case 5:case 27:var d=ie;if(c?kd(c):d.stateNode.complete){ye=0,ot=null;var y=d.sibling;if(y!==null)ie=y;else{var T=d.return;T!==null?(ie=T,Lu(T)):ie=null}break t}}ye=0,ot=null,Ca(e,t,u,5);break;case 6:ye=0,ot=null,Ca(e,t,u,6);break;case 8:ts(),Re=6;break e;default:throw Error(r(462))}}jv();break}catch(C){Fo(e,C)}while(!0);return Vt=Gl=null,D.H=a,D.A=n,he=l,ie!==null?0:(Ee=null,re=0,au(),Re)}function jv(){for(;ie!==null&&!Zm();)td(ie)}function td(e){var t=To(e.alternate,e,ll);e.memoizedProps=e.pendingProps,t===null?Lu(e):ie=t}function ld(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=go(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=go(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:pc(t);default:Ao(l,t),t=ie=Ir(t,ll),t=To(l,t,ll)}e.memoizedProps=e.pendingProps,t===null?Lu(e):ie=t}function Ca(e,t,l,a){Vt=Gl=null,pc(t),Sa=null,nn=0;var n=t.return;try{if(fv(e,n,t,l,re)){Re=1,Tu(e,bt(l,e.current)),ie=null;return}}catch(u){if(n!==null)throw ie=n,u;Re=1,Tu(e,bt(l,e.current)),ie=null;return}t.flags&32768?(oe||a===1?e=!0:_a||(re&536870912)!==0?e=!1:(Sl=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),ad(t,e)):Lu(t)}function Lu(e){var t=e;do{if((t.flags&32768)!==0){ad(t,Sl);return}e=t.return;var l=mv(t.alternate,t,ll);if(l!==null){ie=l;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);Re===0&&(Re=5)}function ad(e,t){do{var l=hv(e.alternate,e);if(l!==null){l.flags&=32767,ie=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=l}while(e!==null);Re=6,ie=null}function nd(e,t,l,a,n,u,c,d,y){e.cancelPendingCommit=null;do qu();while(qe!==0);if((he&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Qi,th(e,l,u,c,d,y),e===Ee&&(ie=Ee=null,re=0),Ra=t,Nl=e,al=l,Ic=u,Pc=n,Ko=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,zv(kn,function(){return rd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=V.p,V.p=2,c=he,he|=4;try{vv(e,t,l)}finally{he=c,V.p=n,D.T=a}}qe=1,ud(),id(),cd()}}function ud(){if(qe===1){qe=0;var e=Nl,t=Ra,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=he;he|=4;try{qo(t,e);var u=hs,c=Xr(e.containerInfo),d=u.focusedElem,y=u.selectionRange;if(c!==d&&d&&d.ownerDocument&&Gr(d.ownerDocument.documentElement,d)){if(y!==null&&qi(d)){var T=y.start,C=y.end;if(C===void 0&&(C=T),"selectionStart"in d)d.selectionStart=T,d.selectionEnd=Math.min(C,d.value.length);else{var B=d.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var R=z.getSelection(),$=d.textContent.length,P=Math.min(y.start,$),Se=y.end===void 0?P:Math.min(y.end,$);!R.extend&&P>Se&&(c=Se,Se=P,P=c);var j=kr(d,P),g=kr(d,Se);if(j&&g&&(R.rangeCount!==1||R.anchorNode!==j.node||R.anchorOffset!==j.offset||R.focusNode!==g.node||R.focusOffset!==g.offset)){var N=B.createRange();N.setStart(j.node,j.offset),R.removeAllRanges(),P>Se?(R.addRange(N),R.extend(g.node,g.offset)):(N.setEnd(g.node,g.offset),R.addRange(N))}}}}for(B=[],R=d;R=R.parentNode;)R.nodeType===1&&B.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<B.length;d++){var U=B[d];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Fu=!!ms,hs=ms=null}finally{he=n,V.p=a,D.T=l}}e.current=t,qe=2}}function id(){if(qe===2){qe=0;var e=Nl,t=Ra,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=he;he|=4;try{Uo(e,t.alternate,t)}finally{he=n,V.p=a,D.T=l}}qe=3}}function cd(){if(qe===4||qe===3){qe=0,Vm();var e=Nl,t=Ra,l=al,a=Ko;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?qe=5:(qe=0,Ra=Nl=null,sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(El=null),bi(l),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(Ya,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=V.p,V.p=2,D.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];u(d.value,{componentStack:d.stack})}}finally{D.T=t,V.p=n}}(al&3)!==0&&qu(),Lt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===es?jn++:(jn=0,es=e):jn=0,En(0)}}function sd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ln(t)))}function qu(){return ud(),id(),cd(),rd()}function rd(){if(qe!==5)return!1;var e=Nl,t=Ic;Ic=0;var l=bi(al),a=D.T,n=V.p;try{V.p=32>l?32:l,D.T=null,l=Pc,Pc=null;var u=Nl,c=al;if(qe=0,Ra=Nl=null,al=0,(he&6)!==0)throw Error(r(331));var d=he;if(he|=4,Qo(u.current),ko(u,u.current,c,l),he=d,En(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(Ya,u)}catch{}return!0}finally{V.p=n,D.T=a,sd(e,t)}}function fd(e,t,l){t=bt(l,t),t=Cc(e.stateNode,t,2),e=pl(e,t,2),e!==null&&(Ga(e,2),Lt(e))}function pe(e,t,l){if(e.tag===3)fd(e,e,l);else for(;t!==null;){if(t.tag===3){fd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(El===null||!El.has(a))){e=bt(l,e),l=fo(2),a=pl(t,l,2),a!==null&&(oo(l,a,t,e),Ga(a,2),Lt(a));break}}t=t.return}}function as(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new xv;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||($c=!0,n.add(l),e=Ev.bind(null,e,t,l),t.then(e,e))}function Ev(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(re&l)===l&&(Re===4||Re===3&&(re&62914560)===re&&300>nt()-Du?(he&2)===0&&Oa(e,0):Wc|=l,Ma===re&&(Ma=0)),Lt(e)}function od(e,t){t===0&&(t=ar()),e=ql(e,t),e!==null&&(Ga(e,t),Lt(e))}function Nv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),od(e,l)}function Tv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),od(e,l)}function zv(e,t){return yi(e,t)}var Yu=null,Da=null,ns=!1,ku=!1,us=!1,zl=0;function Lt(e){e!==Da&&e.next===null&&(Da===null?Yu=Da=e:Da=Da.next=e),ku=!0,ns||(ns=!0,_v())}function En(e,t){if(!us&&ku){us=!0;do for(var l=!1,a=Yu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-it(42|e)+1)-1,u&=n&~(c&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,vd(a,u))}else u=re,u=Zn(a,a===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||ka(a,u)||(l=!0,vd(a,u));a=a.next}while(l);us=!1}}function Av(){dd()}function dd(){ku=ns=!1;var e=0;zl!==0&&Lv()&&(e=zl);for(var t=nt(),l=null,a=Yu;a!==null;){var n=a.next,u=md(a,t);u===0?(a.next=null,l===null?Yu=n:l.next=n,n===null&&(Da=l)):(l=a,(e!==0||(u&3)!==0)&&(ku=!0)),a=n}qe!==0&&qe!==5||En(e),zl!==0&&(zl=0)}function md(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-it(u),d=1<<c,y=n[c];y===-1?((d&l)===0||(d&a)!==0)&&(n[c]=eh(d,t)):y<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ee,l=re,l=Zn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&pi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&pi(a),bi(l)){case 2:case 8:l=tr;break;case 32:l=kn;break;case 268435456:l=lr;break;default:l=kn}return a=hd.bind(null,e),l=yi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&pi(a),e.callbackPriority=2,e.callbackNode=null,2}function hd(e,t){if(qe!==0&&qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qu()&&e.callbackNode!==l)return null;var a=re;return a=Zn(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($o(e,a,t),md(e,nt()),e.callbackNode!=null&&e.callbackNode===l?hd.bind(null,e):null)}function vd(e,t){if(qu())return null;$o(e,t,!0)}function _v(){Yv(function(){(he&6)!==0?yi(er,Av):dd()})}function is(){if(zl===0){var e=xa;e===0&&(e=Gn,Gn<<=1,(Gn&261888)===0&&(Gn=256)),zl=e}return zl}function yd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$n(""+e)}function pd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Mv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=yd((n[Fe]||null).action),c=a.submitter;c&&(t=(t=c[Fe]||null)?yd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var d=new Pn("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(zl!==0){var y=c?pd(n,c):new FormData(n);zc(l,{pending:!0,data:y,method:n.method,action:u},null,y)}}else typeof u=="function"&&(d.preventDefault(),y=c?pd(n,c):new FormData(n),zc(l,{pending:!0,data:y,method:n.method,action:u},u,y))},currentTarget:n}]})}}for(var cs=0;cs<Xi.length;cs++){var ss=Xi[cs],Rv=ss.toLowerCase(),Ov=ss[0].toUpperCase()+ss.slice(1);_t(Rv,"on"+Ov)}_t(Vr,"onAnimationEnd"),_t(Kr,"onAnimationIteration"),_t(Jr,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(Kh,"onTransitionRun"),_t(Jh,"onTransitionStart"),_t($h,"onTransitionCancel"),_t($r,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function xd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],y=d.instance,T=d.currentTarget;if(d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=T;try{u(n)}catch(C){lu(C)}n.currentTarget=null,u=y}else for(c=0;c<a.length;c++){if(d=a[c],y=d.instance,T=d.currentTarget,d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=T;try{u(n)}catch(C){lu(C)}n.currentTarget=null,u=y}}}}function ce(e,t){var l=t[Si];l===void 0&&(l=t[Si]=new Set);var a=e+"__bubble";l.has(a)||(gd(t,e,2,!1),l.add(a))}function rs(e,t,l){var a=0;t&&(a|=4),gd(l,e,a,t)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[Gu]){e[Gu]=!0,fr.forEach(function(l){l!=="selectionchange"&&(Cv.has(l)||rs(l,!1,e),rs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gu]||(t[Gu]=!0,rs("selectionchange",!1,t))}}function gd(e,t,l,a){switch(Jd(t)){case 2:var n=iy;break;case 8:n=cy;break;default:n=Ts}l=n.bind(null,t,l,e),n=void 0,!Ri||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function os(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=ta(d),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=u=c;continue e}d=d.parentNode}}a=a.return}jr(function(){var T=u,C=_i(l),B=[];e:{var z=Wr.get(e);if(z!==void 0){var R=Pn,$=e;switch(e){case"keypress":if(Fn(l)===0)break e;case"keydown":case"keyup":R=Th;break;case"focusin":$="focus",R=Ui;break;case"focusout":$="blur",R=Ui;break;case"beforeblur":case"afterblur":R=Ui;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=_h;break;case Vr:case Kr:case Jr:R=yh;break;case $r:R=Rh;break;case"scroll":case"scrollend":R=oh;break;case"wheel":R=Ch;break;case"copy":case"cut":case"paste":R=xh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Ar;break;case"toggle":case"beforetoggle":R=Uh}var P=(t&4)!==0,Se=!P&&(e==="scroll"||e==="scrollend"),j=P?z!==null?z+"Capture":null:z;P=[];for(var g=T,N;g!==null;){var U=g;if(N=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||N===null||j===null||(U=Za(g,j),U!=null&&P.push(Tn(g,U,N))),Se)break;g=g.return}0<P.length&&(z=new R(z,$,null,l,C),B.push({event:z,listeners:P}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",z&&l!==Ai&&($=l.relatedTarget||l.fromElement)&&(ta($)||$[ea]))break e;if((R||z)&&(z=C.window===C?C:(z=C.ownerDocument)?z.defaultView||z.parentWindow:window,R?($=l.relatedTarget||l.toElement,R=T,$=$?ta($):null,$!==null&&(Se=v($),P=$.tag,$!==Se||P!==5&&P!==27&&P!==6)&&($=null)):(R=null,$=T),R!==$)){if(P=Tr,U="onMouseLeave",j="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(P=Ar,U="onPointerLeave",j="onPointerEnter",g="pointer"),Se=R==null?z:Qa(R),N=$==null?z:Qa($),z=new P(U,g+"leave",R,l,C),z.target=Se,z.relatedTarget=N,U=null,ta(C)===T&&(P=new P(j,g+"enter",$,l,C),P.target=N,P.relatedTarget=Se,U=P),Se=U,R&&$)t:{for(P=Dv,j=R,g=$,N=0,U=j;U;U=P(U))N++;U=0;for(var I=g;I;I=P(I))U++;for(;0<N-U;)j=P(j),N--;for(;0<U-N;)g=P(g),U--;for(;N--;){if(j===g||g!==null&&j===g.alternate){P=j;break t}j=P(j),g=P(g)}P=null}else P=null;R!==null&&bd(B,z,R,P,!1),$!==null&&Se!==null&&bd(B,Se,$,P,!0)}}e:{if(z=T?Qa(T):window,R=z.nodeName&&z.nodeName.toLowerCase(),R==="select"||R==="input"&&z.type==="file")var de=Hr;else if(Dr(z))if(Br)de=Qh;else{de=Gh;var F=kh}else R=z.nodeName,!R||R.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?T&&zi(T.elementType)&&(de=Hr):de=Xh;if(de&&(de=de(e,T))){Ur(B,de,l,C);break e}F&&F(e,z,T),e==="focusout"&&T&&z.type==="number"&&T.memoizedProps.value!=null&&Ti(z,"number",z.value)}switch(F=T?Qa(T):window,e){case"focusin":(Dr(F)||F.contentEditable==="true")&&(fa=F,Yi=T,Pa=null);break;case"focusout":Pa=Yi=fa=null;break;case"mousedown":ki=!0;break;case"contextmenu":case"mouseup":case"dragend":ki=!1,Qr(B,l,C);break;case"selectionchange":if(Vh)break;case"keydown":case"keyup":Qr(B,l,C)}var ne;if(Bi)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else ra?Or(e,l)&&(fe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(fe="onCompositionStart");fe&&(_r&&l.locale!=="ko"&&(ra||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&ra&&(ne=Er()):(fl=C,Oi="value"in fl?fl.value:fl.textContent,ra=!0)),F=Xu(T,fe),0<F.length&&(fe=new zr(fe,e,null,l,C),B.push({event:fe,listeners:F}),ne?fe.data=ne:(ne=Cr(l),ne!==null&&(fe.data=ne)))),(ne=Bh?wh(e,l):Lh(e,l))&&(fe=Xu(T,"onBeforeInput"),0<fe.length&&(F=new zr("onBeforeInput","beforeinput",null,l,C),B.push({event:F,listeners:fe}),F.data=ne)),Mv(B,e,T,l,C)}xd(B,t)})}function Tn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Xu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Za(e,l),n!=null&&a.unshift(Tn(e,n,u)),n=Za(e,t),n!=null&&a.push(Tn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Dv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var d=l,y=d.alternate,T=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||T===null||(y=T,n?(T=Za(l,u),T!=null&&c.unshift(Tn(l,T,y))):n||(T=Za(l,u),T!=null&&c.push(Tn(l,T,y)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Uv=/\r\n?/g,Hv=/\u0000|\uFFFD/g;function Sd(e){return(typeof e=="string"?e:""+e).replace(Uv,`
|
|
49
|
+
`).replace(Hv,"")}function jd(e,t){return t=Sd(t),Sd(e)===t}function be(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ia(e,""+a);break;case"className":Kn(e,"class",a);break;case"tabIndex":Kn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(e,l,a);break;case"style":br(e,a,u);break;case"data":if(t!=="object"){Kn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=$n(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&be(e,t,"name",n.name,n,null),be(e,t,"formEncType",n.formEncType,n,null),be(e,t,"formMethod",n.formMethod,n,null),be(e,t,"formTarget",n.formTarget,n,null)):(be(e,t,"encType",n.encType,n,null),be(e,t,"method",n.method,n,null),be(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=$n(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=$n(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Vn(e,"popover",a);break;case"xlinkActuate":kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=rh.get(l)||l,Vn(e,l,a))}}function ds(e,t,l,a,n,u){switch(l){case"style":br(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ia(e,a):(typeof a=="number"||typeof a=="bigint")&&ia(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!or.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Fe]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Vn(e,l,a)}}}function Ve(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,u,c,l,null)}}n&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var d=u=c=n=null,y=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var C=l[a];if(C!=null)switch(a){case"name":n=C;break;case"type":c=C;break;case"checked":y=C;break;case"defaultChecked":T=C;break;case"value":u=C;break;case"defaultValue":d=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,t));break;default:be(e,t,a,C,l,null)}}yr(e,u,d,y,T,c,n,!1);return;case"select":ce("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:be(e,t,n,d,l,null)}t=u,l=c,e.multiple=!!a,t!=null?ua(e,!!a,t,!1):l!=null&&ua(e,!!a,l,!0);return;case"textarea":ce("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:be(e,t,c,d,l,null)}xr(e,a,n,u);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:be(e,t,y,a,l,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<Nn.length;a++)ce(Nn[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,T,a,l,null)}return;default:if(zi(t)){for(C in l)l.hasOwnProperty(C)&&(a=l[C],a!==void 0&&ds(e,t,C,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&be(e,t,d,a,l,null))}function Bv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,d=null,y=null,T=null,C=null;for(R in l){var B=l[R];if(l.hasOwnProperty(R)&&B!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":y=B;default:a.hasOwnProperty(R)||be(e,t,R,null,a,B)}}for(var z in a){var R=a[z];if(B=l[z],a.hasOwnProperty(z)&&(R!=null||B!=null))switch(z){case"type":u=R;break;case"name":n=R;break;case"checked":T=R;break;case"defaultChecked":C=R;break;case"value":c=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:R!==B&&be(e,t,z,R,a,B)}}Ni(e,c,d,y,T,C,u,n);return;case"select":R=c=d=z=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":R=y;default:a.hasOwnProperty(u)||be(e,t,u,null,a,y)}for(n in a)if(u=a[n],y=l[n],a.hasOwnProperty(n)&&(u!=null||y!=null))switch(n){case"value":z=u;break;case"defaultValue":d=u;break;case"multiple":c=u;default:u!==y&&be(e,t,n,u,a,y)}t=d,l=c,a=R,z!=null?ua(e,!!l,z,!1):!!a!=!!l&&(t!=null?ua(e,!!l,t,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":R=z=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:be(e,t,d,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":z=n;break;case"defaultValue":R=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&be(e,t,c,n,a,u)}pr(e,z,R);return;case"option":for(var $ in l)if(z=l[$],l.hasOwnProperty($)&&z!=null&&!a.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:be(e,t,$,null,a,z)}for(y in a)if(z=a[y],R=l[y],a.hasOwnProperty(y)&&z!==R&&(z!=null||R!=null))switch(y){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:be(e,t,y,z,a,R)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in l)z=l[P],l.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P)&&be(e,t,P,null,a,z);for(T in a)if(z=a[T],R=l[T],a.hasOwnProperty(T)&&z!==R&&(z!=null||R!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:be(e,t,T,z,a,R)}return;default:if(zi(t)){for(var Se in l)z=l[Se],l.hasOwnProperty(Se)&&z!==void 0&&!a.hasOwnProperty(Se)&&ds(e,t,Se,void 0,a,z);for(C in a)z=a[C],R=l[C],!a.hasOwnProperty(C)||z===R||z===void 0&&R===void 0||ds(e,t,C,z,a,R);return}}for(var j in l)z=l[j],l.hasOwnProperty(j)&&z!=null&&!a.hasOwnProperty(j)&&be(e,t,j,null,a,z);for(B in a)z=a[B],R=l[B],!a.hasOwnProperty(B)||z===R||z==null&&R==null||be(e,t,B,z,a,R)}function Ed(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,d=n.duration;if(u&&d&&Ed(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],T=y.startTime;if(T>d)break;var C=y.transferSize,B=y.initiatorType;C&&Ed(B)&&(y=y.responseEnd,c+=C*(y<d?1:(d-T)/(y-T)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ms=null,hs=null;function Qu(e){return e.nodeType===9?e:e.ownerDocument}function Nd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Td(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function vs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ys=null;function Lv(){var e=window.event;return e&&e.type==="popstate"?e===ys?!1:(ys=e,!0):(ys=null,!1)}var zd=typeof setTimeout=="function"?setTimeout:void 0,qv=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,Yv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(kv)}:zd;function kv(e){setTimeout(function(){throw e})}function Al(e){return e==="head"}function _d(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),wa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")zn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,zn(l);for(var u=l.firstChild;u;){var c=u.nextSibling,d=u.nodeName;u[Xa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&zn(e.ownerDocument.body);l=n}while(l);wa(t)}function Md(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function ps(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ps(l),ji(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Gv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Tt(e.nextSibling),e===null)break}return null}function Xv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Tt(e.nextSibling),e===null))return null;return e}function Rd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tt(e.nextSibling),e===null))return null;return e}function xs(e){return e.data==="$?"||e.data==="$~"}function gs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Tt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var bs=null;function Od(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Tt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Cd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Dd(e,t,l){switch(t=Qu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function zn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ji(e)}var zt=new Map,Ud=new Set;function Zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var nl=V.d;V.d={f:Zv,r:Vv,D:Kv,C:Jv,L:$v,m:Wv,X:Iv,S:Fv,M:Pv};function Zv(){var e=nl.f(),t=Bu();return e||t}function Vv(e){var t=la(e);t!==null&&t.tag===5&&t.type==="form"?Wf(t):nl.r(e)}var Ua=typeof document>"u"?null:document;function Hd(e,t,l){var a=Ua;if(a&&typeof t=="string"&&t){var n=xt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Ud.has(n)||(Ud.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ve(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Kv(e){nl.D(e),Hd("dns-prefetch",e,null)}function Jv(e,t){nl.C(e,t),Hd("preconnect",e,t)}function $v(e,t,l){nl.L(e,t,l);var a=Ua;if(a&&e&&t){var n='link[rel="preload"][as="'+xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+xt(l.imageSizes)+'"]')):n+='[href="'+xt(e)+'"]';var u=n;switch(t){case"style":u=Ha(e);break;case"script":u=Ba(e)}zt.has(u)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),zt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(An(u))||t==="script"&&a.querySelector(_n(u))||(t=a.createElement("link"),Ve(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Wv(e,t){nl.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+xt(a)+'"][href="'+xt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ba(e)}if(!zt.has(u)&&(e=p({rel:"modulepreload",href:e},t),zt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_n(u)))return}a=l.createElement("link"),Ve(a,"link",e),Ye(a),l.head.appendChild(a)}}}function Fv(e,t,l){nl.S(e,t,l);var a=Ua;if(a&&e){var n=aa(a).hoistableStyles,u=Ha(e);t=t||"default";var c=n.get(u);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(An(u)))d.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=zt.get(u))&&Ss(e,l);var y=c=a.createElement("link");Ye(y),Ve(y,"link",e),y._p=new Promise(function(T,C){y.onload=T,y.onerror=C}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Vu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(u,c)}}}function Iv(e,t){nl.X(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=Ba(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0},t),(t=zt.get(n))&&js(e,t),u=l.createElement("script"),Ye(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Pv(e,t){nl.M(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=Ba(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0,type:"module"},t),(t=zt.get(n))&&js(e,t),u=l.createElement("script"),Ye(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Bd(e,t,l,a){var n=(n=ue.current)?Zu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ha(l.href),l=aa(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ha(l.href);var u=aa(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(An(e)))&&!u._p&&(c.instance=u,c.state.loading=5),zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zt.set(e,l),u||ey(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ba(l),l=aa(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ha(e){return'href="'+xt(e)+'"'}function An(e){return'link[rel="stylesheet"]['+e+"]"}function wd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function ey(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ve(t,"link",l),Ye(t),e.head.appendChild(t))}function Ba(e){return'[src="'+xt(e)+'"]'}function _n(e){return"script[async]"+e}function Ld(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+xt(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),Ve(a,"style",n),Vu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var u=e.querySelector(An(n));if(u)return t.state.loading|=4,t.instance=u,Ye(u),u;a=wd(l),(n=zt.get(n))&&Ss(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var c=u;return c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),Ve(u,"link",a),t.state.loading|=4,Vu(u,l.precedence,e),t.instance=u;case"script":return u=Ba(l.src),(n=e.querySelector(_n(u)))?(t.instance=n,Ye(n),n):(a=l,(n=zt.get(u))&&(a=p({},l),js(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),Ve(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Vu(a,l.precedence,e));return t.instance}function Vu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ss(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function js(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ku=null;function qd(e,t,l){if(Ku===null){var a=new Map,n=Ku=new Map;n.set(l,a)}else n=Ku,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Xa]||u[Ge]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(u):a.set(c,[u])}}return a}function Yd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ty(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function kd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ly(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ha(a.href),u=t.querySelector(An(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ye(u);return}u=t.ownerDocument||t,a=wd(a),(n=zt.get(n))&&Ss(a,n),u=u.createElement("link"),Ye(u);var c=u;c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),Ve(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Es=0;function ay(e,t){return e.stylesheets&&e.count===0&&Wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Es===0&&(Es=62500*wv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Es?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $u=null;function Wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$u=new Map,t.forEach(ny,e),$u=null,Ju.call(e))}function ny(e,t){if(!(t.state.loading&4)){var l=$u.get(e);if(l)var a=l.get(null);else{l=new Map,$u.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=Ju.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Mn={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function uy(e,t,l,a,n,u,c,d,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xi(0),this.hiddenUpdates=xi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function Gd(e,t,l,a,n,u,c,d,y,T,C,B){return e=new uy(e,t,l,c,y,T,C,B,d),t=1,u===!0&&(t|=24),u=st(3,null,null,t),e.current=u,u.stateNode=e,t=lc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},ic(u),e}function Xd(e){return e?(e=ma,e):ma}function Qd(e,t,l,a,n,u){n=Xd(n),a.context===null?a.context=n:a.pendingContext=n,a=yl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=pl(e,a,t),l!==null&&(at(l,e,t),cn(l,e,t))}function Zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ns(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function Vd(e){if(e.tag===13||e.tag===31){var t=ql(e,67108864);t!==null&&at(t,e,67108864),Ns(e,67108864)}}function Kd(e){if(e.tag===13||e.tag===31){var t=mt();t=gi(t);var l=ql(e,t);l!==null&&at(l,e,t),Ns(e,t)}}var Fu=!0;function iy(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=2,Ts(e,t,l,a)}finally{V.p=u,D.T=n}}function cy(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=8,Ts(e,t,l,a)}finally{V.p=u,D.T=n}}function Ts(e,t,l,a){if(Fu){var n=zs(a);if(n===null)os(e,t,a,Iu,l),$d(e,a);else if(ry(n,e,t,l,a))a.stopPropagation();else if($d(e,a),t&4&&-1<sy.indexOf(e)){for(;n!==null;){var u=la(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Ul(u.pendingLanes);if(c!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var y=1<<31-it(c);d.entanglements[1]|=y,c&=~y}Lt(u),(he&6)===0&&(Uu=nt()+500,En(0))}}break;case 31:case 13:d=ql(u,2),d!==null&&at(d,u,2),Bu(),Ns(u,2)}if(u=zs(a),u===null&&os(e,t,a,Iu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else os(e,t,a,null,l)}}function zs(e){return e=_i(e),As(e)}var Iu=null;function As(e){if(Iu=null,e=ta(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(t),e!==null)return e;e=null}else if(l===31){if(e=A(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Iu=e,null}function Jd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Km()){case er:return 2;case tr:return 8;case kn:case Jm:return 32;case lr:return 268435456;default:return 32}default:return 32}}var _s=!1,_l=null,Ml=null,Rl=null,Rn=new Map,On=new Map,Ol=[],sy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function $d(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":Rn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":On.delete(t.pointerId)}}function Cn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=la(t),t!==null&&Vd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function ry(e,t,l,a,n){switch(t){case"focusin":return _l=Cn(_l,e,t,l,a,n),!0;case"dragenter":return Ml=Cn(Ml,e,t,l,a,n),!0;case"mouseover":return Rl=Cn(Rl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Rn.set(u,Cn(Rn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,On.set(u,Cn(On.get(u)||null,e,t,l,a,n)),!0}return!1}function Wd(e){var t=ta(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,sr(e.priority,function(){Kd(l)});return}}else if(t===31){if(t=A(l),t!==null){e.blockedOn=t,sr(e.priority,function(){Kd(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=zs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ai=a,l.target.dispatchEvent(a),Ai=null}else return t=la(l),t!==null&&Vd(t),e.blockedOn=l,!1;t.shift()}return!0}function Fd(e,t,l){Pu(e)&&l.delete(t)}function fy(){_s=!1,_l!==null&&Pu(_l)&&(_l=null),Ml!==null&&Pu(Ml)&&(Ml=null),Rl!==null&&Pu(Rl)&&(Rl=null),Rn.forEach(Fd),On.forEach(Fd)}function ei(e,t){e.blockedOn===t&&(e.blockedOn=null,_s||(_s=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,fy)))}var ti=null;function Id(e){ti!==e&&(ti=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ti===e&&(ti=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(As(a||l)===null)continue;break}var u=la(l);u!==null&&(e.splice(t,3),t-=3,zc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function wa(e){function t(y){return ei(y,e)}_l!==null&&ei(_l,e),Ml!==null&&ei(Ml,e),Rl!==null&&ei(Rl,e),Rn.forEach(t),On.forEach(t);for(var l=0;l<Ol.length;l++){var a=Ol[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ol.length&&(l=Ol[0],l.blockedOn===null);)Wd(l),l.blockedOn===null&&Ol.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[Fe]||null;if(typeof u=="function")c||Id(l);else if(c){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Fe]||null)d=c.formAction;else if(As(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Id(l)}}}function Pd(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Ms(e){this._internalRoot=e}li.prototype.render=Ms.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=mt();Qd(l,a,e,t,null,null)},li.prototype.unmount=Ms.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qd(e.current,2,null,e,null,null),Bu(),t[ea]=null}};function li(e){this._internalRoot=e}li.prototype.unstable_scheduleHydration=function(e){if(e){var t=cr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ol.length&&t!==0&&t<Ol[l].priority;l++);Ol.splice(l,0,e),l===0&&Wd(e)}};var em=f.version;if(em!=="19.2.4")throw Error(r(527,em,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=h(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var oy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ai.isDisabled&&ai.supportsFiber)try{Ya=ai.inject(oy),ut=ai}catch{}}return Un.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=io,u=co,c=so;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Gd(e,1,!1,null,null,l,a,null,n,u,c,Pd),e[ea]=t.current,fs(e),new Ms(t)},Un.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",u=io,c=co,d=so,y=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=Gd(e,1,!0,t,l??null,a,n,y,u,c,d,Pd),t.context=Xd(null),l=t.current,a=mt(),a=gi(a),n=yl(a),n.callback=null,pl(l,n,a),l=a,t.current.lanes=l,Ga(t,l),Lt(t),e[ea]=t.current,fs(e),new li(t)},Un.version="19.2.4",Un}var fm;function Sy(){if(fm)return Cs.exports;fm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Cs.exports=by(),Cs.exports}var jy=Sy();/**
|
|
50
50
|
* react-router v7.13.1
|
|
51
51
|
*
|
|
52
52
|
* Copyright (c) Remix Software Inc.
|
|
@@ -55,16 +55,16 @@ Error generating stack: `+a.message+`
|
|
|
55
55
|
* LICENSE.md file in the root directory of this source tree.
|
|
56
56
|
*
|
|
57
57
|
* @license MIT
|
|
58
|
-
*/var om="popstate";function dm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ey(i={}){function f(m,v){let{pathname:x="/",search:A="",hash:S=""}=Pl(m.location.hash.substring(1));return!x.startsWith("/")&&!x.startsWith(".")&&(x="/"+x),Gs("",{pathname:x,search:A,hash:S},v.state&&v.state.usr||null,v.state&&v.state.key||"default")}function o(m,v){let x=m.document.querySelector("base"),A="";if(x&&x.getAttribute("href")){let S=m.location.href,h=S.indexOf("#");A=h===-1?S:S.slice(0,h)}return A+"#"+(typeof v=="string"?v:Bn(v))}function r(m,v){Ct(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(v)})`)}return Ty(f,o,r,i)}function _e(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Ct(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function Ny(){return Math.random().toString(36).substring(2,10)}function mm(i,f){return{usr:i.state,key:i.key,idx:f,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Gs(i,f,o=null,r,m){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?Pl(f):f,state:o,key:f&&f.key||r||Ny(),unstable_mask:m}}function Bn({pathname:i="/",search:f="",hash:o=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function Pl(i){let f={};if(i){let o=i.indexOf("#");o>=0&&(f.hash=i.substring(o),i=i.substring(0,o));let r=i.indexOf("?");r>=0&&(f.search=i.substring(r),i=i.substring(0,r)),i&&(f.pathname=i)}return f}function Ty(i,f,o,r={}){let{window:m=document.defaultView,v5Compat:v=!1}=r,x=m.history,A="POP",S=null,h=_();h==null&&(h=0,x.replaceState({...x.state,idx:h},""));function _(){return(x.state||{idx:null}).idx}function p(){A="POP";let O=_(),M=O==null?null:O-h;h=O,S&&S({action:A,location:q.location,delta:M})}function H(O,M){A="PUSH";let L=dm(O)?O:Gs(q.location,O,M);o&&o(L,O),h=_()+1;let Q=mm(L,h),X=q.createHref(L.unstable_mask||L);try{x.pushState(Q,"",X)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;m.location.assign(X)}v&&S&&S({action:A,location:q.location,delta:1})}function G(O,M){A="REPLACE";let L=dm(O)?O:Gs(q.location,O,M);o&&o(L,O),h=_();let Q=mm(L,h),X=q.createHref(L.unstable_mask||L);x.replaceState(Q,"",X),v&&S&&S({action:A,location:q.location,delta:0})}function k(O){return zy(O)}let q={get action(){return A},get location(){return i(m,x)},listen(O){if(S)throw new Error("A history only accepts one active listener");return m.addEventListener(om,p),S=O,()=>{m.removeEventListener(om,p),S=null}},createHref(O){return f(m,O)},createURL:k,encodeLocation(O){let M=k(O);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:H,replace:G,go(O){return x.go(O)}};return q}function zy(i,f=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),_e(o,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Bn(i);return r=r.replace(/ $/,"%20"),!f&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function Tm(i,f,o="/"){return Ay(i,f,o,!1)}function Ay(i,f,o,r){let m=typeof f=="string"?Pl(f):f,v=il(m.pathname||"/",o);if(v==null)return null;let x=zm(i);_y(x);let A=null;for(let S=0;A==null&&S<x.length;++S){let h=qy(v);A=wy(x[S],h,r)}return A}function zm(i,f=[],o=[],r="",m=!1){let v=(x,A,S=m,h)=>{let _={relativePath:h===void 0?x.path||"":h,caseSensitive:x.caseSensitive===!0,childrenIndex:A,route:x};if(_.relativePath.startsWith("/")){if(!_.relativePath.startsWith(r)&&S)return;_e(_.relativePath.startsWith(r),`Absolute route path "${_.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),_.relativePath=_.relativePath.slice(r.length)}let p=qt([r,_.relativePath]),H=o.concat(_);x.children&&x.children.length>0&&(_e(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),zm(x.children,f,H,p,S)),!(x.path==null&&!x.index)&&f.push({path:p,score:Hy(p,x.index),routesMeta:H})};return i.forEach((x,A)=>{var S;if(x.path===""||!((S=x.path)!=null&&S.includes("?")))v(x,A);else for(let h of Am(x.path))v(x,A,!0,h)}),f}function Am(i){let f=i.split("/");if(f.length===0)return[];let[o,...r]=f,m=o.endsWith("?"),v=o.replace(/\?$/,"");if(r.length===0)return m?[v,""]:[v];let x=Am(r.join("/")),A=[];return A.push(...x.map(S=>S===""?v:[v,S].join("/"))),m&&A.push(...x),A.map(S=>i.startsWith("/")&&S===""?"/":S)}function _y(i){i.sort((f,o)=>f.score!==o.score?o.score-f.score:By(f.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var My=/^:[\w-]+$/,Ry=3,Oy=2,Cy=1,Dy=10,Uy=-2,hm=i=>i==="*";function Hy(i,f){let o=i.split("/"),r=o.length;return o.some(hm)&&(r+=Uy),f&&(r+=Oy),o.filter(m=>!hm(m)).reduce((m,v)=>m+(My.test(v)?Ry:v===""?Cy:Dy),r)}function By(i,f){return i.length===f.length&&i.slice(0,-1).every((r,m)=>r===f[m])?i[i.length-1]-f[f.length-1]:0}function wy(i,f,o=!1){let{routesMeta:r}=i,m={},v="/",x=[];for(let A=0;A<r.length;++A){let S=r[A],h=A===r.length-1,_=v==="/"?f:f.slice(v.length)||"/",p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:h},_),H=S.route;if(!p&&h&&o&&!r[r.length-1].route.index&&(p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},_)),!p)return null;Object.assign(m,p.params),x.push({params:m,pathname:qt([v,p.pathname]),pathnameBase:Xy(qt([v,p.pathnameBase])),route:H}),p.pathnameBase!=="/"&&(v=qt([v,p.pathnameBase]))}return x}function si(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,r]=Ly(i.path,i.caseSensitive,i.end),m=f.match(o);if(!m)return null;let v=m[0],x=v.replace(/(.)\/+$/,"$1"),A=m.slice(1);return{params:r.reduce((h,{paramName:_,isOptional:p},H)=>{if(_==="*"){let k=A[H]||"";x=v.slice(0,v.length-k.length).replace(/(.)\/+$/,"$1")}const G=A[H];return p&&!G?h[_]=void 0:h[_]=(G||"").replace(/%2F/g,"/"),h},{}),pathname:v,pathnameBase:x,pattern:i}}function Ly(i,f=!1,o=!0){Ct(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,A,S,h,_)=>{if(r.push({paramName:A,isOptional:S!=null}),S){let p=_.charAt(h+x.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,f?void 0:"i"),r]}function qy(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Ct(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),i}}function il(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let o=f.endsWith("/")?f.length-1:f.length,r=i.charAt(o);return r&&r!=="/"?null:i.slice(o)||"/"}var Yy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ky(i,f="/"){let{pathname:o,search:r="",hash:m=""}=typeof i=="string"?Pl(i):i,v;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?v=vm(o.substring(1),"/"):v=vm(o,f)):v=f,{pathname:v,search:Qy(r),hash:Zy(m)}}function vm(i,f){let o=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?o.length>1&&o.pop():m!=="."&&o.push(m)}),o.length>1?o.join("/"):"/"}function Bs(i,f,o,r){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gy(i){return i.filter((f,o)=>o===0||f.route.path&&f.route.path.length>0)}function _m(i){let f=Gy(i);return f.map((o,r)=>r===f.length-1?o.pathname:o.pathnameBase)}function Zs(i,f,o,r=!1){let m;typeof i=="string"?m=Pl(i):(m={...i},_e(!m.pathname||!m.pathname.includes("?"),Bs("?","pathname","search",m)),_e(!m.pathname||!m.pathname.includes("#"),Bs("#","pathname","hash",m)),_e(!m.search||!m.search.includes("#"),Bs("#","search","hash",m)));let v=i===""||m.pathname==="",x=v?"/":m.pathname,A;if(x==null)A=o;else{let p=f.length-1;if(!r&&x.startsWith("..")){let H=x.split("/");for(;H[0]==="..";)H.shift(),p-=1;m.pathname=H.join("/")}A=p>=0?f[p]:"/"}let S=ky(m,A),h=x&&x!=="/"&&x.endsWith("/"),_=(v||x===".")&&o.endsWith("/");return!S.pathname.endsWith("/")&&(h||_)&&(S.pathname+="/"),S}var qt=i=>i.join("/").replace(/\/\/+/g,"/"),Xy=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Qy=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Zy=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Vy=class{constructor(i,f,o,r=!1){this.status=i,this.statusText=f||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Ky(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Jy(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Mm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Rm(i,f){let o=i;if(typeof o!="string"||!Yy.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,m=!1;if(Mm)try{let v=new URL(window.location.href),x=o.startsWith("//")?new URL(v.protocol+o):new URL(o),A=il(x.pathname,f);x.origin===v.origin&&A!=null?o=A+x.search+x.hash:m=!0}catch{Ct(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Om=["POST","PUT","PATCH","DELETE"];new Set(Om);var $y=["GET",...Om];new Set($y);var La=E.createContext(null);La.displayName="DataRouter";var ri=E.createContext(null);ri.displayName="DataRouterState";var Wy=E.createContext(!1),Cm=E.createContext({isTransitioning:!1});Cm.displayName="ViewTransition";var Fy=E.createContext(new Map);Fy.displayName="Fetchers";var Iy=E.createContext(null);Iy.displayName="Await";var At=E.createContext(null);At.displayName="Navigation";var wn=E.createContext(null);wn.displayName="Location";var Yt=E.createContext({outlet:null,matches:[],isDataRoute:!1});Yt.displayName="Route";var Vs=E.createContext(null);Vs.displayName="RouteError";var Dm="REACT_ROUTER_ERROR",Py="REDIRECT",ep="ROUTE_ERROR_RESPONSE";function tp(i){if(i.startsWith(`${Dm}:${Py}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function lp(i){if(i.startsWith(`${Dm}:${ep}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new Vy(f.status,f.statusText,f.data)}catch{}}function ap(i,{relative:f}={}){_e(Ln(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=E.useContext(At),{hash:m,pathname:v,search:x}=qn(i,{relative:f}),A=v;return o!=="/"&&(A=v==="/"?o:qt([o,v])),r.createHref({pathname:A,search:x,hash:m})}function Ln(){return E.useContext(wn)!=null}function cl(){return _e(Ln(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(wn).location}var Um="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hm(i){E.useContext(At).static||E.useLayoutEffect(i)}function np(){let{isDataRoute:i}=E.useContext(Yt);return i?pp():up()}function up(){_e(Ln(),"useNavigate() may be used only in the context of a <Router> component.");let i=E.useContext(La),{basename:f,navigator:o}=E.useContext(At),{matches:r}=E.useContext(Yt),{pathname:m}=cl(),v=JSON.stringify(_m(r)),x=E.useRef(!1);return Hm(()=>{x.current=!0}),E.useCallback((S,h={})=>{if(Ct(x.current,Um),!x.current)return;if(typeof S=="number"){o.go(S);return}let _=Zs(S,JSON.parse(v),m,h.relative==="path");i==null&&f!=="/"&&(_.pathname=_.pathname==="/"?f:qt([f,_.pathname])),(h.replace?o.replace:o.push)(_,h.state,h)},[f,o,v,m,i])}E.createContext(null);function fi(){let{matches:i}=E.useContext(Yt),f=i[i.length-1];return f?f.params:{}}function qn(i,{relative:f}={}){let{matches:o}=E.useContext(Yt),{pathname:r}=cl(),m=JSON.stringify(_m(o));return E.useMemo(()=>Zs(i,JSON.parse(m),r,f==="path"),[i,m,r,f])}function ip(i,f){return Bm(i,f)}function Bm(i,f,o){var O;_e(Ln(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(At),{matches:m}=E.useContext(Yt),v=m[m.length-1],x=v?v.params:{},A=v?v.pathname:"/",S=v?v.pathnameBase:"/",h=v&&v.route;{let M=h&&h.path||"";Lm(A,!h||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${A}" (under <Route path="${M}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
58
|
+
*/var om="popstate";function dm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ey(i={}){function f(m,v){let{pathname:x="/",search:A="",hash:S=""}=Pl(m.location.hash.substring(1));return!x.startsWith("/")&&!x.startsWith(".")&&(x="/"+x),Gs("",{pathname:x,search:A,hash:S},v.state&&v.state.usr||null,v.state&&v.state.key||"default")}function o(m,v){let x=m.document.querySelector("base"),A="";if(x&&x.getAttribute("href")){let S=m.location.href,h=S.indexOf("#");A=h===-1?S:S.slice(0,h)}return A+"#"+(typeof v=="string"?v:Bn(v))}function r(m,v){Ct(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(v)})`)}return Ty(f,o,r,i)}function _e(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Ct(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function Ny(){return Math.random().toString(36).substring(2,10)}function mm(i,f){return{usr:i.state,key:i.key,idx:f,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Gs(i,f,o=null,r,m){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?Pl(f):f,state:o,key:f&&f.key||r||Ny(),unstable_mask:m}}function Bn({pathname:i="/",search:f="",hash:o=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function Pl(i){let f={};if(i){let o=i.indexOf("#");o>=0&&(f.hash=i.substring(o),i=i.substring(0,o));let r=i.indexOf("?");r>=0&&(f.search=i.substring(r),i=i.substring(0,r)),i&&(f.pathname=i)}return f}function Ty(i,f,o,r={}){let{window:m=document.defaultView,v5Compat:v=!1}=r,x=m.history,A="POP",S=null,h=_();h==null&&(h=0,x.replaceState({...x.state,idx:h},""));function _(){return(x.state||{idx:null}).idx}function p(){A="POP";let G=_(),O=G==null?null:G-h;h=G,S&&S({action:A,location:Q.location,delta:O})}function H(G,O){A="PUSH";let q=dm(G)?G:Gs(Q.location,G,O);o&&o(q,G),h=_()+1;let Y=mm(q,h),M=Q.createHref(q.unstable_mask||q);try{x.pushState(Y,"",M)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;m.location.assign(M)}v&&S&&S({action:A,location:Q.location,delta:1})}function X(G,O){A="REPLACE";let q=dm(G)?G:Gs(Q.location,G,O);o&&o(q,G),h=_();let Y=mm(q,h),M=Q.createHref(q.unstable_mask||q);x.replaceState(Y,"",M),v&&S&&S({action:A,location:Q.location,delta:0})}function k(G){return zy(G)}let Q={get action(){return A},get location(){return i(m,x)},listen(G){if(S)throw new Error("A history only accepts one active listener");return m.addEventListener(om,p),S=G,()=>{m.removeEventListener(om,p),S=null}},createHref(G){return f(m,G)},createURL:k,encodeLocation(G){let O=k(G);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:H,replace:X,go(G){return x.go(G)}};return Q}function zy(i,f=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),_e(o,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Bn(i);return r=r.replace(/ $/,"%20"),!f&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function Tm(i,f,o="/"){return Ay(i,f,o,!1)}function Ay(i,f,o,r){let m=typeof f=="string"?Pl(f):f,v=il(m.pathname||"/",o);if(v==null)return null;let x=zm(i);_y(x);let A=null;for(let S=0;A==null&&S<x.length;++S){let h=qy(v);A=wy(x[S],h,r)}return A}function zm(i,f=[],o=[],r="",m=!1){let v=(x,A,S=m,h)=>{let _={relativePath:h===void 0?x.path||"":h,caseSensitive:x.caseSensitive===!0,childrenIndex:A,route:x};if(_.relativePath.startsWith("/")){if(!_.relativePath.startsWith(r)&&S)return;_e(_.relativePath.startsWith(r),`Absolute route path "${_.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),_.relativePath=_.relativePath.slice(r.length)}let p=qt([r,_.relativePath]),H=o.concat(_);x.children&&x.children.length>0&&(_e(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),zm(x.children,f,H,p,S)),!(x.path==null&&!x.index)&&f.push({path:p,score:Hy(p,x.index),routesMeta:H})};return i.forEach((x,A)=>{var S;if(x.path===""||!((S=x.path)!=null&&S.includes("?")))v(x,A);else for(let h of Am(x.path))v(x,A,!0,h)}),f}function Am(i){let f=i.split("/");if(f.length===0)return[];let[o,...r]=f,m=o.endsWith("?"),v=o.replace(/\?$/,"");if(r.length===0)return m?[v,""]:[v];let x=Am(r.join("/")),A=[];return A.push(...x.map(S=>S===""?v:[v,S].join("/"))),m&&A.push(...x),A.map(S=>i.startsWith("/")&&S===""?"/":S)}function _y(i){i.sort((f,o)=>f.score!==o.score?o.score-f.score:By(f.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var My=/^:[\w-]+$/,Ry=3,Oy=2,Cy=1,Dy=10,Uy=-2,hm=i=>i==="*";function Hy(i,f){let o=i.split("/"),r=o.length;return o.some(hm)&&(r+=Uy),f&&(r+=Oy),o.filter(m=>!hm(m)).reduce((m,v)=>m+(My.test(v)?Ry:v===""?Cy:Dy),r)}function By(i,f){return i.length===f.length&&i.slice(0,-1).every((r,m)=>r===f[m])?i[i.length-1]-f[f.length-1]:0}function wy(i,f,o=!1){let{routesMeta:r}=i,m={},v="/",x=[];for(let A=0;A<r.length;++A){let S=r[A],h=A===r.length-1,_=v==="/"?f:f.slice(v.length)||"/",p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:h},_),H=S.route;if(!p&&h&&o&&!r[r.length-1].route.index&&(p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},_)),!p)return null;Object.assign(m,p.params),x.push({params:m,pathname:qt([v,p.pathname]),pathnameBase:Xy(qt([v,p.pathnameBase])),route:H}),p.pathnameBase!=="/"&&(v=qt([v,p.pathnameBase]))}return x}function si(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,r]=Ly(i.path,i.caseSensitive,i.end),m=f.match(o);if(!m)return null;let v=m[0],x=v.replace(/(.)\/+$/,"$1"),A=m.slice(1);return{params:r.reduce((h,{paramName:_,isOptional:p},H)=>{if(_==="*"){let k=A[H]||"";x=v.slice(0,v.length-k.length).replace(/(.)\/+$/,"$1")}const X=A[H];return p&&!X?h[_]=void 0:h[_]=(X||"").replace(/%2F/g,"/"),h},{}),pathname:v,pathnameBase:x,pattern:i}}function Ly(i,f=!1,o=!0){Ct(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,A,S,h,_)=>{if(r.push({paramName:A,isOptional:S!=null}),S){let p=_.charAt(h+x.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,f?void 0:"i"),r]}function qy(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Ct(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),i}}function il(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let o=f.endsWith("/")?f.length-1:f.length,r=i.charAt(o);return r&&r!=="/"?null:i.slice(o)||"/"}var Yy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ky(i,f="/"){let{pathname:o,search:r="",hash:m=""}=typeof i=="string"?Pl(i):i,v;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?v=vm(o.substring(1),"/"):v=vm(o,f)):v=f,{pathname:v,search:Qy(r),hash:Zy(m)}}function vm(i,f){let o=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?o.length>1&&o.pop():m!=="."&&o.push(m)}),o.length>1?o.join("/"):"/"}function Bs(i,f,o,r){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gy(i){return i.filter((f,o)=>o===0||f.route.path&&f.route.path.length>0)}function _m(i){let f=Gy(i);return f.map((o,r)=>r===f.length-1?o.pathname:o.pathnameBase)}function Zs(i,f,o,r=!1){let m;typeof i=="string"?m=Pl(i):(m={...i},_e(!m.pathname||!m.pathname.includes("?"),Bs("?","pathname","search",m)),_e(!m.pathname||!m.pathname.includes("#"),Bs("#","pathname","hash",m)),_e(!m.search||!m.search.includes("#"),Bs("#","search","hash",m)));let v=i===""||m.pathname==="",x=v?"/":m.pathname,A;if(x==null)A=o;else{let p=f.length-1;if(!r&&x.startsWith("..")){let H=x.split("/");for(;H[0]==="..";)H.shift(),p-=1;m.pathname=H.join("/")}A=p>=0?f[p]:"/"}let S=ky(m,A),h=x&&x!=="/"&&x.endsWith("/"),_=(v||x===".")&&o.endsWith("/");return!S.pathname.endsWith("/")&&(h||_)&&(S.pathname+="/"),S}var qt=i=>i.join("/").replace(/\/\/+/g,"/"),Xy=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Qy=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Zy=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Vy=class{constructor(i,f,o,r=!1){this.status=i,this.statusText=f||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Ky(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Jy(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Mm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Rm(i,f){let o=i;if(typeof o!="string"||!Yy.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,m=!1;if(Mm)try{let v=new URL(window.location.href),x=o.startsWith("//")?new URL(v.protocol+o):new URL(o),A=il(x.pathname,f);x.origin===v.origin&&A!=null?o=A+x.search+x.hash:m=!0}catch{Ct(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Om=["POST","PUT","PATCH","DELETE"];new Set(Om);var $y=["GET",...Om];new Set($y);var La=E.createContext(null);La.displayName="DataRouter";var ri=E.createContext(null);ri.displayName="DataRouterState";var Wy=E.createContext(!1),Cm=E.createContext({isTransitioning:!1});Cm.displayName="ViewTransition";var Fy=E.createContext(new Map);Fy.displayName="Fetchers";var Iy=E.createContext(null);Iy.displayName="Await";var At=E.createContext(null);At.displayName="Navigation";var wn=E.createContext(null);wn.displayName="Location";var Yt=E.createContext({outlet:null,matches:[],isDataRoute:!1});Yt.displayName="Route";var Vs=E.createContext(null);Vs.displayName="RouteError";var Dm="REACT_ROUTER_ERROR",Py="REDIRECT",ep="ROUTE_ERROR_RESPONSE";function tp(i){if(i.startsWith(`${Dm}:${Py}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function lp(i){if(i.startsWith(`${Dm}:${ep}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new Vy(f.status,f.statusText,f.data)}catch{}}function ap(i,{relative:f}={}){_e(Ln(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=E.useContext(At),{hash:m,pathname:v,search:x}=qn(i,{relative:f}),A=v;return o!=="/"&&(A=v==="/"?o:qt([o,v])),r.createHref({pathname:A,search:x,hash:m})}function Ln(){return E.useContext(wn)!=null}function cl(){return _e(Ln(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(wn).location}var Um="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hm(i){E.useContext(At).static||E.useLayoutEffect(i)}function np(){let{isDataRoute:i}=E.useContext(Yt);return i?pp():up()}function up(){_e(Ln(),"useNavigate() may be used only in the context of a <Router> component.");let i=E.useContext(La),{basename:f,navigator:o}=E.useContext(At),{matches:r}=E.useContext(Yt),{pathname:m}=cl(),v=JSON.stringify(_m(r)),x=E.useRef(!1);return Hm(()=>{x.current=!0}),E.useCallback((S,h={})=>{if(Ct(x.current,Um),!x.current)return;if(typeof S=="number"){o.go(S);return}let _=Zs(S,JSON.parse(v),m,h.relative==="path");i==null&&f!=="/"&&(_.pathname=_.pathname==="/"?f:qt([f,_.pathname])),(h.replace?o.replace:o.push)(_,h.state,h)},[f,o,v,m,i])}E.createContext(null);function fi(){let{matches:i}=E.useContext(Yt),f=i[i.length-1];return f?f.params:{}}function qn(i,{relative:f}={}){let{matches:o}=E.useContext(Yt),{pathname:r}=cl(),m=JSON.stringify(_m(o));return E.useMemo(()=>Zs(i,JSON.parse(m),r,f==="path"),[i,m,r,f])}function ip(i,f){return Bm(i,f)}function Bm(i,f,o){var G;_e(Ln(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(At),{matches:m}=E.useContext(Yt),v=m[m.length-1],x=v?v.params:{},A=v?v.pathname:"/",S=v?v.pathnameBase:"/",h=v&&v.route;{let O=h&&h.path||"";Lm(A,!h||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${A}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
59
|
|
|
60
|
-
Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let _=cl(),p;if(f){let M=typeof f=="string"?Pl(f):f;_e(S==="/"||((O=M.pathname)==null?void 0:O.startsWith(S)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${S}" but pathname "${M.pathname}" was given in the \`location\` prop.`),p=M}else p=_;let H=p.pathname||"/",G=H;if(S!=="/"){let M=S.replace(/^\//,"").split("/");G="/"+H.replace(/^\//,"").split("/").slice(M.length).join("/")}let k=Tm(i,{pathname:G});Ct(h||k!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Ct(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let q=op(k&&k.map(M=>Object.assign({},M,{params:Object.assign({},x,M.params),pathname:qt([S,r.encodeLocation?r.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?S:qt([S,r.encodeLocation?r.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),m,o);return f&&q?E.createElement(wn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},q):q}function cp(){let i=yp(),f=Ky(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},v={padding:"2px 4px",backgroundColor:r},x=null;return console.error("Error handled by React Router default ErrorBoundary:",i),x=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:v},"ErrorBoundary")," or"," ",E.createElement("code",{style:v},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},f),o?E.createElement("pre",{style:m},o):null,x)}var sp=E.createElement(cp,null),wm=class extends E.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=lp(i.digest);o&&(i=o)}let f=i!==void 0?E.createElement(Yt.Provider,{value:this.props.routeContext},E.createElement(Vs.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(rp,{error:i},f):f}};wm.contextType=Wy;var ws=new WeakMap;function rp({children:i,error:f}){let{basename:o}=E.useContext(At);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let r=tp(f.digest);if(r){let m=ws.get(f);if(m)throw m;let v=Rm(r.location,o);if(Mm&&!ws.get(f))if(v.isExternal||r.reloadDocument)window.location.href=v.absoluteURL||v.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(v.to,{replace:r.replace}));throw ws.set(f,x),x}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v.absoluteURL||v.to}`})}}return i}function fp({routeContext:i,match:f,children:o}){let r=E.useContext(La);return r&&r.static&&r.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=f.route.id),E.createElement(Yt.Provider,{value:i},o)}function op(i,f=[],o){let r=o==null?void 0:o.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(f.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let m=i,v=r==null?void 0:r.errors;if(v!=null){let _=m.findIndex(p=>p.route.id&&(v==null?void 0:v[p.route.id])!==void 0);_e(_>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),m=m.slice(0,Math.min(m.length,_+1))}let x=!1,A=-1;if(o&&r){x=r.renderFallback;for(let _=0;_<m.length;_++){let p=m[_];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(A=_),p.route.id){let{loaderData:H,errors:G}=r,k=p.route.loader&&!H.hasOwnProperty(p.route.id)&&(!G||G[p.route.id]===void 0);if(p.route.lazy||k){o.isStatic&&(x=!0),A>=0?m=m.slice(0,A+1):m=[m[0]];break}}}}let S=o==null?void 0:o.onError,h=r&&S?(_,p)=>{var H,G;S(_,{location:r.location,params:((G=(H=r.matches)==null?void 0:H[0])==null?void 0:G.params)??{},unstable_pattern:Jy(r.matches),errorInfo:p})}:void 0;return m.reduceRight((_,p,H)=>{let G,k=!1,q=null,O=null;r&&(G=v&&p.route.id?v[p.route.id]:void 0,q=p.route.errorElement||sp,x&&(A<0&&H===0?(Lm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,O=null):A===H&&(k=!0,O=p.route.hydrateFallbackElement||null)));let M=f.concat(m.slice(0,H+1)),L=()=>{let Q;return G?Q=q:k?Q=O:p.route.Component?Q=E.createElement(p.route.Component,null):p.route.element?Q=p.route.element:Q=_,E.createElement(fp,{match:p,routeContext:{outlet:_,matches:M,isDataRoute:r!=null},children:Q})};return r&&(p.route.ErrorBoundary||p.route.errorElement||H===0)?E.createElement(wm,{location:r.location,revalidation:r.revalidation,component:q,error:G,children:L(),routeContext:{outlet:null,matches:M,isDataRoute:!0},onError:h}):L()},null)}function Ks(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dp(i){let f=E.useContext(La);return _e(f,Ks(i)),f}function mp(i){let f=E.useContext(ri);return _e(f,Ks(i)),f}function hp(i){let f=E.useContext(Yt);return _e(f,Ks(i)),f}function Js(i){let f=hp(i),o=f.matches[f.matches.length-1];return _e(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function vp(){return Js("useRouteId")}function yp(){var r;let i=E.useContext(Vs),f=mp("useRouteError"),o=Js("useRouteError");return i!==void 0?i:(r=f.errors)==null?void 0:r[o]}function pp(){let{router:i}=dp("useNavigate"),f=Js("useNavigate"),o=E.useRef(!1);return Hm(()=>{o.current=!0}),E.useCallback(async(m,v={})=>{Ct(o.current,Um),o.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:f,...v}))},[i,f])}var ym={};function Lm(i,f,o){!f&&!ym[i]&&(ym[i]=!0,Ct(!1,o))}E.memo(xp);function xp({routes:i,future:f,state:o,isStatic:r,onError:m}){return Bm(i,void 0,{state:o,isStatic:r,onError:m})}function Il(i){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gp({basename:i="/",children:f=null,location:o,navigationType:r="POP",navigator:m,static:v=!1,unstable_useTransitions:x}){_e(!Ln(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let A=i.replace(/^\/*/,"/"),S=E.useMemo(()=>({basename:A,navigator:m,static:v,unstable_useTransitions:x,future:{}}),[A,m,v,x]);typeof o=="string"&&(o=Pl(o));let{pathname:h="/",search:_="",hash:p="",state:H=null,key:G="default",unstable_mask:k}=o,q=E.useMemo(()=>{let O=il(h,A);return O==null?null:{location:{pathname:O,search:_,hash:p,state:H,key:G,unstable_mask:k},navigationType:r}},[A,h,_,p,H,G,r,k]);return Ct(q!=null,`<Router basename="${A}"> is not able to match the URL "${h}${_}${p}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:E.createElement(At.Provider,{value:S},E.createElement(wn.Provider,{children:f,value:q}))}function bp({children:i,location:f}){return ip(Xs(i),f)}function Xs(i,f=[]){let o=[];return E.Children.forEach(i,(r,m)=>{if(!E.isValidElement(r))return;let v=[...f,m];if(r.type===E.Fragment){o.push.apply(o,Xs(r.props.children,v));return}_e(r.type===Il,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!r.props.index||!r.props.children,"An index route cannot have child routes.");let x={id:r.props.id||v.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(x.children=Xs(r.props.children,v)),o.push(x)}),o}var ii="get",ci="application/x-www-form-urlencoded";function oi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Sp(i){return oi(i)&&i.tagName.toLowerCase()==="button"}function jp(i){return oi(i)&&i.tagName.toLowerCase()==="form"}function Ep(i){return oi(i)&&i.tagName.toLowerCase()==="input"}function Np(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Tp(i,f){return i.button===0&&(!f||f==="_self")&&!Np(i)}var ni=null;function zp(){if(ni===null)try{new FormData(document.createElement("form"),0),ni=!1}catch{ni=!0}return ni}var Ap=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ls(i){return i!=null&&!Ap.has(i)?(Ct(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ci}"`),null):i}function _p(i,f){let o,r,m,v,x;if(jp(i)){let A=i.getAttribute("action");r=A?il(A,f):null,o=i.getAttribute("method")||ii,m=Ls(i.getAttribute("enctype"))||ci,v=new FormData(i)}else if(Sp(i)||Ep(i)&&(i.type==="submit"||i.type==="image")){let A=i.form;if(A==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||A.getAttribute("action");if(r=S?il(S,f):null,o=i.getAttribute("formmethod")||A.getAttribute("method")||ii,m=Ls(i.getAttribute("formenctype"))||Ls(A.getAttribute("enctype"))||ci,v=new FormData(A,i),!zp()){let{name:h,type:_,value:p}=i;if(_==="image"){let H=h?`${h}.`:"";v.append(`${H}x`,"0"),v.append(`${H}y`,"0")}else h&&v.append(h,p)}}else{if(oi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=ii,r=null,m=ci,x=i}return v&&m==="text/plain"&&(x=v,v=void 0),{action:r,method:o.toLowerCase(),encType:m,formData:v,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $s(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Mp(i,f,o,r){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:f&&il(m.pathname,f)==="/"?m.pathname=`${f.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function Rp(i,f){if(i.id in f)return f[i.id];try{let o=await import(i.module);return f[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Op(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Cp(i,f,o){let r=await Promise.all(i.map(async m=>{let v=f.routes[m.route.id];if(v){let x=await Rp(v,o);return x.links?x.links():[]}return[]}));return Bp(r.flat(1).filter(Op).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function pm(i,f,o,r,m,v){let x=(S,h)=>o[h]?S.route.id!==o[h].route.id:!0,A=(S,h)=>{var _;return o[h].pathname!==S.pathname||((_=o[h].route.path)==null?void 0:_.endsWith("*"))&&o[h].params["*"]!==S.params["*"]};return v==="assets"?f.filter((S,h)=>x(S,h)||A(S,h)):v==="data"?f.filter((S,h)=>{var p;let _=r.routes[S.route.id];if(!_||!_.hasLoader)return!1;if(x(S,h)||A(S,h))return!0;if(S.route.shouldRevalidate){let H=S.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((p=o[0])==null?void 0:p.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof H=="boolean")return H}return!0}):[]}function Dp(i,f,{includeHydrateFallback:o}={}){return Up(i.map(r=>{let m=f.routes[r.route.id];if(!m)return[];let v=[m.module];return m.clientActionModule&&(v=v.concat(m.clientActionModule)),m.clientLoaderModule&&(v=v.concat(m.clientLoaderModule)),o&&m.hydrateFallbackModule&&(v=v.concat(m.hydrateFallbackModule)),m.imports&&(v=v.concat(m.imports)),v}).flat(1))}function Up(i){return[...new Set(i)]}function Hp(i){let f={},o=Object.keys(i).sort();for(let r of o)f[r]=i[r];return f}function Bp(i,f){let o=new Set;return new Set(f),i.reduce((r,m)=>{let v=JSON.stringify(Hp(m));return o.has(v)||(o.add(v),r.push({key:v,link:m})),r},[])}function qm(){let i=E.useContext(La);return $s(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function wp(){let i=E.useContext(ri);return $s(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Ws=E.createContext(void 0);Ws.displayName="FrameworkContext";function Ym(){let i=E.useContext(Ws);return $s(i,"You must render this element inside a <HydratedRouter> element"),i}function Lp(i,f){let o=E.useContext(Ws),[r,m]=E.useState(!1),[v,x]=E.useState(!1),{onFocus:A,onBlur:S,onMouseEnter:h,onMouseLeave:_,onTouchStart:p}=f,H=E.useRef(null);E.useEffect(()=>{if(i==="render"&&x(!0),i==="viewport"){let q=M=>{M.forEach(L=>{x(L.isIntersecting)})},O=new IntersectionObserver(q,{threshold:.5});return H.current&&O.observe(H.current),()=>{O.disconnect()}}},[i]),E.useEffect(()=>{if(r){let q=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(q)}}},[r]);let G=()=>{m(!0)},k=()=>{m(!1),x(!1)};return o?i!=="intent"?[v,H,{}]:[v,H,{onFocus:Hn(A,G),onBlur:Hn(S,k),onMouseEnter:Hn(h,G),onMouseLeave:Hn(_,k),onTouchStart:Hn(p,G)}]:[!1,H,{}]}function Hn(i,f){return o=>{i&&i(o),o.defaultPrevented||f(o)}}function qp({page:i,...f}){let{router:o}=qm(),r=E.useMemo(()=>Tm(o.routes,i,o.basename),[o.routes,i,o.basename]);return r?E.createElement(kp,{page:i,matches:r,...f}):null}function Yp(i){let{manifest:f,routeModules:o}=Ym(),[r,m]=E.useState([]);return E.useEffect(()=>{let v=!1;return Cp(i,f,o).then(x=>{v||m(x)}),()=>{v=!0}},[i,f,o]),r}function kp({page:i,matches:f,...o}){let r=cl(),{future:m,manifest:v,routeModules:x}=Ym(),{basename:A}=qm(),{loaderData:S,matches:h}=wp(),_=E.useMemo(()=>pm(i,f,h,v,r,"data"),[i,f,h,v,r]),p=E.useMemo(()=>pm(i,f,h,v,r,"assets"),[i,f,h,v,r]),H=E.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let q=new Set,O=!1;if(f.forEach(L=>{var X;let Q=v.routes[L.route.id];!Q||!Q.hasLoader||(!_.some(Y=>Y.route.id===L.route.id)&&L.route.id in S&&((X=x[L.route.id])!=null&&X.shouldRevalidate)||Q.hasClientLoader?O=!0:q.add(L.route.id))}),q.size===0)return[];let M=Mp(i,A,m.unstable_trailingSlashAwareDataRequests,"data");return O&&q.size>0&&M.searchParams.set("_routes",f.filter(L=>q.has(L.route.id)).map(L=>L.route.id).join(",")),[M.pathname+M.search]},[A,m.unstable_trailingSlashAwareDataRequests,S,r,v,_,f,i,x]),G=E.useMemo(()=>Dp(p,v),[p,v]),k=Yp(p);return E.createElement(E.Fragment,null,H.map(q=>E.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...o})),G.map(q=>E.createElement("link",{key:q,rel:"modulepreload",href:q,...o})),k.map(({key:q,link:O})=>E.createElement("link",{key:q,nonce:o.nonce,...O,crossOrigin:O.crossOrigin??o.crossOrigin})))}function Gp(...i){return f=>{i.forEach(o=>{typeof o=="function"?o(f):o!=null&&(o.current=f)})}}var Xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xp&&(window.__reactRouterVersion="7.13.1")}catch{}function Qp({basename:i,children:f,unstable_useTransitions:o,window:r}){let m=E.useRef();m.current==null&&(m.current=Ey({window:r,v5Compat:!0}));let v=m.current,[x,A]=E.useState({action:v.action,location:v.location}),S=E.useCallback(h=>{o===!1?A(h):E.startTransition(()=>A(h))},[o]);return E.useLayoutEffect(()=>v.listen(S),[v,S]),E.createElement(gp,{basename:i,children:f,location:x.location,navigationType:x.action,navigator:v,unstable_useTransitions:o})}var km=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ot=E.forwardRef(function({onClick:f,discover:o="render",prefetch:r="none",relative:m,reloadDocument:v,replace:x,unstable_mask:A,state:S,target:h,to:_,preventScrollReset:p,viewTransition:H,unstable_defaultShouldRevalidate:G,...k},q){let{basename:O,navigator:M,unstable_useTransitions:L}=E.useContext(At),Q=typeof _=="string"&&km.test(_),X=Rm(_,O);_=X.to;let Y=ap(_,{relative:m}),$=cl(),K=null;if(A){let Ue=Zs(A,[],$.unstable_mask?$.unstable_mask.pathname:"/",!0);O!=="/"&&(Ue.pathname=Ue.pathname==="/"?O:qt([O,Ue.pathname])),K=M.createHref(Ue)}let[oe,Ne,Dt]=Lp(r,k),vt=Jp(_,{replace:x,unstable_mask:A,state:S,target:h,preventScrollReset:p,relative:m,viewTransition:H,unstable_defaultShouldRevalidate:G,unstable_useTransitions:L});function Ke(Ue){f&&f(Ue),Ue.defaultPrevented||vt(Ue)}let Ut=!(X.isExternal||v),yt=E.createElement("a",{...k,...Dt,href:(Ut?K:void 0)||X.absoluteURL||Y,onClick:Ut?Ke:f,ref:Gp(q,Ne),target:h,"data-discover":!Q&&o==="render"?"true":void 0});return oe&&!Q?E.createElement(E.Fragment,null,yt,E.createElement(qp,{page:Y})):yt});Ot.displayName="Link";var Zp=E.forwardRef(function({"aria-current":f="page",caseSensitive:o=!1,className:r="",end:m=!1,style:v,to:x,viewTransition:A,children:S,...h},_){let p=qn(x,{relative:h.relative}),H=cl(),G=E.useContext(ri),{navigator:k,basename:q}=E.useContext(At),O=G!=null&&Pp(p)&&A===!0,M=k.encodeLocation?k.encodeLocation(p).pathname:p.pathname,L=H.pathname,Q=G&&G.navigation&&G.navigation.location?G.navigation.location.pathname:null;o||(L=L.toLowerCase(),Q=Q?Q.toLowerCase():null,M=M.toLowerCase()),Q&&q&&(Q=il(Q,q)||Q);const X=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let Y=L===M||!m&&L.startsWith(M)&&L.charAt(X)==="/",$=Q!=null&&(Q===M||!m&&Q.startsWith(M)&&Q.charAt(M.length)==="/"),K={isActive:Y,isPending:$,isTransitioning:O},oe=Y?f:void 0,Ne;typeof r=="function"?Ne=r(K):Ne=[r,Y?"active":null,$?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let Dt=typeof v=="function"?v(K):v;return E.createElement(Ot,{...h,"aria-current":oe,className:Ne,ref:_,style:Dt,to:x,viewTransition:A},typeof S=="function"?S(K):S)});Zp.displayName="NavLink";var Vp=E.forwardRef(({discover:i="render",fetcherKey:f,navigate:o,reloadDocument:r,replace:m,state:v,method:x=ii,action:A,onSubmit:S,relative:h,preventScrollReset:_,viewTransition:p,unstable_defaultShouldRevalidate:H,...G},k)=>{let{unstable_useTransitions:q}=E.useContext(At),O=Fp(),M=Ip(A,{relative:h}),L=x.toLowerCase()==="get"?"get":"post",Q=typeof A=="string"&&km.test(A),X=Y=>{if(S&&S(Y),Y.defaultPrevented)return;Y.preventDefault();let $=Y.nativeEvent.submitter,K=($==null?void 0:$.getAttribute("formmethod"))||x,oe=()=>O($||Y.currentTarget,{fetcherKey:f,method:K,navigate:o,replace:m,state:v,relative:h,preventScrollReset:_,viewTransition:p,unstable_defaultShouldRevalidate:H});q&&o!==!1?E.startTransition(()=>oe()):oe()};return E.createElement("form",{ref:k,method:L,action:M,onSubmit:r?S:X,...G,"data-discover":!Q&&i==="render"?"true":void 0})});Vp.displayName="Form";function Kp(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gm(i){let f=E.useContext(La);return _e(f,Kp(i)),f}function Jp(i,{target:f,replace:o,unstable_mask:r,state:m,preventScrollReset:v,relative:x,viewTransition:A,unstable_defaultShouldRevalidate:S,unstable_useTransitions:h}={}){let _=np(),p=cl(),H=qn(i,{relative:x});return E.useCallback(G=>{if(Tp(G,f)){G.preventDefault();let k=o!==void 0?o:Bn(p)===Bn(H),q=()=>_(i,{replace:k,unstable_mask:r,state:m,preventScrollReset:v,relative:x,viewTransition:A,unstable_defaultShouldRevalidate:S});h?E.startTransition(()=>q()):q()}},[p,_,H,o,r,m,f,i,v,x,A,S,h])}var $p=0,Wp=()=>`__${String(++$p)}__`;function Fp(){let{router:i}=Gm("useSubmit"),{basename:f}=E.useContext(At),o=vp(),r=i.fetch,m=i.navigate;return E.useCallback(async(v,x={})=>{let{action:A,method:S,encType:h,formData:_,body:p}=_p(v,f);if(x.navigate===!1){let H=x.fetcherKey||Wp();await r(H,o,x.action||A,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:_,body:p,formMethod:x.method||S,formEncType:x.encType||h,flushSync:x.flushSync})}else await m(x.action||A,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:_,body:p,formMethod:x.method||S,formEncType:x.encType||h,replace:x.replace,state:x.state,fromRouteId:o,flushSync:x.flushSync,viewTransition:x.viewTransition})},[r,m,f,o])}function Ip(i,{relative:f}={}){let{basename:o}=E.useContext(At),r=E.useContext(Yt);_e(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),v={...qn(i||".",{relative:f})},x=cl();if(i==null){v.search=x.search;let A=new URLSearchParams(v.search),S=A.getAll("index");if(S.some(_=>_==="")){A.delete("index"),S.filter(p=>p).forEach(p=>A.append("index",p));let _=A.toString();v.search=_?`?${_}`:""}}return(!i||i===".")&&m.route.index&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(v.pathname=v.pathname==="/"?o:qt([o,v.pathname])),Bn(v)}function Pp(i,{relative:f}={}){let o=E.useContext(Cm);_e(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Gm("useViewTransitionState"),m=qn(i,{relative:f});if(!o.isTransitioning)return!1;let v=il(o.currentLocation.pathname,r)||o.currentLocation.pathname,x=il(o.nextLocation.pathname,r)||o.nextLocation.pathname;return si(m.pathname,x)!=null||si(m.pathname,v)!=null}const e1="";async function ul(i,f){const o=await fetch(`${e1}${i}`,f);if(!o.ok){const r=await o.json().catch(()=>({error:o.statusText}));throw new Error(r.error||`HTTP ${o.status}`)}return o.json()}const ht={getConfig(){return ul("/api/config")},setConfig(i,f){return ul("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:i,model:f})})},getSkills(){return ul("/api/skills")},getSkillDetail(i,f){return ul(`/api/skills/${i}/${f}`)},getEvals(i,f){return ul(`/api/skills/${i}/${f}/evals`)},saveEvals(i,f,o){return ul(`/api/skills/${i}/${f}/evals`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})},getLatestBenchmark(i,f){return ul(`/api/skills/${i}/${f}/benchmark/latest`)},getHistory(i,f){return ul(`/api/skills/${i}/${f}/history`)},getHistoryEntry(i,f,o){return ul(`/api/skills/${i}/${f}/history/${encodeURIComponent(o)}`)}},xm={pass:{bg:"var(--green-muted)",text:"var(--green)",dot:"var(--green)",label:"Passing"},fail:{bg:"var(--red-muted)",text:"var(--red)",dot:"var(--red)",label:"Failing"},pending:{bg:"var(--yellow-muted)",text:"var(--yellow)",dot:"var(--yellow)",label:"Pending"},missing:{bg:"var(--surface-3)",text:"var(--text-tertiary)",dot:"var(--text-tertiary)",label:"No evals"}};function qs(){return s.jsx("div",{className:"glass-card p-5",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"skeleton h-5 w-36 mb-2"}),s.jsx("div",{className:"skeleton h-3.5 w-48"})]}),s.jsx("div",{className:"skeleton h-6 w-20 rounded-full"})]})})}function t1(){const[i,f]=E.useState([]),[o,r]=E.useState(!0),[m,v]=E.useState(null);E.useEffect(()=>{ht.getSkills().then(f).catch(A=>v(A.message)).finally(()=>r(!1))},[]);const x=i.reduce((A,S)=>{var h;return(A[h=S.plugin]||(A[h]=[])).push(S),A},{});return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-8",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Skills"}),s.jsx("p",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:o?"Scanning plugins...":`${i.length} skill${i.length!==1?"s":""} across ${Object.keys(x).length} plugin${Object.keys(x).length!==1?"s":""}`})]}),m&&s.jsx("div",{className:"mb-6 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:m}),o&&s.jsxs("div",{className:"space-y-3",children:[s.jsx(qs,{}),s.jsx(qs,{}),s.jsx(qs,{})]}),!o&&s.jsx("div",{className:"space-y-8 stagger-children",children:Object.entries(x).map(([A,S])=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 px-1",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),s.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:A}),s.jsx("div",{className:"flex-1 h-px",style:{background:"var(--border-subtle)"}})]}),s.jsx("div",{className:"grid gap-2",children:S.map(h=>{const _=xm[h.benchmarkStatus]||xm.missing;return s.jsxs(Ot,{to:`/skills/${h.plugin}/${h.skill}`,className:"glass-card glass-card-interactive p-5 flex items-center justify-between group",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2",children:s.jsx("span",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:h.skill})}),s.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[h.evalCount," eval",h.evalCount!==1?"s":""]}),s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[h.assertionCount," assertion",h.assertionCount!==1?"s":""]}),h.lastBenchmark&&s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:new Date(h.lastBenchmark).toLocaleDateString()})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"pill",style:{background:_.bg,color:_.text},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:_.dot}}),_.label]}),s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150",style:{transform:"translateX(0)",transition:"transform 0.15s ease"},children:s.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]},`${h.plugin}/${h.skill}`)})})]},A))}),!o&&i.length===0&&!m&&s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No skills found"}),s.jsxs("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:["Check your ",s.jsx("code",{className:"px-1.5 py-0.5 rounded text-[11px]",style:{background:"var(--surface-2)"},children:"--root"})," directory"]})]})]})}function l1(){const{plugin:i,skill:f}=fi(),[o,r]=E.useState(null),[m,v]=E.useState(!0),[x,A]=E.useState(null),[S,h]=E.useState(!1),[_,p]=E.useState(null),[H,G]=E.useState(!1);E.useEffect(()=>{!i||!f||ht.getEvals(i,f).then(r).catch(Y=>A(Y.message)).finally(()=>v(!1))},[i,f]);async function k(Y){if(!(!i||!f)){h(!0);try{const $=await ht.saveEvals(i,f,Y);r($),A(null)}catch($){A($.message)}finally{h(!1)}}}function q(Y){o&&(k({...o,evals:[...o.evals,Y]}),G(!1))}function O(Y){o&&(k({...o,evals:o.evals.map($=>$.id===Y.id?Y:$)}),p(null))}function M(Y){!o||!confirm("Delete this eval case?")||k({...o,evals:o.evals.filter($=>$.id!==Y)})}function L(Y){if(!o)return;const $=o.evals.find(K=>K.id===Y);$&&O({...$,assertions:[...$.assertions,{id:`assert-${Date.now()}`,text:"New assertion",type:"boolean"}]})}function Q(Y,$,K){if(!o)return;const oe=o.evals.find(Ne=>Ne.id===Y);oe&&O({...oe,assertions:oe.assertions.map(Ne=>Ne.id===$?{...Ne,text:K}:Ne)})}function X(Y,$){if(!o)return;const K=o.evals.find(oe=>oe.id===Y);K&&O({...K,assertions:K.assertions.filter(oe=>oe.id!==$)})}return m?s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"flex gap-2 mb-6",children:[s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"}),s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"skeleton h-32 rounded-xl"}),s.jsx("div",{className:"skeleton h-32 rounded-xl"})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[13px]",children:[s.jsx(Ot,{to:"/",className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:Y=>{Y.currentTarget.style.color="var(--text-primary)"},onMouseLeave:Y=>{Y.currentTarget.style.color="var(--text-tertiary)"},children:"Skills"}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:i}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:f})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-4 mb-7",children:[s.jsxs(Ot,{to:`/skills/${i}/${f}/benchmark`,className:"btn btn-primary",children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run Benchmark"]}),s.jsxs(Ot,{to:`/skills/${i}/${f}/compare`,className:"btn btn-purple",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]}),"Compare A/B"]}),s.jsxs(Ot,{to:`/skills/${i}/${f}/history`,className:"btn btn-secondary",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]}),"History"]})]}),x&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:x}),o?s.jsxs("div",{className:"space-y-3 stagger-children",children:[o.evals.map(Y=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",Y.id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:Y.name})]}),s.jsx("p",{className:"text-[12px] mt-1.5 line-clamp-2",style:{color:"var(--text-tertiary)"},children:Y.prompt})]}),s.jsxs("div",{className:"flex gap-1 ml-3",children:[s.jsx("button",{onClick:()=>{p(Y),G(!0)},className:"btn btn-ghost text-[12px]",children:"Edit"}),s.jsx("button",{onClick:()=>M(Y.id),className:"btn btn-danger text-[12px]",children:"Delete"})]})]}),s.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Assertions"}),s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:"10px",padding:"1px 7px"},children:Y.assertions.length})]}),s.jsx("div",{className:"space-y-1.5",children:Y.assertions.map($=>s.jsxs("div",{className:"flex items-center gap-2 group",children:[s.jsx("span",{className:"text-[11px] font-mono w-28 truncate flex-shrink-0",style:{color:"var(--text-tertiary)"},children:$.id}),s.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5",style:{background:"transparent",border:"1px solid transparent",borderRadius:"6px"},value:$.text,onChange:K=>Q(Y.id,$.id,K.target.value),onFocus:K=>{K.currentTarget.style.borderColor="var(--border-default)",K.currentTarget.style.background="var(--surface-2)"},onBlur:K=>{K.currentTarget.style.borderColor="transparent",K.currentTarget.style.background="transparent"}}),s.jsx("button",{onClick:()=>X(Y.id,$.id),className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150 p-1 rounded",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},$.id))}),s.jsxs("button",{onClick:()=>L(Y.id),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add assertion"]})]})]},Y.id)),s.jsx("button",{onClick:()=>{p(null),G(!0)},className:"w-full p-4 rounded-xl text-[13px] font-medium transition-all duration-150",style:{border:"2px dashed var(--border-default)",color:"var(--text-tertiary)",background:"transparent"},onMouseEnter:Y=>{Y.currentTarget.style.borderColor="var(--accent)",Y.currentTarget.style.color="var(--accent)",Y.currentTarget.style.background="var(--accent-muted)"},onMouseLeave:Y=>{Y.currentTarget.style.borderColor="var(--border-default)",Y.currentTarget.style.color="var(--text-tertiary)",Y.currentTarget.style.background="transparent"},children:"+ Add Eval Case"})]}):s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No evals.json found"}),s.jsx("button",{onClick:()=>G(!0),className:"btn btn-primary mt-3",children:"Create evals.json"})]}),H&&s.jsx(a1,{evalCase:_,skillName:(o==null?void 0:o.skill_name)||f||"",existingIds:(o==null?void 0:o.evals.map(Y=>Y.id))||[],onSave:Y=>_?O(Y):q(Y),onCancel:()=>{G(!1),p(null)}}),S&&s.jsxs("div",{className:"fixed bottom-5 right-5 flex items-center gap-2 px-4 py-2.5 rounded-lg text-[13px] animate-fade-in-scale",style:{background:"var(--accent)",color:"#fff",boxShadow:"0 8px 32px rgba(99,131,255,0.3)"},children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)"}}),"Saving..."]})]})}function a1({evalCase:i,skillName:f,existingIds:o,onSave:r,onCancel:m}){const[v,x]=E.useState((i==null?void 0:i.name)||""),[A,S]=E.useState((i==null?void 0:i.prompt)||""),[h,_]=E.useState((i==null?void 0:i.expected_output)||""),[p,H]=E.useState((i==null?void 0:i.assertions)||[{id:"assert-1",text:"",type:"boolean"}]);function G(k){k.preventDefault();const q=(i==null?void 0:i.id)??(o.length>0?Math.max(...o)+1:1);r({id:q,name:v,prompt:A,expected_output:h,files:(i==null?void 0:i.files)||[],assertions:p.filter(O=>O.text.trim())})}return s.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 animate-overlay-in",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"},children:s.jsxs("form",{onSubmit:G,className:"glass-card p-6 w-full max-w-2xl max-h-[85vh] overflow-auto animate-modal-in",style:{background:"var(--surface-1)",border:"1px solid var(--border-default)"},children:[s.jsx("h3",{className:"text-[16px] font-semibold mb-5",style:{color:"var(--text-primary)"},children:i?"Edit Eval Case":"New Eval Case"}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Name"}),s.jsx("input",{className:"input-field",value:v,onChange:k=>x(k.target.value),required:!0,placeholder:"e.g. basic-test-question"})]}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Prompt"}),s.jsx("textarea",{className:"input-field h-24 resize-y",value:A,onChange:k=>S(k.target.value),required:!0,placeholder:"The user prompt to test against..."})]}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Expected Output"}),s.jsx("textarea",{className:"input-field h-20 resize-y",value:h,onChange:k=>_(k.target.value),placeholder:"What a good answer should include..."})]}),s.jsxs("div",{className:"mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-2 block",style:{color:"var(--text-secondary)"},children:"Assertions"}),p.map((k,q)=>s.jsxs("div",{className:"flex gap-2 mt-1.5",children:[s.jsx("input",{className:"input-field w-32 text-[12px] font-mono",value:k.id,onChange:O=>{const M=[...p];M[q]={...M[q],id:O.target.value},H(M)},placeholder:"ID"}),s.jsx("input",{className:"input-field flex-1 text-[12px]",value:k.text,onChange:O=>{const M=[...p];M[q]={...M[q],text:O.target.value},H(M)},placeholder:"Assertion text"}),s.jsx("button",{type:"button",onClick:()=>H(p.filter((O,M)=>M!==q)),className:"btn btn-ghost p-1.5",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},q)),s.jsx("button",{type:"button",onClick:()=>H([...p,{id:`assert-${p.length+1}`,text:"",type:"boolean"}]),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:"+ Add assertion"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("button",{type:"button",onClick:m,className:"btn btn-secondary",children:"Cancel"}),s.jsx("button",{type:"submit",className:"btn btn-primary",children:"Save"})]})]})})}function Fs(){const[i,f]=E.useState([]),[o,r]=E.useState(!1),[m,v]=E.useState(!1),[x,A]=E.useState(null),S=E.useRef(null),h=E.useCallback(async(p,H)=>{f([]),r(!0),v(!1),A(null);const G=new AbortController;S.current=G;try{const k=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:H?JSON.stringify(H):void 0,signal:G.signal});if(!k.ok||!k.body)throw new Error(`HTTP ${k.status}`);const q=k.body.getReader(),O=new TextDecoder;let M="";for(;;){const{done:L,value:Q}=await q.read();if(L)break;M+=O.decode(Q,{stream:!0});const X=M.split(`
|
|
61
|
-
`);M=X.pop()||"";let Y="";for(const $ of X)if($.startsWith("event: "))Y=$.slice(7).trim();else if($.startsWith("data: ")){try{const K=JSON.parse($.slice(6)),oe={event:Y,data:K};Y==="done"?(v(!0),f(Ne=>[...Ne,oe])):f(Ne=>[...Ne,oe])}catch{}Y=""}}}catch(k){k.name!=="AbortError"&&A(k.message)}finally{r(!1),S.current=null}},[]),_=E.useCallback(()=>{var p;(p=S.current)==null||p.abort()},[]);return{events:i,running:o,done:m,error:x,start:h,stop:_}}function n1(){const{plugin:i,skill:f}=fi(),{events:o,running:r,done:m,error:v,start:x}=Fs(),[A,S]=E.useState(new Set),[h,_]=E.useState(null);E.useEffect(()=>{ht.getConfig().then(M=>_(M.model)).catch(()=>{})},[]);function p(){ht.getConfig().then(M=>_(M.model)).catch(()=>{}),S(new Set),x(`/api/skills/${i}/${f}/benchmark`)}function H(M){S(L=>{const Q=new Set(L);return Q.has(M)?Q.delete(M):Q.add(M),Q})}const G=new Map;for(const M of o){if(M.event==="case_start"){const L=M.data;G.has(L.eval_id)||G.set(L.eval_id,{name:L.eval_name,assertions:[]})}if(M.event==="output_ready"){const L=M.data,Q=G.get(L.eval_id)||{assertions:[]};Q.output=L.output,G.set(L.eval_id,Q)}if(M.event==="assertion_result"){const L=M.data,Q=G.get(L.eval_id)||{assertions:[]};Q.assertions.find(X=>X.assertion_id===L.assertion_id)||(Q.assertions.push(L),G.set(L.eval_id,Q))}if(M.event==="case_complete"){const L=M.data,Q=G.get(L.eval_id)||{assertions:[]};Q.status=L.status,Q.passRate=L.pass_rate,Q.errorMessage=L.error_message||void 0,G.set(L.eval_id,Q)}}const k=o.find(M=>M.event==="done"),q=k==null?void 0:k.data,O=(q==null?void 0:q.overall_pass_rate)!==void 0?Math.round(q.overall_pass_rate*100):null;return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Ot,{to:`/skills/${i}/${f}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:M=>{M.currentTarget.style.color="var(--text-primary)"},onMouseLeave:M=>{M.currentTarget.style.color="var(--text-tertiary)"},children:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"Benchmark"})]}),s.jsx("div",{className:"mb-3",children:s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs your skill against each eval case. An LLM judge grades every assertion against the actual output."})}),s.jsx("button",{onClick:p,disabled:r,className:"btn btn-primary mb-7",children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Running..."]}):s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run Benchmark"]})}),v&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:v}),G.size>0&&s.jsxs("div",{className:"space-y-3 stagger-children",children:[Array.from(G.entries()).map(([M,L])=>{const Q=A.has(M);return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",M]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:L.name||"Eval Case"})]}),L.status?s.jsxs("span",{className:"pill",style:{background:L.status==="pass"?"var(--green-muted)":L.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:L.status==="pass"?"var(--green)":L.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:L.status==="pass"?"var(--green)":L.status==="error"?"var(--yellow)":"var(--red)"}}),L.status," ",L.passRate!==void 0?`${Math.round(L.passRate*100)}%`:""]}):s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]})]}),L.errorMessage&&s.jsx("div",{className:"mb-3 p-3 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:L.errorMessage}),s.jsx("div",{className:"space-y-2",children:L.assertions.map(X=>s.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg animate-fade-in",style:{background:X.pass?"var(--green-muted)":"var(--red-muted)"},children:[s.jsx("div",{className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:X.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:X.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:X.text||X.assertion_id}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-secondary)"},children:X.reasoning})]})]},X.assertion_id))})]}),L.output&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>H(M),className:"w-full px-5 py-2.5 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:X=>{X.currentTarget.style.background="var(--surface-3)"},onMouseLeave:X=>{X.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:Q?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),Q?"Hide LLM Output":"Show Actual LLM Output"]}),Q&&s.jsxs("div",{className:"p-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"LLM Output"}),s.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:L.output})]})]})]},M)}),m&&O!==null&&s.jsxs("div",{className:"glass-card p-6 text-center animate-fade-in-scale",style:{borderColor:O>=80?"var(--green)":O>=50?"var(--yellow)":"var(--red)",borderWidth:2},children:[s.jsxs("div",{className:"text-[36px] font-bold tracking-tight",style:{color:O>=80?"var(--green)":O>=50?"var(--yellow)":"var(--red)"},children:[O,"%"]}),s.jsx("div",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:"Overall Pass Rate"}),h&&s.jsx("div",{className:"text-[11px] mt-1 font-mono",style:{color:"var(--text-tertiary)"},children:h})]})]}),r&&G.size===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating outputs and evaluating assertions..."})]})]})}const gm={EFFECTIVE:{bg:"var(--green-muted)",text:"var(--green)",border:"var(--green)",glow:"rgba(52,211,153,0.15)"},MARGINAL:{bg:"var(--yellow-muted)",text:"var(--yellow)",border:"var(--yellow)",glow:"rgba(251,191,36,0.15)"},INEFFECTIVE:{bg:"rgba(251,146,60,0.12)",text:"var(--orange)",border:"var(--orange)",glow:"rgba(251,146,60,0.15)"},DEGRADING:{bg:"var(--red-muted)",text:"var(--red)",border:"var(--red)",glow:"rgba(248,113,113,0.15)"}};function u1(){const{plugin:i,skill:f}=fi(),{events:o,running:r,done:m,error:v,start:x}=Fs(),[A,S]=E.useState(new Set),[h,_]=E.useState(null);E.useEffect(()=>{ht.getConfig().then(O=>_(O.model)).catch(()=>{})},[]);function p(){S(new Set),x(`/api/skills/${i}/${f}/compare`)}function H(O){S(M=>{const L=new Set(M);return L.has(O)?L.delete(O):L.add(O),L})}const G=[];for(const O of o)if(O.event==="outputs_ready"){const M=O.data;G.find(L=>L.eval_id===M.eval_id)||G.push(M)}const k=o.find(O=>O.event==="done"),q=k==null?void 0:k.data;return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Ot,{to:`/skills/${i}/${f}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:O=>{O.currentTarget.style.color="var(--text-primary)"},onMouseLeave:O=>{O.currentTarget.style.color="var(--text-tertiary)"},children:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"A/B Comparison"})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs each eval prompt twice: once WITH your skill, once WITHOUT. An LLM judge scores both outputs blindly on content and structure (1-5 each)."}),h&&s.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"Model:"}),s.jsx("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--accent)"},children:h})]})]}),s.jsx("button",{onClick:p,disabled:r,className:"btn btn-purple mb-7",children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Comparing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]})," Run Comparison"]})}),v&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:v}),G.length>0&&s.jsxs("div",{className:"space-y-4 stagger-children",children:[G.map(O=>{const M=A.has(O.eval_id),L=O.winner==="skill"?"Skill Wins":O.winner==="baseline"?"Baseline Wins":"Tie",Q=O.winner==="skill"?"var(--green)":O.winner==="baseline"?"var(--red)":"var(--text-tertiary)";return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5 pb-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",O.eval_id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:O.eval_name||"Eval Case"})]}),s.jsx("span",{className:"pill",style:{background:O.winner==="skill"?"var(--green-muted)":O.winner==="baseline"?"var(--red-muted)":"var(--surface-3)",color:Q,fontWeight:700},children:L})]}),s.jsxs("div",{className:"mb-4 p-3 rounded-lg",style:{background:"var(--surface-2)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-1.5",style:{color:"var(--text-tertiary)"},children:"Prompt"}),s.jsx("div",{className:"text-[12px] leading-relaxed",style:{color:"var(--text-secondary)"},children:O.prompt})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(bm,{label:"WITH Skill",contentScore:O.skillContentScore,structureScore:O.skillStructureScore,isWinner:O.winner==="skill"}),s.jsx(bm,{label:"WITHOUT Skill",contentScore:O.baselineContentScore,structureScore:O.baselineStructureScore,isWinner:O.winner==="baseline"})]})]}),s.jsxs("button",{onClick:()=>H(O.eval_id),className:"w-full px-5 py-3 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:X=>{X.currentTarget.style.background="var(--surface-3)"},onMouseLeave:X=>{X.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:M?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),M?"Hide LLM Outputs":"Show Actual LLM Outputs"]}),M&&s.jsxs("div",{className:"grid grid-cols-2 gap-0 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx(jm,{label:"WITH Skill",output:O.skillOutput,accentColor:O.winner==="skill"?"var(--green)":void 0}),s.jsx(jm,{label:"WITHOUT Skill",output:O.baselineOutput,accentColor:O.winner==="baseline"?"var(--red)":void 0,hasBorderLeft:!0})]})]},O.eval_id)}),m&&(q==null?void 0:q.verdict)&&(()=>{const O=gm[q.verdict]||gm.INEFFECTIVE;return s.jsxs("div",{className:"glass-card p-8 text-center animate-fade-in-scale",style:{borderColor:O.border,borderWidth:2,boxShadow:`0 0 40px ${O.glow}`},children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Verdict"}),s.jsx("div",{className:"text-[32px] font-bold tracking-tight",style:{color:O.text},children:q.verdict}),q.comparison&&s.jsxs("div",{className:"flex justify-center gap-8 mt-5",children:[s.jsx(Ys,{label:"Skill Avg",value:q.comparison.skillRubricAvg.toFixed(1)}),s.jsx(Ys,{label:"Baseline Avg",value:q.comparison.baselineRubricAvg.toFixed(1)}),s.jsx(Ys,{label:"Delta",value:`${q.comparison.delta>0?"+":""}${q.comparison.delta.toFixed(1)}`,color:q.comparison.delta>0?"var(--green)":q.comparison.delta<0?"var(--red)":"var(--text-secondary)"})]}),q.overall_pass_rate!==void 0&&s.jsxs("div",{className:"text-[12px] mt-3",style:{color:"var(--text-tertiary)"},children:["Assertion pass rate: ",Math.round(q.overall_pass_rate*100),"%"]})]})})()]}),r&&G.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating WITH and WITHOUT outputs..."}),s.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:"Then blind-scoring both responses"})]})]})}function bm({label:i,contentScore:f,structureScore:o,isWinner:r}){const m=((f+o)/2).toFixed(1),v=parseFloat(m),x=v>=4?"var(--green)":v>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"rounded-xl p-4",style:{background:"var(--surface-2)",border:r?"1px solid var(--green)":"1px solid transparent",boxShadow:r?"0 0 20px var(--green-muted)":"none"},children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:i}),s.jsx("div",{className:"text-[16px] font-bold",style:{color:x},children:m})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Sm,{label:"Content",score:f}),s.jsx(Sm,{label:"Structure",score:o})]})]})}function Sm({label:i,score:f}){const o=f/5*100,r=f>=4?"var(--green)":f>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"text-[11px] w-16",style:{color:"var(--text-tertiary)"},children:i}),s.jsx("div",{className:"flex-1 h-1.5 rounded-full",style:{background:"var(--surface-3)"},children:s.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${o}%`,background:r}})}),s.jsx("div",{className:"text-[12px] font-semibold w-5 text-right",style:{color:r},children:f})]})}function jm({label:i,output:f,accentColor:o,hasBorderLeft:r}){return s.jsxs("div",{className:"p-4",style:{borderLeft:r?"1px solid var(--border-subtle)":void 0},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o&&s.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:o}}),s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:o||"var(--text-tertiary)"},children:i})]}),s.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:f||"(empty output)"})]})}function Ys({label:i,value:f,color:o}){return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-[18px] font-bold",style:{color:o||"var(--text-primary)"},children:f}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:i})]})}function i1(){const{plugin:i,skill:f}=fi(),[o,r]=E.useState([]),[m,v]=E.useState(!0),[x,A]=E.useState(null),[S,h]=E.useState(null);E.useEffect(()=>{!i||!f||ht.getHistory(i,f).then(r).catch(()=>{}).finally(()=>v(!1))},[i,f]);async function _(p){if(!(!i||!f)){h(p);try{const H=await ht.getHistoryEntry(i,f,p);A(H)}catch{A(null)}}}return m?s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"skeleton h-20 rounded-xl"}),s.jsx("div",{className:"skeleton h-20 rounded-xl"})]}),s.jsx("div",{className:"col-span-2",children:s.jsx("div",{className:"skeleton h-48 rounded-xl"})})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Ot,{to:`/skills/${i}/${f}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:p=>{p.currentTarget.style.color="var(--text-primary)"},onMouseLeave:p=>{p.currentTarget.style.color="var(--text-tertiary)"},children:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"History"})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"col-span-1",children:[s.jsxs("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 px-1",style:{color:"var(--text-tertiary)"},children:["Past Runs (",o.length,")"]}),o.length===0&&s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-3",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),s.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No benchmark runs yet"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:o.map(p=>{const H=S===p.timestamp,G=p.passRate>=.8?"var(--green)":p.passRate>=.5?"var(--yellow)":"var(--red)";return s.jsxs("button",{onClick:()=>_(p.timestamp),className:"w-full text-left p-3.5 rounded-xl transition-all duration-150",style:{background:H?"var(--accent-muted)":"var(--surface-1)",border:H?"1px solid var(--border-active)":"1px solid var(--border-subtle)"},onMouseEnter:k=>{H||(k.currentTarget.style.borderColor="var(--border-hover)")},onMouseLeave:k=>{H||(k.currentTarget.style.borderColor="var(--border-subtle)")},children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:new Date(p.timestamp).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}),s.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:p.model}),s.jsxs("span",{className:"text-[11px] font-semibold",style:{color:G},children:[Math.round(p.passRate*100),"%"]}),p.type==="comparison"&&s.jsx("span",{className:"pill",style:{background:"var(--purple-muted)",color:"var(--purple)",fontSize:"9px",padding:"1px 6px"},children:"A/B"})]})]},p.timestamp)})})]}),s.jsx("div",{className:"col-span-2",children:x?s.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[s.jsx("div",{className:"glass-card p-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:new Date(x.timestamp).toLocaleString()}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-tertiary)"},children:x.model})]}),x.verdict&&s.jsx("span",{className:"text-[14px] font-bold",style:{color:x.verdict==="EFFECTIVE"?"var(--green)":x.verdict==="MARGINAL"?"var(--yellow)":x.verdict==="DEGRADING"?"var(--red)":"var(--orange)"},children:x.verdict})]})}),x.cases.map(p=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",p.eval_id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:p.eval_name})]}),s.jsxs("span",{className:"pill",style:{background:p.status==="pass"?"var(--green-muted)":p.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:p.status==="pass"?"var(--green)":p.status==="error"?"var(--yellow)":"var(--red)"},children:[p.status," (",Math.round(p.pass_rate*100),"%)"]})]}),p.error_message&&s.jsx("div",{className:"text-[12px] mb-3 p-2 rounded",style:{background:"var(--red-muted)",color:"var(--red)"},children:p.error_message}),s.jsx("div",{className:"space-y-1.5",children:p.assertions.map(H=>s.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[s.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:H.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:H.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-primary)"},children:H.text}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:H.reasoning})]})]},H.id))})]},p.eval_id))]}):s.jsxs("div",{className:"text-center py-20",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"15 18 9 12 15 6"})})}),s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Select a run to view details"})]})})]})]})}const Em={TP:{bg:"var(--green-muted)",text:"var(--green)",icon:"check"},TN:{bg:"rgba(52,211,153,0.06)",text:"rgba(52,211,153,0.6)",icon:"check"},FP:{bg:"var(--red-muted)",text:"var(--red)",icon:"x"},FN:{bg:"rgba(248,113,113,0.06)",text:"rgba(248,113,113,0.6)",icon:"x"}},c1=[{label:"Should activate",prompts:["How do I use this feature?","Show me best practices for this","What's the recommended approach?"]},{label:"Should NOT activate",prompts:["!What's the weather today?","!Write me a poem","!How do I cook pasta?"]}];function s1(){const[i,f]=E.useState([]),[o,r]=E.useState(null),[m,v]=E.useState(null),[x,A]=E.useState(""),[S,h]=E.useState(!1),{events:_,running:p,error:H,start:G}=Fs();E.useEffect(()=>{ht.getSkills().then(f).catch(()=>{})},[]),E.useEffect(()=>{if(!o){v(null);return}fetch(`/api/skills/${o.plugin}/${o.skill}/description`).then(X=>X.json()).then(X=>v(X.description)).catch(()=>v(null))},[o]);function k(){if(!o)return;const Y=x.trim().split(`
|
|
62
|
-
`).filter(Boolean).map(
|
|
63
|
-
${
|
|
64
|
-
`)}`:
|
|
65
|
-
`);A(
|
|
60
|
+
Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let _=cl(),p;if(f){let O=typeof f=="string"?Pl(f):f;_e(S==="/"||((G=O.pathname)==null?void 0:G.startsWith(S)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${S}" but pathname "${O.pathname}" was given in the \`location\` prop.`),p=O}else p=_;let H=p.pathname||"/",X=H;if(S!=="/"){let O=S.replace(/^\//,"").split("/");X="/"+H.replace(/^\//,"").split("/").slice(O.length).join("/")}let k=Tm(i,{pathname:X});Ct(h||k!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Ct(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Q=op(k&&k.map(O=>Object.assign({},O,{params:Object.assign({},x,O.params),pathname:qt([S,r.encodeLocation?r.encodeLocation(O.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?S:qt([S,r.encodeLocation?r.encodeLocation(O.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),m,o);return f&&Q?E.createElement(wn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},Q):Q}function cp(){let i=yp(),f=Ky(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},v={padding:"2px 4px",backgroundColor:r},x=null;return console.error("Error handled by React Router default ErrorBoundary:",i),x=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:v},"ErrorBoundary")," or"," ",E.createElement("code",{style:v},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},f),o?E.createElement("pre",{style:m},o):null,x)}var sp=E.createElement(cp,null),wm=class extends E.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=lp(i.digest);o&&(i=o)}let f=i!==void 0?E.createElement(Yt.Provider,{value:this.props.routeContext},E.createElement(Vs.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(rp,{error:i},f):f}};wm.contextType=Wy;var ws=new WeakMap;function rp({children:i,error:f}){let{basename:o}=E.useContext(At);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let r=tp(f.digest);if(r){let m=ws.get(f);if(m)throw m;let v=Rm(r.location,o);if(Mm&&!ws.get(f))if(v.isExternal||r.reloadDocument)window.location.href=v.absoluteURL||v.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(v.to,{replace:r.replace}));throw ws.set(f,x),x}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v.absoluteURL||v.to}`})}}return i}function fp({routeContext:i,match:f,children:o}){let r=E.useContext(La);return r&&r.static&&r.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=f.route.id),E.createElement(Yt.Provider,{value:i},o)}function op(i,f=[],o){let r=o==null?void 0:o.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(f.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let m=i,v=r==null?void 0:r.errors;if(v!=null){let _=m.findIndex(p=>p.route.id&&(v==null?void 0:v[p.route.id])!==void 0);_e(_>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),m=m.slice(0,Math.min(m.length,_+1))}let x=!1,A=-1;if(o&&r){x=r.renderFallback;for(let _=0;_<m.length;_++){let p=m[_];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(A=_),p.route.id){let{loaderData:H,errors:X}=r,k=p.route.loader&&!H.hasOwnProperty(p.route.id)&&(!X||X[p.route.id]===void 0);if(p.route.lazy||k){o.isStatic&&(x=!0),A>=0?m=m.slice(0,A+1):m=[m[0]];break}}}}let S=o==null?void 0:o.onError,h=r&&S?(_,p)=>{var H,X;S(_,{location:r.location,params:((X=(H=r.matches)==null?void 0:H[0])==null?void 0:X.params)??{},unstable_pattern:Jy(r.matches),errorInfo:p})}:void 0;return m.reduceRight((_,p,H)=>{let X,k=!1,Q=null,G=null;r&&(X=v&&p.route.id?v[p.route.id]:void 0,Q=p.route.errorElement||sp,x&&(A<0&&H===0?(Lm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,G=null):A===H&&(k=!0,G=p.route.hydrateFallbackElement||null)));let O=f.concat(m.slice(0,H+1)),q=()=>{let Y;return X?Y=Q:k?Y=G:p.route.Component?Y=E.createElement(p.route.Component,null):p.route.element?Y=p.route.element:Y=_,E.createElement(fp,{match:p,routeContext:{outlet:_,matches:O,isDataRoute:r!=null},children:Y})};return r&&(p.route.ErrorBoundary||p.route.errorElement||H===0)?E.createElement(wm,{location:r.location,revalidation:r.revalidation,component:Q,error:X,children:q(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:h}):q()},null)}function Ks(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dp(i){let f=E.useContext(La);return _e(f,Ks(i)),f}function mp(i){let f=E.useContext(ri);return _e(f,Ks(i)),f}function hp(i){let f=E.useContext(Yt);return _e(f,Ks(i)),f}function Js(i){let f=hp(i),o=f.matches[f.matches.length-1];return _e(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function vp(){return Js("useRouteId")}function yp(){var r;let i=E.useContext(Vs),f=mp("useRouteError"),o=Js("useRouteError");return i!==void 0?i:(r=f.errors)==null?void 0:r[o]}function pp(){let{router:i}=dp("useNavigate"),f=Js("useNavigate"),o=E.useRef(!1);return Hm(()=>{o.current=!0}),E.useCallback(async(m,v={})=>{Ct(o.current,Um),o.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:f,...v}))},[i,f])}var ym={};function Lm(i,f,o){!f&&!ym[i]&&(ym[i]=!0,Ct(!1,o))}E.memo(xp);function xp({routes:i,future:f,state:o,isStatic:r,onError:m}){return Bm(i,void 0,{state:o,isStatic:r,onError:m})}function Il(i){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gp({basename:i="/",children:f=null,location:o,navigationType:r="POP",navigator:m,static:v=!1,unstable_useTransitions:x}){_e(!Ln(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let A=i.replace(/^\/*/,"/"),S=E.useMemo(()=>({basename:A,navigator:m,static:v,unstable_useTransitions:x,future:{}}),[A,m,v,x]);typeof o=="string"&&(o=Pl(o));let{pathname:h="/",search:_="",hash:p="",state:H=null,key:X="default",unstable_mask:k}=o,Q=E.useMemo(()=>{let G=il(h,A);return G==null?null:{location:{pathname:G,search:_,hash:p,state:H,key:X,unstable_mask:k},navigationType:r}},[A,h,_,p,H,X,r,k]);return Ct(Q!=null,`<Router basename="${A}"> is not able to match the URL "${h}${_}${p}" because it does not start with the basename, so the <Router> won't render anything.`),Q==null?null:E.createElement(At.Provider,{value:S},E.createElement(wn.Provider,{children:f,value:Q}))}function bp({children:i,location:f}){return ip(Xs(i),f)}function Xs(i,f=[]){let o=[];return E.Children.forEach(i,(r,m)=>{if(!E.isValidElement(r))return;let v=[...f,m];if(r.type===E.Fragment){o.push.apply(o,Xs(r.props.children,v));return}_e(r.type===Il,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!r.props.index||!r.props.children,"An index route cannot have child routes.");let x={id:r.props.id||v.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(x.children=Xs(r.props.children,v)),o.push(x)}),o}var ii="get",ci="application/x-www-form-urlencoded";function oi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Sp(i){return oi(i)&&i.tagName.toLowerCase()==="button"}function jp(i){return oi(i)&&i.tagName.toLowerCase()==="form"}function Ep(i){return oi(i)&&i.tagName.toLowerCase()==="input"}function Np(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Tp(i,f){return i.button===0&&(!f||f==="_self")&&!Np(i)}var ni=null;function zp(){if(ni===null)try{new FormData(document.createElement("form"),0),ni=!1}catch{ni=!0}return ni}var Ap=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ls(i){return i!=null&&!Ap.has(i)?(Ct(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ci}"`),null):i}function _p(i,f){let o,r,m,v,x;if(jp(i)){let A=i.getAttribute("action");r=A?il(A,f):null,o=i.getAttribute("method")||ii,m=Ls(i.getAttribute("enctype"))||ci,v=new FormData(i)}else if(Sp(i)||Ep(i)&&(i.type==="submit"||i.type==="image")){let A=i.form;if(A==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||A.getAttribute("action");if(r=S?il(S,f):null,o=i.getAttribute("formmethod")||A.getAttribute("method")||ii,m=Ls(i.getAttribute("formenctype"))||Ls(A.getAttribute("enctype"))||ci,v=new FormData(A,i),!zp()){let{name:h,type:_,value:p}=i;if(_==="image"){let H=h?`${h}.`:"";v.append(`${H}x`,"0"),v.append(`${H}y`,"0")}else h&&v.append(h,p)}}else{if(oi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=ii,r=null,m=ci,x=i}return v&&m==="text/plain"&&(x=v,v=void 0),{action:r,method:o.toLowerCase(),encType:m,formData:v,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $s(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Mp(i,f,o,r){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:f&&il(m.pathname,f)==="/"?m.pathname=`${f.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function Rp(i,f){if(i.id in f)return f[i.id];try{let o=await import(i.module);return f[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Op(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Cp(i,f,o){let r=await Promise.all(i.map(async m=>{let v=f.routes[m.route.id];if(v){let x=await Rp(v,o);return x.links?x.links():[]}return[]}));return Bp(r.flat(1).filter(Op).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function pm(i,f,o,r,m,v){let x=(S,h)=>o[h]?S.route.id!==o[h].route.id:!0,A=(S,h)=>{var _;return o[h].pathname!==S.pathname||((_=o[h].route.path)==null?void 0:_.endsWith("*"))&&o[h].params["*"]!==S.params["*"]};return v==="assets"?f.filter((S,h)=>x(S,h)||A(S,h)):v==="data"?f.filter((S,h)=>{var p;let _=r.routes[S.route.id];if(!_||!_.hasLoader)return!1;if(x(S,h)||A(S,h))return!0;if(S.route.shouldRevalidate){let H=S.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((p=o[0])==null?void 0:p.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof H=="boolean")return H}return!0}):[]}function Dp(i,f,{includeHydrateFallback:o}={}){return Up(i.map(r=>{let m=f.routes[r.route.id];if(!m)return[];let v=[m.module];return m.clientActionModule&&(v=v.concat(m.clientActionModule)),m.clientLoaderModule&&(v=v.concat(m.clientLoaderModule)),o&&m.hydrateFallbackModule&&(v=v.concat(m.hydrateFallbackModule)),m.imports&&(v=v.concat(m.imports)),v}).flat(1))}function Up(i){return[...new Set(i)]}function Hp(i){let f={},o=Object.keys(i).sort();for(let r of o)f[r]=i[r];return f}function Bp(i,f){let o=new Set;return new Set(f),i.reduce((r,m)=>{let v=JSON.stringify(Hp(m));return o.has(v)||(o.add(v),r.push({key:v,link:m})),r},[])}function qm(){let i=E.useContext(La);return $s(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function wp(){let i=E.useContext(ri);return $s(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Ws=E.createContext(void 0);Ws.displayName="FrameworkContext";function Ym(){let i=E.useContext(Ws);return $s(i,"You must render this element inside a <HydratedRouter> element"),i}function Lp(i,f){let o=E.useContext(Ws),[r,m]=E.useState(!1),[v,x]=E.useState(!1),{onFocus:A,onBlur:S,onMouseEnter:h,onMouseLeave:_,onTouchStart:p}=f,H=E.useRef(null);E.useEffect(()=>{if(i==="render"&&x(!0),i==="viewport"){let Q=O=>{O.forEach(q=>{x(q.isIntersecting)})},G=new IntersectionObserver(Q,{threshold:.5});return H.current&&G.observe(H.current),()=>{G.disconnect()}}},[i]),E.useEffect(()=>{if(r){let Q=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(Q)}}},[r]);let X=()=>{m(!0)},k=()=>{m(!1),x(!1)};return o?i!=="intent"?[v,H,{}]:[v,H,{onFocus:Hn(A,X),onBlur:Hn(S,k),onMouseEnter:Hn(h,X),onMouseLeave:Hn(_,k),onTouchStart:Hn(p,X)}]:[!1,H,{}]}function Hn(i,f){return o=>{i&&i(o),o.defaultPrevented||f(o)}}function qp({page:i,...f}){let{router:o}=qm(),r=E.useMemo(()=>Tm(o.routes,i,o.basename),[o.routes,i,o.basename]);return r?E.createElement(kp,{page:i,matches:r,...f}):null}function Yp(i){let{manifest:f,routeModules:o}=Ym(),[r,m]=E.useState([]);return E.useEffect(()=>{let v=!1;return Cp(i,f,o).then(x=>{v||m(x)}),()=>{v=!0}},[i,f,o]),r}function kp({page:i,matches:f,...o}){let r=cl(),{future:m,manifest:v,routeModules:x}=Ym(),{basename:A}=qm(),{loaderData:S,matches:h}=wp(),_=E.useMemo(()=>pm(i,f,h,v,r,"data"),[i,f,h,v,r]),p=E.useMemo(()=>pm(i,f,h,v,r,"assets"),[i,f,h,v,r]),H=E.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let Q=new Set,G=!1;if(f.forEach(q=>{var M;let Y=v.routes[q.route.id];!Y||!Y.hasLoader||(!_.some(w=>w.route.id===q.route.id)&&q.route.id in S&&((M=x[q.route.id])!=null&&M.shouldRevalidate)||Y.hasClientLoader?G=!0:Q.add(q.route.id))}),Q.size===0)return[];let O=Mp(i,A,m.unstable_trailingSlashAwareDataRequests,"data");return G&&Q.size>0&&O.searchParams.set("_routes",f.filter(q=>Q.has(q.route.id)).map(q=>q.route.id).join(",")),[O.pathname+O.search]},[A,m.unstable_trailingSlashAwareDataRequests,S,r,v,_,f,i,x]),X=E.useMemo(()=>Dp(p,v),[p,v]),k=Yp(p);return E.createElement(E.Fragment,null,H.map(Q=>E.createElement("link",{key:Q,rel:"prefetch",as:"fetch",href:Q,...o})),X.map(Q=>E.createElement("link",{key:Q,rel:"modulepreload",href:Q,...o})),k.map(({key:Q,link:G})=>E.createElement("link",{key:Q,nonce:o.nonce,...G,crossOrigin:G.crossOrigin??o.crossOrigin})))}function Gp(...i){return f=>{i.forEach(o=>{typeof o=="function"?o(f):o!=null&&(o.current=f)})}}var Xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xp&&(window.__reactRouterVersion="7.13.1")}catch{}function Qp({basename:i,children:f,unstable_useTransitions:o,window:r}){let m=E.useRef();m.current==null&&(m.current=Ey({window:r,v5Compat:!0}));let v=m.current,[x,A]=E.useState({action:v.action,location:v.location}),S=E.useCallback(h=>{o===!1?A(h):E.startTransition(()=>A(h))},[o]);return E.useLayoutEffect(()=>v.listen(S),[v,S]),E.createElement(gp,{basename:i,children:f,location:x.location,navigationType:x.action,navigator:v,unstable_useTransitions:o})}var km=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ot=E.forwardRef(function({onClick:f,discover:o="render",prefetch:r="none",relative:m,reloadDocument:v,replace:x,unstable_mask:A,state:S,target:h,to:_,preventScrollReset:p,viewTransition:H,unstable_defaultShouldRevalidate:X,...k},Q){let{basename:G,navigator:O,unstable_useTransitions:q}=E.useContext(At),Y=typeof _=="string"&&km.test(_),M=Rm(_,G);_=M.to;let w=ap(_,{relative:m}),Z=cl(),J=null;if(A){let Ue=Zs(A,[],Z.unstable_mask?Z.unstable_mask.pathname:"/",!0);G!=="/"&&(Ue.pathname=Ue.pathname==="/"?G:qt([G,Ue.pathname])),J=O.createHref(Ue)}let[se,Ne,Dt]=Lp(r,k),vt=Jp(_,{replace:x,unstable_mask:A,state:S,target:h,preventScrollReset:p,relative:m,viewTransition:H,unstable_defaultShouldRevalidate:X,unstable_useTransitions:q});function Ke(Ue){f&&f(Ue),Ue.defaultPrevented||vt(Ue)}let Ut=!(M.isExternal||v),yt=E.createElement("a",{...k,...Dt,href:(Ut?J:void 0)||M.absoluteURL||w,onClick:Ut?Ke:f,ref:Gp(Q,Ne),target:h,"data-discover":!Y&&o==="render"?"true":void 0});return se&&!Y?E.createElement(E.Fragment,null,yt,E.createElement(qp,{page:w})):yt});Ot.displayName="Link";var Zp=E.forwardRef(function({"aria-current":f="page",caseSensitive:o=!1,className:r="",end:m=!1,style:v,to:x,viewTransition:A,children:S,...h},_){let p=qn(x,{relative:h.relative}),H=cl(),X=E.useContext(ri),{navigator:k,basename:Q}=E.useContext(At),G=X!=null&&Pp(p)&&A===!0,O=k.encodeLocation?k.encodeLocation(p).pathname:p.pathname,q=H.pathname,Y=X&&X.navigation&&X.navigation.location?X.navigation.location.pathname:null;o||(q=q.toLowerCase(),Y=Y?Y.toLowerCase():null,O=O.toLowerCase()),Y&&Q&&(Y=il(Y,Q)||Y);const M=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let w=q===O||!m&&q.startsWith(O)&&q.charAt(M)==="/",Z=Y!=null&&(Y===O||!m&&Y.startsWith(O)&&Y.charAt(O.length)==="/"),J={isActive:w,isPending:Z,isTransitioning:G},se=w?f:void 0,Ne;typeof r=="function"?Ne=r(J):Ne=[r,w?"active":null,Z?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let Dt=typeof v=="function"?v(J):v;return E.createElement(Ot,{...h,"aria-current":se,className:Ne,ref:_,style:Dt,to:x,viewTransition:A},typeof S=="function"?S(J):S)});Zp.displayName="NavLink";var Vp=E.forwardRef(({discover:i="render",fetcherKey:f,navigate:o,reloadDocument:r,replace:m,state:v,method:x=ii,action:A,onSubmit:S,relative:h,preventScrollReset:_,viewTransition:p,unstable_defaultShouldRevalidate:H,...X},k)=>{let{unstable_useTransitions:Q}=E.useContext(At),G=Fp(),O=Ip(A,{relative:h}),q=x.toLowerCase()==="get"?"get":"post",Y=typeof A=="string"&&km.test(A),M=w=>{if(S&&S(w),w.defaultPrevented)return;w.preventDefault();let Z=w.nativeEvent.submitter,J=(Z==null?void 0:Z.getAttribute("formmethod"))||x,se=()=>G(Z||w.currentTarget,{fetcherKey:f,method:J,navigate:o,replace:m,state:v,relative:h,preventScrollReset:_,viewTransition:p,unstable_defaultShouldRevalidate:H});Q&&o!==!1?E.startTransition(()=>se()):se()};return E.createElement("form",{ref:k,method:q,action:O,onSubmit:r?S:M,...X,"data-discover":!Y&&i==="render"?"true":void 0})});Vp.displayName="Form";function Kp(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gm(i){let f=E.useContext(La);return _e(f,Kp(i)),f}function Jp(i,{target:f,replace:o,unstable_mask:r,state:m,preventScrollReset:v,relative:x,viewTransition:A,unstable_defaultShouldRevalidate:S,unstable_useTransitions:h}={}){let _=np(),p=cl(),H=qn(i,{relative:x});return E.useCallback(X=>{if(Tp(X,f)){X.preventDefault();let k=o!==void 0?o:Bn(p)===Bn(H),Q=()=>_(i,{replace:k,unstable_mask:r,state:m,preventScrollReset:v,relative:x,viewTransition:A,unstable_defaultShouldRevalidate:S});h?E.startTransition(()=>Q()):Q()}},[p,_,H,o,r,m,f,i,v,x,A,S,h])}var $p=0,Wp=()=>`__${String(++$p)}__`;function Fp(){let{router:i}=Gm("useSubmit"),{basename:f}=E.useContext(At),o=vp(),r=i.fetch,m=i.navigate;return E.useCallback(async(v,x={})=>{let{action:A,method:S,encType:h,formData:_,body:p}=_p(v,f);if(x.navigate===!1){let H=x.fetcherKey||Wp();await r(H,o,x.action||A,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:_,body:p,formMethod:x.method||S,formEncType:x.encType||h,flushSync:x.flushSync})}else await m(x.action||A,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:_,body:p,formMethod:x.method||S,formEncType:x.encType||h,replace:x.replace,state:x.state,fromRouteId:o,flushSync:x.flushSync,viewTransition:x.viewTransition})},[r,m,f,o])}function Ip(i,{relative:f}={}){let{basename:o}=E.useContext(At),r=E.useContext(Yt);_e(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),v={...qn(i||".",{relative:f})},x=cl();if(i==null){v.search=x.search;let A=new URLSearchParams(v.search),S=A.getAll("index");if(S.some(_=>_==="")){A.delete("index"),S.filter(p=>p).forEach(p=>A.append("index",p));let _=A.toString();v.search=_?`?${_}`:""}}return(!i||i===".")&&m.route.index&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(v.pathname=v.pathname==="/"?o:qt([o,v.pathname])),Bn(v)}function Pp(i,{relative:f}={}){let o=E.useContext(Cm);_e(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Gm("useViewTransitionState"),m=qn(i,{relative:f});if(!o.isTransitioning)return!1;let v=il(o.currentLocation.pathname,r)||o.currentLocation.pathname,x=il(o.nextLocation.pathname,r)||o.nextLocation.pathname;return si(m.pathname,x)!=null||si(m.pathname,v)!=null}const e1="";async function ul(i,f){const o=await fetch(`${e1}${i}`,f);if(!o.ok){const r=await o.json().catch(()=>({error:o.statusText}));throw new Error(r.error||`HTTP ${o.status}`)}return o.json()}const ht={getConfig(){return ul("/api/config")},setConfig(i,f){return ul("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:i,model:f})})},getSkills(){return ul("/api/skills")},getSkillDetail(i,f){return ul(`/api/skills/${i}/${f}`)},getEvals(i,f){return ul(`/api/skills/${i}/${f}/evals`)},saveEvals(i,f,o){return ul(`/api/skills/${i}/${f}/evals`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})},getLatestBenchmark(i,f){return ul(`/api/skills/${i}/${f}/benchmark/latest`)},getHistory(i,f){return ul(`/api/skills/${i}/${f}/history`)},getHistoryEntry(i,f,o){return ul(`/api/skills/${i}/${f}/history/${encodeURIComponent(o)}`)}},xm={pass:{bg:"var(--green-muted)",text:"var(--green)",dot:"var(--green)",label:"Passing"},fail:{bg:"var(--red-muted)",text:"var(--red)",dot:"var(--red)",label:"Failing"},pending:{bg:"var(--yellow-muted)",text:"var(--yellow)",dot:"var(--yellow)",label:"Pending"},missing:{bg:"var(--surface-3)",text:"var(--text-tertiary)",dot:"var(--text-tertiary)",label:"No evals"}};function qs(){return s.jsx("div",{className:"glass-card p-5",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"skeleton h-5 w-36 mb-2"}),s.jsx("div",{className:"skeleton h-3.5 w-48"})]}),s.jsx("div",{className:"skeleton h-6 w-20 rounded-full"})]})})}function t1(){const[i,f]=E.useState([]),[o,r]=E.useState(!0),[m,v]=E.useState(null);E.useEffect(()=>{ht.getSkills().then(f).catch(A=>v(A.message)).finally(()=>r(!1))},[]);const x=i.reduce((A,S)=>{var h;return(A[h=S.plugin]||(A[h]=[])).push(S),A},{});return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-8",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Skills"}),s.jsx("p",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:o?"Scanning plugins...":`${i.length} skill${i.length!==1?"s":""} across ${Object.keys(x).length} plugin${Object.keys(x).length!==1?"s":""}`})]}),m&&s.jsx("div",{className:"mb-6 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:m}),o&&s.jsxs("div",{className:"space-y-3",children:[s.jsx(qs,{}),s.jsx(qs,{}),s.jsx(qs,{})]}),!o&&s.jsx("div",{className:"space-y-8 stagger-children",children:Object.entries(x).map(([A,S])=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 px-1",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),s.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:A}),s.jsx("div",{className:"flex-1 h-px",style:{background:"var(--border-subtle)"}})]}),s.jsx("div",{className:"grid gap-2",children:S.map(h=>{const _=xm[h.benchmarkStatus]||xm.missing;return s.jsxs(Ot,{to:`/skills/${h.plugin}/${h.skill}`,className:"glass-card glass-card-interactive p-5 flex items-center justify-between group",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2",children:s.jsx("span",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:h.skill})}),s.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[h.evalCount," eval",h.evalCount!==1?"s":""]}),s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[h.assertionCount," assertion",h.assertionCount!==1?"s":""]}),h.lastBenchmark&&s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:new Date(h.lastBenchmark).toLocaleDateString()})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"pill",style:{background:_.bg,color:_.text},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:_.dot}}),_.label]}),s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150",style:{transform:"translateX(0)",transition:"transform 0.15s ease"},children:s.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]},`${h.plugin}/${h.skill}`)})})]},A))}),!o&&i.length===0&&!m&&s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No skills found"}),s.jsxs("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:["Check your ",s.jsx("code",{className:"px-1.5 py-0.5 rounded text-[11px]",style:{background:"var(--surface-2)"},children:"--root"})," directory"]})]})]})}function l1(){const{plugin:i,skill:f}=fi(),[o,r]=E.useState(null),[m,v]=E.useState(!0),[x,A]=E.useState(null),[S,h]=E.useState(!1),[_,p]=E.useState(null),[H,X]=E.useState(!1);E.useEffect(()=>{!i||!f||ht.getEvals(i,f).then(r).catch(w=>A(w.message)).finally(()=>v(!1))},[i,f]);async function k(w){if(!(!i||!f)){h(!0);try{const Z=await ht.saveEvals(i,f,w);r(Z),A(null)}catch(Z){A(Z.message)}finally{h(!1)}}}function Q(w){o&&(k({...o,evals:[...o.evals,w]}),X(!1))}function G(w){o&&(k({...o,evals:o.evals.map(Z=>Z.id===w.id?w:Z)}),p(null))}function O(w){!o||!confirm("Delete this eval case?")||k({...o,evals:o.evals.filter(Z=>Z.id!==w)})}function q(w){if(!o)return;const Z=o.evals.find(J=>J.id===w);Z&&G({...Z,assertions:[...Z.assertions,{id:`assert-${Date.now()}`,text:"New assertion",type:"boolean"}]})}function Y(w,Z,J){if(!o)return;const se=o.evals.find(Ne=>Ne.id===w);se&&G({...se,assertions:se.assertions.map(Ne=>Ne.id===Z?{...Ne,text:J}:Ne)})}function M(w,Z){if(!o)return;const J=o.evals.find(se=>se.id===w);J&&G({...J,assertions:J.assertions.filter(se=>se.id!==Z)})}return m?s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"flex gap-2 mb-6",children:[s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"}),s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"skeleton h-32 rounded-xl"}),s.jsx("div",{className:"skeleton h-32 rounded-xl"})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[13px]",children:[s.jsx(Ot,{to:"/",className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:w=>{w.currentTarget.style.color="var(--text-primary)"},onMouseLeave:w=>{w.currentTarget.style.color="var(--text-tertiary)"},children:"Skills"}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:i}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:f})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-4 mb-7",children:[s.jsxs(Ot,{to:`/skills/${i}/${f}/benchmark`,className:"btn btn-primary",children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run Benchmark"]}),s.jsxs(Ot,{to:`/skills/${i}/${f}/compare`,className:"btn btn-purple",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]}),"Compare A/B"]}),s.jsxs(Ot,{to:`/skills/${i}/${f}/history`,className:"btn btn-secondary",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]}),"History"]})]}),x&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:x}),o?s.jsxs("div",{className:"space-y-3 stagger-children",children:[o.evals.map(w=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",w.id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:w.name})]}),s.jsx("p",{className:"text-[12px] mt-1.5 line-clamp-2",style:{color:"var(--text-tertiary)"},children:w.prompt})]}),s.jsxs("div",{className:"flex gap-1 ml-3",children:[s.jsx("button",{onClick:()=>{p(w),X(!0)},className:"btn btn-ghost text-[12px]",children:"Edit"}),s.jsx("button",{onClick:()=>O(w.id),className:"btn btn-danger text-[12px]",children:"Delete"})]})]}),s.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Assertions"}),s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:"10px",padding:"1px 7px"},children:w.assertions.length})]}),s.jsx("div",{className:"space-y-1.5",children:w.assertions.map(Z=>s.jsxs("div",{className:"flex items-center gap-2 group",children:[s.jsx("span",{className:"text-[11px] font-mono w-28 truncate flex-shrink-0",style:{color:"var(--text-tertiary)"},children:Z.id}),s.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5",style:{background:"transparent",border:"1px solid transparent",borderRadius:"6px"},value:Z.text,onChange:J=>Y(w.id,Z.id,J.target.value),onFocus:J=>{J.currentTarget.style.borderColor="var(--border-default)",J.currentTarget.style.background="var(--surface-2)"},onBlur:J=>{J.currentTarget.style.borderColor="transparent",J.currentTarget.style.background="transparent"}}),s.jsx("button",{onClick:()=>M(w.id,Z.id),className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150 p-1 rounded",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},Z.id))}),s.jsxs("button",{onClick:()=>q(w.id),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add assertion"]})]})]},w.id)),s.jsx("button",{onClick:()=>{p(null),X(!0)},className:"w-full p-4 rounded-xl text-[13px] font-medium transition-all duration-150",style:{border:"2px dashed var(--border-default)",color:"var(--text-tertiary)",background:"transparent"},onMouseEnter:w=>{w.currentTarget.style.borderColor="var(--accent)",w.currentTarget.style.color="var(--accent)",w.currentTarget.style.background="var(--accent-muted)"},onMouseLeave:w=>{w.currentTarget.style.borderColor="var(--border-default)",w.currentTarget.style.color="var(--text-tertiary)",w.currentTarget.style.background="transparent"},children:"+ Add Eval Case"})]}):s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No evals.json found"}),s.jsx("button",{onClick:()=>X(!0),className:"btn btn-primary mt-3",children:"Create evals.json"})]}),H&&s.jsx(a1,{evalCase:_,skillName:(o==null?void 0:o.skill_name)||f||"",existingIds:(o==null?void 0:o.evals.map(w=>w.id))||[],onSave:w=>_?G(w):Q(w),onCancel:()=>{X(!1),p(null)}}),S&&s.jsxs("div",{className:"fixed bottom-5 right-5 flex items-center gap-2 px-4 py-2.5 rounded-lg text-[13px] animate-fade-in-scale",style:{background:"var(--accent)",color:"#fff",boxShadow:"0 8px 32px rgba(99,131,255,0.3)"},children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)"}}),"Saving..."]})]})}function a1({evalCase:i,skillName:f,existingIds:o,onSave:r,onCancel:m}){const[v,x]=E.useState((i==null?void 0:i.name)||""),[A,S]=E.useState((i==null?void 0:i.prompt)||""),[h,_]=E.useState((i==null?void 0:i.expected_output)||""),[p,H]=E.useState((i==null?void 0:i.assertions)||[{id:"assert-1",text:"",type:"boolean"}]);function X(k){k.preventDefault();const Q=(i==null?void 0:i.id)??(o.length>0?Math.max(...o)+1:1);r({id:Q,name:v,prompt:A,expected_output:h,files:(i==null?void 0:i.files)||[],assertions:p.filter(G=>G.text.trim())})}return s.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 animate-overlay-in",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"},children:s.jsxs("form",{onSubmit:X,className:"glass-card p-6 w-full max-w-2xl max-h-[85vh] overflow-auto animate-modal-in",style:{background:"var(--surface-1)",border:"1px solid var(--border-default)"},children:[s.jsx("h3",{className:"text-[16px] font-semibold mb-5",style:{color:"var(--text-primary)"},children:i?"Edit Eval Case":"New Eval Case"}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Name"}),s.jsx("input",{className:"input-field",value:v,onChange:k=>x(k.target.value),required:!0,placeholder:"e.g. basic-test-question"})]}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Prompt"}),s.jsx("textarea",{className:"input-field h-24 resize-y",value:A,onChange:k=>S(k.target.value),required:!0,placeholder:"The user prompt to test against..."})]}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Expected Output"}),s.jsx("textarea",{className:"input-field h-20 resize-y",value:h,onChange:k=>_(k.target.value),placeholder:"What a good answer should include..."})]}),s.jsxs("div",{className:"mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-2 block",style:{color:"var(--text-secondary)"},children:"Assertions"}),p.map((k,Q)=>s.jsxs("div",{className:"flex gap-2 mt-1.5",children:[s.jsx("input",{className:"input-field w-32 text-[12px] font-mono",value:k.id,onChange:G=>{const O=[...p];O[Q]={...O[Q],id:G.target.value},H(O)},placeholder:"ID"}),s.jsx("input",{className:"input-field flex-1 text-[12px]",value:k.text,onChange:G=>{const O=[...p];O[Q]={...O[Q],text:G.target.value},H(O)},placeholder:"Assertion text"}),s.jsx("button",{type:"button",onClick:()=>H(p.filter((G,O)=>O!==Q)),className:"btn btn-ghost p-1.5",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},Q)),s.jsx("button",{type:"button",onClick:()=>H([...p,{id:`assert-${p.length+1}`,text:"",type:"boolean"}]),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:"+ Add assertion"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("button",{type:"button",onClick:m,className:"btn btn-secondary",children:"Cancel"}),s.jsx("button",{type:"submit",className:"btn btn-primary",children:"Save"})]})]})})}function Fs(){const[i,f]=E.useState([]),[o,r]=E.useState(!1),[m,v]=E.useState(!1),[x,A]=E.useState(null),S=E.useRef(null),h=E.useCallback(async(p,H)=>{f([]),r(!0),v(!1),A(null);const X=new AbortController;S.current=X;try{const k=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:H?JSON.stringify(H):void 0,signal:X.signal});if(!k.ok||!k.body)throw new Error(`HTTP ${k.status}`);const Q=k.body.getReader(),G=new TextDecoder;let O="",q="";for(;;){const{done:Y,value:M}=await Q.read();if(Y)break;O+=G.decode(M,{stream:!0});const w=O.split(`
|
|
61
|
+
`);O=w.pop()||"";for(const Z of w)if(Z.startsWith("event: "))q=Z.slice(7).trim();else if(Z.startsWith("data: ")){try{const J=JSON.parse(Z.slice(6)),se={event:q,data:J};q==="done"?(v(!0),f(Ne=>[...Ne,se])):f(Ne=>[...Ne,se])}catch{}q=""}}}catch(k){k.name!=="AbortError"&&A(k.message)}finally{r(!1),S.current=null}},[]),_=E.useCallback(()=>{var p;(p=S.current)==null||p.abort()},[]);return{events:i,running:o,done:m,error:x,start:h,stop:_}}function n1(){const{plugin:i,skill:f}=fi(),{events:o,running:r,done:m,error:v,start:x}=Fs(),[A,S]=E.useState(new Set),[h,_]=E.useState(null);E.useEffect(()=>{ht.getConfig().then(O=>_(O.model)).catch(()=>{})},[]);function p(){ht.getConfig().then(O=>_(O.model)).catch(()=>{}),S(new Set),x(`/api/skills/${i}/${f}/benchmark`)}function H(O){S(q=>{const Y=new Set(q);return Y.has(O)?Y.delete(O):Y.add(O),Y})}const X=new Map;for(const O of o){if(O.event==="case_start"){const q=O.data;X.has(q.eval_id)||X.set(q.eval_id,{name:q.eval_name,assertions:[]})}if(O.event==="output_ready"){const q=O.data,Y=X.get(q.eval_id)||{assertions:[]};Y.output=q.output,X.set(q.eval_id,Y)}if(O.event==="assertion_result"){const q=O.data,Y=X.get(q.eval_id)||{assertions:[]};Y.assertions.find(M=>M.assertion_id===q.assertion_id)||(Y.assertions.push(q),X.set(q.eval_id,Y))}if(O.event==="case_complete"){const q=O.data,Y=X.get(q.eval_id)||{assertions:[]};Y.status=q.status,Y.passRate=q.pass_rate,Y.errorMessage=q.error_message||void 0,X.set(q.eval_id,Y)}}const k=o.find(O=>O.event==="done"),Q=k==null?void 0:k.data,G=(Q==null?void 0:Q.overall_pass_rate)!==void 0?Math.round(Q.overall_pass_rate*100):null;return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Ot,{to:`/skills/${i}/${f}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:O=>{O.currentTarget.style.color="var(--text-primary)"},onMouseLeave:O=>{O.currentTarget.style.color="var(--text-tertiary)"},children:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"Benchmark"})]}),s.jsx("div",{className:"mb-3",children:s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs your skill against each eval case. An LLM judge grades every assertion against the actual output."})}),s.jsx("button",{onClick:p,disabled:r,className:"btn btn-primary mb-7",children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Running..."]}):s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run Benchmark"]})}),v&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:v}),X.size>0&&s.jsxs("div",{className:"space-y-3 stagger-children",children:[Array.from(X.entries()).map(([O,q])=>{const Y=A.has(O);return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",O]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:q.name||"Eval Case"})]}),q.status?s.jsxs("span",{className:"pill",style:{background:q.status==="pass"?"var(--green-muted)":q.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:q.status==="pass"?"var(--green)":q.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:q.status==="pass"?"var(--green)":q.status==="error"?"var(--yellow)":"var(--red)"}}),q.status," ",q.passRate!==void 0?`${Math.round(q.passRate*100)}%`:""]}):s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]})]}),q.errorMessage&&s.jsx("div",{className:"mb-3 p-3 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:q.errorMessage}),s.jsx("div",{className:"space-y-2",children:q.assertions.map(M=>s.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg animate-fade-in",style:{background:M.pass?"var(--green-muted)":"var(--red-muted)"},children:[s.jsx("div",{className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:M.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:M.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:M.text||M.assertion_id}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-secondary)"},children:M.reasoning})]})]},M.assertion_id))})]}),q.output&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>H(O),className:"w-full px-5 py-2.5 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:M=>{M.currentTarget.style.background="var(--surface-3)"},onMouseLeave:M=>{M.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:Y?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),Y?"Hide LLM Output":"Show Actual LLM Output"]}),Y&&s.jsxs("div",{className:"p-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"LLM Output"}),s.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:q.output})]})]})]},O)}),m&&G!==null&&s.jsxs("div",{className:"glass-card p-6 text-center animate-fade-in-scale",style:{borderColor:G>=80?"var(--green)":G>=50?"var(--yellow)":"var(--red)",borderWidth:2},children:[s.jsxs("div",{className:"text-[36px] font-bold tracking-tight",style:{color:G>=80?"var(--green)":G>=50?"var(--yellow)":"var(--red)"},children:[G,"%"]}),s.jsx("div",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:"Overall Pass Rate"}),h&&s.jsx("div",{className:"text-[11px] mt-1 font-mono",style:{color:"var(--text-tertiary)"},children:h})]})]}),r&&X.size===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating outputs and evaluating assertions..."})]})]})}const gm={EFFECTIVE:{bg:"var(--green-muted)",text:"var(--green)",border:"var(--green)",glow:"rgba(52,211,153,0.15)"},MARGINAL:{bg:"var(--yellow-muted)",text:"var(--yellow)",border:"var(--yellow)",glow:"rgba(251,191,36,0.15)"},INEFFECTIVE:{bg:"rgba(251,146,60,0.12)",text:"var(--orange)",border:"var(--orange)",glow:"rgba(251,146,60,0.15)"},DEGRADING:{bg:"var(--red-muted)",text:"var(--red)",border:"var(--red)",glow:"rgba(248,113,113,0.15)"}};function u1(){const{plugin:i,skill:f}=fi(),{events:o,running:r,done:m,error:v,start:x}=Fs(),[A,S]=E.useState(new Set),[h,_]=E.useState(null);E.useEffect(()=>{ht.getConfig().then(M=>_(M.model)).catch(()=>{})},[]);function p(){S(new Set),x(`/api/skills/${i}/${f}/compare`)}function H(M){S(w=>{const Z=new Set(w);return Z.has(M)?Z.delete(M):Z.add(M),Z})}const X=[],k=[],Q=[];for(const M of o)if(M.event==="outputs_ready"){const w=M.data;X.find(Z=>Z.eval_id===w.eval_id)||X.push(w)}else if(M.event==="case_error"){const w=M.data;k.find(Z=>Z.eval_id===w.eval_id)||k.push(w)}else if(M.event==="case_start"){const w=M.data;Q.find(Z=>Z.eval_id===w.eval_id)||Q.push(w)}const G=new Set([...X.map(M=>M.eval_id),...k.map(M=>M.eval_id)]),O=Q.filter(M=>!G.has(M.eval_id)).pop(),q=o.find(M=>M.event==="done"),Y=q==null?void 0:q.data;return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Ot,{to:`/skills/${i}/${f}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:M=>{M.currentTarget.style.color="var(--text-primary)"},onMouseLeave:M=>{M.currentTarget.style.color="var(--text-tertiary)"},children:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"A/B Comparison"})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs each eval prompt twice: once WITH your skill, once WITHOUT. An LLM judge scores both outputs blindly on content and structure (1-5 each)."}),h&&s.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"Model:"}),s.jsx("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--accent)"},children:h})]})]}),s.jsx("button",{onClick:p,disabled:r,className:"btn btn-purple mb-7",children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Comparing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]})," Run Comparison"]})}),v&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:v}),(Y==null?void 0:Y.error)&&s.jsxs("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:[s.jsx("span",{className:"font-semibold",children:"Error:"})," ",Y.error]}),k.length>0&&s.jsx("div",{className:"space-y-2 mb-5",children:k.map(M=>s.jsxs("div",{className:"px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:[s.jsxs("span",{className:"font-semibold",children:["Eval #",M.eval_id," failed:"]})," ",M.error]},M.eval_id))}),X.length>0&&s.jsxs("div",{className:"space-y-4 stagger-children",children:[X.map(M=>{const w=A.has(M.eval_id),Z=M.winner==="skill"?"Skill Wins":M.winner==="baseline"?"Baseline Wins":"Tie",J=M.winner==="skill"?"var(--green)":M.winner==="baseline"?"var(--red)":"var(--text-tertiary)";return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5 pb-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",M.eval_id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:M.eval_name||"Eval Case"})]}),s.jsx("span",{className:"pill",style:{background:M.winner==="skill"?"var(--green-muted)":M.winner==="baseline"?"var(--red-muted)":"var(--surface-3)",color:J,fontWeight:700},children:Z})]}),s.jsxs("div",{className:"mb-4 p-3 rounded-lg",style:{background:"var(--surface-2)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-1.5",style:{color:"var(--text-tertiary)"},children:"Prompt"}),s.jsx("div",{className:"text-[12px] leading-relaxed",style:{color:"var(--text-secondary)"},children:M.prompt})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(bm,{label:"WITH Skill",contentScore:M.skillContentScore,structureScore:M.skillStructureScore,isWinner:M.winner==="skill"}),s.jsx(bm,{label:"WITHOUT Skill",contentScore:M.baselineContentScore,structureScore:M.baselineStructureScore,isWinner:M.winner==="baseline"})]})]}),s.jsxs("button",{onClick:()=>H(M.eval_id),className:"w-full px-5 py-3 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:se=>{se.currentTarget.style.background="var(--surface-3)"},onMouseLeave:se=>{se.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:w?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),w?"Hide LLM Outputs":"Show Actual LLM Outputs"]}),w&&s.jsxs("div",{className:"grid grid-cols-2 gap-0 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx(jm,{label:"WITH Skill",output:M.skillOutput,accentColor:M.winner==="skill"?"var(--green)":void 0}),s.jsx(jm,{label:"WITHOUT Skill",output:M.baselineOutput,accentColor:M.winner==="baseline"?"var(--red)":void 0,hasBorderLeft:!0})]})]},M.eval_id)}),m&&(Y==null?void 0:Y.verdict)&&(()=>{const M=gm[Y.verdict]||gm.INEFFECTIVE;return s.jsxs("div",{className:"glass-card p-8 text-center animate-fade-in-scale",style:{borderColor:M.border,borderWidth:2,boxShadow:`0 0 40px ${M.glow}`},children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Verdict"}),s.jsx("div",{className:"text-[32px] font-bold tracking-tight",style:{color:M.text},children:Y.verdict}),Y.comparison&&s.jsxs("div",{className:"flex justify-center gap-8 mt-5",children:[s.jsx(Ys,{label:"Skill Avg",value:Y.comparison.skillRubricAvg.toFixed(1)}),s.jsx(Ys,{label:"Baseline Avg",value:Y.comparison.baselineRubricAvg.toFixed(1)}),s.jsx(Ys,{label:"Delta",value:`${Y.comparison.delta>0?"+":""}${Y.comparison.delta.toFixed(1)}`,color:Y.comparison.delta>0?"var(--green)":Y.comparison.delta<0?"var(--red)":"var(--text-secondary)"})]}),Y.overall_pass_rate!==void 0&&s.jsxs("div",{className:"text-[12px] mt-3",style:{color:"var(--text-tertiary)"},children:["Assertion pass rate: ",Math.round(Y.overall_pass_rate*100),"%"]})]})})()]}),r&&X.length===0&&k.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating WITH and WITHOUT outputs..."}),s.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:O?`Processing: ${O.eval_name||`Eval #${O.eval_id}`}`:"Then blind-scoring both responses"})]})]})}function bm({label:i,contentScore:f,structureScore:o,isWinner:r}){const m=((f+o)/2).toFixed(1),v=parseFloat(m),x=v>=4?"var(--green)":v>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"rounded-xl p-4",style:{background:"var(--surface-2)",border:r?"1px solid var(--green)":"1px solid transparent",boxShadow:r?"0 0 20px var(--green-muted)":"none"},children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:i}),s.jsx("div",{className:"text-[16px] font-bold",style:{color:x},children:m})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Sm,{label:"Content",score:f}),s.jsx(Sm,{label:"Structure",score:o})]})]})}function Sm({label:i,score:f}){const o=f/5*100,r=f>=4?"var(--green)":f>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"text-[11px] w-16",style:{color:"var(--text-tertiary)"},children:i}),s.jsx("div",{className:"flex-1 h-1.5 rounded-full",style:{background:"var(--surface-3)"},children:s.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${o}%`,background:r}})}),s.jsx("div",{className:"text-[12px] font-semibold w-5 text-right",style:{color:r},children:f})]})}function jm({label:i,output:f,accentColor:o,hasBorderLeft:r}){return s.jsxs("div",{className:"p-4",style:{borderLeft:r?"1px solid var(--border-subtle)":void 0},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o&&s.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:o}}),s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:o||"var(--text-tertiary)"},children:i})]}),s.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:f||"(empty output)"})]})}function Ys({label:i,value:f,color:o}){return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-[18px] font-bold",style:{color:o||"var(--text-primary)"},children:f}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:i})]})}function i1(){const{plugin:i,skill:f}=fi(),[o,r]=E.useState([]),[m,v]=E.useState(!0),[x,A]=E.useState(null),[S,h]=E.useState(null);E.useEffect(()=>{!i||!f||ht.getHistory(i,f).then(r).catch(()=>{}).finally(()=>v(!1))},[i,f]);async function _(p){if(!(!i||!f)){h(p);try{const H=await ht.getHistoryEntry(i,f,p);A(H)}catch{A(null)}}}return m?s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"skeleton h-20 rounded-xl"}),s.jsx("div",{className:"skeleton h-20 rounded-xl"})]}),s.jsx("div",{className:"col-span-2",children:s.jsx("div",{className:"skeleton h-48 rounded-xl"})})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Ot,{to:`/skills/${i}/${f}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:p=>{p.currentTarget.style.color="var(--text-primary)"},onMouseLeave:p=>{p.currentTarget.style.color="var(--text-tertiary)"},children:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"History"})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"col-span-1",children:[s.jsxs("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 px-1",style:{color:"var(--text-tertiary)"},children:["Past Runs (",o.length,")"]}),o.length===0&&s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-3",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),s.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No benchmark runs yet"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:o.map(p=>{const H=S===p.timestamp,X=p.passRate>=.8?"var(--green)":p.passRate>=.5?"var(--yellow)":"var(--red)";return s.jsxs("button",{onClick:()=>_(p.timestamp),className:"w-full text-left p-3.5 rounded-xl transition-all duration-150",style:{background:H?"var(--accent-muted)":"var(--surface-1)",border:H?"1px solid var(--border-active)":"1px solid var(--border-subtle)"},onMouseEnter:k=>{H||(k.currentTarget.style.borderColor="var(--border-hover)")},onMouseLeave:k=>{H||(k.currentTarget.style.borderColor="var(--border-subtle)")},children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:new Date(p.timestamp).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}),s.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:p.model}),s.jsxs("span",{className:"text-[11px] font-semibold",style:{color:X},children:[Math.round(p.passRate*100),"%"]}),p.type==="comparison"&&s.jsx("span",{className:"pill",style:{background:"var(--purple-muted)",color:"var(--purple)",fontSize:"9px",padding:"1px 6px"},children:"A/B"})]})]},p.timestamp)})})]}),s.jsx("div",{className:"col-span-2",children:x?s.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[s.jsx("div",{className:"glass-card p-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:new Date(x.timestamp).toLocaleString()}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-tertiary)"},children:x.model})]}),x.verdict&&s.jsx("span",{className:"text-[14px] font-bold",style:{color:x.verdict==="EFFECTIVE"?"var(--green)":x.verdict==="MARGINAL"?"var(--yellow)":x.verdict==="DEGRADING"?"var(--red)":"var(--orange)"},children:x.verdict})]})}),x.cases.map(p=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",p.eval_id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:p.eval_name})]}),s.jsxs("span",{className:"pill",style:{background:p.status==="pass"?"var(--green-muted)":p.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:p.status==="pass"?"var(--green)":p.status==="error"?"var(--yellow)":"var(--red)"},children:[p.status," (",Math.round(p.pass_rate*100),"%)"]})]}),p.error_message&&s.jsx("div",{className:"text-[12px] mb-3 p-2 rounded",style:{background:"var(--red-muted)",color:"var(--red)"},children:p.error_message}),s.jsx("div",{className:"space-y-1.5",children:p.assertions.map(H=>s.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[s.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:H.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:H.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-primary)"},children:H.text}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:H.reasoning})]})]},H.id))})]},p.eval_id))]}):s.jsxs("div",{className:"text-center py-20",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"15 18 9 12 15 6"})})}),s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Select a run to view details"})]})})]})]})}const Em={TP:{bg:"var(--green-muted)",text:"var(--green)",icon:"check"},TN:{bg:"rgba(52,211,153,0.06)",text:"rgba(52,211,153,0.6)",icon:"check"},FP:{bg:"var(--red-muted)",text:"var(--red)",icon:"x"},FN:{bg:"rgba(248,113,113,0.06)",text:"rgba(248,113,113,0.6)",icon:"x"}},c1=[{label:"Should activate",prompts:["How do I use this feature?","Show me best practices for this","What's the recommended approach?"]},{label:"Should NOT activate",prompts:["!What's the weather today?","!Write me a poem","!How do I cook pasta?"]}];function s1(){const[i,f]=E.useState([]),[o,r]=E.useState(null),[m,v]=E.useState(null),[x,A]=E.useState(""),[S,h]=E.useState(!1),{events:_,running:p,error:H,start:X}=Fs();E.useEffect(()=>{ht.getSkills().then(f).catch(()=>{})},[]),E.useEffect(()=>{if(!o){v(null);return}fetch(`/api/skills/${o.plugin}/${o.skill}/description`).then(M=>M.json()).then(M=>v(M.description)).catch(()=>v(null))},[o]);function k(){if(!o)return;const w=x.trim().split(`
|
|
62
|
+
`).filter(Boolean).map(Z=>{const J=Z.startsWith("!");return{prompt:J?Z.slice(1).trim():Z.trim(),expected:J?"should_not_activate":"should_activate"}});X(`/api/skills/${o.plugin}/${o.skill}/activation-test`,{prompts:w})}function Q(M){const w=x.trim(),Z=w?`${w}
|
|
63
|
+
${M.join(`
|
|
64
|
+
`)}`:M.join(`
|
|
65
|
+
`);A(Z)}const G=[];let O=null;for(const M of _)M.event==="prompt_result"&&G.push(M.data),M.event==="done"&&(O=M.data);const q=G.filter(M=>M.classification==="TP"||M.classification==="TN"),Y=G.filter(M=>M.classification==="FP"||M.classification==="FN");return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Description Activation Test"}),s.jsxs("p",{className:"text-[13px] mt-1 max-w-2xl",style:{color:"var(--text-tertiary)"},children:["Tests whether a skill's description activates correctly for relevant prompts and stays silent for irrelevant ones. This validates the ",s.jsx("strong",{children:"auto-activation quality"})," of your skill description."]})]}),s.jsxs("div",{className:"grid grid-cols-5 gap-5 mb-6",children:[s.jsxs("div",{className:"col-span-3 space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Skill"}),s.jsxs("select",{className:"input-field",value:o?`${o.plugin}/${o.skill}`:"",onChange:M=>{const[w,Z]=M.target.value.split("/");r(w&&Z?{plugin:w,skill:Z}:null)},children:[s.jsx("option",{value:"",children:"Select a skill..."}),i.map(M=>s.jsxs("option",{value:`${M.plugin}/${M.skill}`,children:[M.plugin," / ",M.skill]},`${M.plugin}/${M.skill}`))]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("label",{className:"text-[12px] font-medium",style:{color:"var(--text-secondary)"},children:"Test Prompts"}),s.jsx("div",{className:"flex gap-1.5",children:c1.map(M=>s.jsxs("button",{onClick:()=>Q(M.prompts),className:"text-[10px] px-2 py-1 rounded-md transition-colors duration-150",style:{background:"var(--surface-2)",color:"var(--text-tertiary)"},onMouseEnter:w=>{w.currentTarget.style.color="var(--text-primary)",w.currentTarget.style.background="var(--surface-3)"},onMouseLeave:w=>{w.currentTarget.style.color="var(--text-tertiary)",w.currentTarget.style.background="var(--surface-2)"},children:["+ ",M.label]},M.label))})]}),s.jsx("textarea",{className:"input-field h-32 resize-y font-mono text-[12px]",value:x,onChange:M=>A(M.target.value),placeholder:`How do I write a unit test?
|
|
66
66
|
What edge cases should I test?
|
|
67
67
|
!What's the weather like today?
|
|
68
68
|
!Write me a poem about flowers`}),s.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-tertiary)"},children:[s.jsx("span",{children:"One prompt per line"}),s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx("code",{className:"px-1 rounded",style:{background:"var(--surface-2)"},children:"!"})," prefix = should NOT activate"]}),s.jsxs("span",{children:[x.trim().split(`
|
|
69
69
|
`).filter(Boolean).length," prompt",x.trim().split(`
|
|
70
|
-
`).filter(Boolean).length!==1?"s":""]})]})]})]}),s.jsx("div",{className:"col-span-2",children:s.jsxs("div",{className:"glass-card h-full",children:[s.jsxs("button",{onClick:()=>h(!S),className:"w-full p-3 flex items-center justify-between text-left",style:{borderBottom:S?"1px solid var(--border-subtle)":void 0},children:[s.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Skill Description"}),s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:S?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),S&&s.jsx("div",{className:"p-3 animate-fade-in",children:m?s.jsx("div",{className:"text-[12px] leading-relaxed whitespace-pre-wrap",style:{color:"var(--text-secondary)"},children:m}):o?s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Loading description..."}):s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Select a skill to see its description"})}),!S&&m&&s.jsx("div",{className:"px-3 pb-3 pt-1",children:s.jsxs("div",{className:"text-[11px] truncate",style:{color:"var(--text-tertiary)"},children:[m.slice(0,100),m.length>100?"...":""]})})]})})]}),s.jsx("button",{onClick:k,disabled:p||!o||!x.trim(),className:"btn btn-primary mb-7",children:p?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Testing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})," Run Activation Test"]})}),H&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:H}),O.length>0&&s.jsxs("div",{className:"space-y-5 mb-6",children:[Q.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),s.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--red)"},children:["Incorrect (",Q.length,")"]}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"— These need attention"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:Q.map((X,Y)=>s.jsx(Nm,{result:X},`incorrect-${Y}`))})]}),L.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--green)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"16 10 11 15 8 12"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--green)"},children:["Correct (",L.length,")"]})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:L.map((X,Y)=>s.jsx(Nm,{result:X},`correct-${Y}`))})]})]}),M&&s.jsxs("div",{className:"glass-card p-6 animate-fade-in-scale",style:{borderColor:"var(--border-active)",borderWidth:2},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-4",style:{color:"var(--text-tertiary)"},children:"Summary"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6 mb-5",children:[s.jsx(ks,{label:"Precision",value:M.precision,description:"Of all activations, how many were correct?",detail:`${M.tp} true / ${M.tp+M.fp} total activations`}),s.jsx(ks,{label:"Recall",value:M.recall,description:"Of expected activations, how many fired?",detail:`${M.tp} activated / ${M.tp+M.fn} expected`}),s.jsx(ks,{label:"Reliability",value:M.reliability,description:"Overall correct classification rate",detail:`${M.tp+M.tn} correct / ${M.total} total`})]}),s.jsxs("div",{className:"pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 text-center",style:{color:"var(--text-tertiary)"},children:"Confusion Matrix"}),s.jsxs("div",{className:"grid grid-cols-2 gap-2 max-w-xs mx-auto",children:[s.jsx(ui,{label:"True Positive",abbr:"TP",count:M.tp,bg:"var(--green-muted)",color:"var(--green)",description:"Correctly activated"}),s.jsx(ui,{label:"False Positive",abbr:"FP",count:M.fp,bg:"var(--red-muted)",color:"var(--red)",description:"Wrongly activated"}),s.jsx(ui,{label:"False Negative",abbr:"FN",count:M.fn,bg:"rgba(248,113,113,0.06)",color:"rgba(248,113,113,0.6)",description:"Missed activation"}),s.jsx(ui,{label:"True Negative",abbr:"TN",count:M.tn,bg:"rgba(52,211,153,0.06)",color:"rgba(52,211,153,0.6)",description:"Correctly silent"})]})]})]}),p&&O.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Testing activation against skill description..."})]})]})}function Nm({result:i}){const f=Em[i.classification]||Em.FN,o=i.classification==="TP"||i.classification==="TN";return s.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl transition-all duration-200",style:{background:f.bg,border:"1px solid transparent"},children:[s.jsx("div",{className:"flex-shrink-0 mt-0.5",children:s.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:`color-mix(in srgb, ${f.text} 20%, transparent)`},children:o?s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:f.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}):s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:f.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:i.prompt})}),s.jsxs("div",{className:"flex items-center gap-3 text-[12px]",children:[s.jsx("span",{className:"pill",style:{background:"rgba(0,0,0,0.1)",color:f.text,fontWeight:700,fontSize:"10px",padding:"1px 6px"},children:i.classification}),s.jsx("span",{style:{color:i.activate?"var(--green)":"var(--text-tertiary)"},children:i.activate?"Activated":"Silent"}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:["Expected: ",i.expected==="should_activate"?"activate":"stay silent"]}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:[i.confidence," confidence"]})]}),i.reasoning&&s.jsx("div",{className:"text-[11px] mt-1.5",style:{color:"var(--text-tertiary)"},children:i.reasoning})]})]})}function ks({label:i,value:f,description:o,detail:r}){const m=Math.round(f*100),v=m>=80?"var(--green)":m>=60?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"text-center",children:[s.jsxs("div",{className:"text-[28px] font-bold tracking-tight",style:{color:v},children:[m,"%"]}),s.jsx("div",{className:"text-[12px] font-medium mt-0.5",style:{color:"var(--text-secondary)"},children:i}),s.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-tertiary)"},children:o}),s.jsx("div",{className:"text-[10px] mt-0.5 font-mono",style:{color:"var(--text-tertiary)"},children:r})]})}function ui({label:i,abbr:f,count:o,bg:r,color:m,description:v}){return s.jsxs("div",{className:"text-center p-3 rounded-lg",style:{background:r},children:[s.jsx("div",{className:"text-[20px] font-bold",style:{color:m},children:o}),s.jsx("div",{className:"text-[11px] font-semibold",style:{color:m},children:f}),s.jsx("div",{className:"text-[9px] mt-0.5",style:{color:"var(--text-tertiary)"},children:v})]})}function r1(){const[i,f]=E.useState(null),[o,r]=E.useState(!1),[m,v]=E.useState(!1),x=E.useRef(null);E.useEffect(()=>{ht.getConfig().then(f).catch(()=>{})},[]),E.useEffect(()=>{function h(_){x.current&&!x.current.contains(_.target)&&r(!1)}return o&&document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[o]);async function A(h,_){v(!0);try{const p=await ht.setConfig(h.id,_.id);f(p),r(!1)}catch{const p=await ht.getConfig();f(p)}finally{v(!1)}}if(!i)return null;const S=f1(i);return s.jsxs("div",{ref:x,className:"relative",children:[s.jsxs("button",{onClick:()=>r(!o),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-[12px] transition-all duration-150",style:{background:"var(--surface-3)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)"},onMouseEnter:h=>{h.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:h=>{h.currentTarget.style.borderColor="var(--border-subtle)"},children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}),s.jsx("span",{className:"flex-1 text-left font-medium truncate",children:S}),s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:o?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),o&&s.jsxs("div",{className:"absolute bottom-full mb-1 left-0 w-64 rounded-xl shadow-xl z-50 overflow-hidden animate-fade-in",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"px-4 py-2.5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Select Model"})}),s.jsx("div",{className:"py-1 max-h-80 overflow-y-auto",children:i.providers.map(h=>s.jsxs("div",{children:[s.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:(h.available,"var(--text-tertiary)"),opacity:h.available?1:.5},children:h.label}),!h.available&&s.jsx("span",{className:"text-[9px] px-1 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:"unavailable"})]}),h.models.map(_=>{const p=Xm(i,h.id,_.id),H=!h.available||m;return s.jsxs("button",{onClick:()=>!H&&A(h,_),disabled:H,className:"w-full px-4 py-2 flex items-center gap-2.5 text-left transition-all duration-100",style:{background:p?"var(--accent-muted)":"transparent",color:H?"var(--text-tertiary)":"var(--text-primary)",opacity:H?.4:1,cursor:H?"not-allowed":"pointer"},onMouseEnter:G=>{!H&&!p&&(G.currentTarget.style.background="var(--surface-3)")},onMouseLeave:G=>{p||(G.currentTarget.style.background="transparent")},children:[s.jsx("div",{className:"w-3 h-3 rounded-full flex-shrink-0 flex items-center justify-center",style:{border:`2px solid ${p?"var(--accent)":"var(--border-subtle)"}`},children:p&&s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}})}),s.jsx("span",{className:"text-[12px]",children:_.label})]},`${h.id}-${_.id}`)})]},h.id))})]})]})}function Xm(i,f,o){return i.provider!==f?!1:f==="claude-cli"?i.model===`claude-${o}`:i.model===o}function f1(i){for(const f of i.providers)for(const o of f.models)if(Xm(i,f.id,o.id))return o.label;return i.model}function o1({active:i}){return s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:i?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),s.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),s.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function d1({active:i}){return s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:i?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})}const m1=[{path:"/",label:"Skills",Icon:o1},{path:"/activation",label:"Activation Test",Icon:d1}];function h1(){const i=cl(),[f,o]=E.useState(null);return E.useEffect(()=>{ht.getConfig().then(r=>o(r.projectName)).catch(()=>{})},[]),s.jsxs("div",{className:"flex h-screen",children:[s.jsxs("nav",{className:"w-[220px] flex flex-col flex-shrink-0",style:{background:"var(--surface-1)",borderRight:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"px-5 py-5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-semibold",style:{color:"var(--text-primary)",letterSpacing:"-0.01em"},children:"Skill Eval"}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:f||"vskill"})]})]})}),s.jsxs("div",{className:"flex-1 px-3 py-3",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Navigation"}),m1.map(r=>{const m=i.pathname===r.path;return s.jsxs(Ot,{to:r.path,className:"flex items-center gap-2.5 px-3 py-[9px] rounded-lg text-[13px] font-medium mb-0.5 transition-all duration-150",style:{background:m?"var(--accent)":"transparent",color:m?"#fff":"var(--text-secondary)"},onMouseEnter:v=>{m||(v.currentTarget.style.background="var(--surface-3)",v.currentTarget.style.color="var(--text-primary)")},onMouseLeave:v=>{m||(v.currentTarget.style.background="transparent",v.currentTarget.style.color="var(--text-secondary)")},children:[s.jsx(r.Icon,{active:m}),r.label]},r.path)})]}),s.jsxs("div",{className:"px-3 py-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Model"}),s.jsx(r1,{})]})]}),s.jsx("main",{className:"flex-1 overflow-auto",style:{background:"var(--surface-0)"},children:s.jsx("div",{className:"animate-fade-in",children:s.jsxs(bp,{children:[s.jsx(Il,{path:"/",element:s.jsx(t1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill",element:s.jsx(l1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill/benchmark",element:s.jsx(n1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill/compare",element:s.jsx(u1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill/history",element:s.jsx(i1,{})}),s.jsx(Il,{path:"/activation",element:s.jsx(s1,{})})]})},i.pathname)})]})}jy.createRoot(document.getElementById("root")).render(s.jsx(E.StrictMode,{children:s.jsx(Qp,{children:s.jsx(h1,{})})}));
|
|
70
|
+
`).filter(Boolean).length!==1?"s":""]})]})]})]}),s.jsx("div",{className:"col-span-2",children:s.jsxs("div",{className:"glass-card h-full",children:[s.jsxs("button",{onClick:()=>h(!S),className:"w-full p-3 flex items-center justify-between text-left",style:{borderBottom:S?"1px solid var(--border-subtle)":void 0},children:[s.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Skill Description"}),s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:S?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),S&&s.jsx("div",{className:"p-3 animate-fade-in",children:m?s.jsx("div",{className:"text-[12px] leading-relaxed whitespace-pre-wrap",style:{color:"var(--text-secondary)"},children:m}):o?s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Loading description..."}):s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Select a skill to see its description"})}),!S&&m&&s.jsx("div",{className:"px-3 pb-3 pt-1",children:s.jsxs("div",{className:"text-[11px] truncate",style:{color:"var(--text-tertiary)"},children:[m.slice(0,100),m.length>100?"...":""]})})]})})]}),s.jsx("button",{onClick:k,disabled:p||!o||!x.trim(),className:"btn btn-primary mb-7",children:p?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Testing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})," Run Activation Test"]})}),H&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:H}),G.length>0&&s.jsxs("div",{className:"space-y-5 mb-6",children:[Y.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),s.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--red)"},children:["Incorrect (",Y.length,")"]}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"— These need attention"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:Y.map((M,w)=>s.jsx(Nm,{result:M},`incorrect-${w}`))})]}),q.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--green)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"16 10 11 15 8 12"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--green)"},children:["Correct (",q.length,")"]})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:q.map((M,w)=>s.jsx(Nm,{result:M},`correct-${w}`))})]})]}),O&&s.jsxs("div",{className:"glass-card p-6 animate-fade-in-scale",style:{borderColor:"var(--border-active)",borderWidth:2},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-4",style:{color:"var(--text-tertiary)"},children:"Summary"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6 mb-5",children:[s.jsx(ks,{label:"Precision",value:O.precision,description:"Of all activations, how many were correct?",detail:`${O.tp} true / ${O.tp+O.fp} total activations`}),s.jsx(ks,{label:"Recall",value:O.recall,description:"Of expected activations, how many fired?",detail:`${O.tp} activated / ${O.tp+O.fn} expected`}),s.jsx(ks,{label:"Reliability",value:O.reliability,description:"Overall correct classification rate",detail:`${O.tp+O.tn} correct / ${O.total} total`})]}),s.jsxs("div",{className:"pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 text-center",style:{color:"var(--text-tertiary)"},children:"Confusion Matrix"}),s.jsxs("div",{className:"grid grid-cols-2 gap-2 max-w-xs mx-auto",children:[s.jsx(ui,{label:"True Positive",abbr:"TP",count:O.tp,bg:"var(--green-muted)",color:"var(--green)",description:"Correctly activated"}),s.jsx(ui,{label:"False Positive",abbr:"FP",count:O.fp,bg:"var(--red-muted)",color:"var(--red)",description:"Wrongly activated"}),s.jsx(ui,{label:"False Negative",abbr:"FN",count:O.fn,bg:"rgba(248,113,113,0.06)",color:"rgba(248,113,113,0.6)",description:"Missed activation"}),s.jsx(ui,{label:"True Negative",abbr:"TN",count:O.tn,bg:"rgba(52,211,153,0.06)",color:"rgba(52,211,153,0.6)",description:"Correctly silent"})]})]})]}),p&&G.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Testing activation against skill description..."})]})]})}function Nm({result:i}){const f=Em[i.classification]||Em.FN,o=i.classification==="TP"||i.classification==="TN";return s.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl transition-all duration-200",style:{background:f.bg,border:"1px solid transparent"},children:[s.jsx("div",{className:"flex-shrink-0 mt-0.5",children:s.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:`color-mix(in srgb, ${f.text} 20%, transparent)`},children:o?s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:f.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}):s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:f.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:i.prompt})}),s.jsxs("div",{className:"flex items-center gap-3 text-[12px]",children:[s.jsx("span",{className:"pill",style:{background:"rgba(0,0,0,0.1)",color:f.text,fontWeight:700,fontSize:"10px",padding:"1px 6px"},children:i.classification}),s.jsx("span",{style:{color:i.activate?"var(--green)":"var(--text-tertiary)"},children:i.activate?"Activated":"Silent"}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:["Expected: ",i.expected==="should_activate"?"activate":"stay silent"]}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:[i.confidence," confidence"]})]}),i.reasoning&&s.jsx("div",{className:"text-[11px] mt-1.5",style:{color:"var(--text-tertiary)"},children:i.reasoning})]})]})}function ks({label:i,value:f,description:o,detail:r}){const m=Math.round(f*100),v=m>=80?"var(--green)":m>=60?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"text-center",children:[s.jsxs("div",{className:"text-[28px] font-bold tracking-tight",style:{color:v},children:[m,"%"]}),s.jsx("div",{className:"text-[12px] font-medium mt-0.5",style:{color:"var(--text-secondary)"},children:i}),s.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-tertiary)"},children:o}),s.jsx("div",{className:"text-[10px] mt-0.5 font-mono",style:{color:"var(--text-tertiary)"},children:r})]})}function ui({label:i,abbr:f,count:o,bg:r,color:m,description:v}){return s.jsxs("div",{className:"text-center p-3 rounded-lg",style:{background:r},children:[s.jsx("div",{className:"text-[20px] font-bold",style:{color:m},children:o}),s.jsx("div",{className:"text-[11px] font-semibold",style:{color:m},children:f}),s.jsx("div",{className:"text-[9px] mt-0.5",style:{color:"var(--text-tertiary)"},children:v})]})}function r1(){const[i,f]=E.useState(null),[o,r]=E.useState(!1),[m,v]=E.useState(!1),x=E.useRef(null);E.useEffect(()=>{ht.getConfig().then(f).catch(()=>{})},[]),E.useEffect(()=>{function h(_){x.current&&!x.current.contains(_.target)&&r(!1)}return o&&document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[o]);async function A(h,_){v(!0);try{const p=await ht.setConfig(h.id,_.id);f(p),r(!1)}catch{const p=await ht.getConfig();f(p)}finally{v(!1)}}if(!i)return null;const S=f1(i);return s.jsxs("div",{ref:x,className:"relative",children:[s.jsxs("button",{onClick:()=>r(!o),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-[12px] transition-all duration-150",style:{background:"var(--surface-3)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)"},onMouseEnter:h=>{h.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:h=>{h.currentTarget.style.borderColor="var(--border-subtle)"},children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}),s.jsx("span",{className:"flex-1 text-left font-medium truncate",children:S}),s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:o?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),o&&s.jsxs("div",{className:"absolute bottom-full mb-1 left-0 w-64 rounded-xl shadow-xl z-50 overflow-hidden animate-fade-in",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"px-4 py-2.5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Select Model"})}),s.jsx("div",{className:"py-1 max-h-80 overflow-y-auto",children:i.providers.map(h=>s.jsxs("div",{children:[s.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:(h.available,"var(--text-tertiary)"),opacity:h.available?1:.5},children:h.label}),!h.available&&s.jsx("span",{className:"text-[9px] px-1 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:"unavailable"})]}),h.models.map(_=>{const p=Xm(i,h.id,_.id),H=!h.available||m;return s.jsxs("button",{onClick:()=>!H&&A(h,_),disabled:H,className:"w-full px-4 py-2 flex items-center gap-2.5 text-left transition-all duration-100",style:{background:p?"var(--accent-muted)":"transparent",color:H?"var(--text-tertiary)":"var(--text-primary)",opacity:H?.4:1,cursor:H?"not-allowed":"pointer"},onMouseEnter:X=>{!H&&!p&&(X.currentTarget.style.background="var(--surface-3)")},onMouseLeave:X=>{p||(X.currentTarget.style.background="transparent")},children:[s.jsx("div",{className:"w-3 h-3 rounded-full flex-shrink-0 flex items-center justify-center",style:{border:`2px solid ${p?"var(--accent)":"var(--border-subtle)"}`},children:p&&s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}})}),s.jsx("span",{className:"text-[12px]",children:_.label})]},`${h.id}-${_.id}`)})]},h.id))})]})]})}function Xm(i,f,o){return i.provider!==f?!1:f==="claude-cli"?i.model===`claude-${o}`:i.model===o}function f1(i){for(const f of i.providers)for(const o of f.models)if(Xm(i,f.id,o.id))return o.label;return i.model}function o1({active:i}){return s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:i?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),s.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),s.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function d1({active:i}){return s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:i?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})}const m1=[{path:"/",label:"Skills",Icon:o1},{path:"/activation",label:"Activation Test",Icon:d1}];function h1(){const i=cl(),[f,o]=E.useState(null);return E.useEffect(()=>{ht.getConfig().then(r=>o(r.projectName)).catch(()=>{})},[]),s.jsxs("div",{className:"flex h-screen",children:[s.jsxs("nav",{className:"w-[220px] flex flex-col flex-shrink-0",style:{background:"var(--surface-1)",borderRight:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"px-5 py-5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-semibold",style:{color:"var(--text-primary)",letterSpacing:"-0.01em"},children:"Skill Eval"}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:f||"vskill"})]})]})}),s.jsxs("div",{className:"flex-1 px-3 py-3",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Navigation"}),m1.map(r=>{const m=i.pathname===r.path;return s.jsxs(Ot,{to:r.path,className:"flex items-center gap-2.5 px-3 py-[9px] rounded-lg text-[13px] font-medium mb-0.5 transition-all duration-150",style:{background:m?"var(--accent)":"transparent",color:m?"#fff":"var(--text-secondary)"},onMouseEnter:v=>{m||(v.currentTarget.style.background="var(--surface-3)",v.currentTarget.style.color="var(--text-primary)")},onMouseLeave:v=>{m||(v.currentTarget.style.background="transparent",v.currentTarget.style.color="var(--text-secondary)")},children:[s.jsx(r.Icon,{active:m}),r.label]},r.path)})]}),s.jsxs("div",{className:"px-3 py-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Model"}),s.jsx(r1,{})]})]}),s.jsx("main",{className:"flex-1 overflow-auto",style:{background:"var(--surface-0)"},children:s.jsx("div",{className:"animate-fade-in",children:s.jsxs(bp,{children:[s.jsx(Il,{path:"/",element:s.jsx(t1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill",element:s.jsx(l1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill/benchmark",element:s.jsx(n1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill/compare",element:s.jsx(u1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill/history",element:s.jsx(i1,{})}),s.jsx(Il,{path:"/activation",element:s.jsx(s1,{})})]})},i.pathname)})]})}jy.createRoot(document.getElementById("root")).render(s.jsx(E.StrictMode,{children:s.jsx(Qp,{children:s.jsx(h1,{})})}));
|