@mulsok/traders-client 0.1.0 → 0.2.0
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.
- package/CHANGELOG.md +63 -0
- package/README.md +42 -5
- package/bin/cli.js +618 -38
- package/dist/server/auth/admin.js +32 -0
- package/dist/server/auth/admin.js.map +1 -0
- package/dist/server/broker/kiwoom/_helpers/symbol-code.js +21 -0
- package/dist/server/broker/kiwoom/_helpers/symbol-code.js.map +1 -0
- package/dist/server/broker/kiwoom/client.js +23 -4
- package/dist/server/broker/kiwoom/client.js.map +1 -1
- package/dist/server/broker/kiwoom/endpoints/account.js +14 -6
- package/dist/server/broker/kiwoom/endpoints/account.js.map +1 -1
- package/dist/server/broker/kiwoom/endpoints/quote.js +99 -13
- package/dist/server/broker/kiwoom/endpoints/quote.js.map +1 -1
- package/dist/server/broker/kiwoom/index.js +1 -1
- package/dist/server/broker/kiwoom/index.js.map +1 -1
- package/dist/server/broker/kiwoom/order-tracker.js +13 -0
- package/dist/server/broker/kiwoom/order-tracker.js.map +1 -1
- package/dist/server/broker/kiwoom/price-feed.js +13 -0
- package/dist/server/broker/kiwoom/price-feed.js.map +1 -1
- package/dist/server/broker/kiwoom/ws/endpoints/condition.js +3 -2
- package/dist/server/broker/kiwoom/ws/endpoints/condition.js.map +1 -1
- package/dist/server/calendar/kst-marker.js +68 -0
- package/dist/server/calendar/kst-marker.js.map +1 -0
- package/dist/server/config.js +370 -72
- package/dist/server/config.js.map +1 -1
- package/dist/server/db/sqlite.js +53 -29
- package/dist/server/db/sqlite.js.map +1 -1
- package/dist/server/diary/writer.js +151 -46
- package/dist/server/diary/writer.js.map +1 -1
- package/dist/server/index.js +166 -11
- package/dist/server/index.js.map +1 -1
- package/dist/server/jobs/universe-sync.js +48 -11
- package/dist/server/jobs/universe-sync.js.map +1 -1
- package/dist/server/jobs/watchdog.js +4 -0
- package/dist/server/jobs/watchdog.js.map +1 -1
- package/dist/server/journal/telemetry.js +11 -0
- package/dist/server/journal/telemetry.js.map +1 -1
- package/dist/server/journal/trade-journal.js +42 -16
- package/dist/server/journal/trade-journal.js.map +1 -1
- package/dist/server/llm/context-builder.js +9 -5
- package/dist/server/llm/context-builder.js.map +1 -1
- package/dist/server/personas/loader.js +46 -16
- package/dist/server/personas/loader.js.map +1 -1
- package/dist/server/personas/persona-agent.js +93 -21
- package/dist/server/personas/persona-agent.js.map +1 -1
- package/dist/server/personas/persona-state.js +198 -19
- package/dist/server/personas/persona-state.js.map +1 -1
- package/dist/server/personas/runner.js +29 -0
- package/dist/server/personas/runner.js.map +1 -1
- package/dist/server/personas/wake-plan.js +4 -67
- package/dist/server/personas/wake-plan.js.map +1 -1
- package/dist/server/readiness.js +70 -0
- package/dist/server/readiness.js.map +1 -1
- package/dist/server/routes.js +276 -12
- package/dist/server/routes.js.map +1 -1
- package/dist/server/screener/engine.js +8 -1
- package/dist/server/screener/engine.js.map +1 -1
- package/dist/server/screener/indicators.js +63 -0
- package/dist/server/screener/indicators.js.map +1 -0
- package/dist/server/server-sync.js +365 -125
- package/dist/server/server-sync.js.map +1 -1
- package/dist/server/share/postgres-publish.js +139 -0
- package/dist/server/share/postgres-publish.js.map +1 -0
- package/dist/server/share/prepare-state.js +50 -0
- package/dist/server/share/prepare-state.js.map +1 -0
- package/dist/server/share/prepare.js +61 -0
- package/dist/server/share/prepare.js.map +1 -0
- package/dist/server/share/publish-cron.js +96 -0
- package/dist/server/share/publish-cron.js.map +1 -0
- package/dist/server/share/snapshot.js +81 -0
- package/dist/server/share/snapshot.js.map +1 -0
- package/dist/server/watchers/condition-watcher.js +57 -16
- package/dist/server/watchers/condition-watcher.js.map +1 -1
- package/dist/web/assets/index-B1C-UX9W.js +88 -0
- package/dist/web/assets/index-N7Xwheka.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +4 -5
- package/dist/web/assets/index-62SMpbaf.js +0 -79
- package/dist/web/assets/index-BPLQR0wt.css +0 -1
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function a(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(c){if(c.ep)return;c.ep=!0;const h=a(c);fetch(c.href,h)}})();function du(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Dc={exports:{}},ka={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Lm;function av(){if(Lm)return ka;Lm=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(u,c,h){var f=null;if(h!==void 0&&(f=""+h),c.key!==void 0&&(f=""+c.key),"key"in c){h={};for(var m in c)m!=="key"&&(h[m]=c[m])}else h=c;return c=h.ref,{$$typeof:n,type:u,key:f,ref:c!==void 0?c:null,props:h}}return ka.Fragment=r,ka.jsx=a,ka.jsxs=a,ka}var Bm;function rv(){return Bm||(Bm=1,Dc.exports=av()),Dc.exports}var d=rv(),_c={exports:{}},Ee={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Um;function uv(){if(Um)return Ee;Um=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),j=Symbol.iterator;function S(N){return N===null||typeof N!="object"?null:(N=j&&N[j]||N["@@iterator"],typeof N=="function"?N:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,Y={};function _(N,U,k){this.props=N,this.context=U,this.refs=Y,this.updater=k||A}_.prototype.isReactComponent={},_.prototype.setState=function(N,U){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,U,"setState")},_.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function F(){}F.prototype=_.prototype;function V(N,U,k){this.props=N,this.context=U,this.refs=Y,this.updater=k||A}var se=V.prototype=new F;se.constructor=V,H(se,_.prototype),se.isPureReactComponent=!0;var ce=Array.isArray;function B(){}var ee={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function ye(N,U,k){var W=k.ref;return{$$typeof:n,type:N,key:U,ref:W!==void 0?W:null,props:k}}function M(N,U){return ye(N.type,U,N.props)}function le(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function ie(N){var U={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(k){return U[k]})}var ge=/\/+/g;function ae(N,U){return typeof N=="object"&&N!==null&&N.key!=null?ie(""+N.key):U.toString(36)}function P(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(B,B):(N.status="pending",N.then(function(U){N.status==="pending"&&(N.status="fulfilled",N.value=U)},function(U){N.status==="pending"&&(N.status="rejected",N.reason=U)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,U,k,W,he){var oe=typeof N;(oe==="undefined"||oe==="boolean")&&(N=null);var pe=!1;if(N===null)pe=!0;else switch(oe){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(N.$$typeof){case n:case r:pe=!0;break;case v:return pe=N._init,D(pe(N._payload),U,k,W,he)}}if(pe)return he=he(N),pe=W===""?"."+ae(N,0):W,ce(he)?(k="",pe!=null&&(k=pe.replace(ge,"$&/")+"/"),D(he,U,k,"",function(w){return w})):he!=null&&(le(he)&&(he=M(he,k+(he.key==null||N&&N.key===he.key?"":(""+he.key).replace(ge,"$&/")+"/")+pe)),U.push(he)),1;pe=0;var Ae=W===""?".":W+":";if(ce(N))for(var X=0;X<N.length;X++)W=N[X],oe=Ae+ae(W,X),pe+=D(W,U,k,oe,he);else if(X=S(N),typeof X=="function")for(N=X.call(N),X=0;!(W=N.next()).done;)W=W.value,oe=Ae+ae(W,X++),pe+=D(W,U,k,oe,he);else if(oe==="object"){if(typeof N.then=="function")return D(P(N),U,k,W,he);throw U=String(N),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return pe}function I(N,U,k){if(N==null)return N;var W=[],he=0;return D(N,W,"","",function(oe){return U.call(k,oe,he++)}),W}function K(N){if(N._status===-1){var U=N._result;U=U(),U.then(function(k){(N._status===0||N._status===-1)&&(N._status=1,N._result=k)},function(k){(N._status===0||N._status===-1)&&(N._status=2,N._result=k)}),N._status===-1&&(N._status=0,N._result=U)}if(N._status===1)return N._result.default;throw N._result}var ve=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},E={map:I,forEach:function(N,U,k){I(N,function(){U.apply(this,arguments)},k)},count:function(N){var U=0;return I(N,function(){U++}),U},toArray:function(N){return I(N,function(U){return U})||[]},only:function(N){if(!le(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return Ee.Activity=y,Ee.Children=E,Ee.Component=_,Ee.Fragment=a,Ee.Profiler=c,Ee.PureComponent=V,Ee.StrictMode=u,Ee.Suspense=g,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(N){return ee.H.useMemoCache(N)}},Ee.cache=function(N){return function(){return N.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(N,U,k){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var W=H({},N.props),he=N.key;if(U!=null)for(oe in U.key!==void 0&&(he=""+U.key),U)!ue.call(U,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&U.ref===void 0||(W[oe]=U[oe]);var oe=arguments.length-2;if(oe===1)W.children=k;else if(1<oe){for(var pe=Array(oe),Ae=0;Ae<oe;Ae++)pe[Ae]=arguments[Ae+2];W.children=pe}return ye(N.type,he,W)},Ee.createContext=function(N){return N={$$typeof:f,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:h,_context:N},N},Ee.createElement=function(N,U,k){var W,he={},oe=null;if(U!=null)for(W in U.key!==void 0&&(oe=""+U.key),U)ue.call(U,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(he[W]=U[W]);var pe=arguments.length-2;if(pe===1)he.children=k;else if(1<pe){for(var Ae=Array(pe),X=0;X<pe;X++)Ae[X]=arguments[X+2];he.children=Ae}if(N&&N.defaultProps)for(W in pe=N.defaultProps,pe)he[W]===void 0&&(he[W]=pe[W]);return ye(N,oe,he)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(N){return{$$typeof:m,render:N}},Ee.isValidElement=le,Ee.lazy=function(N){return{$$typeof:v,_payload:{_status:-1,_result:N},_init:K}},Ee.memo=function(N,U){return{$$typeof:p,type:N,compare:U===void 0?null:U}},Ee.startTransition=function(N){var U=ee.T,k={};ee.T=k;try{var W=N(),he=ee.S;he!==null&&he(k,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(B,ve)}catch(oe){ve(oe)}finally{U!==null&&k.types!==null&&(U.types=k.types),ee.T=U}},Ee.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},Ee.use=function(N){return ee.H.use(N)},Ee.useActionState=function(N,U,k){return ee.H.useActionState(N,U,k)},Ee.useCallback=function(N,U){return ee.H.useCallback(N,U)},Ee.useContext=function(N){return ee.H.useContext(N)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(N,U){return ee.H.useDeferredValue(N,U)},Ee.useEffect=function(N,U){return ee.H.useEffect(N,U)},Ee.useEffectEvent=function(N){return ee.H.useEffectEvent(N)},Ee.useId=function(){return ee.H.useId()},Ee.useImperativeHandle=function(N,U,k){return ee.H.useImperativeHandle(N,U,k)},Ee.useInsertionEffect=function(N,U){return ee.H.useInsertionEffect(N,U)},Ee.useLayoutEffect=function(N,U){return ee.H.useLayoutEffect(N,U)},Ee.useMemo=function(N,U){return ee.H.useMemo(N,U)},Ee.useOptimistic=function(N,U){return ee.H.useOptimistic(N,U)},Ee.useReducer=function(N,U,k){return ee.H.useReducer(N,U,k)},Ee.useRef=function(N){return ee.H.useRef(N)},Ee.useState=function(N){return ee.H.useState(N)},Ee.useSyncExternalStore=function(N,U,k){return ee.H.useSyncExternalStore(N,U,k)},Ee.useTransition=function(){return ee.H.useTransition()},Ee.version="19.2.5",Ee}var Hm;function vo(){return Hm||(Hm=1,_c.exports=uv()),_c.exports}var re=vo();const sv=du(re);var Mc={exports:{}},ja={},Oc={exports:{}},Rc={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var qm;function cv(){return qm||(qm=1,(function(n){function r(D,I){var K=D.length;D.push(I);e:for(;0<K;){var ve=K-1>>>1,E=D[ve];if(0<c(E,I))D[ve]=I,D[K]=E,K=ve;else break e}}function a(D){return D.length===0?null:D[0]}function u(D){if(D.length===0)return null;var I=D[0],K=D.pop();if(K!==I){D[0]=K;e:for(var ve=0,E=D.length,N=E>>>1;ve<N;){var U=2*(ve+1)-1,k=D[U],W=U+1,he=D[W];if(0>c(k,K))W<E&&0>c(he,k)?(D[ve]=he,D[W]=K,ve=W):(D[ve]=k,D[U]=K,ve=U);else if(W<E&&0>c(he,K))D[ve]=he,D[W]=K,ve=W;else break e}}return I}function c(D,I){var K=D.sortIndex-I.sortIndex;return K!==0?K:D.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var g=[],p=[],v=1,y=null,j=3,S=!1,A=!1,H=!1,Y=!1,_=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function se(D){for(var I=a(p);I!==null;){if(I.callback===null)u(p);else if(I.startTime<=D)u(p),I.sortIndex=I.expirationTime,r(g,I);else break;I=a(p)}}function ce(D){if(H=!1,se(D),!A)if(a(g)!==null)A=!0,B||(B=!0,ie());else{var I=a(p);I!==null&&P(ce,I.startTime-D)}}var B=!1,ee=-1,ue=5,ye=-1;function M(){return Y?!0:!(n.unstable_now()-ye<ue)}function le(){if(Y=!1,B){var D=n.unstable_now();ye=D;var I=!0;try{e:{A=!1,H&&(H=!1,F(ee),ee=-1),S=!0;var K=j;try{t:{for(se(D),y=a(g);y!==null&&!(y.expirationTime>D&&M());){var ve=y.callback;if(typeof ve=="function"){y.callback=null,j=y.priorityLevel;var E=ve(y.expirationTime<=D);if(D=n.unstable_now(),typeof E=="function"){y.callback=E,se(D),I=!0;break t}y===a(g)&&u(g),se(D)}else u(g);y=a(g)}if(y!==null)I=!0;else{var N=a(p);N!==null&&P(ce,N.startTime-D),I=!1}}break e}finally{y=null,j=K,S=!1}I=void 0}}finally{I?ie():B=!1}}}var ie;if(typeof V=="function")ie=function(){V(le)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,ae=ge.port2;ge.port1.onmessage=le,ie=function(){ae.postMessage(null)}}else ie=function(){_(le,0)};function P(D,I){ee=_(function(){D(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(D){D.callback=null},n.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"):ue=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return j},n.unstable_next=function(D){switch(j){case 1:case 2:case 3:var I=3;break;default:I=j}var K=j;j=I;try{return D()}finally{j=K}},n.unstable_requestPaint=function(){Y=!0},n.unstable_runWithPriority=function(D,I){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var K=j;j=D;try{return I()}finally{j=K}},n.unstable_scheduleCallback=function(D,I,K){var ve=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ve+K:ve):K=ve,D){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=K+E,D={id:v++,callback:I,priorityLevel:D,startTime:K,expirationTime:E,sortIndex:-1},K>ve?(D.sortIndex=K,r(p,D),a(g)===null&&D===a(p)&&(H?(F(ee),ee=-1):H=!0,P(ce,K-ve))):(D.sortIndex=E,r(g,D),A||S||(A=!0,B||(B=!0,ie()))),D},n.unstable_shouldYield=M,n.unstable_wrapCallback=function(D){var I=j;return function(){var K=j;j=I;try{return D.apply(this,arguments)}finally{j=K}}}})(Rc)),Rc}var Ym;function ov(){return Ym||(Ym=1,Oc.exports=cv()),Oc.exports}var Lc={exports:{}},Tt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Gm;function fv(){if(Gm)return Tt;Gm=1;var n=vo();function r(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var u={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(g,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:g,containerInfo:p,implementation:v}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Tt.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return h(g,p,null,v)},Tt.flushSync=function(g){var p=f.T,v=u.p;try{if(f.T=null,u.p=2,g)return g()}finally{f.T=p,u.p=v,u.d.f()}},Tt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(g,p))},Tt.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},Tt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin),j=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?u.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:j,fetchPriority:S}):v==="script"&&u.d.X(g,{crossOrigin:y,integrity:j,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Tt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);u.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(g)},Tt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=m(v,p.crossOrigin);u.d.L(g,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Tt.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);u.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(g)},Tt.requestFormReset=function(g){u.d.r(g)},Tt.unstable_batchedUpdates=function(g,p){return g(p)},Tt.useFormState=function(g,p,v){return f.H.useFormState(g,p,v)},Tt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Tt.version="19.2.5",Tt}var Vm;function hv(){if(Vm)return Lc.exports;Vm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Lc.exports=fv(),Lc.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Qm;function dv(){if(Qm)return ja;Qm=1;var n=ov(),r=vo(),a=hv();function u(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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 f(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 m(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 g(e){if(h(e)!==e)throw Error(u(188))}function p(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,i=t;;){var s=l.return;if(s===null)break;var o=s.alternate;if(o===null){if(i=s.return,i!==null){l=i;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===l)return g(s),e;if(o===i)return g(s),t;o=o.sibling}throw Error(u(188))}if(l.return!==i.return)l=s,i=o;else{for(var x=!1,b=s.child;b;){if(b===l){x=!0,l=s,i=o;break}if(b===i){x=!0,i=s,l=o;break}b=b.sibling}if(!x){for(b=o.child;b;){if(b===l){x=!0,l=o,i=s;break}if(b===i){x=!0,i=o,l=s;break}b=b.sibling}if(!x)throw Error(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,j=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),V=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case _:return"Profiler";case Y:return"StrictMode";case ce:return"Suspense";case B:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case V:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case se:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var P=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ve=[],E=-1;function N(e){return{current:e}}function U(e){0>E||(e.current=ve[E],ve[E]=null,E--)}function k(e,t){E++,ve[E]=e.current,e.current=t}var W=N(null),he=N(null),oe=N(null),pe=N(null);function Ae(e,t){switch(k(oe,t),k(he,e),k(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?am(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=am(t),e=rm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(W),k(W,e)}function X(){U(W),U(he),U(oe)}function w(e){e.memoizedState!==null&&k(pe,e);var t=W.current,l=rm(t,e.type);t!==l&&(k(he,e),k(W,l))}function Z(e){he.current===e&&(U(W),U(he)),pe.current===e&&(U(pe),xa._currentValue=K)}var fe,ke;function qe(e){if(fe===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);fe=t&&t[1]||"",ke=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+fe+e+ke}var ze=!1;function De(e,t){if(!e||ze)return"";ze=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(q){var L=q}Reflect.construct(e,[],$)}else{try{$.call()}catch(q){L=q}e.call($.prototype)}}else{try{throw Error()}catch(q){L=q}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(q){if(q&&L&&typeof q.stack=="string")return[q.stack,L.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),x=o[0],b=o[1];if(x&&b){var T=x.split(`
|
|
44
|
-
`),R=b.split(`
|
|
45
|
-
`);for(s=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;if(i===T.length||s===R.length)for(i=T.length-1,s=R.length-1;1<=i&&0<=s&&T[i]!==R[s];)s--;for(;1<=i&&0<=s;i--,s--)if(T[i]!==R[s]){if(i!==1||s!==1)do if(i--,s--,0>s||T[i]!==R[s]){var Q=`
|
|
46
|
-
`+T[i].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=i&&0<=s);break}}}finally{ze=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?qe(l):""}function at(e,t){switch(e.tag){case 26:case 27:case 5:return qe(e.type);case 16:return qe("Lazy");case 13:return e.child!==t&&t!==null?qe("Suspense Fallback"):qe("Suspense");case 19:return qe("SuspenseList");case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return qe("Activity");default:return""}}function bt(e){try{var t="",l=null;do t+=at(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
-
Error generating stack: `+i.message+`
|
|
48
|
-
`+i.stack}}var Ye=Object.prototype.hasOwnProperty,Ge=n.unstable_scheduleCallback,Gt=n.unstable_cancelCallback,fn=n.unstable_shouldYield,hn=n.unstable_requestPaint,Ne=n.unstable_now,pt=n.unstable_getCurrentPriorityLevel,G=n.unstable_ImmediatePriority,ne=n.unstable_UserBlockingPriority,je=n.unstable_NormalPriority,_e=n.unstable_LowPriority,Ke=n.unstable_IdlePriority,Vt=n.log,Nn=n.unstable_setDisableYieldValue,wt=null,gt=null;function _t(e){if(typeof Vt=="function"&&Nn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(wt,e)}catch{}}var We=Math.clz32?Math.clz32:Xg,Xn=Math.log,dn=Math.LN2;function Xg(e){return e>>>=0,e===0?32:31-(Xn(e)/dn|0)|0}var Ua=256,Ha=262144,qa=4194304;function xl(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 Ya(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var s=0,o=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~o,i!==0?s=xl(i):(x&=b,x!==0?s=xl(x):l||(l=b&~e,l!==0&&(s=xl(l))))):(b=i&~o,b!==0?s=xl(b):x!==0?s=xl(x):l||(l=i&~e,l!==0&&(s=xl(l)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,l=t&-t,o>=l||o===32&&(l&4194048)!==0)?t:s}function Di(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Kg(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 Ho(){var e=qa;return qa<<=1,(qa&62914560)===0&&(qa=4194304),e}function vu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function _i(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zg(e,t,l,i,s,o){var x=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 b=e.entanglements,T=e.expirationTimes,R=e.hiddenUpdates;for(l=x&~l;0<l;){var Q=31-We(l),$=1<<Q;b[Q]=0,T[Q]=-1;var L=R[Q];if(L!==null)for(R[Q]=null,Q=0;Q<L.length;Q++){var q=L[Q];q!==null&&(q.lane&=-536870913)}l&=~$}i!==0&&qo(e,i,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(x&~t))}function qo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-We(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Yo(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-We(l),s=1<<i;s&t|e[i]&t&&(e[i]|=t),l&=~s}}function Go(e,t){var l=t&-t;return l=(l&42)!==0?1:bu(l),(l&(e.suspendedLanes|t))!==0?0:l}function bu(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 Su(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vo(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:wm(e.type))}function Qo(e,t){var l=I.p;try{return I.p=e,t()}finally{I.p=l}}var Kn=Math.random().toString(36).slice(2),St="__reactFiber$"+Kn,Mt="__reactProps$"+Kn,ql="__reactContainer$"+Kn,ku="__reactEvents$"+Kn,Fg="__reactListeners$"+Kn,Jg="__reactHandles$"+Kn,Xo="__reactResources$"+Kn,Mi="__reactMarker$"+Kn;function ju(e){delete e[St],delete e[Mt],delete e[ku],delete e[Fg],delete e[Jg]}function Yl(e){var t=e[St];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ql]||l[St]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=dm(e);e!==null;){if(l=e[St])return l;e=dm(e)}return t}e=l,l=e.parentNode}return null}function Gl(e){if(e=e[St]||e[ql]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Oi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Vl(e){var t=e[Xo];return t||(t=e[Xo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[Mi]=!0}var Ko=new Set,Zo={};function vl(e,t){Ql(e,t),Ql(e+"Capture",t)}function Ql(e,t){for(Zo[e]=t,e=0;e<t.length;e++)Ko.add(t[e])}var $g=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]*$"),Fo={},Jo={};function Ig(e){return Ye.call(Jo,e)?!0:Ye.call(Fo,e)?!1:$g.test(e)?Jo[e]=!0:(Fo[e]=!0,!1)}function Ga(e,t,l){if(Ig(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Va(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 Tn(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}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 $o(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wg(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(x){l=""+x,o.call(this,x)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eu(e){if(!e._valueTracker){var t=$o(e)?"checked":"value";e._valueTracker=Wg(e,t,""+e[t])}}function Io(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=$o(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function Qa(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 Pg=/[\n"\\]/g;function en(e){return e.replace(Pg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nu(e,t,l,i,s,o,x,b){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Pt(t)):e.value!==""+Pt(t)&&(e.value=""+Pt(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Tu(e,x,Pt(t)):l!=null?Tu(e,x,Pt(l)):i!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Pt(b):e.removeAttribute("name")}function Wo(e,t,l,i,s,o,x,b){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||l!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Eu(e);return}l=l!=null?""+Pt(l):"",t=t!=null?""+Pt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Eu(e)}function Tu(e,t,l){t==="number"&&Qa(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Xl(e,t,l,i){if(e=e.options,t){t={};for(var s=0;s<l.length;s++)t["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=t.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&i&&(e[l].defaultSelected=!0)}else{for(l=""+Pt(l),t=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Po(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 ef(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if(P(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=Pt(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),Eu(e)}function Kl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var ey=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 tf(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||ey.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function nf(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in t)i=t[s],t.hasOwnProperty(s)&&l[s]!==i&&tf(e,s,i)}else for(var o in t)t.hasOwnProperty(o)&&tf(e,o,t[o])}function Au(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 ty=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"]]),ny=/^[\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 Xa(e){return ny.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function An(){}var Cu=null;function wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,Fl=null;function lf(e){var t=Gl(e);if(t&&(e=t.stateNode)){var l=e[Mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nu(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="'+en(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var s=i[Mt]||null;if(!s)throw Error(u(90));Nu(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&Io(i)}break e;case"textarea":Po(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Xl(e,!!l.multiple,t,!1)}}}var zu=!1;function af(e,t,l){if(zu)return e(t,l);zu=!0;try{var i=e(t);return i}finally{if(zu=!1,(Zl!==null||Fl!==null)&&(_r(),Zl&&(t=Zl,e=Fl,Fl=Zl=null,lf(t),e)))for(t=0;t<e.length;t++)lf(e[t])}}function Ri(e,t){var l=e.stateNode;if(l===null)return null;var i=l[Mt]||null;if(i===null)return null;l=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(Cn)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){Du=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{Du=!1}var Zn=null,_u=null,Ka=null;function rf(){if(Ka)return Ka;var e,t=_u,l=t.length,i,s="value"in Zn?Zn.value:Zn.textContent,o=s.length;for(e=0;e<l&&t[e]===s[e];e++);var x=l-e;for(i=1;i<=x&&t[l-i]===s[o-i];i++);return Ka=s.slice(e,1<i?1-i:void 0)}function Za(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 Fa(){return!0}function uf(){return!1}function Ot(e){function t(l,i,s,o,x){this._reactName=l,this._targetInst=s,this.type=i,this.nativeEvent=o,this.target=x,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(l=e[b],this[b]=l?l(o):o[b]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Fa:uf,this.isPropagationStopped=uf,this}return y(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=Fa)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fa)},persist:function(){},isPersistent:Fa}),t}var bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ja=Ot(bl),Bi=y({},bl,{view:0,detail:0}),ly=Ot(Bi),Mu,Ou,Ui,$a=y({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lu,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!==Ui&&(Ui&&e.type==="mousemove"?(Mu=e.screenX-Ui.screenX,Ou=e.screenY-Ui.screenY):Ou=Mu=0,Ui=e),Mu)},movementY:function(e){return"movementY"in e?e.movementY:Ou}}),sf=Ot($a),iy=y({},$a,{dataTransfer:0}),ay=Ot(iy),ry=y({},Bi,{relatedTarget:0}),Ru=Ot(ry),uy=y({},bl,{animationName:0,elapsedTime:0,pseudoElement:0}),sy=Ot(uy),cy=y({},bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oy=Ot(cy),fy=y({},bl,{data:0}),cf=Ot(fy),hy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dy={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"},my={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function py(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=my[e])?!!t[e]:!1}function Lu(){return py}var gy=y({},Bi,{key:function(e){if(e.key){var t=hy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Za(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lu,charCode:function(e){return e.type==="keypress"?Za(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Za(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yy=Ot(gy),xy=y({},$a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),of=Ot(xy),vy=y({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lu}),by=Ot(vy),Sy=y({},bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ky=Ot(Sy),jy=y({},$a,{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}),Ey=Ot(jy),Ny=y({},bl,{newState:0,oldState:0}),Ty=Ot(Ny),Ay=[9,13,27,32],Bu=Cn&&"CompositionEvent"in window,Hi=null;Cn&&"documentMode"in document&&(Hi=document.documentMode);var Cy=Cn&&"TextEvent"in window&&!Hi,ff=Cn&&(!Bu||Hi&&8<Hi&&11>=Hi),hf=" ",df=!1;function mf(e,t){switch(e){case"keyup":return Ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function wy(e,t){switch(e){case"compositionend":return pf(t);case"keypress":return t.which!==32?null:(df=!0,hf);case"textInput":return e=t.data,e===hf&&df?null:e;default:return null}}function zy(e,t){if(Jl)return e==="compositionend"||!Bu&&mf(e,t)?(e=rf(),Ka=_u=Zn=null,Jl=!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 ff&&t.locale!=="ko"?null:t.data;default:return null}}var Dy={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 gf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dy[e.type]:t==="textarea"}function yf(e,t,l,i){Zl?Fl?Fl.push(i):Fl=[i]:Zl=i,t=Hr(t,"onChange"),0<t.length&&(l=new Ja("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var qi=null,Yi=null;function _y(e){Pd(e,0)}function Ia(e){var t=Oi(e);if(Io(t))return e}function xf(e,t){if(e==="change")return t}var vf=!1;if(Cn){var Uu;if(Cn){var Hu="oninput"in document;if(!Hu){var bf=document.createElement("div");bf.setAttribute("oninput","return;"),Hu=typeof bf.oninput=="function"}Uu=Hu}else Uu=!1;vf=Uu&&(!document.documentMode||9<document.documentMode)}function Sf(){qi&&(qi.detachEvent("onpropertychange",kf),Yi=qi=null)}function kf(e){if(e.propertyName==="value"&&Ia(Yi)){var t=[];yf(t,Yi,e,wu(e)),af(_y,t)}}function My(e,t,l){e==="focusin"?(Sf(),qi=t,Yi=l,qi.attachEvent("onpropertychange",kf)):e==="focusout"&&Sf()}function Oy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ia(Yi)}function Ry(e,t){if(e==="click")return Ia(t)}function Ly(e,t){if(e==="input"||e==="change")return Ia(t)}function By(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:By;function Gi(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var s=l[i];if(!Ye.call(t,s)||!Qt(e[s],t[s]))return!1}return!0}function jf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ef(e,t){var l=jf(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=jf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qa(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=Qa(e.document)}return t}function qu(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 Uy=Cn&&"documentMode"in document&&11>=document.documentMode,$l=null,Yu=null,Vi=null,Gu=!1;function Af(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Gu||$l==null||$l!==Qa(i)||(i=$l,"selectionStart"in i&&qu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Vi&&Gi(Vi,i)||(Vi=i,i=Hr(Yu,"onSelect"),0<i.length&&(t=new Ja("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=$l)))}function Sl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Il={animationend:Sl("Animation","AnimationEnd"),animationiteration:Sl("Animation","AnimationIteration"),animationstart:Sl("Animation","AnimationStart"),transitionrun:Sl("Transition","TransitionRun"),transitionstart:Sl("Transition","TransitionStart"),transitioncancel:Sl("Transition","TransitionCancel"),transitionend:Sl("Transition","TransitionEnd")},Vu={},Cf={};Cn&&(Cf=document.createElement("div").style,"AnimationEvent"in window||(delete Il.animationend.animation,delete Il.animationiteration.animation,delete Il.animationstart.animation),"TransitionEvent"in window||delete Il.transitionend.transition);function kl(e){if(Vu[e])return Vu[e];if(!Il[e])return e;var t=Il[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Cf)return Vu[e]=t[l];return e}var wf=kl("animationend"),zf=kl("animationiteration"),Df=kl("animationstart"),Hy=kl("transitionrun"),qy=kl("transitionstart"),Yy=kl("transitioncancel"),_f=kl("transitionend"),Mf=new Map,Qu="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(" ");Qu.push("scrollEnd");function mn(e,t){Mf.set(e,t),vl(t,[e])}var Wa=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)},tn=[],Wl=0,Xu=0;function Pa(){for(var e=Wl,t=Xu=Wl=0;t<e;){var l=tn[t];tn[t++]=null;var i=tn[t];tn[t++]=null;var s=tn[t];tn[t++]=null;var o=tn[t];if(tn[t++]=null,i!==null&&s!==null){var x=i.pending;x===null?s.next=s:(s.next=x.next,x.next=s),i.pending=s}o!==0&&Of(l,s,o)}}function er(e,t,l,i){tn[Wl++]=e,tn[Wl++]=t,tn[Wl++]=l,tn[Wl++]=i,Xu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Ku(e,t,l,i){return er(e,t,l,i),tr(e)}function jl(e,t){return er(e,null,null,t),tr(e)}function Of(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var s=!1,o=e.return;o!==null;)o.childLanes|=l,i=o.alternate,i!==null&&(i.childLanes|=l),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-We(l),e=o.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=l|536870912),o):null}function tr(e){if(50<fa)throw fa=0,tc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pl={};function Gy(e,t,l,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,l,i){return new Gy(e,t,l,i)}function Zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wn(e,t){var l=e.alternate;return l===null?(l=Xt(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 Rf(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 nr(e,t,l,i,s,o){var x=0;if(i=e,typeof e=="function")Zu(e)&&(x=1);else if(typeof e=="string")x=Zx(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Xt(31,l,t,s),e.elementType=ye,e.lanes=o,e;case H:return El(l.children,s,o,t);case Y:x=8,s|=24;break;case _:return e=Xt(12,l,t,s|2),e.elementType=_,e.lanes=o,e;case ce:return e=Xt(13,l,t,s),e.elementType=ce,e.lanes=o,e;case B:return e=Xt(19,l,t,s),e.elementType=B,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:x=10;break e;case F:x=9;break e;case se:x=11;break e;case ee:x=14;break e;case ue:x=16,i=null;break e}x=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Xt(x,l,t,s),t.elementType=e,t.type=i,t.lanes=o,t}function El(e,t,l,i){return e=Xt(7,e,i,t),e.lanes=l,e}function Fu(e,t,l){return e=Xt(6,e,null,t),e.lanes=l,e}function Lf(e){var t=Xt(18,null,null,0);return t.stateNode=e,t}function Ju(e,t,l){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bf=new WeakMap;function nn(e,t){if(typeof e=="object"&&e!==null){var l=Bf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:bt(t)},Bf.set(e,t),t)}return{value:e,source:t,stack:bt(t)}}var ei=[],ti=0,lr=null,Qi=0,ln=[],an=0,Fn=null,xn=1,vn="";function zn(e,t){ei[ti++]=Qi,ei[ti++]=lr,lr=e,Qi=t}function Uf(e,t,l){ln[an++]=xn,ln[an++]=vn,ln[an++]=Fn,Fn=e;var i=xn;e=vn;var s=32-We(i)-1;i&=~(1<<s),l+=1;var o=32-We(t)+s;if(30<o){var x=s-s%5;o=(i&(1<<x)-1).toString(32),i>>=x,s-=x,xn=1<<32-We(t)+s|l<<s|i,vn=o+e}else xn=1<<o|l<<s|i,vn=e}function $u(e){e.return!==null&&(zn(e,1),Uf(e,1,0))}function Iu(e){for(;e===lr;)lr=ei[--ti],ei[ti]=null,Qi=ei[--ti],ei[ti]=null;for(;e===Fn;)Fn=ln[--an],ln[an]=null,vn=ln[--an],ln[an]=null,xn=ln[--an],ln[an]=null}function Hf(e,t){ln[an++]=xn,ln[an++]=vn,ln[an++]=Fn,xn=t.id,vn=t.overflow,Fn=e}var kt=null,nt=null,Ue=!1,Jn=null,rn=!1,Wu=Error(u(519));function $n(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xi(nn(t,e)),Wu}function qf(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[St]=e,t[Mt]=i,l){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(l=0;l<da.length;l++)Oe(da[l],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),Wo(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),ef(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||lm(t.textContent,l)?(i.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),i.onScroll!=null&&Oe("scroll",t),i.onScrollEnd!=null&&Oe("scrollend",t),i.onClick!=null&&(t.onclick=An),t=!0):t=!1,t||$n(e,!0)}function Yf(e){for(kt=e.return;kt;)switch(kt.tag){case 5:case 31:case 13:rn=!1;return;case 27:case 3:rn=!0;return;default:kt=kt.return}}function ni(e){if(e!==kt)return!1;if(!Ue)return Yf(e),Ue=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||gc(e.type,e.memoizedProps)),l=!l),l&&nt&&$n(e),Yf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));nt=hm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));nt=hm(e)}else t===27?(t=nt,ol(e.type)?(e=Sc,Sc=null,nt=e):nt=t):nt=kt?sn(e.stateNode.nextSibling):null;return!0}function Nl(){nt=kt=null,Ue=!1}function Pu(){var e=Jn;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),Jn=null),e}function Xi(e){Jn===null?Jn=[e]:Jn.push(e)}var es=N(null),Tl=null,Dn=null;function In(e,t,l){k(es,t._currentValue),t._currentValue=l}function _n(e){e._currentValue=es.current,U(es)}function ts(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function ns(e,t,l,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var x=s.child;o=o.firstContext;e:for(;o!==null;){var b=o;o=s;for(var T=0;T<t.length;T++)if(b.context===t[T]){o.lanes|=l,b=o.alternate,b!==null&&(b.lanes|=l),ts(o.return,l,e),i||(x=null);break e}o=b.next}}else if(s.tag===18){if(x=s.return,x===null)throw Error(u(341));x.lanes|=l,o=x.alternate,o!==null&&(o.lanes|=l),ts(x,l,e),x=null}else x=s.child;if(x!==null)x.return=s;else for(x=s;x!==null;){if(x===e){x=null;break}if(s=x.sibling,s!==null){s.return=x.return,x=s;break}x=x.return}s=x}}function li(e,t,l,i){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var x=s.alternate;if(x===null)throw Error(u(387));if(x=x.memoizedProps,x!==null){var b=s.type;Qt(s.pendingProps.value,x.value)||(e!==null?e.push(b):e=[b])}}else if(s===pe.current){if(x=s.alternate,x===null)throw Error(u(387));x.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(xa):e=[xa])}s=s.return}e!==null&&ns(t,e,l,i),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Al(e){Tl=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return Gf(Tl,e)}function ar(e,t){return Tl===null&&Al(e),Gf(e,t)}function Gf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Dn===null){if(e===null)throw Error(u(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return l}var Vy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Qy=n.unstable_scheduleCallback,Xy=n.unstable_NormalPriority,ot={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ls(){return{controller:new Vy,data:new Map,refCount:0}}function Ki(e){e.refCount--,e.refCount===0&&Qy(Xy,function(){e.controller.abort()})}var Zi=null,is=0,ii=0,ai=null;function Ky(e,t){if(Zi===null){var l=Zi=[];is=0,ii=uc(),ai={status:"pending",value:void 0,then:function(i){l.push(i)}}}return is++,t.then(Vf,Vf),t}function Vf(){if(--is===0&&Zi!==null){ai!==null&&(ai.status="fulfilled");var e=Zi;Zi=null,ii=0,ai=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Zy(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<l.length;s++)(0,l[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),i}var Qf=D.S;D.S=function(e,t){Ad=Ne(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ky(e,t),Qf!==null&&Qf(e,t)};var Cl=N(null);function as(){var e=Cl.current;return e!==null?e:Pe.pooledCache}function rr(e,t){t===null?k(Cl,Cl.current):k(Cl,t.pool)}function Xf(){var e=as();return e===null?null:{parent:ot._currentValue,pool:e}}var ri=Error(u(460)),rs=Error(u(474)),ur=Error(u(542)),sr={then:function(){}};function Kf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(An,An),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e;default:if(typeof t.status=="string")t.then(An,An);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=i}},function(i){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e}throw zl=t,ri}}function wl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(zl=l,ri):l}}var zl=null;function Ff(){if(zl===null)throw Error(u(459));var e=zl;return zl=null,e}function Jf(e){if(e===ri||e===ur)throw Error(u(483))}var ui=null,Fi=0;function cr(e){var t=Fi;return Fi+=1,ui===null&&(ui=[]),Zf(ui,e,t)}function Ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function or(e,t){throw t.$$typeof===j?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $f(e){function t(z,C){if(e){var O=z.deletions;O===null?(z.deletions=[C],z.flags|=16):O.push(C)}}function l(z,C){if(!e)return null;for(;C!==null;)t(z,C),C=C.sibling;return null}function i(z){for(var C=new Map;z!==null;)z.key!==null?C.set(z.key,z):C.set(z.index,z),z=z.sibling;return C}function s(z,C){return z=wn(z,C),z.index=0,z.sibling=null,z}function o(z,C,O){return z.index=O,e?(O=z.alternate,O!==null?(O=O.index,O<C?(z.flags|=67108866,C):O):(z.flags|=67108866,C)):(z.flags|=1048576,C)}function x(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function b(z,C,O,J){return C===null||C.tag!==6?(C=Fu(O,z.mode,J),C.return=z,C):(C=s(C,O),C.return=z,C)}function T(z,C,O,J){var xe=O.type;return xe===H?Q(z,C,O.props.children,J,O.key):C!==null&&(C.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===ue&&wl(xe)===C.type)?(C=s(C,O.props),Ji(C,O),C.return=z,C):(C=nr(O.type,O.key,O.props,null,z.mode,J),Ji(C,O),C.return=z,C)}function R(z,C,O,J){return C===null||C.tag!==4||C.stateNode.containerInfo!==O.containerInfo||C.stateNode.implementation!==O.implementation?(C=Ju(O,z.mode,J),C.return=z,C):(C=s(C,O.children||[]),C.return=z,C)}function Q(z,C,O,J,xe){return C===null||C.tag!==7?(C=El(O,z.mode,J,xe),C.return=z,C):(C=s(C,O),C.return=z,C)}function $(z,C,O){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Fu(""+C,z.mode,O),C.return=z,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case S:return O=nr(C.type,C.key,C.props,null,z.mode,O),Ji(O,C),O.return=z,O;case A:return C=Ju(C,z.mode,O),C.return=z,C;case ue:return C=wl(C),$(z,C,O)}if(P(C)||ie(C))return C=El(C,z.mode,O,null),C.return=z,C;if(typeof C.then=="function")return $(z,cr(C),O);if(C.$$typeof===V)return $(z,ar(z,C),O);or(z,C)}return null}function L(z,C,O,J){var xe=C!==null?C.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return xe!==null?null:b(z,C,""+O,J);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return O.key===xe?T(z,C,O,J):null;case A:return O.key===xe?R(z,C,O,J):null;case ue:return O=wl(O),L(z,C,O,J)}if(P(O)||ie(O))return xe!==null?null:Q(z,C,O,J,null);if(typeof O.then=="function")return L(z,C,cr(O),J);if(O.$$typeof===V)return L(z,C,ar(z,O),J);or(z,O)}return null}function q(z,C,O,J,xe){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return z=z.get(O)||null,b(C,z,""+J,xe);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case S:return z=z.get(J.key===null?O:J.key)||null,T(C,z,J,xe);case A:return z=z.get(J.key===null?O:J.key)||null,R(C,z,J,xe);case ue:return J=wl(J),q(z,C,O,J,xe)}if(P(J)||ie(J))return z=z.get(O)||null,Q(C,z,J,xe,null);if(typeof J.then=="function")return q(z,C,O,cr(J),xe);if(J.$$typeof===V)return q(z,C,O,ar(C,J),xe);or(C,J)}return null}function de(z,C,O,J){for(var xe=null,Ve=null,me=C,Ce=C=0,Be=null;me!==null&&Ce<O.length;Ce++){me.index>Ce?(Be=me,me=null):Be=me.sibling;var Qe=L(z,me,O[Ce],J);if(Qe===null){me===null&&(me=Be);break}e&&me&&Qe.alternate===null&&t(z,me),C=o(Qe,C,Ce),Ve===null?xe=Qe:Ve.sibling=Qe,Ve=Qe,me=Be}if(Ce===O.length)return l(z,me),Ue&&zn(z,Ce),xe;if(me===null){for(;Ce<O.length;Ce++)me=$(z,O[Ce],J),me!==null&&(C=o(me,C,Ce),Ve===null?xe=me:Ve.sibling=me,Ve=me);return Ue&&zn(z,Ce),xe}for(me=i(me);Ce<O.length;Ce++)Be=q(me,z,Ce,O[Ce],J),Be!==null&&(e&&Be.alternate!==null&&me.delete(Be.key===null?Ce:Be.key),C=o(Be,C,Ce),Ve===null?xe=Be:Ve.sibling=Be,Ve=Be);return e&&me.forEach(function(pl){return t(z,pl)}),Ue&&zn(z,Ce),xe}function Se(z,C,O,J){if(O==null)throw Error(u(151));for(var xe=null,Ve=null,me=C,Ce=C=0,Be=null,Qe=O.next();me!==null&&!Qe.done;Ce++,Qe=O.next()){me.index>Ce?(Be=me,me=null):Be=me.sibling;var pl=L(z,me,Qe.value,J);if(pl===null){me===null&&(me=Be);break}e&&me&&pl.alternate===null&&t(z,me),C=o(pl,C,Ce),Ve===null?xe=pl:Ve.sibling=pl,Ve=pl,me=Be}if(Qe.done)return l(z,me),Ue&&zn(z,Ce),xe;if(me===null){for(;!Qe.done;Ce++,Qe=O.next())Qe=$(z,Qe.value,J),Qe!==null&&(C=o(Qe,C,Ce),Ve===null?xe=Qe:Ve.sibling=Qe,Ve=Qe);return Ue&&zn(z,Ce),xe}for(me=i(me);!Qe.done;Ce++,Qe=O.next())Qe=q(me,z,Ce,Qe.value,J),Qe!==null&&(e&&Qe.alternate!==null&&me.delete(Qe.key===null?Ce:Qe.key),C=o(Qe,C,Ce),Ve===null?xe=Qe:Ve.sibling=Qe,Ve=Qe);return e&&me.forEach(function(iv){return t(z,iv)}),Ue&&zn(z,Ce),xe}function Ie(z,C,O,J){if(typeof O=="object"&&O!==null&&O.type===H&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case S:e:{for(var xe=O.key;C!==null;){if(C.key===xe){if(xe=O.type,xe===H){if(C.tag===7){l(z,C.sibling),J=s(C,O.props.children),J.return=z,z=J;break e}}else if(C.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===ue&&wl(xe)===C.type){l(z,C.sibling),J=s(C,O.props),Ji(J,O),J.return=z,z=J;break e}l(z,C);break}else t(z,C);C=C.sibling}O.type===H?(J=El(O.props.children,z.mode,J,O.key),J.return=z,z=J):(J=nr(O.type,O.key,O.props,null,z.mode,J),Ji(J,O),J.return=z,z=J)}return x(z);case A:e:{for(xe=O.key;C!==null;){if(C.key===xe)if(C.tag===4&&C.stateNode.containerInfo===O.containerInfo&&C.stateNode.implementation===O.implementation){l(z,C.sibling),J=s(C,O.children||[]),J.return=z,z=J;break e}else{l(z,C);break}else t(z,C);C=C.sibling}J=Ju(O,z.mode,J),J.return=z,z=J}return x(z);case ue:return O=wl(O),Ie(z,C,O,J)}if(P(O))return de(z,C,O,J);if(ie(O)){if(xe=ie(O),typeof xe!="function")throw Error(u(150));return O=xe.call(O),Se(z,C,O,J)}if(typeof O.then=="function")return Ie(z,C,cr(O),J);if(O.$$typeof===V)return Ie(z,C,ar(z,O),J);or(z,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,C!==null&&C.tag===6?(l(z,C.sibling),J=s(C,O),J.return=z,z=J):(l(z,C),J=Fu(O,z.mode,J),J.return=z,z=J),x(z)):l(z,C)}return function(z,C,O,J){try{Fi=0;var xe=Ie(z,C,O,J);return ui=null,xe}catch(me){if(me===ri||me===ur)throw me;var Ve=Xt(29,me,null,z.mode);return Ve.lanes=J,Ve.return=z,Ve}finally{}}}var Dl=$f(!0),If=$f(!1),Wn=!1;function us(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ss(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 Pn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function el(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Xe&2)!==0){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=tr(e),Of(e,null,l),t}return er(e,i,t,l),tr(e)}function $i(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Yo(e,l)}}function cs(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var s=null,o=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};o===null?s=o=x:o=o.next=x,l=l.next}while(l!==null);o===null?s=o=t:o=o.next=t}else s=o=t;l={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var os=!1;function Ii(){if(os){var e=ai;if(e!==null)throw e}}function Wi(e,t,l,i){os=!1;var s=e.updateQueue;Wn=!1;var o=s.firstBaseUpdate,x=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var T=b,R=T.next;T.next=null,x===null?o=R:x.next=R,x=T;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,b=Q.lastBaseUpdate,b!==x&&(b===null?Q.firstBaseUpdate=R:b.next=R,Q.lastBaseUpdate=T))}if(o!==null){var $=s.baseState;x=0,Q=R=T=null,b=o;do{var L=b.lane&-536870913,q=L!==b.lane;if(q?(Le&L)===L:(i&L)===L){L!==0&&L===ii&&(os=!0),Q!==null&&(Q=Q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var de=e,Se=b;L=t;var Ie=l;switch(Se.tag){case 1:if(de=Se.payload,typeof de=="function"){$=de.call(Ie,$,L);break e}$=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=Se.payload,L=typeof de=="function"?de.call(Ie,$,L):de,L==null)break e;$=y({},$,L);break e;case 2:Wn=!0}}L=b.callback,L!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[L]:q.push(L))}else q={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Q===null?(R=Q=q,T=$):Q=Q.next=q,x|=L;if(b=b.next,b===null){if(b=s.shared.pending,b===null)break;q=b,b=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);Q===null&&(T=$),s.baseState=T,s.firstBaseUpdate=R,s.lastBaseUpdate=Q,o===null&&(s.shared.lanes=0),al|=x,e.lanes=x,e.memoizedState=$}}function Wf(e,t){if(typeof e!="function")throw Error(u(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++)Wf(l[e],t)}var si=N(null),fr=N(0);function eh(e,t){e=Yn,k(fr,e),k(si,t),Yn=e|t.baseLanes}function fs(){k(fr,Yn),k(si,si.current)}function hs(){Yn=fr.current,U(si),U(fr)}var Kt=N(null),un=null;function tl(e){var t=e.alternate;k(st,st.current&1),k(Kt,e),un===null&&(t===null||si.current!==null||t.memoizedState!==null)&&(un=e)}function ds(e){k(st,st.current),k(Kt,e),un===null&&(un=e)}function th(e){e.tag===22?(k(st,st.current),k(Kt,e),un===null&&(un=e)):nl()}function nl(){k(st,st.current),k(Kt,Kt.current)}function Zt(e){U(Kt),un===e&&(un=null),U(st)}var st=N(0);function hr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||vc(l)||bc(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 Mn=0,Te=null,Je=null,ft=null,dr=!1,ci=!1,_l=!1,mr=0,Pi=0,oi=null,Fy=0;function rt(){throw Error(u(321))}function ms(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Qt(e[l],t[l]))return!1;return!0}function ps(e,t,l,i,s,o){return Mn=o,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Uh:zs,_l=!1,o=l(i,s),_l=!1,ci&&(o=lh(t,l,i,s)),nh(e),o}function nh(e){D.H=na;var t=Je!==null&&Je.next!==null;if(Mn=0,ft=Je=Te=null,dr=!1,Pi=0,oi=null,t)throw Error(u(300));e===null||ht||(e=e.dependencies,e!==null&&ir(e)&&(ht=!0))}function lh(e,t,l,i){Te=e;var s=0;do{if(ci&&(oi=null),Pi=0,ci=!1,25<=s)throw Error(u(301));if(s+=1,ft=Je=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=Hh,o=t(l,i)}while(ci);return o}function Jy(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?ea(t):t,e=e.useState()[0],(Je!==null?Je.memoizedState:null)!==e&&(Te.flags|=1024),t}function gs(){var e=mr!==0;return mr=0,e}function ys(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function xs(e){if(dr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}dr=!1}Mn=0,ft=Je=Te=null,ci=!1,Pi=mr=0,oi=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Te.memoizedState=ft=e:ft=ft.next=e,ft}function ct(){if(Je===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=ft===null?Te.memoizedState:ft.next;if(t!==null)ft=t,Je=e;else{if(e===null)throw Te.alternate===null?Error(u(467)):Error(u(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},ft===null?Te.memoizedState=ft=e:ft=ft.next=e}return ft}function pr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ea(e){var t=Pi;return Pi+=1,oi===null&&(oi=[]),e=Zf(oi,e,t),t=Te,(ft===null?t.memoizedState:ft.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Uh:zs),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ea(e);if(e.$$typeof===V)return jt(e)}throw Error(u(438,String(e)))}function vs(e){var t=null,l=Te.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=Te.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=pr(),Te.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=M;return t.index++,l}function On(e,t){return typeof t=="function"?t(e):t}function yr(e){var t=ct();return bs(t,Je,e)}function bs(e,t,l){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var s=e.baseQueue,o=i.pending;if(o!==null){if(s!==null){var x=s.next;s.next=o.next,o.next=x}t.baseQueue=s=o,i.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var b=x=null,T=null,R=t,Q=!1;do{var $=R.lane&-536870913;if($!==R.lane?(Le&$)===$:(Mn&$)===$){var L=R.revertLane;if(L===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),$===ii&&(Q=!0);else if((Mn&L)===L){R=R.next,L===ii&&(Q=!0);continue}else $={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(b=T=$,x=o):T=T.next=$,Te.lanes|=L,al|=L;$=R.action,_l&&l(o,$),o=R.hasEagerState?R.eagerState:l(o,$)}else L={lane:$,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(b=T=L,x=o):T=T.next=L,Te.lanes|=$,al|=$;R=R.next}while(R!==null&&R!==t);if(T===null?x=o:T.next=b,!Qt(o,e.memoizedState)&&(ht=!0,Q&&(l=ai,l!==null)))throw l;e.memoizedState=o,e.baseState=x,e.baseQueue=T,i.lastRenderedState=o}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Ss(e){var t=ct(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var i=l.dispatch,s=l.pending,o=t.memoizedState;if(s!==null){l.pending=null;var x=s=s.next;do o=e(o,x.action),x=x.next;while(x!==s);Qt(o,t.memoizedState)||(ht=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),l.lastRenderedState=o}return[o,i]}function ih(e,t,l){var i=Te,s=ct(),o=Ue;if(o){if(l===void 0)throw Error(u(407));l=l()}else l=t();var x=!Qt((Je||s).memoizedState,l);if(x&&(s.memoizedState=l,ht=!0),s=s.queue,Es(uh.bind(null,i,s,e),[e]),s.getSnapshot!==t||x||ft!==null&&ft.memoizedState.tag&1){if(i.flags|=2048,fi(9,{destroy:void 0},rh.bind(null,i,s,l,t),null),Pe===null)throw Error(u(349));o||(Mn&127)!==0||ah(i,t,l)}return l}function ah(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Te.updateQueue,t===null?(t=pr(),Te.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function rh(e,t,l,i){t.value=l,t.getSnapshot=i,sh(t)&&ch(e)}function uh(e,t,l){return l(function(){sh(t)&&ch(e)})}function sh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Qt(e,l)}catch{return!0}}function ch(e){var t=jl(e,2);t!==null&&Ht(t,e,2)}function ks(e){var t=zt();if(typeof e=="function"){var l=e;if(e=l(),_l){_t(!0);try{l()}finally{_t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function oh(e,t,l,i){return e.baseState=l,bs(e,Je,typeof i=="function"?i:On)}function $y(e,t,l,i,s){if(br(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){o.listeners.push(x)}};D.T!==null?l(!0):o.isTransition=!1,i(o),l=t.pending,l===null?(o.next=t.pending=o,fh(t,o)):(o.next=l.next,t.pending=l.next=o)}}function fh(e,t){var l=t.action,i=t.payload,s=e.state;if(t.isTransition){var o=D.T,x={};D.T=x;try{var b=l(s,i),T=D.S;T!==null&&T(x,b),hh(e,t,b)}catch(R){js(e,t,R)}finally{o!==null&&x.types!==null&&(o.types=x.types),D.T=o}}else try{o=l(s,i),hh(e,t,o)}catch(R){js(e,t,R)}}function hh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){dh(e,t,i)},function(i){return js(e,t,i)}):dh(e,t,l)}function dh(e,t,l){t.status="fulfilled",t.value=l,mh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fh(e,l)))}function js(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,mh(t),t=t.next;while(t!==i)}e.action=null}function mh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ph(e,t){return t}function gh(e,t){if(Ue){var l=Pe.formState;if(l!==null){e:{var i=Te;if(Ue){if(nt){t:{for(var s=nt,o=rn;s.nodeType!==8;){if(!o){s=null;break t}if(s=sn(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){nt=sn(s.nextSibling),i=s.data==="F!";break e}}$n(i)}i=!1}i&&(t=l[0])}}return l=zt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ph,lastRenderedState:t},l.queue=i,l=Rh.bind(null,Te,i),i.dispatch=l,i=ks(!1),o=ws.bind(null,Te,!1,i.queue),i=zt(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,l=$y.bind(null,Te,s,o,l),s.dispatch=l,i.memoizedState=e,[t,l,!1]}function yh(e){var t=ct();return xh(t,Je,e)}function xh(e,t,l){if(t=bs(e,t,ph)[0],e=yr(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ea(t)}catch(x){throw x===ri?ur:x}else i=t;t=ct();var s=t.queue,o=s.dispatch;return l!==t.memoizedState&&(Te.flags|=2048,fi(9,{destroy:void 0},Iy.bind(null,s,l),null)),[i,o,e]}function Iy(e,t){e.action=t}function vh(e){var t=ct(),l=Je;if(l!==null)return xh(t,l,e);ct(),t=t.memoizedState,l=ct();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function fi(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=Te.updateQueue,t===null&&(t=pr(),Te.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function bh(){return ct().memoizedState}function xr(e,t,l,i){var s=zt();Te.flags|=e,s.memoizedState=fi(1|t,{destroy:void 0},l,i===void 0?null:i)}function vr(e,t,l,i){var s=ct();i=i===void 0?null:i;var o=s.memoizedState.inst;Je!==null&&i!==null&&ms(i,Je.memoizedState.deps)?s.memoizedState=fi(t,o,l,i):(Te.flags|=e,s.memoizedState=fi(1|t,o,l,i))}function Sh(e,t){xr(8390656,8,e,t)}function Es(e,t){vr(2048,8,e,t)}function Wy(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=pr(),Te.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function kh(e){var t=ct().memoizedState;return Wy({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function jh(e,t){return vr(4,2,e,t)}function Eh(e,t){return vr(4,4,e,t)}function Nh(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 Th(e,t,l){l=l!=null?l.concat([e]):null,vr(4,4,Nh.bind(null,t,e),l)}function Ns(){}function Ah(e,t){var l=ct();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&ms(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Ch(e,t){var l=ct();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&ms(t,i[1]))return i[0];if(i=e(),_l){_t(!0);try{e()}finally{_t(!1)}}return l.memoizedState=[i,t],i}function Ts(e,t,l){return l===void 0||(Mn&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=wd(),Te.lanes|=e,al|=e,l)}function wh(e,t,l,i){return Qt(l,t)?l:si.current!==null?(e=Ts(e,l,i),Qt(e,t)||(ht=!0),e):(Mn&42)===0||(Mn&1073741824)!==0&&(Le&261930)===0?(ht=!0,e.memoizedState=l):(e=wd(),Te.lanes|=e,al|=e,t)}function zh(e,t,l,i,s){var o=I.p;I.p=o!==0&&8>o?o:8;var x=D.T,b={};D.T=b,ws(e,!1,t,l);try{var T=s(),R=D.S;if(R!==null&&R(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Q=Zy(T,i);ta(e,t,Q,$t(e))}else ta(e,t,i,$t(e))}catch($){ta(e,t,{then:function(){},status:"rejected",reason:$},$t())}finally{I.p=o,x!==null&&b.types!==null&&(x.types=b.types),D.T=x}}function Py(){}function As(e,t,l,i){if(e.tag!==5)throw Error(u(476));var s=Dh(e).queue;zh(e,s,t,K,l===null?Py:function(){return _h(e),l(i)})}function Dh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:K},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _h(e){var t=Dh(e);t.next===null&&(t=e.alternate.memoizedState),ta(e,t.next.queue,{},$t())}function Cs(){return jt(xa)}function Mh(){return ct().memoizedState}function Oh(){return ct().memoizedState}function ex(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=$t();e=Pn(l);var i=el(t,e,l);i!==null&&(Ht(i,t,l),$i(i,t,l)),t={cache:ls()},e.payload=t;return}t=t.return}}function tx(e,t,l){var i=$t();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},br(e)?Lh(t,l):(l=Ku(e,t,l,i),l!==null&&(Ht(l,e,i),Bh(l,t,i)))}function Rh(e,t,l){var i=$t();ta(e,t,l,i)}function ta(e,t,l,i){var s={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(br(e))Lh(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var x=t.lastRenderedState,b=o(x,l);if(s.hasEagerState=!0,s.eagerState=b,Qt(b,x))return er(e,t,s,0),Pe===null&&Pa(),!1}catch{}finally{}if(l=Ku(e,t,s,i),l!==null)return Ht(l,e,i),Bh(l,t,i),!0}return!1}function ws(e,t,l,i){if(i={lane:2,revertLane:uc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},br(e)){if(t)throw Error(u(479))}else t=Ku(e,l,i,2),t!==null&&Ht(t,e,2)}function br(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Lh(e,t){ci=dr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Bh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Yo(e,l)}}var na={readContext:jt,use:gr,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};na.useEffectEvent=rt;var Uh={readContext:jt,use:gr,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:Sh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,xr(4194308,4,Nh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return xr(4194308,4,e,t)},useInsertionEffect:function(e,t){xr(4,2,e,t)},useMemo:function(e,t){var l=zt();t=t===void 0?null:t;var i=e();if(_l){_t(!0);try{e()}finally{_t(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=zt();if(l!==void 0){var s=l(t);if(_l){_t(!0);try{l(t)}finally{_t(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=tx.bind(null,Te,e),[i.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=ks(e);var t=e.queue,l=Rh.bind(null,Te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ns,useDeferredValue:function(e,t){var l=zt();return Ts(l,e,t)},useTransition:function(){var e=ks(!1);return e=zh.bind(null,Te,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=Te,s=zt();if(Ue){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Pe===null)throw Error(u(349));(Le&127)!==0||ah(i,t,l)}s.memoizedState=l;var o={value:l,getSnapshot:t};return s.queue=o,Sh(uh.bind(null,i,o,e),[e]),i.flags|=2048,fi(9,{destroy:void 0},rh.bind(null,i,o,l,t),null),l},useId:function(){var e=zt(),t=Pe.identifierPrefix;if(Ue){var l=vn,i=xn;l=(i&~(1<<32-We(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=mr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Fy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:gh,useActionState:gh,useOptimistic:function(e){var t=zt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ws.bind(null,Te,!0,l),l.dispatch=t,[e,t]},useMemoCache:vs,useCacheRefresh:function(){return zt().memoizedState=ex.bind(null,Te)},useEffectEvent:function(e){var t=zt(),l={impl:e};return t.memoizedState=l,function(){if((Xe&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},zs={readContext:jt,use:gr,useCallback:Ah,useContext:jt,useEffect:Es,useImperativeHandle:Th,useInsertionEffect:jh,useLayoutEffect:Eh,useMemo:Ch,useReducer:yr,useRef:bh,useState:function(){return yr(On)},useDebugValue:Ns,useDeferredValue:function(e,t){var l=ct();return wh(l,Je.memoizedState,e,t)},useTransition:function(){var e=yr(On)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:ea(e),t]},useSyncExternalStore:ih,useId:Mh,useHostTransitionStatus:Cs,useFormState:yh,useActionState:yh,useOptimistic:function(e,t){var l=ct();return oh(l,Je,e,t)},useMemoCache:vs,useCacheRefresh:Oh};zs.useEffectEvent=kh;var Hh={readContext:jt,use:gr,useCallback:Ah,useContext:jt,useEffect:Es,useImperativeHandle:Th,useInsertionEffect:jh,useLayoutEffect:Eh,useMemo:Ch,useReducer:Ss,useRef:bh,useState:function(){return Ss(On)},useDebugValue:Ns,useDeferredValue:function(e,t){var l=ct();return Je===null?Ts(l,e,t):wh(l,Je.memoizedState,e,t)},useTransition:function(){var e=Ss(On)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:ea(e),t]},useSyncExternalStore:ih,useId:Mh,useHostTransitionStatus:Cs,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var l=ct();return Je!==null?oh(l,Je,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:vs,useCacheRefresh:Oh};Hh.useEffectEvent=kh;function Ds(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _s={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=$t(),s=Pn(i);s.payload=t,l!=null&&(s.callback=l),t=el(e,s,i),t!==null&&(Ht(t,e,i),$i(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=$t(),s=Pn(i);s.tag=1,s.payload=t,l!=null&&(s.callback=l),t=el(e,s,i),t!==null&&(Ht(t,e,i),$i(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=$t(),i=Pn(l);i.tag=2,t!=null&&(i.callback=t),t=el(e,i,l),t!==null&&(Ht(t,e,l),$i(t,e,l))}};function qh(e,t,l,i,s,o,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,x):t.prototype&&t.prototype.isPureReactComponent?!Gi(l,i)||!Gi(s,o):!0}function Yh(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&_s.enqueueReplaceState(t,t.state,null)}function Ml(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function Gh(e){Wa(e)}function Vh(e){console.error(e)}function Qh(e){Wa(e)}function Sr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Xh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Ms(e,t,l){return l=Pn(l),l.tag=3,l.payload={element:null},l.callback=function(){Sr(e,t)},l}function Kh(e){return e=Pn(e),e.tag=3,e}function Zh(e,t,l,i){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var o=i.value;e.payload=function(){return s(o)},e.callback=function(){Xh(t,l,i)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Xh(t,l,i),typeof s!="function"&&(rl===null?rl=new Set([this]):rl.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function nx(e,t,l,i,s){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&li(t,l,s,!0),l=Kt.current,l!==null){switch(l.tag){case 31:case 13:return un===null?Mr():l.alternate===null&&ut===0&&(ut=3),l.flags&=-257,l.flags|=65536,l.lanes=s,i===sr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),ic(e,i,s)),!1;case 22:return l.flags|=65536,i===sr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),ic(e,i,s)),!1}throw Error(u(435,l.tag))}return ic(e,i,s),Mr(),!1}if(Ue)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Wu&&(e=Error(u(422),{cause:i}),Xi(nn(e,l)))):(i!==Wu&&(t=Error(u(423),{cause:i}),Xi(nn(t,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=nn(i,l),s=Ms(e.stateNode,i,s),cs(e,s),ut!==4&&(ut=2)),!1;var o=Error(u(520),{cause:i});if(o=nn(o,l),oa===null?oa=[o]:oa.push(o),ut!==4&&(ut=2),t===null)return!0;i=nn(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=Ms(l.stateNode,i,e),cs(l,e),!1;case 1:if(t=l.type,o=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(rl===null||!rl.has(o))))return l.flags|=65536,s&=-s,l.lanes|=s,s=Kh(s),Zh(s,e,l,i),cs(l,s),!1}l=l.return}while(l!==null);return!1}var Os=Error(u(461)),ht=!1;function Et(e,t,l,i){t.child=e===null?If(t,null,l,i):Dl(t,e.child,l,i)}function Fh(e,t,l,i,s){l=l.render;var o=t.ref;if("ref"in i){var x={};for(var b in i)b!=="ref"&&(x[b]=i[b])}else x=i;return Al(t),i=ps(e,t,l,x,o,s),b=gs(),e!==null&&!ht?(ys(e,t,s),Rn(e,t,s)):(Ue&&b&&$u(t),t.flags|=1,Et(e,t,i,s),t.child)}function Jh(e,t,l,i,s){if(e===null){var o=l.type;return typeof o=="function"&&!Zu(o)&&o.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=o,$h(e,t,o,i,s)):(e=nr(l.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Gs(e,s)){var x=o.memoizedProps;if(l=l.compare,l=l!==null?l:Gi,l(x,i)&&e.ref===t.ref)return Rn(e,t,s)}return t.flags|=1,e=wn(o,i),e.ref=t.ref,e.return=t,t.child=e}function $h(e,t,l,i,s){if(e!==null){var o=e.memoizedProps;if(Gi(o,i)&&e.ref===t.ref)if(ht=!1,t.pendingProps=i=o,Gs(e,s))(e.flags&131072)!==0&&(ht=!0);else return t.lanes=e.lanes,Rn(e,t,s)}return Rs(e,t,l,i,s)}function Ih(e,t,l,i){var s=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|l:l,e!==null){for(i=t.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~o}else i=0,t.child=null;return Wh(e,t,o,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rr(t,o!==null?o.cachePool:null),o!==null?eh(t,o):fs(),th(t);else return i=t.lanes=536870912,Wh(e,t,o!==null?o.baseLanes|l:l,l,i)}else o!==null?(rr(t,o.cachePool),eh(t,o),nl(),t.memoizedState=null):(e!==null&&rr(t,null),fs(),nl());return Et(e,t,s,l),t.child}function la(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wh(e,t,l,i,s){var o=as();return o=o===null?null:{parent:ot._currentValue,pool:o},t.memoizedState={baseLanes:l,cachePool:o},e!==null&&rr(t,null),fs(),th(t),e!==null&&li(e,t,i,!0),t.childLanes=s,null}function kr(e,t){return t=Er({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ph(e,t,l){return Dl(t,e.child,null,l),e=kr(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function lx(e,t,l){var i=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(i.mode==="hidden")return e=kr(t,i),t.lanes=536870912,la(null,e);if(ds(t),(e=nt)?(e=fm(e,rn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:xn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},l=Lf(e),l.return=t,t.child=l,kt=t,nt=null)):e=null,e===null)throw $n(t);return t.lanes=536870912,null}return kr(t,i)}var o=e.memoizedState;if(o!==null){var x=o.dehydrated;if(ds(t),s)if(t.flags&256)t.flags&=-257,t=Ph(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(ht||li(e,t,l,!1),s=(l&e.childLanes)!==0,ht||s){if(i=Pe,i!==null&&(x=Go(i,l),x!==0&&x!==o.retryLane))throw o.retryLane=x,jl(e,x),Ht(i,e,x),Os;Mr(),t=Ph(e,t,l)}else e=o.treeContext,nt=sn(x.nextSibling),kt=t,Ue=!0,Jn=null,rn=!1,e!==null&&Hf(t,e),t=kr(t,i),t.flags|=4096;return t}return e=wn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function jr(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(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Rs(e,t,l,i,s){return Al(t),l=ps(e,t,l,i,void 0,s),i=gs(),e!==null&&!ht?(ys(e,t,s),Rn(e,t,s)):(Ue&&i&&$u(t),t.flags|=1,Et(e,t,l,s),t.child)}function ed(e,t,l,i,s,o){return Al(t),t.updateQueue=null,l=lh(t,i,l,s),nh(e),i=gs(),e!==null&&!ht?(ys(e,t,o),Rn(e,t,o)):(Ue&&i&&$u(t),t.flags|=1,Et(e,t,l,o),t.child)}function td(e,t,l,i,s){if(Al(t),t.stateNode===null){var o=Pl,x=l.contextType;typeof x=="object"&&x!==null&&(o=jt(x)),o=new l(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=_s,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},us(t),x=l.contextType,o.context=typeof x=="object"&&x!==null?jt(x):Pl,o.state=t.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(Ds(t,l,x,i),o.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(x=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),x!==o.state&&_s.enqueueReplaceState(o,o.state,null),Wi(t,i,o,s),Ii(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var b=t.memoizedProps,T=Ml(l,b);o.props=T;var R=o.context,Q=l.contextType;x=Pl,typeof Q=="object"&&Q!==null&&(x=jt(Q));var $=l.getDerivedStateFromProps;Q=typeof $=="function"||typeof o.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,Q||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(b||R!==x)&&Yh(t,o,i,x),Wn=!1;var L=t.memoizedState;o.state=L,Wi(t,i,o,s),Ii(),R=t.memoizedState,b||L!==R||Wn?(typeof $=="function"&&(Ds(t,l,$,i),R=t.memoizedState),(T=Wn||qh(t,l,T,i,L,R,x))?(Q||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=R),o.props=i,o.state=R,o.context=x,i=T):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,ss(e,t),x=t.memoizedProps,Q=Ml(l,x),o.props=Q,$=t.pendingProps,L=o.context,R=l.contextType,T=Pl,typeof R=="object"&&R!==null&&(T=jt(R)),b=l.getDerivedStateFromProps,(R=typeof b=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(x!==$||L!==T)&&Yh(t,o,i,T),Wn=!1,L=t.memoizedState,o.state=L,Wi(t,i,o,s),Ii();var q=t.memoizedState;x!==$||L!==q||Wn||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof b=="function"&&(Ds(t,l,b,i),q=t.memoizedState),(Q=Wn||qh(t,l,Q,i,L,q,T)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?(R||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,q,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,q,T)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=q),o.props=i,o.state=q,o.context=T,i=Q):(typeof o.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,jr(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=Dl(t,e.child,null,s),t.child=Dl(t,null,l,s)):Et(e,t,l,s),t.memoizedState=o.state,e=t.child):e=Rn(e,t,s),e}function nd(e,t,l,i){return Nl(),t.flags|=256,Et(e,t,l,i),t.child}var Ls={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bs(e){return{baseLanes:e,cachePool:Xf()}}function Us(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Jt),e}function ld(e,t,l){var i=t.pendingProps,s=!1,o=(t.flags&128)!==0,x;if((x=o)||(x=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),x&&(s=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(s?tl(t):nl(),(e=nt)?(e=fm(e,rn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:xn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},l=Lf(e),l.return=t,t.child=l,kt=t,nt=null)):e=null,e===null)throw $n(t);return bc(e)?t.lanes=32:t.lanes=536870912,null}var b=i.children;return i=i.fallback,s?(nl(),s=t.mode,b=Er({mode:"hidden",children:b},s),i=El(i,s,l,null),b.return=t,i.return=t,b.sibling=i,t.child=b,i=t.child,i.memoizedState=Bs(l),i.childLanes=Us(e,x,l),t.memoizedState=Ls,la(null,i)):(tl(t),Hs(t,b))}var T=e.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(o)t.flags&256?(tl(t),t.flags&=-257,t=qs(e,t,l)):t.memoizedState!==null?(nl(),t.child=e.child,t.flags|=128,t=null):(nl(),b=i.fallback,s=t.mode,i=Er({mode:"visible",children:i.children},s),b=El(b,s,l,null),b.flags|=2,i.return=t,b.return=t,i.sibling=b,t.child=i,Dl(t,e.child,null,l),i=t.child,i.memoizedState=Bs(l),i.childLanes=Us(e,x,l),t.memoizedState=Ls,t=la(null,i));else if(tl(t),bc(b)){if(x=b.nextSibling&&b.nextSibling.dataset,x)var R=x.dgst;x=R,i=Error(u(419)),i.stack="",i.digest=x,Xi({value:i,source:null,stack:null}),t=qs(e,t,l)}else if(ht||li(e,t,l,!1),x=(l&e.childLanes)!==0,ht||x){if(x=Pe,x!==null&&(i=Go(x,l),i!==0&&i!==T.retryLane))throw T.retryLane=i,jl(e,i),Ht(x,e,i),Os;vc(b)||Mr(),t=qs(e,t,l)}else vc(b)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,nt=sn(b.nextSibling),kt=t,Ue=!0,Jn=null,rn=!1,e!==null&&Hf(t,e),t=Hs(t,i.children),t.flags|=4096);return t}return s?(nl(),b=i.fallback,s=t.mode,T=e.child,R=T.sibling,i=wn(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,R!==null?b=wn(R,b):(b=El(b,s,l,null),b.flags|=2),b.return=t,i.return=t,i.sibling=b,t.child=i,la(null,i),i=t.child,b=e.child.memoizedState,b===null?b=Bs(l):(s=b.cachePool,s!==null?(T=ot._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=Xf(),b={baseLanes:b.baseLanes|l,cachePool:s}),i.memoizedState=b,i.childLanes=Us(e,x,l),t.memoizedState=Ls,la(e.child,i)):(tl(t),l=e.child,e=l.sibling,l=wn(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=l,t.memoizedState=null,l)}function Hs(e,t){return t=Er({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Er(e,t){return e=Xt(22,e,null,t),e.lanes=0,e}function qs(e,t,l){return Dl(t,e.child,null,l),e=Hs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function id(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ts(e.return,t,l)}function Ys(e,t,l,i,s,o){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:s,treeForkCount:o}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=i,x.tail=l,x.tailMode=s,x.treeForkCount=o)}function ad(e,t,l){var i=t.pendingProps,s=i.revealOrder,o=i.tail;i=i.children;var x=st.current,b=(x&2)!==0;if(b?(x=x&1|2,t.flags|=128):x&=1,k(st,x),Et(e,t,i,l),i=Ue?Qi:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&id(e,l,t);else if(e.tag===19)id(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(s){case"forwards":for(l=t.child,s=null;l!==null;)e=l.alternate,e!==null&&hr(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),Ys(t,!1,s,l,o,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&hr(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}Ys(t,!0,l,null,o,i);break;case"together":Ys(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Rn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(li(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=wn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=wn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Gs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function ix(e,t,l){switch(t.tag){case 3:Ae(t,t.stateNode.containerInfo),In(t,ot,e.memoizedState.cache),Nl();break;case 27:case 5:w(t);break;case 4:Ae(t,t.stateNode.containerInfo);break;case 10:In(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ds(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(tl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ld(e,t,l):(tl(t),e=Rn(e,t,l),e!==null?e.sibling:null);tl(t);break;case 19:var s=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(li(e,t,l,!1),i=(l&t.childLanes)!==0),s){if(i)return ad(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),k(st,st.current),i)break;return null;case 22:return t.lanes=0,Ih(e,t,l,t.pendingProps);case 24:In(t,ot,e.memoizedState.cache)}return Rn(e,t,l)}function rd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)ht=!0;else{if(!Gs(e,l)&&(t.flags&128)===0)return ht=!1,ix(e,t,l);ht=(e.flags&131072)!==0}else ht=!1,Ue&&(t.flags&1048576)!==0&&Uf(t,Qi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=wl(t.elementType),t.type=e,typeof e=="function")Zu(e)?(i=Ml(e,i),t.tag=1,t=td(null,t,e,i,l)):(t.tag=0,t=Rs(null,t,e,i,l));else{if(e!=null){var s=e.$$typeof;if(s===se){t.tag=11,t=Fh(null,t,e,i,l);break e}else if(s===ee){t.tag=14,t=Jh(null,t,e,i,l);break e}}throw t=ae(e)||e,Error(u(306,t,""))}}return t;case 0:return Rs(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,s=Ml(i,t.pendingProps),td(e,t,i,s,l);case 3:e:{if(Ae(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var o=t.memoizedState;s=o.element,ss(e,t),Wi(t,i,null,l);var x=t.memoizedState;if(i=x.cache,In(t,ot,i),i!==o.cache&&ns(t,[ot],l,!0),Ii(),i=x.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=nd(e,t,i,l);break e}else if(i!==s){s=nn(Error(u(424)),t),Xi(s),t=nd(e,t,i,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(nt=sn(e.firstChild),kt=t,Ue=!0,Jn=null,rn=!0,l=If(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Nl(),i===s){t=Rn(e,t,l);break e}Et(e,t,i,l)}t=t.child}return t;case 26:return jr(e,t),e===null?(l=ym(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ue||(l=t.type,e=t.pendingProps,i=qr(oe.current).createElement(l),i[St]=t,i[Mt]=e,Nt(i,l,e),xt(i),t.stateNode=i):t.memoizedState=ym(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return w(t),e===null&&Ue&&(i=t.stateNode=mm(t.type,t.pendingProps,oe.current),kt=t,rn=!0,s=nt,ol(t.type)?(Sc=s,nt=sn(i.firstChild)):nt=s),Et(e,t,t.pendingProps.children,l),jr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((s=i=nt)&&(i=Ox(i,t.type,t.pendingProps,rn),i!==null?(t.stateNode=i,kt=t,nt=sn(i.firstChild),rn=!1,s=!0):s=!1),s||$n(t)),w(t),s=t.type,o=t.pendingProps,x=e!==null?e.memoizedProps:null,i=o.children,gc(s,o)?i=null:x!==null&&gc(s,x)&&(t.flags|=32),t.memoizedState!==null&&(s=ps(e,t,Jy,null,null,l),xa._currentValue=s),jr(e,t),Et(e,t,i,l),t.child;case 6:return e===null&&Ue&&((e=l=nt)&&(l=Rx(l,t.pendingProps,rn),l!==null?(t.stateNode=l,kt=t,nt=null,e=!0):e=!1),e||$n(t)),null;case 13:return ld(e,t,l);case 4:return Ae(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Dl(t,null,i,l):Et(e,t,i,l),t.child;case 11:return Fh(e,t,t.type,t.pendingProps,l);case 7:return Et(e,t,t.pendingProps,l),t.child;case 8:return Et(e,t,t.pendingProps.children,l),t.child;case 12:return Et(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,In(t,t.type,i.value),Et(e,t,i.children,l),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,Al(t),s=jt(s),i=i(s),t.flags|=1,Et(e,t,i,l),t.child;case 14:return Jh(e,t,t.type,t.pendingProps,l);case 15:return $h(e,t,t.type,t.pendingProps,l);case 19:return ad(e,t,l);case 31:return lx(e,t,l);case 22:return Ih(e,t,l,t.pendingProps);case 24:return Al(t),i=jt(ot),e===null?(s=as(),s===null&&(s=Pe,o=ls(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=l),s=o),t.memoizedState={parent:i,cache:s},us(t),In(t,ot,s)):((e.lanes&l)!==0&&(ss(e,t),Wi(t,null,null,l),Ii()),s=e.memoizedState,o=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),In(t,ot,i)):(i=o.cache,In(t,ot,i),i!==s.cache&&ns(t,[ot],l,!0))),Et(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Ln(e){e.flags|=4}function Vs(e,t,l,i,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Md())e.flags|=8192;else throw zl=sr,rs}else e.flags&=-16777217}function ud(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!km(t))if(Md())e.flags|=8192;else throw zl=sr,rs}function Nr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ho():536870912,e.lanes|=t,pi|=t)}function ia(e,t){if(!Ue)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 i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function ax(e,t,l){var i=t.pendingProps;switch(Iu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),_n(ot),X(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ni(t)?Ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pu())),lt(t),null;case 26:var s=t.type,o=t.memoizedState;return e===null?(Ln(t),o!==null?(lt(t),ud(t,o)):(lt(t),Vs(t,s,null,i,l))):o?o!==e.memoizedState?(Ln(t),lt(t),ud(t,o)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Ln(t),lt(t),Vs(t,s,e,i,l)),null;case 27:if(Z(t),l=oe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ln(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return lt(t),null}e=W.current,ni(t)?qf(t):(e=mm(s,i,l),t.stateNode=e,Ln(t))}return lt(t),null;case 5:if(Z(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ln(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return lt(t),null}if(o=W.current,ni(t))qf(t);else{var x=qr(oe.current);switch(o){case 1:o=x.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=x.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=x.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=x.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=x.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?x.createElement("select",{is:i.is}):x.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?x.createElement(s,{is:i.is}):x.createElement(s)}}o[St]=t,o[Mt]=i;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)o.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=o;e:switch(Nt(o,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ln(t)}}return lt(t),Vs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Ln(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=oe.current,ni(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,s=kt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[St]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||lm(e.nodeValue,l)),e||$n(t,!0)}else e=qr(e).createTextNode(i),e[St]=t,t.stateNode=e}return lt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=ni(t),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[St]=t}else Nl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else l=Pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return lt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ni(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[St]=t}else Nl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),s=!1}else s=Pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==s&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Nr(t,t.updateQueue),lt(t),null);case 4:return X(),e===null&&fc(t.stateNode.containerInfo),lt(t),null;case 10:return _n(t.type),lt(t),null;case 19:if(U(st),i=t.memoizedState,i===null)return lt(t),null;if(s=(t.flags&128)!==0,o=i.rendering,o===null)if(s)ia(i,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=hr(e),o!==null){for(t.flags|=128,ia(i,!1),e=o.updateQueue,t.updateQueue=e,Nr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Rf(l,e),l=l.sibling;return k(st,st.current&1|2),Ue&&zn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ne()>zr&&(t.flags|=128,s=!0,ia(i,!1),t.lanes=4194304)}else{if(!s)if(e=hr(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Nr(t,e),ia(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ue)return lt(t),null}else 2*Ne()-i.renderingStartTime>zr&&l!==536870912&&(t.flags|=128,s=!0,ia(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ne(),e.sibling=null,l=st.current,k(st,s?l&1|2:l&1),Ue&&zn(t,i.treeForkCount),e):(lt(t),null);case 22:case 23:return Zt(t),hs(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),l=t.updateQueue,l!==null&&Nr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&U(Cl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),_n(ot),lt(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function rx(e,t){switch(Iu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(ot),X(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Z(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(u(340));Nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(st),null;case 4:return X(),null;case 10:return _n(t.type),null;case 22:case 23:return Zt(t),hs(),e!==null&&U(Cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(ot),null;case 25:return null;default:return null}}function sd(e,t){switch(Iu(t),t.tag){case 3:_n(ot),X();break;case 26:case 27:case 5:Z(t);break;case 4:X();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:U(st);break;case 10:_n(t.type);break;case 22:case 23:Zt(t),hs(),e!==null&&U(Cl);break;case 24:_n(ot)}}function aa(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){i=void 0;var o=l.create,x=l.inst;i=o(),x.destroy=i}l=l.next}while(l!==s)}}catch(b){Fe(t,t.return,b)}}function ll(e,t,l){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var o=s.next;i=o;do{if((i.tag&e)===e){var x=i.inst,b=x.destroy;if(b!==void 0){x.destroy=void 0,s=t;var T=l,R=b;try{R()}catch(Q){Fe(s,T,Q)}}}i=i.next}while(i!==o)}}catch(Q){Fe(t,t.return,Q)}}function cd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Pf(t,l)}catch(i){Fe(e,e.return,i)}}}function od(e,t,l){l.props=Ml(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){Fe(e,t,i)}}function ra(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(s){Fe(e,t,s)}}function bn(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(s){Fe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){Fe(e,t,s)}else l.current=null}function fd(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(s){Fe(e,e.return,s)}}function Qs(e,t,l){try{var i=e.stateNode;Cx(i,e.type,l,t),i[Mt]=t}catch(s){Fe(e,e.return,s)}}function hd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ol(e.type)||e.tag===4}function Xs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hd(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&&ol(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 Ks(e,t,l){var i=e.tag;if(i===5||i===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=An));else if(i!==4&&(i===27&&ol(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ks(e,t,l),e=e.sibling;e!==null;)Ks(e,t,l),e=e.sibling}function Tr(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&ol(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Tr(e,t,l),e=e.sibling;e!==null;)Tr(e,t,l),e=e.sibling}function dd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Nt(t,i,l),t[St]=e,t[Mt]=l}catch(o){Fe(e,e.return,o)}}var Bn=!1,dt=!1,Zs=!1,md=typeof WeakSet=="function"?WeakSet:Set,vt=null;function ux(e,t){if(e=e.containerInfo,mc=Zr,e=Tf(e),qu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var s=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{l.nodeType,o.nodeType}catch{l=null;break e}var x=0,b=-1,T=-1,R=0,Q=0,$=e,L=null;t:for(;;){for(var q;$!==l||s!==0&&$.nodeType!==3||(b=x+s),$!==o||i!==0&&$.nodeType!==3||(T=x+i),$.nodeType===3&&(x+=$.nodeValue.length),(q=$.firstChild)!==null;)L=$,$=q;for(;;){if($===e)break t;if(L===l&&++R===s&&(b=x),L===o&&++Q===i&&(T=x),(q=$.nextSibling)!==null)break;$=L,L=$.parentNode}$=q}l=b===-1||T===-1?null:{start:b,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(pc={focusedElem:e,selectionRange:l},Zr=!1,vt=t;vt!==null;)if(t=vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,vt=e;else for(;vt!==null;){switch(t=vt,o=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++)s=e[l],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,l=t,s=o.memoizedProps,o=o.memoizedState,i=l.stateNode;try{var de=Ml(l.type,s);e=i.getSnapshotBeforeUpdate(de,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Fe(l,l.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)xc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xc(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,vt=e;break}vt=t.return}}function pd(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Hn(e,l),i&4&&aa(5,l);break;case 1:if(Hn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(x){Fe(l,l.return,x)}else{var s=Ml(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Fe(l,l.return,x)}}i&64&&cd(l),i&512&&ra(l,l.return);break;case 3:if(Hn(e,l),i&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(x){Fe(l,l.return,x)}}break;case 27:t===null&&i&4&&dd(l);case 26:case 5:Hn(e,l),t===null&&i&4&&fd(l),i&512&&ra(l,l.return);break;case 12:Hn(e,l);break;case 31:Hn(e,l),i&4&&xd(e,l);break;case 13:Hn(e,l),i&4&&vd(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=gx.bind(null,l),Lx(e,l))));break;case 22:if(i=l.memoizedState!==null||Bn,!i){t=t!==null&&t.memoizedState!==null||dt,s=Bn;var o=dt;Bn=i,(dt=t)&&!o?qn(e,l,(l.subtreeFlags&8772)!==0):Hn(e,l),Bn=s,dt=o}break;case 30:break;default:Hn(e,l)}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ju(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 it=null,Rt=!1;function Un(e,t,l){for(l=l.child;l!==null;)yd(e,t,l),l=l.sibling}function yd(e,t,l){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(wt,l)}catch{}switch(l.tag){case 26:dt||bn(l,t),Un(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:dt||bn(l,t);var i=it,s=Rt;ol(l.type)&&(it=l.stateNode,Rt=!1),Un(e,t,l),pa(l.stateNode),it=i,Rt=s;break;case 5:dt||bn(l,t);case 6:if(i=it,s=Rt,it=null,Un(e,t,l),it=i,Rt=s,it!==null)if(Rt)try{(it.nodeType===9?it.body:it.nodeName==="HTML"?it.ownerDocument.body:it).removeChild(l.stateNode)}catch(o){Fe(l,t,o)}else try{it.removeChild(l.stateNode)}catch(o){Fe(l,t,o)}break;case 18:it!==null&&(Rt?(e=it,cm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ji(e)):cm(it,l.stateNode));break;case 4:i=it,s=Rt,it=l.stateNode.containerInfo,Rt=!0,Un(e,t,l),it=i,Rt=s;break;case 0:case 11:case 14:case 15:ll(2,l,t),dt||ll(4,l,t),Un(e,t,l);break;case 1:dt||(bn(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&od(l,t,i)),Un(e,t,l);break;case 21:Un(e,t,l);break;case 22:dt=(i=dt)||l.memoizedState!==null,Un(e,t,l),dt=i;break;default:Un(e,t,l)}}function xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ji(e)}catch(l){Fe(t,t.return,l)}}}function vd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ji(e)}catch(l){Fe(t,t.return,l)}}function sx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new md),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new md),t;default:throw Error(u(435,e.tag))}}function Ar(e,t){var l=sx(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var s=yx.bind(null,e,i);i.then(s,s)}})}function Lt(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var s=l[i],o=e,x=t,b=x;e:for(;b!==null;){switch(b.tag){case 27:if(ol(b.type)){it=b.stateNode,Rt=!1;break e}break;case 5:it=b.stateNode,Rt=!1;break e;case 3:case 4:it=b.stateNode.containerInfo,Rt=!0;break e}b=b.return}if(it===null)throw Error(u(160));yd(o,x,s),it=null,Rt=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bd(t,e),t=t.sibling}var pn=null;function bd(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Lt(t,e),Bt(e),i&4&&(ll(3,e,e.return),aa(3,e),ll(5,e,e.return));break;case 1:Lt(t,e),Bt(e),i&512&&(dt||l===null||bn(l,l.return)),i&64&&Bn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var s=pn;if(Lt(t,e),Bt(e),i&512&&(dt||l===null||bn(l,l.return)),i&4){var o=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":o=s.getElementsByTagName("title")[0],(!o||o[Mi]||o[St]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(i),s.head.insertBefore(o,s.querySelector("head > title"))),Nt(o,i,l),o[St]=e,xt(o),i=o;break e;case"link":var x=bm("link","href",s).get(i+(l.href||""));if(x){for(var b=0;b<x.length;b++)if(o=x[b],o.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&o.getAttribute("rel")===(l.rel==null?null:l.rel)&&o.getAttribute("title")===(l.title==null?null:l.title)&&o.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(b,1);break t}}o=s.createElement(i),Nt(o,i,l),s.head.appendChild(o);break;case"meta":if(x=bm("meta","content",s).get(i+(l.content||""))){for(b=0;b<x.length;b++)if(o=x[b],o.getAttribute("content")===(l.content==null?null:""+l.content)&&o.getAttribute("name")===(l.name==null?null:l.name)&&o.getAttribute("property")===(l.property==null?null:l.property)&&o.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&o.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(b,1);break t}}o=s.createElement(i),Nt(o,i,l),s.head.appendChild(o);break;default:throw Error(u(468,i))}o[St]=e,xt(o),i=o}e.stateNode=i}else Sm(s,e.type,e.stateNode);else e.stateNode=vm(s,i,e.memoizedProps);else o!==i?(o===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):o.count--,i===null?Sm(s,e.type,e.stateNode):vm(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Qs(e,e.memoizedProps,l.memoizedProps)}break;case 27:Lt(t,e),Bt(e),i&512&&(dt||l===null||bn(l,l.return)),l!==null&&i&4&&Qs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Lt(t,e),Bt(e),i&512&&(dt||l===null||bn(l,l.return)),e.flags&32){s=e.stateNode;try{Kl(s,"")}catch(de){Fe(e,e.return,de)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,Qs(e,s,l!==null?l.memoizedProps:s)),i&1024&&(Zs=!0);break;case 6:if(Lt(t,e),Bt(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(de){Fe(e,e.return,de)}}break;case 3:if(Vr=null,s=pn,pn=Yr(t.containerInfo),Lt(t,e),pn=s,Bt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{ji(t.containerInfo)}catch(de){Fe(e,e.return,de)}Zs&&(Zs=!1,Sd(e));break;case 4:i=pn,pn=Yr(e.stateNode.containerInfo),Lt(t,e),Bt(e),pn=i;break;case 12:Lt(t,e),Bt(e);break;case 31:Lt(t,e),Bt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 13:Lt(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(wr=Ne()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 22:s=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,R=Bn,Q=dt;if(Bn=R||s,dt=Q||T,Lt(t,e),dt=Q,Bn=R,Bt(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(l===null||T||Bn||dt||Ol(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(o=T.stateNode,s)x=o.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{b=T.stateNode;var $=T.memoizedProps.style,L=$!=null&&$.hasOwnProperty("display")?$.display:null;b.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(de){Fe(T,T.return,de)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(de){Fe(T,T.return,de)}}}else if(t.tag===18){if(l===null){T=t;try{var q=T.stateNode;s?om(q,!0):om(T.stateNode,!1)}catch(de){Fe(T,T.return,de)}}}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}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,Ar(e,l))));break;case 19:Lt(t,e),Bt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 30:break;case 21:break;default:Lt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(hd(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var s=l.stateNode,o=Xs(e);Tr(e,o,s);break;case 5:var x=l.stateNode;l.flags&32&&(Kl(x,""),l.flags&=-33);var b=Xs(e);Tr(e,b,x);break;case 3:case 4:var T=l.stateNode.containerInfo,R=Xs(e);Ks(e,R,T);break;default:throw Error(u(161))}}catch(Q){Fe(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pd(e,t.alternate,t),t=t.sibling}function Ol(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ll(4,t,t.return),Ol(t);break;case 1:bn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&od(t,t.return,l),Ol(t);break;case 27:pa(t.stateNode);case 26:case 5:bn(t,t.return),Ol(t);break;case 22:t.memoizedState===null&&Ol(t);break;case 30:Ol(t);break;default:Ol(t)}e=e.sibling}}function qn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,s=e,o=t,x=o.flags;switch(o.tag){case 0:case 11:case 15:qn(s,o,l),aa(4,o);break;case 1:if(qn(s,o,l),i=o,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(R){Fe(i,i.return,R)}if(i=o,s=i.updateQueue,s!==null){var b=i.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)Wf(T[s],b)}catch(R){Fe(i,i.return,R)}}l&&x&64&&cd(o),ra(o,o.return);break;case 27:dd(o);case 26:case 5:qn(s,o,l),l&&i===null&&x&4&&fd(o),ra(o,o.return);break;case 12:qn(s,o,l);break;case 31:qn(s,o,l),l&&x&4&&xd(s,o);break;case 13:qn(s,o,l),l&&x&4&&vd(s,o);break;case 22:o.memoizedState===null&&qn(s,o,l),ra(o,o.return);break;case 30:break;default:qn(s,o,l)}t=t.sibling}}function Fs(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&&Ki(l))}function Js(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ki(e))}function gn(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kd(e,t,l,i),t=t.sibling}function kd(e,t,l,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,l,i),s&2048&&aa(9,t);break;case 1:gn(e,t,l,i);break;case 3:gn(e,t,l,i),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ki(e)));break;case 12:if(s&2048){gn(e,t,l,i),e=t.stateNode;try{var o=t.memoizedProps,x=o.id,b=o.onPostCommit;typeof b=="function"&&b(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Fe(t,t.return,T)}}else gn(e,t,l,i);break;case 31:gn(e,t,l,i);break;case 13:gn(e,t,l,i);break;case 23:break;case 22:o=t.stateNode,x=t.alternate,t.memoizedState!==null?o._visibility&2?gn(e,t,l,i):ua(e,t):o._visibility&2?gn(e,t,l,i):(o._visibility|=2,hi(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Fs(x,t);break;case 24:gn(e,t,l,i),s&2048&&Js(t.alternate,t);break;default:gn(e,t,l,i)}}function hi(e,t,l,i,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,x=t,b=l,T=i,R=x.flags;switch(x.tag){case 0:case 11:case 15:hi(o,x,b,T,s),aa(8,x);break;case 23:break;case 22:var Q=x.stateNode;x.memoizedState!==null?Q._visibility&2?hi(o,x,b,T,s):ua(o,x):(Q._visibility|=2,hi(o,x,b,T,s)),s&&R&2048&&Fs(x.alternate,x);break;case 24:hi(o,x,b,T,s),s&&R&2048&&Js(x.alternate,x);break;default:hi(o,x,b,T,s)}t=t.sibling}}function ua(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,s=i.flags;switch(i.tag){case 22:ua(l,i),s&2048&&Fs(i.alternate,i);break;case 24:ua(l,i),s&2048&&Js(i.alternate,i);break;default:ua(l,i)}t=t.sibling}}var sa=8192;function di(e,t,l){if(e.subtreeFlags&sa)for(e=e.child;e!==null;)jd(e,t,l),e=e.sibling}function jd(e,t,l){switch(e.tag){case 26:di(e,t,l),e.flags&sa&&e.memoizedState!==null&&Fx(l,pn,e.memoizedState,e.memoizedProps);break;case 5:di(e,t,l);break;case 3:case 4:var i=pn;pn=Yr(e.stateNode.containerInfo),di(e,t,l),pn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=sa,sa=16777216,di(e,t,l),sa=i):di(e,t,l));break;default:di(e,t,l)}}function Ed(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 ca(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];vt=i,Td(i,e)}Ed(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nd(e),e=e.sibling}function Nd(e){switch(e.tag){case 0:case 11:case 15:ca(e),e.flags&2048&&ll(9,e,e.return);break;case 3:ca(e);break;case 12:ca(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cr(e)):ca(e);break;default:ca(e)}}function Cr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];vt=i,Td(i,e)}Ed(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ll(8,t,t.return),Cr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Cr(t));break;default:Cr(t)}e=e.sibling}}function Td(e,t){for(;vt!==null;){var l=vt;switch(l.tag){case 0:case 11:case 15:ll(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ki(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,vt=i;else e:for(l=e;vt!==null;){i=vt;var s=i.sibling,o=i.return;if(gd(i),i===l){vt=null;break e}if(s!==null){s.return=o,vt=s;break e}vt=o}}}var cx={getCacheForType:function(e){var t=jt(ot),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return jt(ot).controller.signal}},ox=typeof WeakMap=="function"?WeakMap:Map,Xe=0,Pe=null,Me=null,Le=0,Ze=0,Ft=null,il=!1,mi=!1,$s=!1,Yn=0,ut=0,al=0,Rl=0,Is=0,Jt=0,pi=0,oa=null,Ut=null,Ws=!1,wr=0,Ad=0,zr=1/0,Dr=null,rl=null,yt=0,ul=null,gi=null,Gn=0,Ps=0,ec=null,Cd=null,fa=0,tc=null;function $t(){return(Xe&2)!==0&&Le!==0?Le&-Le:D.T!==null?uc():Vo()}function wd(){if(Jt===0)if((Le&536870912)===0||Ue){var e=Ha;Ha<<=1,(Ha&3932160)===0&&(Ha=262144),Jt=e}else Jt=536870912;return e=Kt.current,e!==null&&(e.flags|=32),Jt}function Ht(e,t,l){(e===Pe&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(yi(e,0),sl(e,Le,Jt,!1)),_i(e,l),((Xe&2)===0||e!==Pe)&&(e===Pe&&((Xe&2)===0&&(Rl|=l),ut===4&&sl(e,Le,Jt,!1)),Sn(e))}function zd(e,t,l){if((Xe&6)!==0)throw Error(u(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Di(e,t),s=i?dx(e,t):lc(e,t,!0),o=i;do{if(s===0){mi&&!i&&sl(e,t,0,!1);break}else{if(l=e.current.alternate,o&&!fx(l)){s=lc(e,t,!1),o=!1;continue}if(s===2){if(o=t,e.errorRecoveryDisabledLanes&o)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var b=e;s=oa;var T=b.current.memoizedState.isDehydrated;if(T&&(yi(b,x).flags|=256),x=lc(b,x,!1),x!==2){if($s&&!T){b.errorRecoveryDisabledLanes|=o,Rl|=o,s=4;break e}o=Ut,Ut=s,o!==null&&(Ut===null?Ut=o:Ut.push.apply(Ut,o))}s=x}if(o=!1,s!==2)continue}}if(s===1){yi(e,0),sl(e,t,0,!0);break}e:{switch(i=e,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:sl(i,t,Jt,!il);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=wr+300-Ne(),10<s)){if(sl(i,t,Jt,!il),Ya(i,0,!0)!==0)break e;Gn=t,i.timeoutHandle=um(Dd.bind(null,i,l,Ut,Dr,Ws,t,Jt,Rl,pi,il,o,"Throttled",-0,0),s);break e}Dd(i,l,Ut,Dr,Ws,t,Jt,Rl,pi,il,o,null,-0,0)}}break}while(!0);Sn(e)}function Dd(e,t,l,i,s,o,x,b,T,R,Q,$,L,q){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:An},jd(t,o,$);var de=(o&62914560)===o?wr-Ne():(o&4194048)===o?Ad-Ne():0;if(de=Jx($,de),de!==null){Gn=o,e.cancelPendingCommit=de(Hd.bind(null,e,t,o,l,i,s,x,b,T,Q,$,null,L,q)),sl(e,o,x,!R);return}}Hd(e,t,o,l,i,s,x,b,T)}function fx(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 i=0;i<l.length;i++){var s=l[i],o=s.getSnapshot;s=s.value;try{if(!Qt(o(),s))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 sl(e,t,l,i){t&=~Is,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var o=31-We(s),x=1<<o;i[o]=-1,s&=~x}l!==0&&qo(e,l,t)}function _r(){return(Xe&6)===0?(ha(0),!1):!0}function nc(){if(Me!==null){if(Ze===0)var e=Me.return;else e=Me,Dn=Tl=null,xs(e),ui=null,Fi=0,e=Me;for(;e!==null;)sd(e.alternate,e),e=e.return;Me=null}}function yi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Dx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Gn=0,nc(),Pe=e,Me=l=wn(e.current,null),Le=t,Ze=0,Ft=null,il=!1,mi=Di(e,t),$s=!1,pi=Jt=Is=Rl=al=ut=0,Ut=oa=null,Ws=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-We(i),o=1<<s;t|=e[s],i&=~o}return Yn=t,Pa(),l}function _d(e,t){Te=null,D.H=na,t===ri||t===ur?(t=Ff(),Ze=3):t===rs?(t=Ff(),Ze=4):Ze=t===Os?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,Me===null&&(ut=1,Sr(e,nn(t,e.current)))}function Md(){var e=Kt.current;return e===null?!0:(Le&4194048)===Le?un===null:(Le&62914560)===Le||(Le&536870912)!==0?e===un:!1}function Od(){var e=D.H;return D.H=na,e===null?na:e}function Rd(){var e=D.A;return D.A=cx,e}function Mr(){ut=4,il||(Le&4194048)!==Le&&Kt.current!==null||(mi=!0),(al&134217727)===0&&(Rl&134217727)===0||Pe===null||sl(Pe,Le,Jt,!1)}function lc(e,t,l){var i=Xe;Xe|=2;var s=Od(),o=Rd();(Pe!==e||Le!==t)&&(Dr=null,yi(e,t)),t=!1;var x=ut;e:do try{if(Ze!==0&&Me!==null){var b=Me,T=Ft;switch(Ze){case 8:nc(),x=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var R=Ze;if(Ze=0,Ft=null,xi(e,b,T,R),l&&mi){x=0;break e}break;default:R=Ze,Ze=0,Ft=null,xi(e,b,T,R)}}hx(),x=ut;break}catch(Q){_d(e,Q)}while(!0);return t&&e.shellSuspendCounter++,Dn=Tl=null,Xe=i,D.H=s,D.A=o,Me===null&&(Pe=null,Le=0,Pa()),x}function hx(){for(;Me!==null;)Ld(Me)}function dx(e,t){var l=Xe;Xe|=2;var i=Od(),s=Rd();Pe!==e||Le!==t?(Dr=null,zr=Ne()+500,yi(e,t)):mi=Di(e,t);e:do try{if(Ze!==0&&Me!==null){t=Me;var o=Ft;t:switch(Ze){case 1:Ze=0,Ft=null,xi(e,t,o,1);break;case 2:case 9:if(Kf(o)){Ze=0,Ft=null,Bd(t);break}t=function(){Ze!==2&&Ze!==9||Pe!==e||(Ze=7),Sn(e)},o.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:Kf(o)?(Ze=0,Ft=null,Bd(t)):(Ze=0,Ft=null,xi(e,t,o,7));break;case 5:var x=null;switch(Me.tag){case 26:x=Me.memoizedState;case 5:case 27:var b=Me;if(x?km(x):b.stateNode.complete){Ze=0,Ft=null;var T=b.sibling;if(T!==null)Me=T;else{var R=b.return;R!==null?(Me=R,Or(R)):Me=null}break t}}Ze=0,Ft=null,xi(e,t,o,5);break;case 6:Ze=0,Ft=null,xi(e,t,o,6);break;case 8:nc(),ut=6;break e;default:throw Error(u(462))}}mx();break}catch(Q){_d(e,Q)}while(!0);return Dn=Tl=null,D.H=i,D.A=s,Xe=l,Me!==null?0:(Pe=null,Le=0,Pa(),ut)}function mx(){for(;Me!==null&&!fn();)Ld(Me)}function Ld(e){var t=rd(e.alternate,e,Yn);e.memoizedProps=e.pendingProps,t===null?Or(e):Me=t}function Bd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ed(l,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=ed(l,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:xs(t);default:sd(l,t),t=Me=Rf(t,Yn),t=rd(l,t,Yn)}e.memoizedProps=e.pendingProps,t===null?Or(e):Me=t}function xi(e,t,l,i){Dn=Tl=null,xs(t),ui=null,Fi=0;var s=t.return;try{if(nx(e,s,t,l,Le)){ut=1,Sr(e,nn(l,e.current)),Me=null;return}}catch(o){if(s!==null)throw Me=s,o;ut=1,Sr(e,nn(l,e.current)),Me=null;return}t.flags&32768?(Ue||i===1?e=!0:mi||(Le&536870912)!==0?e=!1:(il=e=!0,(i===2||i===9||i===3||i===6)&&(i=Kt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Ud(t,e)):Or(t)}function Or(e){var t=e;do{if((t.flags&32768)!==0){Ud(t,il);return}e=t.return;var l=ax(t.alternate,t,Yn);if(l!==null){Me=l;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);ut===0&&(ut=5)}function Ud(e,t){do{var l=rx(e.alternate,e);if(l!==null){l.flags&=32767,Me=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=l}while(e!==null);ut=6,Me=null}function Hd(e,t,l,i,s,o,x,b,T){e.cancelPendingCommit=null;do Rr();while(yt!==0);if((Xe&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=Xu,Zg(e,l,o,x,b,T),e===Pe&&(Me=Pe=null,Le=0),gi=t,ul=e,Gn=l,Ps=o,ec=s,Cd=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,xx(je,function(){return Qd(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,s=I.p,I.p=2,x=Xe,Xe|=4;try{ux(e,t,l)}finally{Xe=x,I.p=s,D.T=i}}yt=1,qd(),Yd(),Gd()}}function qd(){if(yt===1){yt=0;var e=ul,t=gi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var i=I.p;I.p=2;var s=Xe;Xe|=4;try{bd(t,e);var o=pc,x=Tf(e.containerInfo),b=o.focusedElem,T=o.selectionRange;if(x!==b&&b&&b.ownerDocument&&Nf(b.ownerDocument.documentElement,b)){if(T!==null&&qu(b)){var R=T.start,Q=T.end;if(Q===void 0&&(Q=R),"selectionStart"in b)b.selectionStart=R,b.selectionEnd=Math.min(Q,b.value.length);else{var $=b.ownerDocument||document,L=$&&$.defaultView||window;if(L.getSelection){var q=L.getSelection(),de=b.textContent.length,Se=Math.min(T.start,de),Ie=T.end===void 0?Se:Math.min(T.end,de);!q.extend&&Se>Ie&&(x=Ie,Ie=Se,Se=x);var z=Ef(b,Se),C=Ef(b,Ie);if(z&&C&&(q.rangeCount!==1||q.anchorNode!==z.node||q.anchorOffset!==z.offset||q.focusNode!==C.node||q.focusOffset!==C.offset)){var O=$.createRange();O.setStart(z.node,z.offset),q.removeAllRanges(),Se>Ie?(q.addRange(O),q.extend(C.node,C.offset)):(O.setEnd(C.node,C.offset),q.addRange(O))}}}}for($=[],q=b;q=q.parentNode;)q.nodeType===1&&$.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var J=$[b];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Zr=!!mc,pc=mc=null}finally{Xe=s,I.p=i,D.T=l}}e.current=t,yt=2}}function Yd(){if(yt===2){yt=0;var e=ul,t=gi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var i=I.p;I.p=2;var s=Xe;Xe|=4;try{pd(e,t.alternate,t)}finally{Xe=s,I.p=i,D.T=l}}yt=3}}function Gd(){if(yt===4||yt===3){yt=0,hn();var e=ul,t=gi,l=Gn,i=Cd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,gi=ul=null,Vd(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(rl=null),Su(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(wt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=D.T,s=I.p,I.p=2,D.T=null;try{for(var o=e.onRecoverableError,x=0;x<i.length;x++){var b=i[x];o(b.value,{componentStack:b.stack})}}finally{D.T=t,I.p=s}}(Gn&3)!==0&&Rr(),Sn(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===tc?fa++:(fa=0,tc=e):fa=0,ha(0)}}function Vd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ki(t)))}function Rr(){return qd(),Yd(),Gd(),Qd()}function Qd(){if(yt!==5)return!1;var e=ul,t=Ps;Ps=0;var l=Su(Gn),i=D.T,s=I.p;try{I.p=32>l?32:l,D.T=null,l=ec,ec=null;var o=ul,x=Gn;if(yt=0,gi=ul=null,Gn=0,(Xe&6)!==0)throw Error(u(331));var b=Xe;if(Xe|=4,Nd(o.current),kd(o,o.current,x,l),Xe=b,ha(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(wt,o)}catch{}return!0}finally{I.p=s,D.T=i,Vd(e,t)}}function Xd(e,t,l){t=nn(l,t),t=Ms(e.stateNode,t,2),e=el(e,t,2),e!==null&&(_i(e,2),Sn(e))}function Fe(e,t,l){if(e.tag===3)Xd(e,e,l);else for(;t!==null;){if(t.tag===3){Xd(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(rl===null||!rl.has(i))){e=nn(l,e),l=Kh(2),i=el(t,l,2),i!==null&&(Zh(l,i,t,e),_i(i,2),Sn(i));break}}t=t.return}}function ic(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new ox;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(l)||($s=!0,s.add(l),e=px.bind(null,e,t,l),t.then(e,e))}function px(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Pe===e&&(Le&l)===l&&(ut===4||ut===3&&(Le&62914560)===Le&&300>Ne()-wr?(Xe&2)===0&&yi(e,0):Is|=l,pi===Le&&(pi=0)),Sn(e)}function Kd(e,t){t===0&&(t=Ho()),e=jl(e,t),e!==null&&(_i(e,t),Sn(e))}function gx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kd(e,l)}function yx(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),Kd(e,l)}function xx(e,t){return Ge(e,t)}var Lr=null,vi=null,ac=!1,Br=!1,rc=!1,cl=0;function Sn(e){e!==vi&&e.next===null&&(vi===null?Lr=vi=e:vi=vi.next=e),Br=!0,ac||(ac=!0,bx())}function ha(e,t){if(!rc&&Br){rc=!0;do for(var l=!1,i=Lr;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var o=0;else{var x=i.suspendedLanes,b=i.pingedLanes;o=(1<<31-We(42|e)+1)-1,o&=s&~(x&~b),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(l=!0,$d(i,o))}else o=Le,o=Ya(i,i===Pe?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Di(i,o)||(l=!0,$d(i,o));i=i.next}while(l);rc=!1}}function vx(){Zd()}function Zd(){Br=ac=!1;var e=0;cl!==0&&zx()&&(e=cl);for(var t=Ne(),l=null,i=Lr;i!==null;){var s=i.next,o=Fd(i,t);o===0?(i.next=null,l===null?Lr=s:l.next=s,s===null&&(vi=l)):(l=i,(e!==0||(o&3)!==0)&&(Br=!0)),i=s}yt!==0&&yt!==5||ha(e),cl!==0&&(cl=0)}function Fd(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var x=31-We(o),b=1<<x,T=s[x];T===-1?((b&l)===0||(b&i)!==0)&&(s[x]=Kg(b,t)):T<=t&&(e.expiredLanes|=b),o&=~b}if(t=Pe,l=Le,l=Ya(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Gt(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Di(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&Gt(i),Su(l)){case 2:case 8:l=ne;break;case 32:l=je;break;case 268435456:l=Ke;break;default:l=je}return i=Jd.bind(null,e),l=Ge(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&Gt(i),e.callbackPriority=2,e.callbackNode=null,2}function Jd(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Rr()&&e.callbackNode!==l)return null;var i=Le;return i=Ya(e,e===Pe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(zd(e,i,t),Fd(e,Ne()),e.callbackNode!=null&&e.callbackNode===l?Jd.bind(null,e):null)}function $d(e,t){if(Rr())return null;zd(e,t,!0)}function bx(){_x(function(){(Xe&6)!==0?Ge(G,vx):Zd()})}function uc(){if(cl===0){var e=ii;e===0&&(e=Ua,Ua<<=1,(Ua&261888)===0&&(Ua=256)),cl=e}return cl}function Id(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xa(""+e)}function Wd(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 Sx(e,t,l,i,s){if(t==="submit"&&l&&l.stateNode===s){var o=Id((s[Mt]||null).action),x=i.submitter;x&&(t=(t=x[Mt]||null)?Id(t.formAction):x.getAttribute("formAction"),t!==null&&(o=t,x=null));var b=new Ja("action","action",null,i,s);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(cl!==0){var T=x?Wd(s,x):new FormData(s);As(l,{pending:!0,data:T,method:s.method,action:o},null,T)}}else typeof o=="function"&&(b.preventDefault(),T=x?Wd(s,x):new FormData(s),As(l,{pending:!0,data:T,method:s.method,action:o},o,T))},currentTarget:s}]})}}for(var sc=0;sc<Qu.length;sc++){var cc=Qu[sc],kx=cc.toLowerCase(),jx=cc[0].toUpperCase()+cc.slice(1);mn(kx,"on"+jx)}mn(wf,"onAnimationEnd"),mn(zf,"onAnimationIteration"),mn(Df,"onAnimationStart"),mn("dblclick","onDoubleClick"),mn("focusin","onFocus"),mn("focusout","onBlur"),mn(Hy,"onTransitionRun"),mn(qy,"onTransitionStart"),mn(Yy,"onTransitionCancel"),mn(_f,"onTransitionEnd"),Ql("onMouseEnter",["mouseout","mouseover"]),Ql("onMouseLeave",["mouseout","mouseover"]),Ql("onPointerEnter",["pointerout","pointerover"]),Ql("onPointerLeave",["pointerout","pointerover"]),vl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vl("onBeforeInput",["compositionend","keypress","textInput","paste"]),vl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var da="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(" "),Ex=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(da));function Pd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],s=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var x=i.length-1;0<=x;x--){var b=i[x],T=b.instance,R=b.currentTarget;if(b=b.listener,T!==o&&s.isPropagationStopped())break e;o=b,s.currentTarget=R;try{o(s)}catch(Q){Wa(Q)}s.currentTarget=null,o=T}else for(x=0;x<i.length;x++){if(b=i[x],T=b.instance,R=b.currentTarget,b=b.listener,T!==o&&s.isPropagationStopped())break e;o=b,s.currentTarget=R;try{o(s)}catch(Q){Wa(Q)}s.currentTarget=null,o=T}}}}function Oe(e,t){var l=t[ku];l===void 0&&(l=t[ku]=new Set);var i=e+"__bubble";l.has(i)||(em(t,e,2,!1),l.add(i))}function oc(e,t,l){var i=0;t&&(i|=4),em(l,e,i,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function fc(e){if(!e[Ur]){e[Ur]=!0,Ko.forEach(function(l){l!=="selectionchange"&&(Ex.has(l)||oc(l,!1,e),oc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ur]||(t[Ur]=!0,oc("selectionchange",!1,t))}}function em(e,t,l,i){switch(wm(t)){case 2:var s=Wx;break;case 8:s=Px;break;default:s=Tc}l=s.bind(null,t,l,e),s=void 0,!Du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,l,{capture:!0,passive:s}):e.addEventListener(t,l,!0):s!==void 0?e.addEventListener(t,l,{passive:s}):e.addEventListener(t,l,!1)}function hc(e,t,l,i,s){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var x=i.tag;if(x===3||x===4){var b=i.stateNode.containerInfo;if(b===s)break;if(x===4)for(x=i.return;x!==null;){var T=x.tag;if((T===3||T===4)&&x.stateNode.containerInfo===s)return;x=x.return}for(;b!==null;){if(x=Yl(b),x===null)return;if(T=x.tag,T===5||T===6||T===26||T===27){i=o=x;continue e}b=b.parentNode}}i=i.return}af(function(){var R=o,Q=wu(l),$=[];e:{var L=Mf.get(e);if(L!==void 0){var q=Ja,de=e;switch(e){case"keypress":if(Za(l)===0)break e;case"keydown":case"keyup":q=yy;break;case"focusin":de="focus",q=Ru;break;case"focusout":de="blur",q=Ru;break;case"beforeblur":case"afterblur":q=Ru;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":q=sf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=ay;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=by;break;case wf:case zf:case Df:q=sy;break;case _f:q=ky;break;case"scroll":case"scrollend":q=ly;break;case"wheel":q=Ey;break;case"copy":case"cut":case"paste":q=oy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=of;break;case"toggle":case"beforetoggle":q=Ty}var Se=(t&4)!==0,Ie=!Se&&(e==="scroll"||e==="scrollend"),z=Se?L!==null?L+"Capture":null:L;Se=[];for(var C=R,O;C!==null;){var J=C;if(O=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||O===null||z===null||(J=Ri(C,z),J!=null&&Se.push(ma(C,J,O))),Ie)break;C=C.return}0<Se.length&&(L=new q(L,de,null,l,Q),$.push({event:L,listeners:Se}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",L&&l!==Cu&&(de=l.relatedTarget||l.fromElement)&&(Yl(de)||de[ql]))break e;if((q||L)&&(L=Q.window===Q?Q:(L=Q.ownerDocument)?L.defaultView||L.parentWindow:window,q?(de=l.relatedTarget||l.toElement,q=R,de=de?Yl(de):null,de!==null&&(Ie=h(de),Se=de.tag,de!==Ie||Se!==5&&Se!==27&&Se!==6)&&(de=null)):(q=null,de=R),q!==de)){if(Se=sf,J="onMouseLeave",z="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(Se=of,J="onPointerLeave",z="onPointerEnter",C="pointer"),Ie=q==null?L:Oi(q),O=de==null?L:Oi(de),L=new Se(J,C+"leave",q,l,Q),L.target=Ie,L.relatedTarget=O,J=null,Yl(Q)===R&&(Se=new Se(z,C+"enter",de,l,Q),Se.target=O,Se.relatedTarget=Ie,J=Se),Ie=J,q&&de)t:{for(Se=Nx,z=q,C=de,O=0,J=z;J;J=Se(J))O++;J=0;for(var xe=C;xe;xe=Se(xe))J++;for(;0<O-J;)z=Se(z),O--;for(;0<J-O;)C=Se(C),J--;for(;O--;){if(z===C||C!==null&&z===C.alternate){Se=z;break t}z=Se(z),C=Se(C)}Se=null}else Se=null;q!==null&&tm($,L,q,Se,!1),de!==null&&Ie!==null&&tm($,Ie,de,Se,!0)}}e:{if(L=R?Oi(R):window,q=L.nodeName&&L.nodeName.toLowerCase(),q==="select"||q==="input"&&L.type==="file")var Ve=xf;else if(gf(L))if(vf)Ve=Ly;else{Ve=Oy;var me=My}else q=L.nodeName,!q||q.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?R&&Au(R.elementType)&&(Ve=xf):Ve=Ry;if(Ve&&(Ve=Ve(e,R))){yf($,Ve,l,Q);break e}me&&me(e,L,R),e==="focusout"&&R&&L.type==="number"&&R.memoizedProps.value!=null&&Tu(L,"number",L.value)}switch(me=R?Oi(R):window,e){case"focusin":(gf(me)||me.contentEditable==="true")&&($l=me,Yu=R,Vi=null);break;case"focusout":Vi=Yu=$l=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,Af($,l,Q);break;case"selectionchange":if(Uy)break;case"keydown":case"keyup":Af($,l,Q)}var Ce;if(Bu)e:{switch(e){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else Jl?mf(e,l)&&(Be="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Be="onCompositionStart");Be&&(ff&&l.locale!=="ko"&&(Jl||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&Jl&&(Ce=rf()):(Zn=Q,_u="value"in Zn?Zn.value:Zn.textContent,Jl=!0)),me=Hr(R,Be),0<me.length&&(Be=new cf(Be,e,null,l,Q),$.push({event:Be,listeners:me}),Ce?Be.data=Ce:(Ce=pf(l),Ce!==null&&(Be.data=Ce)))),(Ce=Cy?wy(e,l):zy(e,l))&&(Be=Hr(R,"onBeforeInput"),0<Be.length&&(me=new cf("onBeforeInput","beforeinput",null,l,Q),$.push({event:me,listeners:Be}),me.data=Ce)),Sx($,e,R,l,Q)}Pd($,t)})}function ma(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Hr(e,t){for(var l=t+"Capture",i=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=Ri(e,l),s!=null&&i.unshift(ma(e,s,o)),s=Ri(e,t),s!=null&&i.push(ma(e,s,o))),e.tag===3)return i;e=e.return}return[]}function Nx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tm(e,t,l,i,s){for(var o=t._reactName,x=[];l!==null&&l!==i;){var b=l,T=b.alternate,R=b.stateNode;if(b=b.tag,T!==null&&T===i)break;b!==5&&b!==26&&b!==27||R===null||(T=R,s?(R=Ri(l,o),R!=null&&x.unshift(ma(l,R,T))):s||(R=Ri(l,o),R!=null&&x.push(ma(l,R,T)))),l=l.return}x.length!==0&&e.push({event:t,listeners:x})}var Tx=/\r\n?/g,Ax=/\u0000|\uFFFD/g;function nm(e){return(typeof e=="string"?e:""+e).replace(Tx,`
|
|
49
|
-
`).replace(Ax,"")}function lm(e,t){return t=nm(t),nm(e)===t}function $e(e,t,l,i,s,o){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Kl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Kl(e,""+i);break;case"className":Va(e,"class",i);break;case"tabIndex":Va(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Va(e,l,i);break;case"style":nf(e,i,o);break;case"data":if(t!=="object"){Va(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Xa(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="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 o=="function"&&(l==="formAction"?(t!=="input"&&$e(e,t,"name",s.name,s,null),$e(e,t,"formEncType",s.formEncType,s,null),$e(e,t,"formMethod",s.formMethod,s,null),$e(e,t,"formTarget",s.formTarget,s,null)):($e(e,t,"encType",s.encType,s,null),$e(e,t,"method",s.method,s,null),$e(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Xa(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=An);break;case"onScroll":i!=null&&Oe("scroll",e);break;case"onScrollEnd":i!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Xa(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Ga(e,"popover",i);break;case"xlinkActuate":Tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Tn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Tn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Tn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Tn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ga(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=ty.get(l)||l,Ga(e,l,i))}}function dc(e,t,l,i,s,o){switch(l){case"style":nf(e,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Kl(e,i):(typeof i=="number"||typeof i=="bigint")&&Kl(e,""+i);break;case"onScroll":i!=null&&Oe("scroll",e);break;case"onScrollEnd":i!=null&&Oe("scrollend",e);break;case"onClick":i!=null&&(e.onclick=An);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zo.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),t=l.slice(2,s?l.length-7:void 0),o=e[Mt]||null,o=o!=null?o[l]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof i=="function")){typeof o!="function"&&o!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,s);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):Ga(e,l,i)}}}function Nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var i=!1,s=!1,o;for(o in l)if(l.hasOwnProperty(o)){var x=l[o];if(x!=null)switch(o){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:$e(e,t,o,x,l,null)}}s&&$e(e,t,"srcSet",l.srcSet,l,null),i&&$e(e,t,"src",l.src,l,null);return;case"input":Oe("invalid",e);var b=o=x=s=null,T=null,R=null;for(i in l)if(l.hasOwnProperty(i)){var Q=l[i];if(Q!=null)switch(i){case"name":s=Q;break;case"type":x=Q;break;case"checked":T=Q;break;case"defaultChecked":R=Q;break;case"value":o=Q;break;case"defaultValue":b=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(u(137,t));break;default:$e(e,t,i,Q,l,null)}}Wo(e,o,b,T,R,x,s,!1);return;case"select":Oe("invalid",e),i=x=o=null;for(s in l)if(l.hasOwnProperty(s)&&(b=l[s],b!=null))switch(s){case"value":o=b;break;case"defaultValue":x=b;break;case"multiple":i=b;default:$e(e,t,s,b,l,null)}t=o,l=x,e.multiple=!!i,t!=null?Xl(e,!!i,t,!1):l!=null&&Xl(e,!!i,l,!0);return;case"textarea":Oe("invalid",e),o=s=i=null;for(x in l)if(l.hasOwnProperty(x)&&(b=l[x],b!=null))switch(x){case"value":i=b;break;case"defaultValue":s=b;break;case"children":o=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(u(91));break;default:$e(e,t,x,b,l,null)}ef(e,i,s,o);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(i=l[T],i!=null))switch(T){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:$e(e,t,T,i,l,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(i=0;i<da.length;i++)Oe(da[i],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("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(R in l)if(l.hasOwnProperty(R)&&(i=l[R],i!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:$e(e,t,R,i,l,null)}return;default:if(Au(t)){for(Q in l)l.hasOwnProperty(Q)&&(i=l[Q],i!==void 0&&dc(e,t,Q,i,l,void 0));return}}for(b in l)l.hasOwnProperty(b)&&(i=l[b],i!=null&&$e(e,t,b,i,l,null))}function Cx(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,x=null,b=null,T=null,R=null,Q=null;for(q in l){var $=l[q];if(l.hasOwnProperty(q)&&$!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":T=$;default:i.hasOwnProperty(q)||$e(e,t,q,null,i,$)}}for(var L in i){var q=i[L];if($=l[L],i.hasOwnProperty(L)&&(q!=null||$!=null))switch(L){case"type":o=q;break;case"name":s=q;break;case"checked":R=q;break;case"defaultChecked":Q=q;break;case"value":x=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:q!==$&&$e(e,t,L,q,i,$)}}Nu(e,x,b,T,R,Q,o,s);return;case"select":q=x=b=L=null;for(o in l)if(T=l[o],l.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":q=T;default:i.hasOwnProperty(o)||$e(e,t,o,null,i,T)}for(s in i)if(o=i[s],T=l[s],i.hasOwnProperty(s)&&(o!=null||T!=null))switch(s){case"value":L=o;break;case"defaultValue":b=o;break;case"multiple":x=o;default:o!==T&&$e(e,t,s,o,i,T)}t=b,l=x,i=q,L!=null?Xl(e,!!l,L,!1):!!i!=!!l&&(t!=null?Xl(e,!!l,t,!0):Xl(e,!!l,l?[]:"",!1));return;case"textarea":q=L=null;for(b in l)if(s=l[b],l.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:$e(e,t,b,null,i,s)}for(x in i)if(s=i[x],o=l[x],i.hasOwnProperty(x)&&(s!=null||o!=null))switch(x){case"value":L=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&$e(e,t,x,s,i,o)}Po(e,L,q);return;case"option":for(var de in l)if(L=l[de],l.hasOwnProperty(de)&&L!=null&&!i.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:$e(e,t,de,null,i,L)}for(T in i)if(L=i[T],q=l[T],i.hasOwnProperty(T)&&L!==q&&(L!=null||q!=null))switch(T){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:$e(e,t,T,L,i,q)}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 Se in l)L=l[Se],l.hasOwnProperty(Se)&&L!=null&&!i.hasOwnProperty(Se)&&$e(e,t,Se,null,i,L);for(R in i)if(L=i[R],q=l[R],i.hasOwnProperty(R)&&L!==q&&(L!=null||q!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:$e(e,t,R,L,i,q)}return;default:if(Au(t)){for(var Ie in l)L=l[Ie],l.hasOwnProperty(Ie)&&L!==void 0&&!i.hasOwnProperty(Ie)&&dc(e,t,Ie,void 0,i,L);for(Q in i)L=i[Q],q=l[Q],!i.hasOwnProperty(Q)||L===q||L===void 0&&q===void 0||dc(e,t,Q,L,i,q);return}}for(var z in l)L=l[z],l.hasOwnProperty(z)&&L!=null&&!i.hasOwnProperty(z)&&$e(e,t,z,null,i,L);for($ in i)L=i[$],q=l[$],!i.hasOwnProperty($)||L===q||L==null&&q==null||$e(e,t,$,L,i,q)}function im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var s=l[i],o=s.transferSize,x=s.initiatorType,b=s.duration;if(o&&b&&im(x)){for(x=0,b=s.responseEnd,i+=1;i<l.length;i++){var T=l[i],R=T.startTime;if(R>b)break;var Q=T.transferSize,$=T.initiatorType;Q&&im($)&&(T=T.responseEnd,x+=Q*(T<b?1:(b-R)/(T-R)))}if(--i,t+=8*(o+x)/(s.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 mc=null,pc=null;function qr(e){return e.nodeType===9?e:e.ownerDocument}function am(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 rm(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 gc(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 yc=null;function zx(){var e=window.event;return e&&e.type==="popstate"?e===yc?!1:(yc=e,!0):(yc=null,!1)}var um=typeof setTimeout=="function"?setTimeout:void 0,Dx=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,_x=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(Mx)}:um;function Mx(e){setTimeout(function(){throw e})}function ol(e){return e==="head"}function cm(e,t){var l=t,i=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(s),ji(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")pa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,pa(l);for(var o=l.firstChild;o;){var x=o.nextSibling,b=o.nodeName;o[Mi]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&o.rel.toLowerCase()==="stylesheet"||l.removeChild(o),o=x}}else l==="body"&&pa(e.ownerDocument.body);l=s}while(l);ji(t)}function om(e,t){var l=e;e=0;do{var i=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||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function xc(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":xc(l),ju(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ox(e,t,l,i){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Mi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=sn(e.nextSibling),e===null)break}return null}function Rx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=sn(e.nextSibling),e===null))return null;return e}function fm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=sn(e.nextSibling),e===null))return null;return e}function vc(e){return e.data==="$?"||e.data==="$~"}function bc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Lx(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function sn(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 Sc=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return sn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function dm(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 mm(e,t,l){switch(t=qr(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function pa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ju(e)}var cn=new Map,pm=new Set;function Yr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vn=I.d;I.d={f:Bx,r:Ux,D:Hx,C:qx,L:Yx,m:Gx,X:Qx,S:Vx,M:Xx};function Bx(){var e=Vn.f(),t=_r();return e||t}function Ux(e){var t=Gl(e);t!==null&&t.tag===5&&t.type==="form"?_h(t):Vn.r(e)}var bi=typeof document>"u"?null:document;function gm(e,t,l){var i=bi;if(i&&typeof t=="string"&&t){var s=en(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),pm.has(s)||(pm.add(s),e={rel:e,crossOrigin:l,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),Nt(t,"link",e),xt(t),i.head.appendChild(t)))}}function Hx(e){Vn.D(e),gm("dns-prefetch",e,null)}function qx(e,t){Vn.C(e,t),gm("preconnect",e,t)}function Yx(e,t,l){Vn.L(e,t,l);var i=bi;if(i&&e&&t){var s='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+en(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+en(l.imageSizes)+'"]')):s+='[href="'+en(e)+'"]';var o=s;switch(t){case"style":o=Si(e);break;case"script":o=ki(e)}cn.has(o)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),cn.set(o,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(ga(o))||t==="script"&&i.querySelector(ya(o))||(t=i.createElement("link"),Nt(t,"link",e),xt(t),i.head.appendChild(t)))}}function Gx(e,t){Vn.m(e,t);var l=bi;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+en(i)+'"][href="'+en(e)+'"]',o=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ki(e)}if(!cn.has(o)&&(e=y({rel:"modulepreload",href:e},t),cn.set(o,e),l.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ya(o)))return}i=l.createElement("link"),Nt(i,"link",e),xt(i),l.head.appendChild(i)}}}function Vx(e,t,l){Vn.S(e,t,l);var i=bi;if(i&&e){var s=Vl(i).hoistableStyles,o=Si(e);t=t||"default";var x=s.get(o);if(!x){var b={loading:0,preload:null};if(x=i.querySelector(ga(o)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=cn.get(o))&&kc(e,l);var T=x=i.createElement("link");xt(T),Nt(T,"link",e),T._p=new Promise(function(R,Q){T.onload=R,T.onerror=Q}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Gr(x,t,i)}x={type:"stylesheet",instance:x,count:1,state:b},s.set(o,x)}}}function Qx(e,t){Vn.X(e,t);var l=bi;if(l&&e){var i=Vl(l).hoistableScripts,s=ki(e),o=i.get(s);o||(o=l.querySelector(ya(s)),o||(e=y({src:e,async:!0},t),(t=cn.get(s))&&jc(e,t),o=l.createElement("script"),xt(o),Nt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function Xx(e,t){Vn.M(e,t);var l=bi;if(l&&e){var i=Vl(l).hoistableScripts,s=ki(e),o=i.get(s);o||(o=l.querySelector(ya(s)),o||(e=y({src:e,async:!0,type:"module"},t),(t=cn.get(s))&&jc(e,t),o=l.createElement("script"),xt(o),Nt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function ym(e,t,l,i){var s=(s=oe.current)?Yr(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Si(l.href),l=Vl(s).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Si(l.href);var o=Vl(s).hoistableStyles,x=o.get(e);if(x||(s=s.ownerDocument||s,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,x),(o=s.querySelector(ga(e)))&&!o._p&&(x.instance=o,x.state.loading=5),cn.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},cn.set(e,l),o||Kx(s,e,l,x.state))),t&&i===null)throw Error(u(528,""));return x}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ki(l),l=Vl(s).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Si(e){return'href="'+en(e)+'"'}function ga(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Kx(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Nt(t,"link",l),xt(t),e.head.appendChild(t))}function ki(e){return'[src="'+en(e)+'"]'}function ya(e){return"script[async]"+e}function vm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+en(l.href)+'"]');if(i)return t.instance=i,xt(i),i;var s=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),xt(i),Nt(i,"style",s),Gr(i,l.precedence,e),t.instance=i;case"stylesheet":s=Si(l.href);var o=e.querySelector(ga(s));if(o)return t.state.loading|=4,t.instance=o,xt(o),o;i=xm(l),(s=cn.get(s))&&kc(i,s),o=(e.ownerDocument||e).createElement("link"),xt(o);var x=o;return x._p=new Promise(function(b,T){x.onload=b,x.onerror=T}),Nt(o,"link",i),t.state.loading|=4,Gr(o,l.precedence,e),t.instance=o;case"script":return o=ki(l.src),(s=e.querySelector(ya(o)))?(t.instance=s,xt(s),s):(i=l,(s=cn.get(o))&&(i=y({},l),jc(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),xt(s),Nt(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Gr(i,l.precedence,e));return t.instance}function Gr(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,o=s,x=0;x<i.length;x++){var b=i[x];if(b.dataset.precedence===t)o=b;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vr=null;function bm(e,t,l){if(Vr===null){var i=new Map,s=Vr=new Map;s.set(l,i)}else s=Vr,i=s.get(l),i||(i=new Map,s.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var o=l[s];if(!(o[Mi]||o[St]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var x=o.getAttribute(t)||"";x=e+x;var b=i.get(x);b?b.push(o):i.set(x,[o])}}return i}function Sm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Zx(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 km(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Fx(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=Si(i.href),o=t.querySelector(ga(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=o,xt(o);return}o=t.ownerDocument||t,i=xm(i),(s=cn.get(s))&&kc(i,s),o=o.createElement("link"),xt(o);var x=o;x._p=new Promise(function(b,T){x.onload=b,x.onerror=T}),Nt(o,"link",i),l.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Qr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ec=0;function Jx(e,t){return e.stylesheets&&e.count===0&&Kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Ec===0&&(Ec=62500*wx());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Ec?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function Qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xr=null;function Kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xr=new Map,t.forEach($x,e),Xr=null,Qr.call(e))}function $x(e,t){if(!(t.state.loading&4)){var l=Xr.get(e);if(l)var i=l.get(null);else{l=new Map,Xr.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var x=s[o];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),i=x)}i&&l.set(null,i)}s=t.instance,x=s.getAttribute("data-precedence"),o=l.get(x)||i,o===i&&l.set(null,s),l.set(x,s),this.count++,i=Qr.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var xa={$$typeof:V,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Ix(e,t,l,i,s,o,x,b,T){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=vu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vu(0),this.hiddenUpdates=vu(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function jm(e,t,l,i,s,o,x,b,T,R,Q,$){return e=new Ix(e,t,l,x,T,R,Q,$,b),t=1,o===!0&&(t|=24),o=Xt(3,null,null,t),e.current=o,o.stateNode=e,t=ls(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:l,cache:t},us(o),e}function Em(e){return e?(e=Pl,e):Pl}function Nm(e,t,l,i,s,o){s=Em(s),i.context===null?i.context=s:i.pendingContext=s,i=Pn(t),i.payload={element:l},o=o===void 0?null:o,o!==null&&(i.callback=o),l=el(e,i,t),l!==null&&(Ht(l,e,t),$i(l,e,t))}function Tm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Nc(e,t){Tm(e,t),(e=e.alternate)&&Tm(e,t)}function Am(e){if(e.tag===13||e.tag===31){var t=jl(e,67108864);t!==null&&Ht(t,e,67108864),Nc(e,67108864)}}function Cm(e){if(e.tag===13||e.tag===31){var t=$t();t=bu(t);var l=jl(e,t);l!==null&&Ht(l,e,t),Nc(e,t)}}var Zr=!0;function Wx(e,t,l,i){var s=D.T;D.T=null;var o=I.p;try{I.p=2,Tc(e,t,l,i)}finally{I.p=o,D.T=s}}function Px(e,t,l,i){var s=D.T;D.T=null;var o=I.p;try{I.p=8,Tc(e,t,l,i)}finally{I.p=o,D.T=s}}function Tc(e,t,l,i){if(Zr){var s=Ac(i);if(s===null)hc(e,t,i,Fr,l),zm(e,i);else if(tv(s,e,t,l,i))i.stopPropagation();else if(zm(e,i),t&4&&-1<ev.indexOf(e)){for(;s!==null;){var o=Gl(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var x=xl(o.pendingLanes);if(x!==0){var b=o;for(b.pendingLanes|=2,b.entangledLanes|=2;x;){var T=1<<31-We(x);b.entanglements[1]|=T,x&=~T}Sn(o),(Xe&6)===0&&(zr=Ne()+500,ha(0))}}break;case 31:case 13:b=jl(o,2),b!==null&&Ht(b,o,2),_r(),Nc(o,2)}if(o=Ac(i),o===null&&hc(e,t,i,Fr,l),o===s)break;s=o}s!==null&&i.stopPropagation()}else hc(e,t,i,null,l)}}function Ac(e){return e=wu(e),Cc(e)}var Fr=null;function Cc(e){if(Fr=null,e=Yl(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=m(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 Fr=e,null}function wm(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(pt()){case G:return 2;case ne:return 8;case je:case _e:return 32;case Ke:return 268435456;default:return 32}default:return 32}}var wc=!1,fl=null,hl=null,dl=null,va=new Map,ba=new Map,ml=[],ev="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 zm(e,t){switch(e){case"focusin":case"focusout":fl=null;break;case"dragenter":case"dragleave":hl=null;break;case"mouseover":case"mouseout":dl=null;break;case"pointerover":case"pointerout":va.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ba.delete(t.pointerId)}}function Sa(e,t,l,i,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Gl(t),t!==null&&Am(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function tv(e,t,l,i,s){switch(t){case"focusin":return fl=Sa(fl,e,t,l,i,s),!0;case"dragenter":return hl=Sa(hl,e,t,l,i,s),!0;case"mouseover":return dl=Sa(dl,e,t,l,i,s),!0;case"pointerover":var o=s.pointerId;return va.set(o,Sa(va.get(o)||null,e,t,l,i,s)),!0;case"gotpointercapture":return o=s.pointerId,ba.set(o,Sa(ba.get(o)||null,e,t,l,i,s)),!0}return!1}function Dm(e){var t=Yl(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,Qo(e.priority,function(){Cm(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Qo(e.priority,function(){Cm(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 Jr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ac(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Cu=i,l.target.dispatchEvent(i),Cu=null}else return t=Gl(l),t!==null&&Am(t),e.blockedOn=l,!1;t.shift()}return!0}function _m(e,t,l){Jr(e)&&l.delete(t)}function nv(){wc=!1,fl!==null&&Jr(fl)&&(fl=null),hl!==null&&Jr(hl)&&(hl=null),dl!==null&&Jr(dl)&&(dl=null),va.forEach(_m),ba.forEach(_m)}function $r(e,t){e.blockedOn===t&&(e.blockedOn=null,wc||(wc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,nv)))}var Ir=null;function Mm(e){Ir!==e&&(Ir=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ir===e&&(Ir=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(Cc(i||l)===null)continue;break}var o=Gl(l);o!==null&&(e.splice(t,3),t-=3,As(o,{pending:!0,data:s,method:l.method,action:i},i,s))}}))}function ji(e){function t(T){return $r(T,e)}fl!==null&&$r(fl,e),hl!==null&&$r(hl,e),dl!==null&&$r(dl,e),va.forEach(t),ba.forEach(t);for(var l=0;l<ml.length;l++){var i=ml[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ml.length&&(l=ml[0],l.blockedOn===null);)Dm(l),l.blockedOn===null&&ml.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var s=l[i],o=l[i+1],x=s[Mt]||null;if(typeof o=="function")x||Mm(l);else if(x){var b=null;if(o&&o.hasAttribute("formAction")){if(s=o,x=o[Mt]||null)b=x.formAction;else if(Cc(s)!==null)continue}else b=x.action;typeof b=="function"?l[i+1]=b:(l.splice(i,3),i-=3),Mm(l)}}}function Om(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(x){return s=x})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function zc(e){this._internalRoot=e}Wr.prototype.render=zc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=$t();Nm(l,i,e,t,null,null)},Wr.prototype.unmount=zc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nm(e.current,2,null,e,null,null),_r(),t[ql]=null}};function Wr(e){this._internalRoot=e}Wr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vo();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ml.length&&t!==0&&t<ml[l].priority;l++);ml.splice(l,0,e),l===0&&Dm(e)}};var Rm=r.version;if(Rm!=="19.2.5")throw Error(u(527,Rm,"19.2.5"));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var lv={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pr.isDisabled&&Pr.supportsFiber)try{wt=Pr.inject(lv),gt=Pr}catch{}}return ja.createRoot=function(e,t){if(!c(e))throw Error(u(299));var l=!1,i="",s=Gh,o=Vh,x=Qh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=jm(e,1,!1,null,null,l,i,null,s,o,x,Om),e[ql]=t.current,fc(e),new zc(t)},ja.hydrateRoot=function(e,t,l){if(!c(e))throw Error(u(299));var i=!1,s="",o=Gh,x=Vh,b=Qh,T=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(o=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(b=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=jm(e,1,!0,t,l??null,i,s,T,o,x,b,Om),t.context=Em(null),l=t.current,i=$t(),i=bu(i),s=Pn(i),s.callback=null,el(l,s,i),l=i,t.current.lanes=l,_i(t,l),Sn(t),e[ql]=t.current,fc(e),new Wr(t)},ja.version="19.2.5",ja}var Xm;function mv(){if(Xm)return Mc.exports;Xm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Mc.exports=dv(),Mc.exports}var pv=mv();const gv=du(pv),Bc={none:"",gemini:"gemini-2.5-flash",openai:"gpt-4o-mini",anthropic:"claude-haiku-3-5","claude-cli":"sonnet"},yv={none:[],gemini:["gemini-2.5-flash","gemini-2.5-pro","gemini-2.0-flash"],openai:["gpt-4o-mini","gpt-4o","gpt-4.1","o1"],anthropic:["claude-haiku-3-5","claude-sonnet-4","claude-sonnet-4-5","claude-opus-4"],"claude-cli":["sonnet","opus","haiku"]},Km={none:"선택하지 않음",anthropic:"Anthropic (Claude API)",openai:"OpenAI (GPT)",gemini:"Google (Gemini)","claude-cli":"Claude Code CLI (subprocess)"},Ea={neoul:"너울"},xv=[{id:"subscriptions",label:"구독",meta:"트레이더 추가/해제",icon:"👥"},{id:"llm",label:"AI 모델",meta:"Claude · Gemini · GPT",icon:"🤖"},{id:"broker",label:"증권사",meta:"키움 · KIS",icon:"🏦"},{id:"allocations",label:"자본 배정",meta:"트레이더별 한도",icon:"💰"},{id:"device",label:"디바이스",meta:"성과 동기화 토큰",icon:"📱"},{id:"safety",label:"안전망",meta:"긴급 정지 · halted",icon:"🛡"}];function vv({onSaved:n,onSafetyChange:r}){var X;const[a,u]=re.useState("subscriptions"),[c,h]=re.useState(null),[f,m]=re.useState(null),[g,p]=re.useState({}),[v,y]=re.useState({halted:!1}),[j,S]=re.useState(null);async function A(w=!1){try{const[Z,fe,ke,qe]=await Promise.all([fetch("/api/config").then(ze=>ze.json()),fetch(`/api/subscriptions${w?"?fresh=1":""}`).then(ze=>ze.json()),fetch("/api/allocations").then(ze=>ze.json()),fetch("/api/safety").then(ze=>ze.json())]);h(Z.config),m(fe),p(ke.allocations??{}),y(qe)}catch(Z){S({kind:"err",msg:`로드 실패: ${Z}`})}}re.useEffect(()=>{A(!0)},[]),re.useEffect(()=>{if(!j)return;const w=setTimeout(()=>S(null),5e3);return()=>clearTimeout(w)},[j]);const[H,Y]=re.useState("none"),[_,F]=re.useState(""),[V,se]=re.useState(""),[ce,B]=re.useState(!1);re.useEffect(()=>{var w;c&&(Y(c.llm.provider),F(c.llm.provider==="claude-cli"?((w=c.llm.claudeCli)==null?void 0:w.model)??"sonnet":c.llm.model??Bc[c.llm.provider]??""),B(!1))},[c]);async function ee(){if(!c)return;const w={llm:H==="claude-cli"?{provider:H,claudeCli:{model:_}}:{provider:H,model:_||Bc[H],apiKey:V||void 0}};try{await fetch("/api/config",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(w)}),await A(),se(""),S({kind:"ok",msg:"AI 모델 설정을 저장했어요."}),n==null||n()}catch(Z){S({kind:"err",msg:`저장 실패: ${Z}`})}}const[ue,ye]=re.useState("none"),[M,le]=re.useState(""),[ie,ge]=re.useState(""),[ae,P]=re.useState(!0),[D,I]=re.useState(!1);re.useEffect(()=>{c&&(ye(c.broker.kind),P(c.broker.isDemo),I(!1))},[c]);async function K(){if(!c)return;const w={broker:{kind:ue,appKey:M||void 0,appSecret:ie||void 0,isDemo:ae}};try{await fetch("/api/config",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(w)}),await A(),le(""),ge(""),S({kind:"ok",msg:"증권사 설정을 저장했어요."})}catch(Z){S({kind:"err",msg:`저장 실패: ${Z}`})}}const[ve,E]=re.useState(""),[N,U]=re.useState(!1);async function k(){if(!c)return;const w={auth:{deviceToken:ve||void 0}};try{await fetch("/api/config",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(w)}),await A(!0),E(""),U(!1),S({kind:"ok",msg:"디바이스 토큰을 저장했어요."})}catch(Z){S({kind:"err",msg:`저장 실패: ${Z}`})}}const[W,he]=re.useState({});async function oe(w){const Z=Number(W[w]??0);if(!Number.isFinite(Z)||Z<0){S({kind:"err",msg:"0 이상 정수만 입력할 수 있어요."});return}try{await fetch("/api/allocations",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({slug:w,krw:Z})}),await A(),he(fe=>({...fe,[w]:""})),S({kind:"ok",msg:`${Ea[w]??w} 자본을 ${Z.toLocaleString()}원으로 설정했어요.`})}catch(fe){S({kind:"err",msg:`저장 실패: ${fe}`})}}async function pe(w){if(window.confirm(`${Ea[w]??w} 자본 배정을 해제하시겠어요?`))try{await fetch(`/api/allocations/${w}`,{method:"DELETE"}),await A(),S({kind:"ok",msg:`${Ea[w]??w} 자본 배정을 해제했어요.`})}catch(Z){S({kind:"err",msg:`삭제 실패: ${Z}`})}}async function Ae(){const w=!v.halted;if(!(w&&!window.confirm("긴급 정지를 활성화하시겠어요? 모든 자동 거래가 즉시 차단됩니다.")))try{await fetch(w?"/api/safety/halt":"/api/safety/resume",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({reason:w?"사용자 수동 (Setup)":""})}),y({halted:w}),r==null||r(w),S({kind:"ok",msg:w?"긴급 정지를 활성화했어요.":"정지를 해제했어요."})}catch(Z){S({kind:"err",msg:`safety toggle 실패: ${Z}`})}}return c?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"setup-grid",children:[d.jsx("aside",{className:"setup-nav glass",children:xv.map(w=>d.jsxs("button",{className:a===w.id?"is-active":"",onClick:()=>{u(w.id),S(null)},children:[d.jsx("span",{className:"nav-icon","aria-hidden":!0,children:w.icon}),d.jsxs("span",{className:"nav-text",children:[d.jsx("span",{children:w.label}),d.jsx("span",{className:"nav-meta",children:w.meta})]})]},w.id))}),d.jsxs("div",{className:"setup-section glass-lg",children:[j&&d.jsxs("div",{className:`banner ${j.kind==="ok"?"success":"danger"}`,children:[j.kind==="ok"?"✓ ":"⚠ ",j.msg]}),a==="subscriptions"&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"setup-form",children:[d.jsx("h2",{children:"구독한 트레이더"}),d.jsxs("p",{className:"lead",children:["mulsok-traders.vercel.app 에서 트레이더를 구독하면 이곳에 표시됩니다.",(f==null?void 0:f.userEmail)&&d.jsxs(d.Fragment,{children:[" 현재 로그인: ",d.jsx("strong",{children:f.userEmail})]})]}),!(f!=null&&f.authenticated)&&d.jsx("div",{className:"banner warn",style:{position:"static",marginBottom:"var(--sp-5)"},children:"⚠ 디바이스 토큰이 없거나 인증되지 않았어요. 「디바이스」 탭에서 토큰을 입력해주세요."}),(f==null?void 0:f.error)&&d.jsx("div",{className:"banner danger",style:{position:"static",marginBottom:"var(--sp-5)"},children:f.error}),!(f!=null&&f.subscriptions)||f.subscriptions.length===0?d.jsx("div",{className:"empty",children:"구독한 트레이더가 없어요."}):d.jsx("div",{className:"sub-list",children:f.subscriptions.map(w=>{var qe;const Z=(qe=f.details)==null?void 0:qe.find(ze=>ze.persona_slug===w),fe=Ea[w]??w,ke=(Z==null?void 0:Z.status)==="live";return d.jsxs("div",{className:"sub-row",children:[d.jsx("div",{className:"avatar",children:fe.slice(0,1)}),d.jsxs("div",{className:"info",children:[d.jsxs("div",{className:"name",children:[(Z==null?void 0:Z.persona_name)??fe,(Z==null?void 0:Z.prompt_version)&&d.jsxs("span",{className:"ver",children:["v",Z.prompt_version]})]}),d.jsxs("div",{className:"meta",children:["slug: ",w]})]}),d.jsx("span",{className:`status ${ke?"":"idle"}`,children:(Z==null?void 0:Z.status)??"—"})]},w)})})]}),d.jsxs("div",{className:"save-bar",children:[d.jsxs("span",{style:{fontSize:"var(--fs-xs)",color:"var(--ink-mute)"},children:[((X=f==null?void 0:f.subscriptions)==null?void 0:X.length)??0,"명 구독 중"]}),d.jsx("span",{className:"spacer"}),d.jsx("button",{className:"btn ghost",onClick:()=>void A(!0),children:"↻ 서버에서 다시 가져오기"})]})]}),a==="llm"&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"setup-form",children:[d.jsx("h2",{children:"AI 모델"}),d.jsx("p",{className:"lead",children:"트레이더가 의사결정에 사용할 LLM. 답변 길이 제한 없음 (각 모델의 최대 출력 토큰까지)."}),d.jsxs("div",{className:"field-group",children:[d.jsxs("div",{className:"group-head",children:[d.jsx("span",{className:"group-title",children:"Provider"}),c.llm.provider!=="none"&&c.llm.provider!=="claude-cli"&&c.llm.apiKey&&d.jsxs("span",{className:"group-meta",children:["키 저장됨 · ",c.llm.apiKey]})]}),d.jsxs("div",{className:"field",children:[d.jsx("label",{className:"field-label",children:"제공자"}),d.jsx("select",{value:H,onChange:w=>{const Z=w.target.value;Y(Z),F(Bc[Z]??""),B(!0)},children:Object.keys(Km).map(w=>d.jsx("option",{value:w,children:Km[w]},w))})]}),d.jsxs("div",{className:"field",children:[d.jsx("label",{className:"field-label",children:"모델"}),d.jsx("select",{value:_,onChange:w=>{F(w.target.value),B(!0)},disabled:H==="none",children:H==="none"?d.jsx("option",{children:"제공자를 먼저 선택해주세요"}):yv[H].map(w=>d.jsx("option",{value:w,children:w},w))}),d.jsx("span",{className:"field-hint",children:H==="claude-cli"?"subprocess 로 실행됩니다. 30분 timeout · CLAUDE_CLI_TIMEOUT_SEC env 로 조정 가능.":"선택한 모델의 최대 출력 토큰까지 응답합니다. 잘리면 자동 감지되어 일지에 기록됩니다."})]}),H!=="none"&&H!=="claude-cli"&&d.jsxs("div",{className:"field",style:{marginBottom:0},children:[d.jsx("label",{className:"field-label",children:"API Key"}),d.jsx("input",{type:"password",placeholder:c.llm.apiKey?`저장됨 (${c.llm.apiKey})`:"sk-...",value:V,onChange:w=>{se(w.target.value),B(!0)}}),d.jsx("span",{className:"field-hint",children:"키는 ~/.mulsok-traders/config.json 에 0600 권한으로만 저장됩니다 (서버 송신 X)."})]})]})]}),d.jsxs("div",{className:"save-bar",children:[ce&&d.jsx("span",{style:{fontSize:"var(--fs-xs)",color:"var(--warn)"},children:"● 변경 사항이 있어요"}),d.jsx("span",{className:"spacer"}),d.jsx("button",{className:"btn primary",onClick:()=>void ee(),disabled:!ce,children:"저장"})]})]}),a==="broker"&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"setup-form",children:[d.jsx("h2",{children:"증권사 연동"}),d.jsx("p",{className:"lead",children:"자동 거래용 자격증명. 모든 키는 PC 에만 저장되며 서버로 송신되지 않습니다."}),d.jsxs("div",{className:"field-group",children:[d.jsx("div",{className:"group-head",children:d.jsx("span",{className:"group-title",children:"증권사 선택"})}),d.jsxs("div",{className:"field",style:{marginBottom:0},children:[d.jsx("label",{className:"field-label",children:"제공자"}),d.jsxs("select",{value:ue,onChange:w=>{ye(w.target.value),I(!0)},children:[d.jsx("option",{value:"none",children:"선택하지 않음"}),d.jsx("option",{value:"kiwoom",children:"키움증권 (REST + WS)"}),d.jsx("option",{value:"kis",disabled:!0,children:"한국투자증권 KIS (예정)"})]})]})]}),ue==="kiwoom"&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"field-group",children:[d.jsxs("div",{className:"group-head",children:[d.jsx("span",{className:"group-title",children:"키움 자격증명"}),(c.broker.appKey||c.broker.appSecret)&&d.jsx("span",{className:"group-meta",children:"저장됨"})]}),d.jsxs("div",{className:"field-row",children:[d.jsxs("div",{className:"field",style:{marginBottom:0},children:[d.jsx("label",{className:"field-label",children:"AppKey"}),d.jsx("input",{type:"password",placeholder:c.broker.appKey?`저장됨 (${c.broker.appKey})`:"AppKey",value:M,onChange:w=>{le(w.target.value),I(!0)}})]}),d.jsxs("div",{className:"field",style:{marginBottom:0},children:[d.jsx("label",{className:"field-label",children:"SecretKey"}),d.jsx("input",{type:"password",placeholder:c.broker.appSecret?`저장됨 (${c.broker.appSecret})`:"SecretKey",value:ie,onChange:w=>{ge(w.target.value),I(!0)}})]})]})]}),d.jsxs("div",{className:"toggle-row",children:[d.jsxs("div",{children:[d.jsx("div",{className:"label",children:"모의투자 모드"}),d.jsx("div",{className:"label-meta",children:ae?"✅ ON · 가짜 자금 안전 거래":"🔴 OFF · 실전 · 실제 주문 발생"})]}),d.jsxs("label",{className:"toggle",children:[d.jsx("input",{type:"checkbox",checked:ae,onChange:w=>{P(w.target.checked),I(!0)}}),d.jsx("span",{className:"slider"})]})]})]})]}),d.jsxs("div",{className:"save-bar",children:[D&&d.jsx("span",{style:{fontSize:"var(--fs-xs)",color:"var(--warn)"},children:"● 변경 사항이 있어요"}),d.jsx("span",{className:"spacer"}),d.jsx("button",{className:"btn primary",onClick:()=>void K(),disabled:!D,children:"저장"})]})]}),a==="allocations"&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"setup-form",style:{maxWidth:760},children:[d.jsx("h2",{children:"자본 배정"}),d.jsxs("p",{className:"lead",children:["트레이더별 운용 한도 (KRW). ",d.jsx("strong",{children:"미설정 시 키움 계좌의 예수금 전체 (MAX)"}),"가 자동으로 한도가 됩니다. 자기 보유 평가액 + 신규 매수액이 한도를 넘으면 자동 차단 (capital_exceeded). 다른 트레이더의 보유는 영향 없음 — 트레이더별 격리."]}),!(f!=null&&f.subscriptions)||f.subscriptions.length===0?d.jsx("div",{className:"empty",children:"먼저 트레이더를 구독해주세요."}):d.jsx("div",{className:"alloc-list",children:f.subscriptions.map(w=>{const Z=g[w]??0;return d.jsxs("div",{className:"alloc-row",children:[d.jsx("span",{className:"slug",children:Ea[w]??w}),d.jsxs("span",{className:"name",children:["현재: ",d.jsx("strong",{className:"num",children:Z>0?`${Z.toLocaleString()}원`:"자동 (예수금 전체)"})]}),d.jsx("input",{type:"number",placeholder:"새 한도 (원)",value:W[w]??"",onChange:fe=>he(ke=>({...ke,[w]:fe.target.value}))}),d.jsxs("div",{className:"actions",children:[d.jsx("button",{className:"btn primary sm",onClick:()=>void oe(w),disabled:!W[w],children:"저장"}),Z>0&&d.jsx("button",{className:"btn danger sm",onClick:()=>void pe(w),children:"해제"})]})]},w)})})]}),d.jsx("div",{className:"save-bar",children:d.jsx("span",{style:{fontSize:"var(--fs-xs)",color:"var(--ink-mute)"},children:"각 트레이더별로 개별 저장하세요"})})]}),a==="device"&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"setup-form",children:[d.jsx("h2",{children:"디바이스 토큰"}),d.jsx("p",{className:"lead",children:"mulsok-traders.vercel.app 에서 발급받은 토큰. 구독한 트레이더 목록과 성과를 동기화합니다."}),d.jsxs("div",{className:"field-group",children:[d.jsxs("div",{className:"group-head",children:[d.jsx("span",{className:"group-title",children:"동기화 토큰"}),c.auth.deviceToken&&d.jsxs("span",{className:"group-meta",children:["저장됨 · ",c.auth.deviceToken]})]}),d.jsxs("div",{className:"field",style:{marginBottom:0},children:[d.jsx("label",{className:"field-label",children:"Device Token"}),d.jsx("input",{type:"password",placeholder:c.auth.deviceToken?`저장됨 (${c.auth.deviceToken})`:"mtd_...",value:ve,onChange:w=>{E(w.target.value),U(!0)}}),d.jsx("span",{className:"field-hint",children:"토큰은 ~/.mulsok-traders/config.json 에 저장됩니다 · mtd_ 접두로 시작."})]})]})]}),d.jsxs("div",{className:"save-bar",children:[N&&d.jsx("span",{style:{fontSize:"var(--fs-xs)",color:"var(--warn)"},children:"● 변경 사항이 있어요"}),d.jsx("span",{className:"spacer"}),d.jsx("button",{className:"btn primary",onClick:()=>void k(),disabled:!N,children:"저장"})]})]}),a==="safety"&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"setup-form",children:[d.jsx("h2",{children:"안전망 · 긴급 정지"}),d.jsx("p",{className:"lead",children:"긴급 정지를 켜면 LLM 호출 · 주문 실행 · 감시자 발화가 모두 즉시 차단됩니다. 해제하기 전까지 자동 거래가 일어나지 않습니다."}),d.jsx("div",{className:"banner",style:{position:"static",background:v.halted?"var(--loss-soft)":"var(--gain-soft)",color:v.halted?"var(--loss)":"var(--gain)",marginBottom:"var(--sp-5)"},children:v.halted?"🛑 현재 긴급 정지 중 · 자동 거래 모두 차단":"✅ 정상 가동 중 · 자율 사이클 동작"}),d.jsxs("div",{className:"toggle-row",children:[d.jsxs("div",{children:[d.jsx("div",{className:"label",children:v.halted?"정지 해제하기":"지금 긴급 정지하기"}),d.jsx("div",{className:"label-meta",children:v.halted?"토글을 해제하면 자동 거래가 다시 시작됩니다.":"한 번 누르면 모든 자동 거래가 즉시 멈춥니다."})]}),d.jsxs("label",{className:`toggle ${v.halted?"danger":""}`,children:[d.jsx("input",{type:"checkbox",checked:v.halted,onChange:()=>void Ae()}),d.jsx("span",{className:"slider"})]})]}),d.jsxs("div",{className:"field-hint",style:{marginTop:"var(--sp-5)",padding:"var(--sp-4) var(--sp-5)",background:"var(--glass)",borderRadius:"var(--r-lg)"},children:[d.jsx("strong",{style:{color:"var(--ink-700)"},children:"SPEC-26 안전 코드 9종"})," 가운데 사용자가 직접 토글하는 항목입니다 · halted · market_closed · weekend · invalid_symbol · invalid_quantity · invalid_price · duplicate_order · no_allocation · capital_exceeded · broker_not_configured 의 「halted」 직접 제어."]})]}),d.jsx("div",{className:"save-bar",children:d.jsx("span",{style:{fontSize:"var(--fs-xs)",color:"var(--ink-mute)"},children:"토글 즉시 적용됩니다 (저장 버튼 없음)"})})]})]})]}),d.jsx("div",{className:"disclaimer",children:"본 소프트웨어는 트레이딩 로직 라이선스 + 소프트웨어 공급 모델로 제공됩니다. 거래 의사결정과 실행은 사용자의 책임이며, 본 소프트웨어는 투자 자문 · 투자 일임 · 수익 보장을 제공하지 않습니다. 원금 손실의 위험이 있습니다."})]}):d.jsx("div",{className:"empty",children:"로드 중..."})}const Uc={neoul:"너울"};function bv({onGoToSetup:n,onGoToPersonas:r,onGoToJournal:a,onSafetyChange:u}){var W,he,oe,pe,Ae;const[c,h]=re.useState(null),[f,m]=re.useState(null),[g,p]=re.useState([]),[v,y]=re.useState({}),[j,S]=re.useState(null),[A,H]=re.useState({halted:!1}),[Y,_]=re.useState(null),[F,V]=re.useState(null),[se,ce]=re.useState(!1),[B,ee]=re.useState(!1),[ue,ye]=re.useState(null);async function M(){ce(!0),ye(null);try{const[X,w,Z,fe,ke,qe]=await Promise.all([fetch("/api/health").then(De=>De.json()),fetch("/api/setup/wizard").then(De=>De.json()),fetch("/api/subscriptions").then(De=>De.json()),fetch("/api/watchers").then(De=>De.json()),fetch("/api/safety").then(De=>De.json()),fetch("/api/account/status").then(De=>De.json()).catch(()=>null)]);h(X),m(w);const ze=Z.subscriptions??[];if(p(ze),S(fe),H(ke),V(qe),ze.length>0){const De=await Promise.all(ze.map(async Ye=>{try{const Ge=await fetch(`/api/screen/${Ye}?topN=5`);return[Ye,await Ge.json()]}catch{return[Ye,null]}})),at={};for(const[Ye,Ge]of De)Ge&&(at[Ye]=Ge);y(at);const bt=ze[0];try{const Ge=await(await fetch(`/api/diary/${bt}/list?limit=1`)).json();Ge.ok&&Ge.diaries&&Ge.diaries.length>0&&_({date:Ge.diaries[0].date,persona:bt,excerpt:Ge.diaries[0].excerpt})}catch{}}}catch(X){ye(String(X))}finally{ce(!1)}}if(re.useEffect(()=>{M()},[]),ue)return d.jsxs("div",{className:"banner danger",children:["API 연결 실패 · ",ue]});if(!c||!f)return d.jsx("div",{className:"empty",children:"로드 중..."});const le=Object.values(v).reduce((X,w)=>{var Z,fe;return X+(((fe=(Z=w.screener)==null?void 0:Z.candidates)==null?void 0:fe.length)??0)},0);(he=(W=Object.values(v)[0])==null?void 0:W.screener)==null||he.universeSize;const ie=(j==null?void 0:j.stats.active)??0,ge=g.length,ae=g.map(X=>({slug:X,name:Uc[X]??X,watchers:((j==null?void 0:j.watchers)??[]).filter(w=>w.status==="active"&&w.personaSlug===X).sort((w,Z)=>new Date(w.expiresAt).getTime()-new Date(Z.expiresAt).getTime())})).filter(X=>X.watchers.length>0),P=ae.length>0,D=new Date,I=new Date(D.getTime()+9*36e5).getUTCDay(),K=I===0||I===6,ve=((oe=F==null?void 0:F.deposit)==null?void 0:oe.totalDepositKrw)??null,E=((pe=F==null?void 0:F.holdings)==null?void 0:pe.count)??0,N=((Ae=F==null?void 0:F.holdings)==null?void 0:Ae.totalPnlPct)??null,U=X=>X>=1e8?`${(X/1e8).toFixed(2)}억원`:X>=1e4?`${Math.round(X/1e4).toLocaleString()}만원`:`${X.toLocaleString()}원`,k=N==null||N===0?"":N>0?"is-gain":"is-loss";return d.jsxs(d.Fragment,{children:[d.jsxs("section",{className:"dash-kpi-row",children:[d.jsxs("div",{className:"dash-kpi",children:[d.jsx("div",{className:"dash-kpi-icon","aria-hidden":!0,children:"📅"}),d.jsxs("div",{className:"dash-kpi-body",children:[d.jsx("div",{className:"dash-kpi-label",children:"오늘"}),d.jsx("div",{className:"dash-kpi-value",children:D.toLocaleDateString("ko-KR",{month:"long",day:"numeric"})}),d.jsxs("div",{className:"dash-kpi-sub",children:[D.toLocaleDateString("ko-KR",{weekday:"long"}),K?" · KRX 휴장":""]})]})]}),d.jsxs("div",{className:"dash-kpi",children:[d.jsx("div",{className:"dash-kpi-icon","aria-hidden":!0,children:"✨"}),d.jsxs("div",{className:"dash-kpi-body",children:[d.jsx("div",{className:"dash-kpi-label",children:"패턴 발견"}),d.jsx("div",{className:"dash-kpi-value num",children:le}),d.jsxs("div",{className:"dash-kpi-sub",children:["활성 watcher ",ie]})]})]}),d.jsxs("div",{className:"dash-kpi",children:[d.jsx("div",{className:"dash-kpi-icon","aria-hidden":!0,children:"💰"}),d.jsxs("div",{className:"dash-kpi-body",children:[d.jsx("div",{className:"dash-kpi-label",children:"자본"}),d.jsx("div",{className:"dash-kpi-value num",children:ve!=null?U(ve):"—"}),d.jsxs("div",{className:"dash-kpi-sub",children:["트레이더 ",ge,"명"]})]})]}),d.jsxs("div",{className:`dash-kpi dash-kpi-pnl ${k}`,children:[d.jsx("div",{className:"dash-kpi-icon","aria-hidden":!0,children:"📊"}),d.jsxs("div",{className:"dash-kpi-body",children:[d.jsx("div",{className:"dash-kpi-label",children:"평가 손익"}),d.jsx("div",{className:`dash-kpi-value num ${k}`,children:N==null?"—":`${N>0?"+":""}${N.toFixed(2)}%`}),d.jsxs("div",{className:"dash-kpi-sub",children:["보유 ",E,"종목"]})]})]})]}),!f.ready&&d.jsxs("section",{children:[d.jsxs("div",{className:"section-head",children:[d.jsxs("h2",{children:["거래 준비 · ",f.passed,"/",f.total]}),d.jsx("span",{className:"meta",children:f.next})]}),d.jsx("div",{className:"step-list",children:f.steps.map(X=>d.jsxs("div",{className:"step-chip glass",title:X.detail,children:[d.jsx("div",{className:`icon ${X.ok?"is-ok":"is-fail"}`,children:X.ok?"✓":"!"}),d.jsx("div",{className:"label",children:X.label}),d.jsx("div",{className:"detail",children:X.detail})]},X.id))})]}),Y&&d.jsxs("section",{className:"diary",children:[d.jsxs("div",{className:"head",children:[d.jsx("div",{className:"avatar",children:(Uc[Y.persona]??Y.persona).slice(0,1)}),d.jsxs("div",{children:[d.jsx("div",{className:"who",children:Uc[Y.persona]??Y.persona}),d.jsx("div",{className:"when",children:Y.date})]})]}),d.jsx("p",{className:"body",children:Y.excerpt})]}),P&&d.jsxs("section",{children:[d.jsxs("div",{className:"section-head",children:[d.jsx("h2",{children:"다음 깨움"}),d.jsxs("span",{className:"meta",children:[ie,"개 활성 · ",ae.length,"명 트레이더"]})]}),d.jsx("div",{className:"wake-grid",children:ae.map(X=>d.jsxs("article",{className:"wake-card",children:[d.jsxs("header",{className:"wake-card-head",children:[d.jsx("span",{className:"wake-persona",children:X.name}),d.jsxs("span",{className:"wake-count",children:[X.watchers.length,"건"]})]}),d.jsx("ul",{className:"wake-list",children:X.watchers.map(w=>{const Z=w.spec.condition.type,fe=Z==="time"?"시간":Z==="price"?"가격":Z==="event"?"이벤트":Z;return d.jsxs("li",{className:"wake-row",children:[d.jsx("span",{className:"wake-when num",children:Sv(w)}),d.jsx("span",{className:"wake-intent",children:w.spec.intent}),d.jsx("span",{className:`wake-type wake-type-${Z}`,children:fe})]},w.id)})})]},X.slug))})]}),d.jsxs("div",{className:"disclaimer",children:["본 소프트웨어는 트레이딩 로직 라이선스 + 소프트웨어 공급 모델로 제공됩니다. 거래 의사결정과 실행은 사용자의 책임이며, 본 소프트웨어는 투자 자문 · 투자 일임 · 수익 보장을 제공하지 않습니다. 원금 손실의 위험이 있습니다.",d.jsxs("div",{style:{marginTop:6,opacity:.6},children:["v",c.version," · ",c.config.provider,!f.ready&&d.jsx("button",{className:"btn ghost sm",onClick:n,style:{marginLeft:8},children:"설정 마치기"}),ge>0&&d.jsx("button",{className:"btn ghost sm",onClick:r,style:{marginLeft:8},children:"트레이더 보기"})]})]})]})}function Sv(n){const r=n.spec.condition;if(r.type==="time"){const a=r.config;if(a.at)return new Date(a.at).toLocaleString("ko-KR",{month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"});if(a.afterMs)return new Date(new Date(n.spec.condition.config.afterMs).valueOf()).toLocaleString("ko-KR",{hour:"2-digit",minute:"2-digit"})}return new Date(n.expiresAt).toLocaleString("ko-KR",{month:"numeric",day:"numeric"})+" 까지"}const Ll={neoul:"너울"},Hc={neoul:{color:"var(--persona-neoul)",emoji:"🌊",styleChips:["양음양 눌림목","세력 발자국"]}};function kv(n){if(!n)return{};try{const r=n.match(/```(?:json)?\s*([\s\S]*?)```/),a=r?r[1]:n;return{action:JSON.parse(a).action}}catch{return{}}}function Zm(n){if(!n)return"분석 전";const r=new Date(n).getTime();if(Number.isNaN(r))return"—";const a=Date.now()-r,u=Math.floor(a/1e3);if(u<60)return"방금";const c=Math.floor(u/60);if(c<60)return`${c}분 전`;const h=Math.floor(c/60);if(h<24)return`${h}시간 전`;const f=Math.floor(h/24);return f<7?`${f}일 전`:new Date(n).toLocaleDateString("ko-KR",{month:"numeric",day:"numeric"})}function jv(n){return n==="buy"?"매수":n==="sell"?"매도":n==="hold"?"보유":n==="skip"?"관망":"—"}function Ev(n){return n==="buy"?"buy":n==="sell"?"sell":n==="skip"?"skip":"hold"}function Nv({onGoToSetup:n}){var pe,Ae,X;const[r,a]=re.useState([]),[u,c]=re.useState({}),[h,f]=re.useState([]),[m,g]=re.useState({}),[p,v]=re.useState({}),[y,j]=re.useState(null),[S,A]=re.useState(null),[H,Y]=re.useState({}),[_,F]=re.useState({}),[V,se]=re.useState(!1),[ce,B]=re.useState(null),[ee,ue]=re.useState("paper"),[ye,M]=re.useState([]),[le,ie]=re.useState(null),[ge,ae]=re.useState({}),[P,D]=re.useState({}),[I,K]=re.useState({});function ve(w){const Z=Date.now()+Math.random();M(fe=>[...fe,{...w,id:Z}]),setTimeout(()=>M(fe=>fe.filter(ke=>ke.id!==Z)),5500)}function E(w){M(Z=>Z.filter(fe=>fe.id!==w))}async function N(){var w,Z;se(!0),B(null);try{const ke=(await(await fetch("/api/subscriptions")).json()).subscriptions??[];a(ke);const[qe,ze,De]=await Promise.all([fetch("/api/watchers").then(Ne=>Ne.json()),fetch("/api/journal/events?days=7").then(Ne=>Ne.json()),fetch("/api/config").then(Ne=>Ne.json()).catch(()=>null)]);f(qe.watchers??[]);const at=De==null?void 0:De.config;at!=null&&at.halted?ue("halted"):!((w=at==null?void 0:at.broker)!=null&&w.kind)||at.broker.kind==="none"?ue("no-broker"):at.broker.isDemo?ue("paper"):ue("live");const bt=ze.events??[],Ye={},Ge={};for(let Ne=bt.length-1;Ne>=0;Ne--){const pt=bt[Ne];if(pt.eventType!=="decision"||!pt.personaSlug||Ye[pt.personaSlug])continue;const{action:G}=kv((Z=pt.llmContext)==null?void 0:Z.reasoning);G&&(Ye[pt.personaSlug]=G),Ge[pt.personaSlug]||(Ge[pt.personaSlug]=pt.timestamp)}g(Ye),v(Ge);const Gt=await Promise.all(ke.map(async Ne=>{try{const[pt,G]=await Promise.all([fetch(`/api/screen/${Ne}?topN=30`).then(ne=>ne.json()).catch(()=>null),fetch(`/api/personas/${Ne}/state`).then(ne=>ne.json()).catch(()=>null)]);return[Ne,pt,(G==null?void 0:G.state)??null]}catch{return[Ne,null,null]}})),fn={},hn={};for(const[Ne,pt,G]of Gt)fn[Ne]=pt,hn[Ne]=G;c(fn),D(hn)}catch(fe){B(String(fe))}finally{se(!1)}}re.useEffect(()=>{N()},[]),re.useEffect(()=>{y&&I[y]===void 0&&(async()=>{try{const Z=await(await fetch(`/api/personas/${y}/strategy`)).json();K(fe=>({...fe,[y]:Z.ok?Z.strategy:""}))}catch{K(w=>({...w,[y]:""}))}})()},[y]),re.useEffect(()=>{var Z;if(!y){A(null);return}const w=((Z=P[y])==null?void 0:Z.watchlist)??[];if(w.length===0){A(null);return}(!S||!w.find(fe=>fe.code===S))&&A(w[0].code)},[y,P]),re.useEffect(()=>{var fe,ke;if(!S||(fe=ge[S])!=null&&fe.data||(ke=ge[S])!=null&&ke.loading)return;let w=!1;const Z=S;return ae(qe=>({...qe,[Z]:{loading:!0}})),(async()=>{try{const ze=await(await fetch(`/api/quote/daily/${encodeURIComponent(Z)}?days=30`)).json();if(w)return;ze.ok?ae(De=>({...De,[Z]:{loading:!1,data:ze.candles}})):ae(De=>({...De,[Z]:{loading:!1,error:ze.error??"fetch_failed"}}))}catch(qe){if(w)return;ae(ze=>({...ze,[Z]:{loading:!1,error:String(qe)}}))}})(),()=>{w=!0}},[S]),re.useEffect(()=>{if(!y&&!le)return;const w=Z=>{Z.key==="Escape"&&(le?ie(null):y&&j(null))};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[y,le]);function U(w){if(ee==="halted"){ve({kind:"warn",title:"긴급 정지 중",desc:"안전 모드를 해제한 뒤 다시 시도하세요."});return}if(ee==="live"){ie(w);return}k(w)}async function k(w){var ke,qe,ze,De,at,bt;Y(Ye=>({...Ye,[w]:!0})),F(Ye=>({...Ye,[w]:0}));const Z=Date.now(),fe=setInterval(()=>{F(Ye=>({...Ye,[w]:Math.floor((Date.now()-Z)/1e3)}))},1e3);try{const Ge=await(await fetch(`/api/personas/${w}/cycle`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({triggerKind:"manual"})})).json(),Gt=Ll[w]??w;if(Ge.ok){const fn=((qe=(ke=Ge.stateAfter)==null?void 0:ke.watchlist)==null?void 0:qe.length)??0,hn=((De=(ze=Ge.stateAfter)==null?void 0:ze.positions)==null?void 0:De.length)??0,Ne=(at=Ge.stateAfter)==null?void 0:at.nextRunAt,pt=(bt=Ge.summary)==null?void 0:bt.slice(0,200);ve({kind:"info",title:`${Gt} 사이클 완료`,desc:`watchlist ${fn} · positions ${hn}${Ne?` · 다음 ${new Date(Ne).toLocaleString("ko-KR")}`:" · 다음 (자율 결정 안됨)"}${pt?`
|
|
50
|
-
${pt}`:""}`}),await N(),K(G=>{const ne={...G};return delete ne[w],ne})}else ve({kind:"danger",title:`${Gt} 사이클 실패`,desc:Ge.error??Ge.stage??"unknown"})}catch(Ye){ve({kind:"danger",title:`${Ll[w]??w} 호출 실패`,desc:String(Ye)})}finally{clearInterval(fe),Y(Ye=>({...Ye,[w]:!1})),F(Ye=>({...Ye,[w]:0}))}}if(ce)return d.jsxs("div",{className:"banner danger",children:["API 오류 · ",ce]});if(r.length===0)return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"hero glass-lg",children:[d.jsx("h1",{children:"아직 트레이더가 없어요."}),d.jsx("p",{children:"설정 탭에서 mulsok 웹에 로그인하고 트레이더를 구독하세요."}),d.jsx("div",{style:{marginTop:"var(--sp-5)"},children:d.jsx("button",{className:"btn primary lg",onClick:n,children:"설정으로 가기"})})]}),d.jsx(Fm,{})]});const W=y?u[y]:null,he=y?Hc[y]:null,oe=((Ae=(pe=W==null?void 0:W.screener)==null?void 0:pe.candidates)==null?void 0:Ae.length)??0;return d.jsxs(d.Fragment,{children:[d.jsxs("section",{style:{marginBottom:"var(--sp-5)"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--sp-4)",marginBottom:4},children:[d.jsx("h1",{style:{fontSize:"var(--fs-h1)",fontWeight:800,letterSpacing:"-0.025em"},children:"AI 트레이더"}),d.jsx(wv,{mode:ee})]}),d.jsxs("p",{style:{color:"var(--ink-mute)",fontSize:"var(--fs-body)"},children:["구독한 ",r.length,"명의 트레이더가 시장을 보고 있어요. 카드를 눌러 자세히 보세요."]}),ee==="live"&&d.jsx("p",{style:{color:"var(--loss)",marginTop:6,fontSize:"var(--fs-sm)",fontWeight:600},children:"⚠ 실거래 모드 · 「지금 분석」 클릭 시 실제 매매 주문이 나갈 수 있습니다."})]}),d.jsxs("section",{children:[d.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"var(--sp-3)"},children:d.jsx("button",{className:"btn sm ghost",onClick:()=>void N(),disabled:V,"aria-label":"모두 다시 불러오기",children:V?"갱신 중...":"↻ 새로고침"})}),d.jsx("div",{className:"persona-grid",children:r.map(w=>{var Gt,fn,hn;const Z=u[w],fe=Hc[w]??{color:"var(--persona-unknown)",styleChips:[]},ke=P[w],qe=((Gt=ke==null?void 0:ke.watchlist)==null?void 0:Gt.length)??0,ze=((fn=ke==null?void 0:ke.positions)==null?void 0:fn.length)??0,De=h.filter(Ne=>Ne.personaSlug===w&&Ne.status==="active").length,at=m[w],bt=(ke==null?void 0:ke.lastRunAt)??p[w],Ye=(ke==null?void 0:ke.nextRunAt)??null,Ge=(hn=Z==null?void 0:Z.persona.displayName)==null?void 0:hn.replace(/^[^—]+—\s*/,"");return d.jsxs("button",{type:"button",className:"trader-card glass",style:{"--persona-color":fe.color},onClick:()=>{j(w),A(null)},"aria-label":`${Ll[w]??w} 트레이더 상세 보기`,children:[d.jsxs("div",{className:"head",children:[d.jsxs("div",{className:"name-row",children:[d.jsx("span",{className:"name",children:Ll[w]??w}),(Z==null?void 0:Z.persona.version)&&d.jsxs("span",{className:"ver",children:["v",Z.persona.version]})]}),d.jsx("span",{className:`verdict-pill ${Ev(at)}`,children:jv(at)})]}),Ge&&d.jsx("div",{className:"display-name",children:Ge}),fe.styleChips.length>0&&d.jsx("div",{className:"style-chips",children:fe.styleChips.map(Ne=>d.jsx("span",{className:"style-chip",children:Ne},Ne))}),d.jsxs("div",{className:"stats",children:[d.jsx("span",{className:"stat-v num",children:qe}),d.jsx("span",{className:"stat-k",children:"관심"}),d.jsx("span",{className:"sep",children:"·"}),d.jsx("span",{className:"stat-v num",children:ze}),d.jsx("span",{className:"stat-k",children:"보유"}),d.jsx("span",{className:"sep",children:"·"}),d.jsx("span",{className:"stat-v num",children:De}),d.jsx("span",{className:"stat-k",children:"감시"}),d.jsx("span",{className:"sep",children:"·"}),d.jsx("span",{className:"stat-v sm num",title:bt?new Date(bt).toLocaleString("ko-KR"):"",children:Ye?`다음 ${Zm(Ye)}`:Zm(bt)})]})]},w)})})]}),d.jsx("section",{style:{paddingTop:"var(--sp-5)",textAlign:"center"},children:d.jsxs("p",{style:{color:"var(--ink-dim)",fontSize:"var(--fs-sm)"},children:["구독 변경은 ",d.jsx("strong",{style:{color:"var(--ink-mute)"},children:"mulsok 웹"})," 에서 가능해요."]})}),d.jsx(Fm,{}),d.jsx(zv,{toasts:ye,onDismiss:E}),y&&W&&he&&d.jsx("div",{className:"dialog-backdrop",onClick:()=>j(null),role:"dialog","aria-modal":"true","aria-label":`${Ll[y]??y} 상세`,children:d.jsxs("div",{className:"dialog trader-detail",onClick:w=>w.stopPropagation(),style:{"--persona-color":he.color},children:[d.jsx("button",{className:"close",onClick:()=>j(null),"aria-label":"닫기",children:"×"}),d.jsxs("div",{className:"detail-head",children:[d.jsxs("div",{className:"detail-title",children:[d.jsxs("h2",{children:[Ll[y]??y,W.persona.version&&d.jsxs("span",{className:"ver",children:["v",W.persona.version]})]}),W.persona.tagline&&d.jsxs("p",{className:"tagline",children:["「",W.persona.tagline,"」"]}),d.jsxs("p",{className:"funnel",children:["universe ",d.jsx("strong",{children:W.screener.universeSize.toLocaleString()}),d.jsx("span",{className:"arrow",children:"→"}),"평가 ",d.jsx("strong",{children:W.screener.evaluated.toLocaleString()}),d.jsx("span",{className:"arrow",children:"→"}),"후보 ",d.jsx("strong",{children:oe}),W.screener.elapsedMs&&d.jsxs(d.Fragment,{children:[" · ",W.screener.elapsedMs,"ms"]})]})]}),d.jsx("button",{className:`btn ${ee==="live"?"live":"primary"}`,onClick:()=>U(y),disabled:!!H[y]||ee==="halted",style:{flexShrink:0},title:ee==="halted"?"긴급 정지 중":void 0,children:H[y]?d.jsxs(d.Fragment,{children:["분석 중",d.jsx("span",{className:"dots-loading"})]}):ee==="live"?"⚠ 지금 분석":"↻ 지금 분석"})]}),d.jsx(Tv,{state:P[y],strategyMd:I[y],candleCache:ge,selectedCode:S,onSelectCode:A})]})}),le&&d.jsx(Dv,{name:Ll[le]??le,color:((X=Hc[le])==null?void 0:X.color)??"var(--persona-unknown)",onCancel:()=>ie(null),onConfirm:()=>{const w=le;ie(null),k(w)}})]})}function Fm(){return d.jsx("div",{className:"disclaimer",children:"본 소프트웨어는 트레이딩 로직 라이선스 + 소프트웨어 공급 모델로 제공됩니다. 거래 의사결정과 실행은 사용자의 책임이며, 본 소프트웨어는 투자 자문 · 투자 일임 · 수익 보장을 제공하지 않습니다. 원금 손실의 위험이 있습니다."})}function Tv({state:n,strategyMd:r,candleCache:a,selectedCode:u,onSelectCode:c}){if(!n)return d.jsx("div",{className:"watchlist-section empty",children:d.jsx("p",{children:"아직 AI 가 자기 메모리를 만들지 않았어요. 「↻ 지금 분석」 으로 첫 사이클을 실행하세요."})});const{watchlist:h,positions:f,nextRunAt:m,lastRunAt:g,stats:p}=n,v=Av(r,"현재 시장 판단");return d.jsxs("div",{className:"watchlist-section",children:[d.jsxs("div",{className:"memory-meta",children:[d.jsxs("span",{children:["마지막 사이클 ",d.jsx("strong",{children:qc(g)??"—"})]}),m?d.jsxs("span",{children:["다음 예약 ",d.jsx("strong",{children:new Date(m).toLocaleString("ko-KR")})]}):d.jsx("span",{style:{color:"var(--warn)"},children:"다음 예약 없음 (watcher 발화 대기)"}),d.jsxs("span",{children:["총 거래 ",d.jsx("strong",{className:"num",children:p.totalTrades})]}),d.jsxs("span",{children:["실현 손익 ",d.jsxs("strong",{className:"num",children:[p.realizedPnlKrw.toLocaleString("ko-KR"),"원"]})]})]}),d.jsxs("div",{className:"dialog-section-head",children:[d.jsxs("h3",{children:["관심 종목 (",h.length,")"]}),d.jsx("p",{className:"sub",children:"AI 가 직접 선정 · 칩을 누르면 상세 + 차트"})]}),h.length===0?d.jsx("p",{className:"empty-line",children:"아직 관심 종목 없음. AI 가 다음 사이클에서 발굴할 수 있어요."}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"watchlist-chips",children:h.map(y=>{const j=y.code===u;return d.jsx("button",{type:"button",className:`btn sm ${j?"primary":"ghost"}`,onClick:()=>c(y.code),children:y.name},y.code)})}),(()=>{const y=h.find(j=>j.code===u)??h[0];return y?d.jsxs("div",{className:"watchlist-detail",children:[d.jsxs("div",{className:"head",children:[d.jsx("span",{className:"name",children:y.name}),d.jsx("span",{className:"code",children:y.code}),d.jsx("span",{className:"pattern",children:y.pattern}),y.triggerPrice!=null&&d.jsxs("span",{className:"trigger num",children:["↳ ",y.triggerPrice.toLocaleString("ko-KR"),"원"]})]}),y.reason&&d.jsx("p",{className:"reason",children:y.reason}),d.jsxs("div",{className:"meta",children:[d.jsxs("span",{children:["관심 등록 ",d.jsx("strong",{children:qc(y.addedAt)})]}),y.targetPrice!=null&&d.jsxs("span",{children:["목표 ",d.jsxs("strong",{className:"num",children:[y.targetPrice.toLocaleString("ko-KR"),"원"]})]}),y.stopPrice!=null&&d.jsxs("span",{children:["손절 ",d.jsxs("strong",{className:"num",children:[y.stopPrice.toLocaleString("ko-KR"),"원"]})]}),y.expiresAt&&d.jsxs("span",{children:["만료 ",d.jsx("strong",{children:new Date(y.expiresAt).toLocaleDateString("ko-KR")})]})]}),d.jsx("div",{className:"watchlist-chart",children:d.jsx(Cv,{state:a[y.code],decisionAt:y.addedAt})})]}):null})()]}),f.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"dialog-section-head",style:{marginTop:"var(--sp-4)"},children:d.jsxs("h3",{children:["보유 종목 (",f.length,")"]})}),d.jsx("div",{className:"watchlist-list",children:f.map(y=>d.jsxs("div",{className:"watchlist-row",children:[d.jsxs("div",{className:"head",children:[d.jsx("span",{className:"name",children:y.name}),d.jsx("span",{className:"code",children:y.code}),d.jsxs("span",{className:"num",children:[y.quantity,"주 @ ",y.avgPriceKrw.toLocaleString("ko-KR"),"원"]})]}),y.rationale&&d.jsx("p",{className:"reason",children:y.rationale}),d.jsx("div",{className:"meta",children:d.jsxs("span",{children:["매수 ",d.jsx("strong",{children:qc(y.boughtAt)})]})})]},y.code))})]}),v&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"dialog-section-head",style:{marginTop:"var(--sp-4)"},children:[d.jsx("h3",{children:"현재 시장 판단"}),d.jsx("p",{className:"sub",children:"strategy.md 발췌 · AI 가 매 사이클 갱신"})]}),d.jsx("div",{className:"market-view",children:v})]})]})}function qc(n){if(!n)return null;const r=new Date(n).getTime();if(Number.isNaN(r))return null;const a=Date.now()-r,u=Math.floor(a/6e4);if(Math.abs(u)<1)return"방금";if(u>0){if(u<60)return`${u}분 전`;const f=Math.floor(u/60);return f<24?`${f}시간 전`:`${Math.floor(f/24)}일 전`}const c=-u;if(c<60)return`${c}분 후`;const h=Math.floor(c/60);return h<24?`${h}시간 후`:`${Math.floor(h/24)}일 후`}function Av(n,r){if(!n)return null;const a=new RegExp(`##\\s+${r}\\s*\\n([\\s\\S]*?)(?=\\n##\\s|---|$)`,"m"),u=n.match(a);if(!u)return null;const c=u[1].trim();return!c||c.startsWith("(아직")||c.startsWith("(첫")?null:c.length>600?c.slice(0,600)+"...":c}function Cv({state:n,decisionAt:r,screenedAt:a,dataAsOf:u}){if(!n||n.loading)return d.jsx("div",{className:"candle-chart loading",children:d.jsxs("span",{className:"msg",children:["일봉 불러오는 중",d.jsx("span",{className:"dots-loading"})]})});if(n.error){const X=n.error==="broker:not_configured";return d.jsx("div",{className:"candle-chart empty",children:d.jsx("span",{className:"msg",children:X?"키움 증권사가 설정되지 않아 일봉을 표시할 수 없어요.":`일봉 로드 실패 · ${n.error}`})})}const c=n.data??[];if(c.length<2)return d.jsx("div",{className:"candle-chart empty",children:d.jsx("span",{className:"msg",children:"표시할 일봉이 부족해요."})});const h=800,f=200,m=50,g=8,p=8,v=60,y=8,S=f+g+m+y+22,H=(h-p-v)/c.length,Y=Math.max(2,H*.65),_=c.map(X=>X.highKrw),F=c.map(X=>X.lowKrw),V=Math.max(..._),se=Math.min(...F),B=(V-se||1)*.05,ee=V+B,ue=Math.max(0,se-B),ye=ee-ue||1,M=X=>y+f*(1-(X-ue)/ye),le=Math.max(...c.map(X=>X.volume),1),ie=y+f+g+m,ge=X=>X/le*m;function ae(X){return c.map((w,Z)=>{if(Z<X-1)return null;const ke=c.slice(Z-X+1,Z+1).reduce((ze,De)=>ze+De.closeKrw,0)/X;return[p+H*(Z+.5),M(ke)]})}const P=ae(5),D=ae(20);function I(X){let w=!1,Z="";for(const fe of X){if(!fe){w=!1;continue}Z+=(w?" L ":"M ")+fe[0]+" "+fe[1],w=!0}return Z}function K(X){return X.length<8?X:`${X.slice(4,6)}-${X.slice(6,8)}`}const ve=[0,Math.floor(c.length/2),c.length-1];function E(X){return X>=1e6?`${(X/1e4).toFixed(0)}만`:X.toLocaleString("ko-KR")}function N(X){let w=-1,Z=-1;for(let fe=0;fe<c.length;fe++){if(c[fe].date===X){w=fe;break}c[fe].date<=X&&(Z=fe)}return w>=0?w:Z>=0?Z:null}function U(X){if(!X)return null;const w=new Date(X);if(Number.isNaN(w.getTime()))return null;const Z=w.getFullYear(),fe=String(w.getMonth()+1).padStart(2,"0"),ke=String(w.getDate()).padStart(2,"0");return N(`${Z}${fe}${ke}`)}const k=u?N(u):U(a),W=k!=null?p+H*(k+.5):null,he=c[c.length-1].date,oe=K(he);function pe(X){if(!X)return null;const w=new Date(X).getTime();if(Number.isNaN(w))return null;const Z=Date.now()-w,fe=Math.floor(Z/6e4);if(fe<1)return"방금";if(fe<60)return`${fe}분 전`;const ke=Math.floor(fe/60);return ke<24?`${ke}시간 전`:`${Math.floor(ke/24)}일 전`}const Ae=pe(r);return d.jsxs("div",{className:"candle-chart",children:[d.jsxs("svg",{viewBox:`0 0 ${h} ${S}`,preserveAspectRatio:"none",children:[d.jsx("line",{x1:p,y1:y+f+g/2,x2:h-v,y2:y+f+g/2,stroke:"var(--ink-faint)",strokeWidth:"0.5"}),d.jsx("text",{className:"axis",x:h-v+4,y:M(ee)+4,textAnchor:"start",children:E(ee)}),d.jsx("text",{className:"axis",x:h-v+4,y:M((ee+ue)/2)+4,textAnchor:"start",children:E((ee+ue)/2)}),d.jsx("text",{className:"axis",x:h-v+4,y:M(ue)+4,textAnchor:"start",children:E(ue)}),c.map((X,w)=>{const Z=p+H*(w+.5),ke=X.closeKrw>=X.openKrw?"var(--gain)":"var(--loss)",qe=M(Math.max(X.openKrw,X.closeKrw)),ze=M(Math.min(X.openKrw,X.closeKrw)),De=Math.max(1,ze-qe);return d.jsxs("g",{children:[d.jsx("line",{x1:Z,y1:M(X.highKrw),x2:Z,y2:M(X.lowKrw),stroke:ke,strokeWidth:"1"}),d.jsx("rect",{x:Z-Y/2,y:qe,width:Y,height:De,fill:ke}),d.jsx("rect",{x:Z-Y/2,y:ie-ge(X.volume),width:Y,height:ge(X.volume),fill:ke,fillOpacity:"0.4"})]},w)}),P.some(Boolean)&&d.jsx("path",{d:I(P),fill:"none",stroke:"#F59E0B",strokeWidth:"1.2",opacity:"0.85"}),D.some(Boolean)&&d.jsx("path",{d:I(D),fill:"none",stroke:"var(--ink-mute)",strokeWidth:"1.2",opacity:"0.7"}),W!==null&&d.jsxs("g",{children:[d.jsx("line",{x1:W,y1:y,x2:W,y2:y+f+g+m,stroke:"var(--accent)",strokeWidth:"1",strokeDasharray:"3 3",opacity:"0.7"}),d.jsx("text",{className:"axis",x:W+4,y:y+12,textAnchor:"start",fill:"var(--accent)",children:"↑ 매칭 기준일"})]}),ve.map(X=>{const w=p+H*(X+.5),Z=X===0?"start":X===c.length-1?"end":"middle";return d.jsx("text",{className:"axis",x:w,y:S-6,textAnchor:Z,children:K(c[X].date)},X)})]}),d.jsxs("div",{className:"legend",children:[d.jsxs("span",{className:"item",children:[d.jsx("span",{className:"swatch ma5"}),"5일선"]}),d.jsxs("span",{className:"item",children:[d.jsx("span",{className:"swatch ma20"}),"20일선"]}),d.jsxs("span",{className:"item",children:[d.jsx("span",{className:"swatch up"}),"양봉"]}),d.jsxs("span",{className:"item",children:[d.jsx("span",{className:"swatch down"}),"음봉"]}),W!==null&&d.jsxs("span",{className:"item",children:[d.jsx("span",{className:"swatch decision-line"}),"매칭 기준일"]}),d.jsx("span",{className:"spacer"}),d.jsxs("span",{className:"meta",children:["최근 ",c.length,"일"]})]}),d.jsxs("div",{className:"data-caption",children:[u&&d.jsxs(d.Fragment,{children:["매칭 기준일 ",d.jsx("strong",{children:u.length===8?`${u.slice(4,6)}-${u.slice(6,8)}`:u})," · "]}),"차트 마지막 거래일 ",d.jsx("strong",{children:oe}),Ae&&d.jsxs(d.Fragment,{children:[" · 마지막 LLM 분석 ",d.jsx("strong",{children:Ae})]})]})]})}function wv({mode:n}){const a={live:{cls:"live",label:"실거래 모드"},paper:{cls:"paper",label:"모의 모드"},halted:{cls:"halted",label:"긴급 정지"},"no-broker":{cls:"paper",label:"증권사 미설정"}}[n];return d.jsxs("span",{className:`mode-badge ${a.cls}`,"aria-label":`현재 ${a.label}`,children:[d.jsx("span",{className:"dot","aria-hidden":!0}),a.label]})}function zv({toasts:n,onDismiss:r}){if(n.length===0)return null;const a={success:"✓",danger:"⚠",warn:"!",info:"i"};return d.jsx("div",{className:"toast-stack",role:"status","aria-live":"polite",children:n.map(u=>d.jsxs("div",{className:`toast ${u.kind}`,children:[d.jsx("div",{className:"icon","aria-hidden":!0,children:a[u.kind]}),d.jsxs("div",{className:"body",children:[d.jsx("div",{className:"title",children:u.title}),u.desc&&d.jsx("div",{className:"desc",children:u.desc})]}),d.jsx("button",{className:"close",onClick:()=>r(u.id),"aria-label":"알림 닫기",children:"×"})]},u.id))})}function Dv({name:n,color:r,onCancel:a,onConfirm:u}){return d.jsx("div",{className:"dialog-backdrop is-confirm",onClick:a,role:"dialog","aria-modal":"true","aria-label":`${n} 실거래 분석 확인`,children:d.jsxs("div",{className:"dialog confirm-panel",onClick:c=>c.stopPropagation(),children:[d.jsx("div",{className:"alert-icon","aria-hidden":!0,children:"⚠"}),d.jsxs("h2",{children:[d.jsx("span",{style:{color:r},children:n})," 분석을 지금 실행할까요?"]}),d.jsxs("p",{className:"desc",children:[d.jsx("strong",{children:"실거래 모드"}),"입니다. 이 분석은 자동 사이클과 동일하게 동작하며, 다음 결과가 발생할 수 있어요:"]}),d.jsxs("ul",{children:[d.jsxs("li",{children:["LLM 판단이 매수·매도면 ",d.jsx("strong",{children:"본인 증권사 API 로 실 주문이 나갈 수 있음"})]}),d.jsx("li",{children:"새 시세 감시자(watcher)가 자동 등록되어 이후 다시 깨어날 수 있음"}),d.jsx("li",{children:"LLM 호출 비용이 발생함 (모델별 토큰 과금)"})]}),d.jsxs("div",{className:"actions",children:[d.jsx("button",{className:"btn ghost",onClick:a,children:"취소"}),d.jsx("button",{className:"btn live",onClick:u,autoFocus:!0,children:"실행"})]})]})})}function _v(n,r){const a={};return(n[n.length-1]===""?[...n,""]:n).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const Mv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ov=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Rv={};function Jm(n,r){return(Rv.jsx?Ov:Mv).test(n)}const Lv=/[ \t\n\f\r]/g;function Bv(n){return typeof n=="object"?n.type==="text"?$m(n.value):!1:$m(n)}function $m(n){return n.replace(Lv,"")===""}class Ra{constructor(r,a,u){this.normal=a,this.property=r,u&&(this.space=u)}}Ra.prototype.normal={};Ra.prototype.property={};Ra.prototype.space=void 0;function qp(n,r){const a={},u={};for(const c of n)Object.assign(a,c.property),Object.assign(u,c.normal);return new Ra(a,u,r)}function ro(n){return n.toLowerCase()}class Yt{constructor(r,a){this.attribute=a,this.property=r}}Yt.prototype.attribute="";Yt.prototype.booleanish=!1;Yt.prototype.boolean=!1;Yt.prototype.commaOrSpaceSeparated=!1;Yt.prototype.commaSeparated=!1;Yt.prototype.defined=!1;Yt.prototype.mustUseProperty=!1;Yt.prototype.number=!1;Yt.prototype.overloadedBoolean=!1;Yt.prototype.property="";Yt.prototype.spaceSeparated=!1;Yt.prototype.space=void 0;let Uv=0;const we=Hl(),mt=Hl(),uo=Hl(),te=Hl(),tt=Hl(),Ai=Hl(),It=Hl();function Hl(){return 2**++Uv}const so=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:mt,commaOrSpaceSeparated:It,commaSeparated:Ai,number:te,overloadedBoolean:uo,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),Yc=Object.keys(so);class bo extends Yt{constructor(r,a,u,c){let h=-1;if(super(r,a),Im(this,"space",c),typeof u=="number")for(;++h<Yc.length;){const f=Yc[h];Im(this,Yc[h],(u&so[f])===so[f])}}}bo.prototype.defined=!0;function Im(n,r,a){a&&(n[r]=a)}function wi(n){const r={},a={};for(const[u,c]of Object.entries(n.properties)){const h=new bo(u,n.transform(n.attributes||{},u),c,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(h.mustUseProperty=!0),r[u]=h,a[ro(u)]=u,a[ro(h.attribute)]=u}return new Ra(r,a,n.space)}const Yp=wi({properties:{ariaActiveDescendant:null,ariaAtomic:mt,ariaAutoComplete:null,ariaBusy:mt,ariaChecked:mt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:tt,ariaCurrent:null,ariaDescribedBy:tt,ariaDetails:null,ariaDisabled:mt,ariaDropEffect:tt,ariaErrorMessage:null,ariaExpanded:mt,ariaFlowTo:tt,ariaGrabbed:mt,ariaHasPopup:null,ariaHidden:mt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tt,ariaLevel:te,ariaLive:null,ariaModal:mt,ariaMultiLine:mt,ariaMultiSelectable:mt,ariaOrientation:null,ariaOwns:tt,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:mt,ariaReadOnly:mt,ariaRelevant:null,ariaRequired:mt,ariaRoleDescription:tt,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:mt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(n,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function Gp(n,r){return r in n?n[r]:r}function Vp(n,r){return Gp(n,r.toLowerCase())}const Hv=wi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ai,acceptCharset:tt,accessKey:tt,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:tt,autoFocus:we,autoPlay:we,blocking:tt,capture:null,charSet:null,checked:we,cite:null,className:tt,cols:te,colSpan:null,content:null,contentEditable:mt,controls:we,controlsList:tt,coords:te|Ai,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:uo,draggable:mt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:tt,height:te,hidden:uo,high:te,href:null,hrefLang:null,htmlFor:tt,httpEquiv:tt,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:tt,itemRef:tt,itemScope:we,itemType:tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:we,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:we,muted:we,name:null,nonce:null,noModule:we,noValidate:we,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:we,optimum:te,pattern:null,ping:tt,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:tt,required:we,reversed:we,rows:te,rowSpan:te,sandbox:tt,scope:null,scoped:we,seamless:we,selected:we,shadowRootClonable:we,shadowRootDelegatesFocus:we,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:mt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:we,useMap:null,value:mt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tt,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:we,declare:we,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:we,noHref:we,noShade:we,noWrap:we,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:mt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:we,disableRemotePlayback:we,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:Vp}),qv=wi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:It,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:tt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:we,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ai,g2:Ai,glyphName:Ai,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Gp}),Qp=wi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,r){return"xlink:"+r.slice(5).toLowerCase()}}),Xp=wi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vp}),Kp=wi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,r){return"xml:"+r.slice(3).toLowerCase()}}),Yv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Gv=/[A-Z]/g,Wm=/-[a-z]/g,Vv=/^data[-\w.:]+$/i;function Qv(n,r){const a=ro(r);let u=r,c=Yt;if(a in n.normal)return n.property[n.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&Vv.test(r)){if(r.charAt(4)==="-"){const h=r.slice(5).replace(Wm,Kv);u="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=r.slice(4);if(!Wm.test(h)){let f=h.replace(Gv,Xv);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}c=bo}return new c(u,r)}function Xv(n){return"-"+n.toLowerCase()}function Kv(n){return n.charAt(1).toUpperCase()}const Zv=qp([Yp,Hv,Qp,Xp,Kp],"html"),So=qp([Yp,qv,Qp,Xp,Kp],"svg");function Fv(n){return n.join(" ").trim()}var Ei={},Gc,Pm;function Jv(){if(Pm)return Gc;Pm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,m=/^\s+|\s+$/g,g=`
|
|
51
|
-
`,p="/",v="*",y="",j="comment",S="declaration";function A(Y,_){if(typeof Y!="string")throw new TypeError("First argument must be a string");if(!Y)return[];_=_||{};var F=1,V=1;function se(ae){var P=ae.match(r);P&&(F+=P.length);var D=ae.lastIndexOf(g);V=~D?ae.length-D:V+ae.length}function ce(){var ae={line:F,column:V};return function(P){return P.position=new B(ae),ye(),P}}function B(ae){this.start=ae,this.end={line:F,column:V},this.source=_.source}B.prototype.content=Y;function ee(ae){var P=new Error(_.source+":"+F+":"+V+": "+ae);if(P.reason=ae,P.filename=_.source,P.line=F,P.column=V,P.source=Y,!_.silent)throw P}function ue(ae){var P=ae.exec(Y);if(P){var D=P[0];return se(D),Y=Y.slice(D.length),P}}function ye(){ue(a)}function M(ae){var P;for(ae=ae||[];P=le();)P!==!1&&ae.push(P);return ae}function le(){var ae=ce();if(!(p!=Y.charAt(0)||v!=Y.charAt(1))){for(var P=2;y!=Y.charAt(P)&&(v!=Y.charAt(P)||p!=Y.charAt(P+1));)++P;if(P+=2,y===Y.charAt(P-1))return ee("End of comment missing");var D=Y.slice(2,P-2);return V+=2,se(D),Y=Y.slice(P),V+=2,ae({type:j,comment:D})}}function ie(){var ae=ce(),P=ue(u);if(P){if(le(),!ue(c))return ee("property missing ':'");var D=ue(h),I=ae({type:S,property:H(P[0].replace(n,y)),value:D?H(D[0].replace(n,y)):y});return ue(f),I}}function ge(){var ae=[];M(ae);for(var P;P=ie();)P!==!1&&(ae.push(P),M(ae));return ae}return ye(),ge()}function H(Y){return Y?Y.replace(m,y):y}return Gc=A,Gc}var ep;function $v(){if(ep)return Ei;ep=1;var n=Ei&&Ei.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=a;const r=n(Jv());function a(u,c){let h=null;if(!u||typeof u!="string")return h;const f=(0,r.default)(u),m=typeof c=="function";return f.forEach(g=>{if(g.type!=="declaration")return;const{property:p,value:v}=g;m?c(p,v,g):v&&(h=h||{},h[p]=v)}),h}return Ei}var Na={},tp;function Iv(){if(tp)return Na;tp=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,c=/^-(ms)-/,h=function(p){return!p||a.test(p)||n.test(p)},f=function(p,v){return v.toUpperCase()},m=function(p,v){return"".concat(v,"-")},g=function(p,v){return v===void 0&&(v={}),h(p)?p:(p=p.toLowerCase(),v.reactCompat?p=p.replace(c,m):p=p.replace(u,m),p.replace(r,f))};return Na.camelCase=g,Na}var Ta,np;function Wv(){if(np)return Ta;np=1;var n=Ta&&Ta.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},r=n($v()),a=Iv();function u(c,h){var f={};return!c||typeof c!="string"||(0,r.default)(c,function(m,g){m&&g&&(f[(0,a.camelCase)(m,h)]=g)}),f}return u.default=u,Ta=u,Ta}var Pv=Wv();const e1=du(Pv),Zp=Fp("end"),ko=Fp("start");function Fp(n){return r;function r(a){const u=a&&a.position&&a.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function t1(n){const r=ko(n),a=Zp(n);if(r&&a)return{start:r,end:a}}function za(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?lp(n.position):"start"in n||"end"in n?lp(n):"line"in n||"column"in n?co(n):""}function co(n){return ip(n&&n.line)+":"+ip(n&&n.column)}function lp(n){return co(n&&n.start)+"-"+co(n&&n.end)}function ip(n){return n&&typeof n=="number"?n:1}class Ct extends Error{constructor(r,a,u){super(),typeof a=="string"&&(u=a,a=void 0);let c="",h={},f=!1;if(a&&("line"in a&&"column"in a?h={place:a}:"start"in a&&"end"in a?h={place:a}:"type"in a?h={ancestors:[a],place:a.position}:h={...a}),typeof r=="string"?c=r:!h.cause&&r&&(f=!0,c=r.message,h.cause=r),!h.ruleId&&!h.source&&typeof u=="string"){const g=u.indexOf(":");g===-1?h.ruleId=u:(h.source=u.slice(0,g),h.ruleId=u.slice(g+1))}if(!h.place&&h.ancestors&&h.ancestors){const g=h.ancestors[h.ancestors.length-1];g&&(h.place=g.position)}const m=h.place&&"start"in h.place?h.place.start:h.place;this.ancestors=h.ancestors||void 0,this.cause=h.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=c,this.line=m?m.line:void 0,this.name=za(h.place)||"1:1",this.place=h.place||void 0,this.reason=this.message,this.ruleId=h.ruleId||void 0,this.source=h.source||void 0,this.stack=f&&h.cause&&typeof h.cause.stack=="string"?h.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ct.prototype.file="";Ct.prototype.name="";Ct.prototype.reason="";Ct.prototype.message="";Ct.prototype.stack="";Ct.prototype.column=void 0;Ct.prototype.line=void 0;Ct.prototype.ancestors=void 0;Ct.prototype.cause=void 0;Ct.prototype.fatal=void 0;Ct.prototype.place=void 0;Ct.prototype.ruleId=void 0;Ct.prototype.source=void 0;const jo={}.hasOwnProperty,n1=new Map,l1=/[A-Z]/g,i1=new Set(["table","tbody","thead","tfoot","tr"]),a1=new Set(["td","th"]),Jp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function r1(n,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=r.filePath||void 0;let u;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=m1(a,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=d1(a,r.jsx,r.jsxs)}const c={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:u,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?So:Zv,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},h=$p(c,n,void 0);return h&&typeof h!="string"?h:c.create(n,c.Fragment,{children:h||void 0},void 0)}function $p(n,r,a){if(r.type==="element")return u1(n,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return s1(n,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return o1(n,r,a);if(r.type==="mdxjsEsm")return c1(n,r);if(r.type==="root")return f1(n,r,a);if(r.type==="text")return h1(n,r)}function u1(n,r,a){const u=n.schema;let c=u;r.tagName.toLowerCase()==="svg"&&u.space==="html"&&(c=So,n.schema=c),n.ancestors.push(r);const h=Wp(n,r.tagName,!1),f=p1(n,r);let m=No(n,r);return i1.has(r.tagName)&&(m=m.filter(function(g){return typeof g=="string"?!Bv(g):!0})),Ip(n,f,h,r),Eo(f,m),n.ancestors.pop(),n.schema=u,n.create(r,h,f,a)}function s1(n,r){if(r.data&&r.data.estree&&n.evaluater){const u=r.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}Ma(n,r.position)}function c1(n,r){if(r.data&&r.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(r.data.estree);Ma(n,r.position)}function o1(n,r,a){const u=n.schema;let c=u;r.name==="svg"&&u.space==="html"&&(c=So,n.schema=c),n.ancestors.push(r);const h=r.name===null?n.Fragment:Wp(n,r.name,!0),f=g1(n,r),m=No(n,r);return Ip(n,f,h,r),Eo(f,m),n.ancestors.pop(),n.schema=u,n.create(r,h,f,a)}function f1(n,r,a){const u={};return Eo(u,No(n,r)),n.create(r,n.Fragment,u,a)}function h1(n,r){return r.value}function Ip(n,r,a,u){typeof a!="string"&&a!==n.Fragment&&n.passNode&&(r.node=u)}function Eo(n,r){if(r.length>0){const a=r.length>1?r:r[0];a&&(n.children=a)}}function d1(n,r,a){return u;function u(c,h,f,m){const p=Array.isArray(f.children)?a:r;return m?p(h,f,m):p(h,f)}}function m1(n,r){return a;function a(u,c,h,f){const m=Array.isArray(h.children),g=ko(u);return r(c,h,f,m,{columnNumber:g?g.column-1:void 0,fileName:n,lineNumber:g?g.line:void 0},void 0)}}function p1(n,r){const a={};let u,c;for(c in r.properties)if(c!=="children"&&jo.call(r.properties,c)){const h=y1(n,c,r.properties[c]);if(h){const[f,m]=h;n.tableCellAlignToStyle&&f==="align"&&typeof m=="string"&&a1.has(r.tagName)?u=m:a[f]=m}}if(u){const h=a.style||(a.style={});h[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return a}function g1(n,r){const a={};for(const u of r.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const h=u.data.estree.body[0];h.type;const f=h.expression;f.type;const m=f.properties[0];m.type,Object.assign(a,n.evaluater.evaluateExpression(m.argument))}else Ma(n,r.position);else{const c=u.name;let h;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const m=u.value.data.estree.body[0];m.type,h=n.evaluater.evaluateExpression(m.expression)}else Ma(n,r.position);else h=u.value===null?!0:u.value;a[c]=h}return a}function No(n,r){const a=[];let u=-1;const c=n.passKeys?new Map:n1;for(;++u<r.children.length;){const h=r.children[u];let f;if(n.passKeys){const g=h.type==="element"?h.tagName:h.type==="mdxJsxFlowElement"||h.type==="mdxJsxTextElement"?h.name:void 0;if(g){const p=c.get(g)||0;f=g+"-"+p,c.set(g,p+1)}}const m=$p(n,h,f);m!==void 0&&a.push(m)}return a}function y1(n,r,a){const u=Qv(n.schema,r);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=u.commaSeparated?_v(a):Fv(a)),u.property==="style"){let c=typeof a=="object"?a:x1(n,String(a));return n.stylePropertyNameCase==="css"&&(c=v1(c)),["style",c]}return[n.elementAttributeNameCase==="react"&&u.space?Yv[u.property]||u.property:u.attribute,a]}}function x1(n,r){try{return e1(r,{reactCompat:!0})}catch(a){if(n.ignoreInvalidStyle)return{};const u=a,c=new Ct("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=n.filePath||void 0,c.url=Jp+"#cannot-parse-style-attribute",c}}function Wp(n,r,a){let u;if(!a)u={type:"Literal",value:r};else if(r.includes(".")){const c=r.split(".");let h=-1,f;for(;++h<c.length;){const m=Jm(c[h])?{type:"Identifier",name:c[h]}:{type:"Literal",value:c[h]};f=f?{type:"MemberExpression",object:f,property:m,computed:!!(h&&m.type==="Literal"),optional:!1}:m}u=f}else u=Jm(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(u.type==="Literal"){const c=u.value;return jo.call(n.components,c)?n.components[c]:c}if(n.evaluater)return n.evaluater.evaluateExpression(u);Ma(n)}function Ma(n,r){const a=new Ct("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=n.filePath||void 0,a.url=Jp+"#cannot-handle-mdx-estrees-without-createevaluater",a}function v1(n){const r={};let a;for(a in n)jo.call(n,a)&&(r[b1(a)]=n[a]);return r}function b1(n){let r=n.replace(l1,S1);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function S1(n){return"-"+n.toLowerCase()}const Vc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},k1={};function To(n,r){const a=k1,u=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,c=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Pp(n,u,c)}function Pp(n,r,a){if(j1(n)){if("value"in n)return n.type==="html"&&!a?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return ap(n.children,r,a)}return Array.isArray(n)?ap(n,r,a):""}function ap(n,r,a){const u=[];let c=-1;for(;++c<n.length;)u[c]=Pp(n[c],r,a);return u.join("")}function j1(n){return!!(n&&typeof n=="object")}const rp=document.createElement("i");function Ao(n){const r="&"+n+";";rp.innerHTML=r;const a=rp.textContent;return a.charCodeAt(a.length-1)===59&&n!=="semi"||a===r?!1:a}function Wt(n,r,a,u){const c=n.length;let h=0,f;if(r<0?r=-r>c?0:c+r:r=r>c?c:r,a=a>0?a:0,u.length<1e4)f=Array.from(u),f.unshift(r,a),n.splice(...f);else for(a&&n.splice(r,a);h<u.length;)f=u.slice(h,h+1e4),f.unshift(r,0),n.splice(...f),h+=1e4,r+=1e4}function on(n,r){return n.length>0?(Wt(n,n.length,0,r),n):r}const up={}.hasOwnProperty;function eg(n){const r={};let a=-1;for(;++a<n.length;)E1(r,n[a]);return r}function E1(n,r){let a;for(a in r){const c=(up.call(n,a)?n[a]:void 0)||(n[a]={}),h=r[a];let f;if(h)for(f in h){up.call(c,f)||(c[f]=[]);const m=h[f];N1(c[f],Array.isArray(m)?m:m?[m]:[])}}}function N1(n,r){let a=-1;const u=[];for(;++a<r.length;)(r[a].add==="after"?n:u).push(r[a]);Wt(n,0,0,u)}function tg(n,r){const a=Number.parseInt(n,r);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function yn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dt=yl(/[A-Za-z]/),At=yl(/[\dA-Za-z]/),T1=yl(/[#-'*+\--9=?A-Z^-~]/);function su(n){return n!==null&&(n<32||n===127)}const oo=yl(/\d/),A1=yl(/[\dA-Fa-f]/),C1=yl(/[!-/:-@[-`{-~]/);function be(n){return n!==null&&n<-2}function et(n){return n!==null&&(n<0||n===32)}function Re(n){return n===-2||n===-1||n===32}const mu=yl(new RegExp("\\p{P}|\\p{S}","u")),Ul=yl(/\s/);function yl(n){return r;function r(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}function zi(n){const r=[];let a=-1,u=0,c=0;for(;++a<n.length;){const h=n.charCodeAt(a);let f="";if(h===37&&At(n.charCodeAt(a+1))&&At(n.charCodeAt(a+2)))c=2;else if(h<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(h))||(f=String.fromCharCode(h));else if(h>55295&&h<57344){const m=n.charCodeAt(a+1);h<56320&&m>56319&&m<57344?(f=String.fromCharCode(h,m),c=1):f="�"}else f=String.fromCharCode(h);f&&(r.push(n.slice(u,a),encodeURIComponent(f)),u=a+c+1,f=""),c&&(a+=c,c=0)}return r.join("")+n.slice(u)}function He(n,r,a,u){const c=u?u-1:Number.POSITIVE_INFINITY;let h=0;return f;function f(g){return Re(g)?(n.enter(a),m(g)):r(g)}function m(g){return Re(g)&&h++<c?(n.consume(g),m):(n.exit(a),r(g))}}const w1={tokenize:z1};function z1(n){const r=n.attempt(this.parser.constructs.contentInitial,u,c);let a;return r;function u(m){if(m===null){n.consume(m);return}return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),He(n,r,"linePrefix")}function c(m){return n.enter("paragraph"),h(m)}function h(m){const g=n.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=g),a=g,f(m)}function f(m){if(m===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(m);return}return be(m)?(n.consume(m),n.exit("chunkText"),h):(n.consume(m),f)}}const D1={tokenize:_1},sp={tokenize:M1};function _1(n){const r=this,a=[];let u=0,c,h,f;return m;function m(V){if(u<a.length){const se=a[u];return r.containerState=se[1],n.attempt(se[0].continuation,g,p)(V)}return p(V)}function g(V){if(u++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,c&&F();const se=r.events.length;let ce=se,B;for(;ce--;)if(r.events[ce][0]==="exit"&&r.events[ce][1].type==="chunkFlow"){B=r.events[ce][1].end;break}_(u);let ee=se;for(;ee<r.events.length;)r.events[ee][1].end={...B},ee++;return Wt(r.events,ce+1,0,r.events.slice(se)),r.events.length=ee,p(V)}return m(V)}function p(V){if(u===a.length){if(!c)return j(V);if(c.currentConstruct&&c.currentConstruct.concrete)return A(V);r.interrupt=!!(c.currentConstruct&&!c._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(sp,v,y)(V)}function v(V){return c&&F(),_(u),j(V)}function y(V){return r.parser.lazy[r.now().line]=u!==a.length,f=r.now().offset,A(V)}function j(V){return r.containerState={},n.attempt(sp,S,A)(V)}function S(V){return u++,a.push([r.currentConstruct,r.containerState]),j(V)}function A(V){if(V===null){c&&F(),_(0),n.consume(V);return}return c=c||r.parser.flow(r.now()),n.enter("chunkFlow",{_tokenizer:c,contentType:"flow",previous:h}),H(V)}function H(V){if(V===null){Y(n.exit("chunkFlow"),!0),_(0),n.consume(V);return}return be(V)?(n.consume(V),Y(n.exit("chunkFlow")),u=0,r.interrupt=void 0,m):(n.consume(V),H)}function Y(V,se){const ce=r.sliceStream(V);if(se&&ce.push(null),V.previous=h,h&&(h.next=V),h=V,c.defineSkip(V.start),c.write(ce),r.parser.lazy[V.start.line]){let B=c.events.length;for(;B--;)if(c.events[B][1].start.offset<f&&(!c.events[B][1].end||c.events[B][1].end.offset>f))return;const ee=r.events.length;let ue=ee,ye,M;for(;ue--;)if(r.events[ue][0]==="exit"&&r.events[ue][1].type==="chunkFlow"){if(ye){M=r.events[ue][1].end;break}ye=!0}for(_(u),B=ee;B<r.events.length;)r.events[B][1].end={...M},B++;Wt(r.events,ue+1,0,r.events.slice(ee)),r.events.length=B}}function _(V){let se=a.length;for(;se-- >V;){const ce=a[se];r.containerState=ce[1],ce[0].exit.call(r,n)}a.length=V}function F(){c.write([null]),h=void 0,c=void 0,r.containerState._closeFlow=void 0}}function M1(n,r,a){return He(n,n.attempt(this.parser.constructs.document,r,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ci(n){if(n===null||et(n)||Ul(n))return 1;if(mu(n))return 2}function pu(n,r,a){const u=[];let c=-1;for(;++c<n.length;){const h=n[c].resolveAll;h&&!u.includes(h)&&(r=h(r,a),u.push(h))}return r}const fo={name:"attention",resolveAll:O1,tokenize:R1};function O1(n,r){let a=-1,u,c,h,f,m,g,p,v;for(;++a<n.length;)if(n[a][0]==="enter"&&n[a][1].type==="attentionSequence"&&n[a][1]._close){for(u=a;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&r.sliceSerialize(n[u][1]).charCodeAt(0)===r.sliceSerialize(n[a][1]).charCodeAt(0)){if((n[u][1]._close||n[a][1]._open)&&(n[a][1].end.offset-n[a][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[a][1].end.offset-n[a][1].start.offset)%3))continue;g=n[u][1].end.offset-n[u][1].start.offset>1&&n[a][1].end.offset-n[a][1].start.offset>1?2:1;const y={...n[u][1].end},j={...n[a][1].start};cp(y,-g),cp(j,g),f={type:g>1?"strongSequence":"emphasisSequence",start:y,end:{...n[u][1].end}},m={type:g>1?"strongSequence":"emphasisSequence",start:{...n[a][1].start},end:j},h={type:g>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[a][1].start}},c={type:g>1?"strong":"emphasis",start:{...f.start},end:{...m.end}},n[u][1].end={...f.start},n[a][1].start={...m.end},p=[],n[u][1].end.offset-n[u][1].start.offset&&(p=on(p,[["enter",n[u][1],r],["exit",n[u][1],r]])),p=on(p,[["enter",c,r],["enter",f,r],["exit",f,r],["enter",h,r]]),p=on(p,pu(r.parser.constructs.insideSpan.null,n.slice(u+1,a),r)),p=on(p,[["exit",h,r],["enter",m,r],["exit",m,r],["exit",c,r]]),n[a][1].end.offset-n[a][1].start.offset?(v=2,p=on(p,[["enter",n[a][1],r],["exit",n[a][1],r]])):v=0,Wt(n,u-1,a-u+3,p),a=u+p.length-v-2;break}}for(a=-1;++a<n.length;)n[a][1].type==="attentionSequence"&&(n[a][1].type="data");return n}function R1(n,r){const a=this.parser.constructs.attentionMarkers.null,u=this.previous,c=Ci(u);let h;return f;function f(g){return h=g,n.enter("attentionSequence"),m(g)}function m(g){if(g===h)return n.consume(g),m;const p=n.exit("attentionSequence"),v=Ci(g),y=!v||v===2&&c||a.includes(g),j=!c||c===2&&v||a.includes(u);return p._open=!!(h===42?y:y&&(c||!j)),p._close=!!(h===42?j:j&&(v||!y)),r(g)}}function cp(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const L1={name:"autolink",tokenize:B1};function B1(n,r,a){let u=0;return c;function c(S){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),h}function h(S){return Dt(S)?(n.consume(S),f):S===64?a(S):p(S)}function f(S){return S===43||S===45||S===46||At(S)?(u=1,m(S)):p(S)}function m(S){return S===58?(n.consume(S),u=0,g):(S===43||S===45||S===46||At(S))&&u++<32?(n.consume(S),m):(u=0,p(S))}function g(S){return S===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),r):S===null||S===32||S===60||su(S)?a(S):(n.consume(S),g)}function p(S){return S===64?(n.consume(S),v):T1(S)?(n.consume(S),p):a(S)}function v(S){return At(S)?y(S):a(S)}function y(S){return S===46?(n.consume(S),u=0,v):S===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),r):j(S)}function j(S){if((S===45||At(S))&&u++<63){const A=S===45?j:y;return n.consume(S),A}return a(S)}}const La={partial:!0,tokenize:U1};function U1(n,r,a){return u;function u(h){return Re(h)?He(n,c,"linePrefix")(h):c(h)}function c(h){return h===null||be(h)?r(h):a(h)}}const ng={continuation:{tokenize:q1},exit:Y1,name:"blockQuote",tokenize:H1};function H1(n,r,a){const u=this;return c;function c(f){if(f===62){const m=u.containerState;return m.open||(n.enter("blockQuote",{_container:!0}),m.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),h}return a(f)}function h(f){return Re(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(f))}}function q1(n,r,a){const u=this;return c;function c(f){return Re(f)?He(n,h,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):h(f)}function h(f){return n.attempt(ng,r,a)(f)}}function Y1(n){n.exit("blockQuote")}const lg={name:"characterEscape",tokenize:G1};function G1(n,r,a){return u;function u(h){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(h),n.exit("escapeMarker"),c}function c(h){return C1(h)?(n.enter("characterEscapeValue"),n.consume(h),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):a(h)}}const ig={name:"characterReference",tokenize:V1};function V1(n,r,a){const u=this;let c=0,h,f;return m;function m(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),g}function g(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),h=31,f=At,v(y))}function p(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),h=6,f=A1,v):(n.enter("characterReferenceValue"),h=7,f=oo,v(y))}function v(y){if(y===59&&c){const j=n.exit("characterReferenceValue");return f===At&&!Ao(u.sliceSerialize(j))?a(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return f(y)&&c++<h?(n.consume(y),v):a(y)}}const op={partial:!0,tokenize:X1},fp={concrete:!0,name:"codeFenced",tokenize:Q1};function Q1(n,r,a){const u=this,c={partial:!0,tokenize:ce};let h=0,f=0,m;return g;function g(B){return p(B)}function p(B){const ee=u.events[u.events.length-1];return h=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,m=B,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),v(B)}function v(B){return B===m?(f++,n.consume(B),v):f<3?a(B):(n.exit("codeFencedFenceSequence"),Re(B)?He(n,y,"whitespace")(B):y(B))}function y(B){return B===null||be(B)?(n.exit("codeFencedFence"),u.interrupt?r(B):n.check(op,H,se)(B)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),j(B))}function j(B){return B===null||be(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(B)):Re(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),He(n,S,"whitespace")(B)):B===96&&B===m?a(B):(n.consume(B),j)}function S(B){return B===null||be(B)?y(B):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(B))}function A(B){return B===null||be(B)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(B)):B===96&&B===m?a(B):(n.consume(B),A)}function H(B){return n.attempt(c,se,Y)(B)}function Y(B){return n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),_}function _(B){return h>0&&Re(B)?He(n,F,"linePrefix",h+1)(B):F(B)}function F(B){return B===null||be(B)?n.check(op,H,se)(B):(n.enter("codeFlowValue"),V(B))}function V(B){return B===null||be(B)?(n.exit("codeFlowValue"),F(B)):(n.consume(B),V)}function se(B){return n.exit("codeFenced"),r(B)}function ce(B,ee,ue){let ye=0;return M;function M(P){return B.enter("lineEnding"),B.consume(P),B.exit("lineEnding"),le}function le(P){return B.enter("codeFencedFence"),Re(P)?He(B,ie,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ie(P)}function ie(P){return P===m?(B.enter("codeFencedFenceSequence"),ge(P)):ue(P)}function ge(P){return P===m?(ye++,B.consume(P),ge):ye>=f?(B.exit("codeFencedFenceSequence"),Re(P)?He(B,ae,"whitespace")(P):ae(P)):ue(P)}function ae(P){return P===null||be(P)?(B.exit("codeFencedFence"),ee(P)):ue(P)}}}function X1(n,r,a){const u=this;return c;function c(f){return f===null?a(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h)}function h(f){return u.parser.lazy[u.now().line]?a(f):r(f)}}const Qc={name:"codeIndented",tokenize:Z1},K1={partial:!0,tokenize:F1};function Z1(n,r,a){const u=this;return c;function c(p){return n.enter("codeIndented"),He(n,h,"linePrefix",5)(p)}function h(p){const v=u.events[u.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?f(p):a(p)}function f(p){return p===null?g(p):be(p)?n.attempt(K1,f,g)(p):(n.enter("codeFlowValue"),m(p))}function m(p){return p===null||be(p)?(n.exit("codeFlowValue"),f(p)):(n.consume(p),m)}function g(p){return n.exit("codeIndented"),r(p)}}function F1(n,r,a){const u=this;return c;function c(f){return u.parser.lazy[u.now().line]?a(f):be(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c):He(n,h,"linePrefix",5)(f)}function h(f){const m=u.events[u.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(f):be(f)?c(f):a(f)}}const J1={name:"codeText",previous:I1,resolve:$1,tokenize:W1};function $1(n){let r=n.length-4,a=3,u,c;if((n[a][1].type==="lineEnding"||n[a][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(u=a;++u<r;)if(n[u][1].type==="codeTextData"){n[a][1].type="codeTextPadding",n[r][1].type="codeTextPadding",a+=2,r-=2;break}}for(u=a-1,r++;++u<=r;)c===void 0?u!==r&&n[u][1].type!=="lineEnding"&&(c=u):(u===r||n[u][1].type==="lineEnding")&&(n[c][1].type="codeTextData",u!==c+2&&(n[c][1].end=n[u-1][1].end,n.splice(c+2,u-c-2),r-=u-c-2,u=c+2),c=void 0);return n}function I1(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function W1(n,r,a){let u=0,c,h;return f;function f(y){return n.enter("codeText"),n.enter("codeTextSequence"),m(y)}function m(y){return y===96?(n.consume(y),u++,m):(n.exit("codeTextSequence"),g(y))}function g(y){return y===null?a(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),g):y===96?(h=n.enter("codeTextSequence"),c=0,v(y)):be(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),g):(n.enter("codeTextData"),p(y))}function p(y){return y===null||y===32||y===96||be(y)?(n.exit("codeTextData"),g(y)):(n.consume(y),p)}function v(y){return y===96?(n.consume(y),c++,v):c===u?(n.exit("codeTextSequence"),n.exit("codeText"),r(y)):(h.type="codeTextData",p(y))}}class P1{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,a){const u=a??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(r,u):r>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(r,a,u){const c=a||0;this.setCursor(Math.trunc(r));const h=this.right.splice(this.right.length-c,Number.POSITIVE_INFINITY);return u&&Aa(this.left,u),h.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Aa(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Aa(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const a=this.left.splice(r,Number.POSITIVE_INFINITY);Aa(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Aa(this.left,a.reverse())}}}function Aa(n,r){let a=0;if(r.length<1e4)n.push(...r);else for(;a<r.length;)n.push(...r.slice(a,a+1e4)),a+=1e4}function ag(n){const r={};let a=-1,u,c,h,f,m,g,p;const v=new P1(n);for(;++a<v.length;){for(;a in r;)a=r[a];if(u=v.get(a),a&&u[1].type==="chunkFlow"&&v.get(a-1)[1].type==="listItemPrefix"&&(g=u[1]._tokenizer.events,h=0,h<g.length&&g[h][1].type==="lineEndingBlank"&&(h+=2),h<g.length&&g[h][1].type==="content"))for(;++h<g.length&&g[h][1].type!=="content";)g[h][1].type==="chunkText"&&(g[h][1]._isInFirstContentOfListItem=!0,h++);if(u[0]==="enter")u[1].contentType&&(Object.assign(r,e0(v,a)),a=r[a],p=!0);else if(u[1]._container){for(h=a,c=void 0;h--;)if(f=v.get(h),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(c&&(v.get(c)[1].type="lineEndingBlank"),f[1].type="lineEnding",c=h);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;c&&(u[1].end={...v.get(c)[1].start},m=v.slice(c,a),m.unshift(u),v.splice(c,a-c+1,m))}}return Wt(n,0,Number.POSITIVE_INFINITY,v.slice(0)),!p}function e0(n,r){const a=n.get(r)[1],u=n.get(r)[2];let c=r-1;const h=[];let f=a._tokenizer;f||(f=u.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const m=f.events,g=[],p={};let v,y,j=-1,S=a,A=0,H=0;const Y=[H];for(;S;){for(;n.get(++c)[1]!==S;);h.push(c),S._tokenizer||(v=u.sliceStream(S),S.next||v.push(null),y&&f.defineSkip(S.start),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(v),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=S,S=S.next}for(S=a;++j<m.length;)m[j][0]==="exit"&&m[j-1][0]==="enter"&&m[j][1].type===m[j-1][1].type&&m[j][1].start.line!==m[j][1].end.line&&(H=j+1,Y.push(H),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(f.events=[],S?(S._tokenizer=void 0,S.previous=void 0):Y.pop(),j=Y.length;j--;){const _=m.slice(Y[j],Y[j+1]),F=h.pop();g.push([F,F+_.length-1]),n.splice(F,2,_)}for(g.reverse(),j=-1;++j<g.length;)p[A+g[j][0]]=A+g[j][1],A+=g[j][1]-g[j][0]-1;return p}const t0={resolve:l0,tokenize:i0},n0={partial:!0,tokenize:a0};function l0(n){return ag(n),n}function i0(n,r){let a;return u;function u(m){return n.enter("content"),a=n.enter("chunkContent",{contentType:"content"}),c(m)}function c(m){return m===null?h(m):be(m)?n.check(n0,f,h)(m):(n.consume(m),c)}function h(m){return n.exit("chunkContent"),n.exit("content"),r(m)}function f(m){return n.consume(m),n.exit("chunkContent"),a.next=n.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,c}}function a0(n,r,a){const u=this;return c;function c(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),He(n,h,"linePrefix")}function h(f){if(f===null||be(f))return a(f);const m=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(f):n.interrupt(u.parser.constructs.flow,a,r)(f)}}function rg(n,r,a,u,c,h,f,m,g){const p=g||Number.POSITIVE_INFINITY;let v=0;return y;function y(_){return _===60?(n.enter(u),n.enter(c),n.enter(h),n.consume(_),n.exit(h),j):_===null||_===32||_===41||su(_)?a(_):(n.enter(u),n.enter(f),n.enter(m),n.enter("chunkString",{contentType:"string"}),H(_))}function j(_){return _===62?(n.enter(h),n.consume(_),n.exit(h),n.exit(c),n.exit(u),r):(n.enter(m),n.enter("chunkString",{contentType:"string"}),S(_))}function S(_){return _===62?(n.exit("chunkString"),n.exit(m),j(_)):_===null||_===60||be(_)?a(_):(n.consume(_),_===92?A:S)}function A(_){return _===60||_===62||_===92?(n.consume(_),S):S(_)}function H(_){return!v&&(_===null||_===41||et(_))?(n.exit("chunkString"),n.exit(m),n.exit(f),n.exit(u),r(_)):v<p&&_===40?(n.consume(_),v++,H):_===41?(n.consume(_),v--,H):_===null||_===32||_===40||su(_)?a(_):(n.consume(_),_===92?Y:H)}function Y(_){return _===40||_===41||_===92?(n.consume(_),H):H(_)}}function ug(n,r,a,u,c,h){const f=this;let m=0,g;return p;function p(S){return n.enter(u),n.enter(c),n.consume(S),n.exit(c),n.enter(h),v}function v(S){return m>999||S===null||S===91||S===93&&!g||S===94&&!m&&"_hiddenFootnoteSupport"in f.parser.constructs?a(S):S===93?(n.exit(h),n.enter(c),n.consume(S),n.exit(c),n.exit(u),r):be(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),v):(n.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||S===91||S===93||be(S)||m++>999?(n.exit("chunkString"),v(S)):(n.consume(S),g||(g=!Re(S)),S===92?j:y)}function j(S){return S===91||S===92||S===93?(n.consume(S),m++,y):y(S)}}function sg(n,r,a,u,c,h){let f;return m;function m(j){return j===34||j===39||j===40?(n.enter(u),n.enter(c),n.consume(j),n.exit(c),f=j===40?41:j,g):a(j)}function g(j){return j===f?(n.enter(c),n.consume(j),n.exit(c),n.exit(u),r):(n.enter(h),p(j))}function p(j){return j===f?(n.exit(h),g(f)):j===null?a(j):be(j)?(n.enter("lineEnding"),n.consume(j),n.exit("lineEnding"),He(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),v(j))}function v(j){return j===f||j===null||be(j)?(n.exit("chunkString"),p(j)):(n.consume(j),j===92?y:v)}function y(j){return j===f||j===92?(n.consume(j),v):v(j)}}function Da(n,r){let a;return u;function u(c){return be(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),a=!0,u):Re(c)?He(n,u,a?"linePrefix":"lineSuffix")(c):r(c)}}const r0={name:"definition",tokenize:s0},u0={partial:!0,tokenize:c0};function s0(n,r,a){const u=this;let c;return h;function h(S){return n.enter("definition"),f(S)}function f(S){return ug.call(u,n,m,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function m(S){return c=yn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),S===58?(n.enter("definitionMarker"),n.consume(S),n.exit("definitionMarker"),g):a(S)}function g(S){return et(S)?Da(n,p)(S):p(S)}function p(S){return rg(n,v,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function v(S){return n.attempt(u0,y,y)(S)}function y(S){return Re(S)?He(n,j,"whitespace")(S):j(S)}function j(S){return S===null||be(S)?(n.exit("definition"),u.parser.defined.push(c),r(S)):a(S)}}function c0(n,r,a){return u;function u(m){return et(m)?Da(n,c)(m):a(m)}function c(m){return sg(n,h,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function h(m){return Re(m)?He(n,f,"whitespace")(m):f(m)}function f(m){return m===null||be(m)?r(m):a(m)}}const o0={name:"hardBreakEscape",tokenize:f0};function f0(n,r,a){return u;function u(h){return n.enter("hardBreakEscape"),n.consume(h),c}function c(h){return be(h)?(n.exit("hardBreakEscape"),r(h)):a(h)}}const h0={name:"headingAtx",resolve:d0,tokenize:m0};function d0(n,r){let a=n.length-2,u=3,c,h;return n[u][1].type==="whitespace"&&(u+=2),a-2>u&&n[a][1].type==="whitespace"&&(a-=2),n[a][1].type==="atxHeadingSequence"&&(u===a-1||a-4>u&&n[a-2][1].type==="whitespace")&&(a-=u+1===a?2:4),a>u&&(c={type:"atxHeadingText",start:n[u][1].start,end:n[a][1].end},h={type:"chunkText",start:n[u][1].start,end:n[a][1].end,contentType:"text"},Wt(n,u,a-u+1,[["enter",c,r],["enter",h,r],["exit",h,r],["exit",c,r]])),n}function m0(n,r,a){let u=0;return c;function c(v){return n.enter("atxHeading"),h(v)}function h(v){return n.enter("atxHeadingSequence"),f(v)}function f(v){return v===35&&u++<6?(n.consume(v),f):v===null||et(v)?(n.exit("atxHeadingSequence"),m(v)):a(v)}function m(v){return v===35?(n.enter("atxHeadingSequence"),g(v)):v===null||be(v)?(n.exit("atxHeading"),r(v)):Re(v)?He(n,m,"whitespace")(v):(n.enter("atxHeadingText"),p(v))}function g(v){return v===35?(n.consume(v),g):(n.exit("atxHeadingSequence"),m(v))}function p(v){return v===null||v===35||et(v)?(n.exit("atxHeadingText"),m(v)):(n.consume(v),p)}}const p0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hp=["pre","script","style","textarea"],g0={concrete:!0,name:"htmlFlow",resolveTo:v0,tokenize:b0},y0={partial:!0,tokenize:k0},x0={partial:!0,tokenize:S0};function v0(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function b0(n,r,a){const u=this;let c,h,f,m,g;return p;function p(k){return v(k)}function v(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),y}function y(k){return k===33?(n.consume(k),j):k===47?(n.consume(k),h=!0,H):k===63?(n.consume(k),c=3,u.interrupt?r:E):Dt(k)?(n.consume(k),f=String.fromCharCode(k),Y):a(k)}function j(k){return k===45?(n.consume(k),c=2,S):k===91?(n.consume(k),c=5,m=0,A):Dt(k)?(n.consume(k),c=4,u.interrupt?r:E):a(k)}function S(k){return k===45?(n.consume(k),u.interrupt?r:E):a(k)}function A(k){const W="CDATA[";return k===W.charCodeAt(m++)?(n.consume(k),m===W.length?u.interrupt?r:ie:A):a(k)}function H(k){return Dt(k)?(n.consume(k),f=String.fromCharCode(k),Y):a(k)}function Y(k){if(k===null||k===47||k===62||et(k)){const W=k===47,he=f.toLowerCase();return!W&&!h&&hp.includes(he)?(c=1,u.interrupt?r(k):ie(k)):p0.includes(f.toLowerCase())?(c=6,W?(n.consume(k),_):u.interrupt?r(k):ie(k)):(c=7,u.interrupt&&!u.parser.lazy[u.now().line]?a(k):h?F(k):V(k))}return k===45||At(k)?(n.consume(k),f+=String.fromCharCode(k),Y):a(k)}function _(k){return k===62?(n.consume(k),u.interrupt?r:ie):a(k)}function F(k){return Re(k)?(n.consume(k),F):M(k)}function V(k){return k===47?(n.consume(k),M):k===58||k===95||Dt(k)?(n.consume(k),se):Re(k)?(n.consume(k),V):M(k)}function se(k){return k===45||k===46||k===58||k===95||At(k)?(n.consume(k),se):ce(k)}function ce(k){return k===61?(n.consume(k),B):Re(k)?(n.consume(k),ce):V(k)}function B(k){return k===null||k===60||k===61||k===62||k===96?a(k):k===34||k===39?(n.consume(k),g=k,ee):Re(k)?(n.consume(k),B):ue(k)}function ee(k){return k===g?(n.consume(k),g=null,ye):k===null||be(k)?a(k):(n.consume(k),ee)}function ue(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||et(k)?ce(k):(n.consume(k),ue)}function ye(k){return k===47||k===62||Re(k)?V(k):a(k)}function M(k){return k===62?(n.consume(k),le):a(k)}function le(k){return k===null||be(k)?ie(k):Re(k)?(n.consume(k),le):a(k)}function ie(k){return k===45&&c===2?(n.consume(k),D):k===60&&c===1?(n.consume(k),I):k===62&&c===4?(n.consume(k),N):k===63&&c===3?(n.consume(k),E):k===93&&c===5?(n.consume(k),ve):be(k)&&(c===6||c===7)?(n.exit("htmlFlowData"),n.check(y0,U,ge)(k)):k===null||be(k)?(n.exit("htmlFlowData"),ge(k)):(n.consume(k),ie)}function ge(k){return n.check(x0,ae,U)(k)}function ae(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),P}function P(k){return k===null||be(k)?ge(k):(n.enter("htmlFlowData"),ie(k))}function D(k){return k===45?(n.consume(k),E):ie(k)}function I(k){return k===47?(n.consume(k),f="",K):ie(k)}function K(k){if(k===62){const W=f.toLowerCase();return hp.includes(W)?(n.consume(k),N):ie(k)}return Dt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),K):ie(k)}function ve(k){return k===93?(n.consume(k),E):ie(k)}function E(k){return k===62?(n.consume(k),N):k===45&&c===2?(n.consume(k),E):ie(k)}function N(k){return k===null||be(k)?(n.exit("htmlFlowData"),U(k)):(n.consume(k),N)}function U(k){return n.exit("htmlFlow"),r(k)}}function S0(n,r,a){const u=this;return c;function c(f){return be(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h):a(f)}function h(f){return u.parser.lazy[u.now().line]?a(f):r(f)}}function k0(n,r,a){return u;function u(c){return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),n.attempt(La,r,a)}}const j0={name:"htmlText",tokenize:E0};function E0(n,r,a){const u=this;let c,h,f;return m;function m(E){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(E),g}function g(E){return E===33?(n.consume(E),p):E===47?(n.consume(E),ce):E===63?(n.consume(E),V):Dt(E)?(n.consume(E),ue):a(E)}function p(E){return E===45?(n.consume(E),v):E===91?(n.consume(E),h=0,A):Dt(E)?(n.consume(E),F):a(E)}function v(E){return E===45?(n.consume(E),S):a(E)}function y(E){return E===null?a(E):E===45?(n.consume(E),j):be(E)?(f=y,I(E)):(n.consume(E),y)}function j(E){return E===45?(n.consume(E),S):y(E)}function S(E){return E===62?D(E):E===45?j(E):y(E)}function A(E){const N="CDATA[";return E===N.charCodeAt(h++)?(n.consume(E),h===N.length?H:A):a(E)}function H(E){return E===null?a(E):E===93?(n.consume(E),Y):be(E)?(f=H,I(E)):(n.consume(E),H)}function Y(E){return E===93?(n.consume(E),_):H(E)}function _(E){return E===62?D(E):E===93?(n.consume(E),_):H(E)}function F(E){return E===null||E===62?D(E):be(E)?(f=F,I(E)):(n.consume(E),F)}function V(E){return E===null?a(E):E===63?(n.consume(E),se):be(E)?(f=V,I(E)):(n.consume(E),V)}function se(E){return E===62?D(E):V(E)}function ce(E){return Dt(E)?(n.consume(E),B):a(E)}function B(E){return E===45||At(E)?(n.consume(E),B):ee(E)}function ee(E){return be(E)?(f=ee,I(E)):Re(E)?(n.consume(E),ee):D(E)}function ue(E){return E===45||At(E)?(n.consume(E),ue):E===47||E===62||et(E)?ye(E):a(E)}function ye(E){return E===47?(n.consume(E),D):E===58||E===95||Dt(E)?(n.consume(E),M):be(E)?(f=ye,I(E)):Re(E)?(n.consume(E),ye):D(E)}function M(E){return E===45||E===46||E===58||E===95||At(E)?(n.consume(E),M):le(E)}function le(E){return E===61?(n.consume(E),ie):be(E)?(f=le,I(E)):Re(E)?(n.consume(E),le):ye(E)}function ie(E){return E===null||E===60||E===61||E===62||E===96?a(E):E===34||E===39?(n.consume(E),c=E,ge):be(E)?(f=ie,I(E)):Re(E)?(n.consume(E),ie):(n.consume(E),ae)}function ge(E){return E===c?(n.consume(E),c=void 0,P):E===null?a(E):be(E)?(f=ge,I(E)):(n.consume(E),ge)}function ae(E){return E===null||E===34||E===39||E===60||E===61||E===96?a(E):E===47||E===62||et(E)?ye(E):(n.consume(E),ae)}function P(E){return E===47||E===62||et(E)?ye(E):a(E)}function D(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),r):a(E)}function I(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),K}function K(E){return Re(E)?He(n,ve,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ve(E)}function ve(E){return n.enter("htmlTextData"),f(E)}}const Co={name:"labelEnd",resolveAll:C0,resolveTo:w0,tokenize:z0},N0={tokenize:D0},T0={tokenize:_0},A0={tokenize:M0};function C0(n){let r=-1;const a=[];for(;++r<n.length;){const u=n[r][1];if(a.push(n[r]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const c=u.type==="labelImage"?4:2;u.type="data",r+=c}}return n.length!==a.length&&Wt(n,0,n.length,a),n}function w0(n,r){let a=n.length,u=0,c,h,f,m;for(;a--;)if(c=n[a][1],h){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;n[a][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(f){if(n[a][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(h=a,c.type!=="labelLink")){u=2;break}}else c.type==="labelEnd"&&(f=a);const g={type:n[h][1].type==="labelLink"?"link":"image",start:{...n[h][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[h][1].start},end:{...n[f][1].end}},v={type:"labelText",start:{...n[h+u+2][1].end},end:{...n[f-2][1].start}};return m=[["enter",g,r],["enter",p,r]],m=on(m,n.slice(h+1,h+u+3)),m=on(m,[["enter",v,r]]),m=on(m,pu(r.parser.constructs.insideSpan.null,n.slice(h+u+4,f-3),r)),m=on(m,[["exit",v,r],n[f-2],n[f-1],["exit",p,r]]),m=on(m,n.slice(f+1)),m=on(m,[["exit",g,r]]),Wt(n,h,n.length,m),n}function z0(n,r,a){const u=this;let c=u.events.length,h,f;for(;c--;)if((u.events[c][1].type==="labelImage"||u.events[c][1].type==="labelLink")&&!u.events[c][1]._balanced){h=u.events[c][1];break}return m;function m(j){return h?h._inactive?y(j):(f=u.parser.defined.includes(yn(u.sliceSerialize({start:h.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(j),n.exit("labelMarker"),n.exit("labelEnd"),g):a(j)}function g(j){return j===40?n.attempt(N0,v,f?v:y)(j):j===91?n.attempt(T0,v,f?p:y)(j):f?v(j):y(j)}function p(j){return n.attempt(A0,v,y)(j)}function v(j){return r(j)}function y(j){return h._balanced=!0,a(j)}}function D0(n,r,a){return u;function u(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),c}function c(y){return et(y)?Da(n,h)(y):h(y)}function h(y){return y===41?v(y):rg(n,f,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return et(y)?Da(n,g)(y):v(y)}function m(y){return a(y)}function g(y){return y===34||y===39||y===40?sg(n,p,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):v(y)}function p(y){return et(y)?Da(n,v)(y):v(y)}function v(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),r):a(y)}}function _0(n,r,a){const u=this;return c;function c(m){return ug.call(u,n,h,f,"reference","referenceMarker","referenceString")(m)}function h(m){return u.parser.defined.includes(yn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?r(m):a(m)}function f(m){return a(m)}}function M0(n,r,a){return u;function u(h){return n.enter("reference"),n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),c}function c(h){return h===93?(n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),n.exit("reference"),r):a(h)}}const O0={name:"labelStartImage",resolveAll:Co.resolveAll,tokenize:R0};function R0(n,r,a){const u=this;return c;function c(m){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(m),n.exit("labelImageMarker"),h}function h(m){return m===91?(n.enter("labelMarker"),n.consume(m),n.exit("labelMarker"),n.exit("labelImage"),f):a(m)}function f(m){return m===94&&"_hiddenFootnoteSupport"in u.parser.constructs?a(m):r(m)}}const L0={name:"labelStartLink",resolveAll:Co.resolveAll,tokenize:B0};function B0(n,r,a){const u=this;return c;function c(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),h}function h(f){return f===94&&"_hiddenFootnoteSupport"in u.parser.constructs?a(f):r(f)}}const Xc={name:"lineEnding",tokenize:U0};function U0(n,r){return a;function a(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),He(n,r,"linePrefix")}}const au={name:"thematicBreak",tokenize:H0};function H0(n,r,a){let u=0,c;return h;function h(p){return n.enter("thematicBreak"),f(p)}function f(p){return c=p,m(p)}function m(p){return p===c?(n.enter("thematicBreakSequence"),g(p)):u>=3&&(p===null||be(p))?(n.exit("thematicBreak"),r(p)):a(p)}function g(p){return p===c?(n.consume(p),u++,g):(n.exit("thematicBreakSequence"),Re(p)?He(n,m,"whitespace")(p):m(p))}}const qt={continuation:{tokenize:V0},exit:X0,name:"list",tokenize:G0},q0={partial:!0,tokenize:K0},Y0={partial:!0,tokenize:Q0};function G0(n,r,a){const u=this,c=u.events[u.events.length-1];let h=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,f=0;return m;function m(S){const A=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:oo(S)){if(u.containerState.type||(u.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),S===42||S===45?n.check(au,a,p)(S):p(S);if(!u.interrupt||S===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),g(S)}return a(S)}function g(S){return oo(S)&&++f<10?(n.consume(S),g):(!u.interrupt||f<2)&&(u.containerState.marker?S===u.containerState.marker:S===41||S===46)?(n.exit("listItemValue"),p(S)):a(S)}function p(S){return n.enter("listItemMarker"),n.consume(S),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||S,n.check(La,u.interrupt?a:v,n.attempt(q0,j,y))}function v(S){return u.containerState.initialBlankLine=!0,h++,j(S)}function y(S){return Re(S)?(n.enter("listItemPrefixWhitespace"),n.consume(S),n.exit("listItemPrefixWhitespace"),j):a(S)}function j(S){return u.containerState.size=h+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(S)}}function V0(n,r,a){const u=this;return u.containerState._closeFlow=void 0,n.check(La,c,h);function c(m){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,He(n,r,"listItemIndent",u.containerState.size+1)(m)}function h(m){return u.containerState.furtherBlankLines||!Re(m)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(m)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(Y0,r,f)(m))}function f(m){return u.containerState._closeFlow=!0,u.interrupt=void 0,He(n,n.attempt(qt,r,a),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function Q0(n,r,a){const u=this;return He(n,c,"listItemIndent",u.containerState.size+1);function c(h){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?r(h):a(h)}}function X0(n){n.exit(this.containerState.type)}function K0(n,r,a){const u=this;return He(n,c,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(h){const f=u.events[u.events.length-1];return!Re(h)&&f&&f[1].type==="listItemPrefixWhitespace"?r(h):a(h)}}const dp={name:"setextUnderline",resolveTo:Z0,tokenize:F0};function Z0(n,r){let a=n.length,u,c,h;for(;a--;)if(n[a][0]==="enter"){if(n[a][1].type==="content"){u=a;break}n[a][1].type==="paragraph"&&(c=a)}else n[a][1].type==="content"&&n.splice(a,1),!h&&n[a][1].type==="definition"&&(h=a);const f={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[c][1].type="setextHeadingText",h?(n.splice(c,0,["enter",f,r]),n.splice(h+1,0,["exit",n[u][1],r]),n[u][1].end={...n[h][1].end}):n[u][1]=f,n.push(["exit",f,r]),n}function F0(n,r,a){const u=this;let c;return h;function h(p){let v=u.events.length,y;for(;v--;)if(u.events[v][1].type!=="lineEnding"&&u.events[v][1].type!=="linePrefix"&&u.events[v][1].type!=="content"){y=u.events[v][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||y)?(n.enter("setextHeadingLine"),c=p,f(p)):a(p)}function f(p){return n.enter("setextHeadingLineSequence"),m(p)}function m(p){return p===c?(n.consume(p),m):(n.exit("setextHeadingLineSequence"),Re(p)?He(n,g,"lineSuffix")(p):g(p))}function g(p){return p===null||be(p)?(n.exit("setextHeadingLine"),r(p)):a(p)}}const J0={tokenize:$0};function $0(n){const r=this,a=n.attempt(La,u,n.attempt(this.parser.constructs.flowInitial,c,He(n,n.attempt(this.parser.constructs.flow,c,n.attempt(t0,c)),"linePrefix")));return a;function u(h){if(h===null){n.consume(h);return}return n.enter("lineEndingBlank"),n.consume(h),n.exit("lineEndingBlank"),r.currentConstruct=void 0,a}function c(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),r.currentConstruct=void 0,a}}const I0={resolveAll:og()},W0=cg("string"),P0=cg("text");function cg(n){return{resolveAll:og(n==="text"?eb:void 0),tokenize:r};function r(a){const u=this,c=this.parser.constructs[n],h=a.attempt(c,f,m);return f;function f(v){return p(v)?h(v):m(v)}function m(v){if(v===null){a.consume(v);return}return a.enter("data"),a.consume(v),g}function g(v){return p(v)?(a.exit("data"),h(v)):(a.consume(v),g)}function p(v){if(v===null)return!0;const y=c[v];let j=-1;if(y)for(;++j<y.length;){const S=y[j];if(!S.previous||S.previous.call(u,u.previous))return!0}return!1}}}function og(n){return r;function r(a,u){let c=-1,h;for(;++c<=a.length;)h===void 0?a[c]&&a[c][1].type==="data"&&(h=c,c++):(!a[c]||a[c][1].type!=="data")&&(c!==h+2&&(a[h][1].end=a[c-1][1].end,a.splice(h+2,c-h-2),c=h+2),h=void 0);return n?n(a,u):a}}function eb(n,r){let a=0;for(;++a<=n.length;)if((a===n.length||n[a][1].type==="lineEnding")&&n[a-1][1].type==="data"){const u=n[a-1][1],c=r.sliceStream(u);let h=c.length,f=-1,m=0,g;for(;h--;){const p=c[h];if(typeof p=="string"){for(f=p.length;p.charCodeAt(f-1)===32;)m++,f--;if(f)break;f=-1}else if(p===-2)g=!0,m++;else if(p!==-1){h++;break}}if(r._contentTypeTextTrailing&&a===n.length&&(m=0),m){const p={type:a===n.length||g||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:h?f:u.start._bufferIndex+f,_index:u.start._index+h,line:u.end.line,column:u.end.column-m,offset:u.end.offset-m},end:{...u.end}};u.end={...p.start},u.start.offset===u.end.offset?Object.assign(u,p):(n.splice(a,0,["enter",p,r],["exit",p,r]),a+=2)}a++}return n}const tb={42:qt,43:qt,45:qt,48:qt,49:qt,50:qt,51:qt,52:qt,53:qt,54:qt,55:qt,56:qt,57:qt,62:ng},nb={91:r0},lb={[-2]:Qc,[-1]:Qc,32:Qc},ib={35:h0,42:au,45:[dp,au],60:g0,61:dp,95:au,96:fp,126:fp},ab={38:ig,92:lg},rb={[-5]:Xc,[-4]:Xc,[-3]:Xc,33:O0,38:ig,42:fo,60:[L1,j0],91:L0,92:[o0,lg],93:Co,95:fo,96:J1},ub={null:[fo,I0]},sb={null:[42,95]},cb={null:[]},ob=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:sb,contentInitial:nb,disable:cb,document:tb,flow:ib,flowInitial:lb,insideSpan:ub,string:ab,text:rb},Symbol.toStringTag,{value:"Module"}));function fb(n,r,a){let u={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const c={},h=[];let f=[],m=[];const g={attempt:ee(ce),check:ee(B),consume:F,enter:V,exit:se,interrupt:ee(B,{interrupt:!0})},p={code:null,containerState:{},defineSkip:H,events:[],now:A,parser:n,previous:null,sliceSerialize:j,sliceStream:S,write:y};let v=r.tokenize.call(p,g);return r.resolveAll&&h.push(r),p;function y(le){return f=on(f,le),Y(),f[f.length-1]!==null?[]:(ue(r,0),p.events=pu(h,p.events,p),p.events)}function j(le,ie){return db(S(le),ie)}function S(le){return hb(f,le)}function A(){const{_bufferIndex:le,_index:ie,line:ge,column:ae,offset:P}=u;return{_bufferIndex:le,_index:ie,line:ge,column:ae,offset:P}}function H(le){c[le.line]=le.column,M()}function Y(){let le;for(;u._index<f.length;){const ie=f[u._index];if(typeof ie=="string")for(le=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===le&&u._bufferIndex<ie.length;)_(ie.charCodeAt(u._bufferIndex));else _(ie)}}function _(le){v=v(le)}function F(le){be(le)?(u.line++,u.column=1,u.offset+=le===-3?2:1,M()):le!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),p.previous=le}function V(le,ie){const ge=ie||{};return ge.type=le,ge.start=A(),p.events.push(["enter",ge,p]),m.push(ge),ge}function se(le){const ie=m.pop();return ie.end=A(),p.events.push(["exit",ie,p]),ie}function ce(le,ie){ue(le,ie.from)}function B(le,ie){ie.restore()}function ee(le,ie){return ge;function ge(ae,P,D){let I,K,ve,E;return Array.isArray(ae)?U(ae):"tokenize"in ae?U([ae]):N(ae);function N(oe){return pe;function pe(Ae){const X=Ae!==null&&oe[Ae],w=Ae!==null&&oe.null,Z=[...Array.isArray(X)?X:X?[X]:[],...Array.isArray(w)?w:w?[w]:[]];return U(Z)(Ae)}}function U(oe){return I=oe,K=0,oe.length===0?D:k(oe[K])}function k(oe){return pe;function pe(Ae){return E=ye(),ve=oe,oe.partial||(p.currentConstruct=oe),oe.name&&p.parser.constructs.disable.null.includes(oe.name)?he():oe.tokenize.call(ie?Object.assign(Object.create(p),ie):p,g,W,he)(Ae)}}function W(oe){return le(ve,E),P}function he(oe){return E.restore(),++K<I.length?k(I[K]):D}}}function ue(le,ie){le.resolveAll&&!h.includes(le)&&h.push(le),le.resolve&&Wt(p.events,ie,p.events.length-ie,le.resolve(p.events.slice(ie),p)),le.resolveTo&&(p.events=le.resolveTo(p.events,p))}function ye(){const le=A(),ie=p.previous,ge=p.currentConstruct,ae=p.events.length,P=Array.from(m);return{from:ae,restore:D};function D(){u=le,p.previous=ie,p.currentConstruct=ge,p.events.length=ae,m=P,M()}}function M(){u.line in c&&u.column<2&&(u.column=c[u.line],u.offset+=c[u.line]-1)}}function hb(n,r){const a=r.start._index,u=r.start._bufferIndex,c=r.end._index,h=r.end._bufferIndex;let f;if(a===c)f=[n[a].slice(u,h)];else{if(f=n.slice(a,c),u>-1){const m=f[0];typeof m=="string"?f[0]=m.slice(u):f.shift()}h>0&&f.push(n[c].slice(0,h))}return f}function db(n,r){let a=-1;const u=[];let c;for(;++a<n.length;){const h=n[a];let f;if(typeof h=="string")f=h;else switch(h){case-5:{f="\r";break}case-4:{f=`
|
|
52
|
-
`;break}case-3:{f=`\r
|
|
53
|
-
`;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&c)continue;f=" ";break}default:f=String.fromCharCode(h)}c=h===-2,u.push(f)}return u.join("")}function mb(n){const u={constructs:eg([ob,...(n||{}).extensions||[]]),content:c(w1),defined:[],document:c(D1),flow:c(J0),lazy:{},string:c(W0),text:c(P0)};return u;function c(h){return f;function f(m){return fb(u,h,m)}}}function pb(n){for(;!ag(n););return n}const mp=/[\0\t\n\r]/g;function gb(){let n=1,r="",a=!0,u;return c;function c(h,f,m){const g=[];let p,v,y,j,S;for(h=r+(typeof h=="string"?h.toString():new TextDecoder(f||void 0).decode(h)),y=0,r="",a&&(h.charCodeAt(0)===65279&&y++,a=void 0);y<h.length;){if(mp.lastIndex=y,p=mp.exec(h),j=p&&p.index!==void 0?p.index:h.length,S=h.charCodeAt(j),!p){r=h.slice(y);break}if(S===10&&y===j&&u)g.push(-3),u=void 0;else switch(u&&(g.push(-5),u=void 0),y<j&&(g.push(h.slice(y,j)),n+=j-y),S){case 0:{g.push(65533),n++;break}case 9:{for(v=Math.ceil(n/4)*4,g.push(-2);n++<v;)g.push(-1);break}case 10:{g.push(-4),n=1;break}default:u=!0,n=1}y=j+1}return m&&(u&&g.push(-5),r&&g.push(r),g.push(null)),g}}const yb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xb(n){return n.replace(yb,vb)}function vb(n,r,a){if(r)return r;if(a.charCodeAt(0)===35){const c=a.charCodeAt(1),h=c===120||c===88;return tg(a.slice(h?2:1),h?16:10)}return Ao(a)||n}const fg={}.hasOwnProperty;function bb(n,r,a){return r&&typeof r=="object"&&(a=r,r=void 0),Sb(a)(pb(mb(a).document().write(gb()(n,r,!0))))}function Sb(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(Ye),autolinkProtocol:ye,autolinkEmail:ye,atxHeading:h(ze),blockQuote:h(w),characterEscape:ye,characterReference:ye,codeFenced:h(Z),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(Z,f),codeText:h(fe,f),codeTextData:ye,data:ye,codeFlowValue:ye,definition:h(ke),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(qe),hardBreakEscape:h(De),hardBreakTrailing:h(De),htmlFlow:h(at,f),htmlFlowData:ye,htmlText:h(at,f),htmlTextData:ye,image:h(bt),label:f,link:h(Ye),listItem:h(Gt),listItemValue:j,listOrdered:h(Ge,y),listUnordered:h(Ge),paragraph:h(fn),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(ze),strong:h(hn),thematicBreak:h(pt)},exit:{atxHeading:g(),atxHeadingSequence:ce,autolink:g(),autolinkEmail:X,autolinkProtocol:Ae,blockQuote:g(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:oe,characterReference:pe,codeFenced:g(Y),codeFencedFence:H,codeFencedFenceInfo:S,codeFencedFenceMeta:A,codeFlowValue:M,codeIndented:g(_),codeText:g(P),codeTextData:M,data:M,definition:g(),definitionDestinationString:se,definitionLabelString:F,definitionTitleString:V,emphasis:g(),hardBreakEscape:g(ie),hardBreakTrailing:g(ie),htmlFlow:g(ge),htmlFlowData:M,htmlText:g(ae),htmlTextData:M,image:g(I),label:ve,labelText:K,lineEnding:le,link:g(D),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:W,resourceDestinationString:E,resourceTitleString:N,resource:U,setextHeading:g(ue),setextHeadingLineSequence:ee,setextHeadingText:B,strong:g(),thematicBreak:g()}};hg(r,(n||{}).mdastExtensions||[]);const a={};return u;function u(G){let ne={type:"root",children:[]};const je={stack:[ne],tokenStack:[],config:r,enter:m,exit:p,buffer:f,resume:v,data:a},_e=[];let Ke=-1;for(;++Ke<G.length;)if(G[Ke][1].type==="listOrdered"||G[Ke][1].type==="listUnordered")if(G[Ke][0]==="enter")_e.push(Ke);else{const Vt=_e.pop();Ke=c(G,Vt,Ke)}for(Ke=-1;++Ke<G.length;){const Vt=r[G[Ke][0]];fg.call(Vt,G[Ke][1].type)&&Vt[G[Ke][1].type].call(Object.assign({sliceSerialize:G[Ke][2].sliceSerialize},je),G[Ke][1])}if(je.tokenStack.length>0){const Vt=je.tokenStack[je.tokenStack.length-1];(Vt[1]||pp).call(je,void 0,Vt[0])}for(ne.position={start:gl(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:gl(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<r.transforms.length;)ne=r.transforms[Ke](ne)||ne;return ne}function c(G,ne,je){let _e=ne-1,Ke=-1,Vt=!1,Nn,wt,gt,_t;for(;++_e<=je;){const We=G[_e];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Ke++:Ke--,_t=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(Nn&&!_t&&!Ke&&!gt&&(gt=_e),_t=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_t=void 0}if(!Ke&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Ke===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(Nn){let Xn=_e;for(wt=void 0;Xn--;){const dn=G[Xn];if(dn[1].type==="lineEnding"||dn[1].type==="lineEndingBlank"){if(dn[0]==="exit")continue;wt&&(G[wt][1].type="lineEndingBlank",Vt=!0),dn[1].type="lineEnding",wt=Xn}else if(!(dn[1].type==="linePrefix"||dn[1].type==="blockQuotePrefix"||dn[1].type==="blockQuotePrefixWhitespace"||dn[1].type==="blockQuoteMarker"||dn[1].type==="listItemIndent"))break}gt&&(!wt||gt<wt)&&(Nn._spread=!0),Nn.end=Object.assign({},wt?G[wt][1].start:We[1].end),G.splice(wt||_e,0,["exit",Nn,We[2]]),_e++,je++}if(We[1].type==="listItemPrefix"){const Xn={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};Nn=Xn,G.splice(_e,0,["enter",Xn,We[2]]),_e++,je++,gt=void 0,_t=!0}}}return G[ne][1]._spread=Vt,je}function h(G,ne){return je;function je(_e){m.call(this,G(_e),_e),ne&&ne.call(this,_e)}}function f(){this.stack.push({type:"fragment",children:[]})}function m(G,ne,je){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([ne,je||void 0]),G.position={start:gl(ne.start),end:void 0}}function g(G){return ne;function ne(je){G&&G.call(this,je),p.call(this,je)}}function p(G,ne){const je=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==G.type&&(ne?ne.call(this,G,_e[0]):(_e[1]||pp).call(this,G,_e[0]));else throw new Error("Cannot close `"+G.type+"` ("+za({start:G.start,end:G.end})+"): it’s not open");je.position.end=gl(G.end)}function v(){return To(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function j(G){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function S(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=G}function A(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=G}function H(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Y(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.value=G.replace(/(\r?\n|\r)$/g,"")}function F(G){const ne=this.resume(),je=this.stack[this.stack.length-1];je.label=ne,je.identifier=yn(this.sliceSerialize(G)).toLowerCase()}function V(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.title=G}function se(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.url=G}function ce(G){const ne=this.stack[this.stack.length-1];if(!ne.depth){const je=this.sliceSerialize(G).length;ne.depth=je}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function ee(G){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function ye(G){const je=this.stack[this.stack.length-1].children;let _e=je[je.length-1];(!_e||_e.type!=="text")&&(_e=Ne(),_e.position={start:gl(G.start),end:void 0},je.push(_e)),this.stack.push(_e)}function M(G){const ne=this.stack.pop();ne.value+=this.sliceSerialize(G),ne.position.end=gl(G.end)}function le(G){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const je=ne.children[ne.children.length-1];je.position.end=gl(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ne.type)&&(ye.call(this,G),M.call(this,G))}function ie(){this.data.atHardBreak=!0}function ge(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.value=G}function ae(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.value=G}function P(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.value=G}function D(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ne,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function I(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ne,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function K(G){const ne=this.sliceSerialize(G),je=this.stack[this.stack.length-2];je.label=xb(ne),je.identifier=yn(ne).toLowerCase()}function ve(){const G=this.stack[this.stack.length-1],ne=this.resume(),je=this.stack[this.stack.length-1];if(this.data.inReference=!0,je.type==="link"){const _e=G.children;je.children=_e}else je.alt=ne}function E(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.url=G}function N(){const G=this.resume(),ne=this.stack[this.stack.length-1];ne.title=G}function U(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function W(G){const ne=this.resume(),je=this.stack[this.stack.length-1];je.label=ne,je.identifier=yn(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function he(G){this.data.characterReferenceType=G.type}function oe(G){const ne=this.sliceSerialize(G),je=this.data.characterReferenceType;let _e;je?(_e=tg(ne,je==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Ao(ne);const Ke=this.stack[this.stack.length-1];Ke.value+=_e}function pe(G){const ne=this.stack.pop();ne.position.end=gl(G.end)}function Ae(G){M.call(this,G);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(G)}function X(G){M.call(this,G);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(G)}function w(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function fe(){return{type:"inlineCode",value:""}}function ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qe(){return{type:"emphasis",children:[]}}function ze(){return{type:"heading",depth:0,children:[]}}function De(){return{type:"break"}}function at(){return{type:"html",value:""}}function bt(){return{type:"image",title:null,url:"",alt:null}}function Ye(){return{type:"link",title:null,url:"",children:[]}}function Ge(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function Gt(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function fn(){return{type:"paragraph",children:[]}}function hn(){return{type:"strong",children:[]}}function Ne(){return{type:"text",value:""}}function pt(){return{type:"thematicBreak"}}}function gl(n){return{line:n.line,column:n.column,offset:n.offset}}function hg(n,r){let a=-1;for(;++a<r.length;){const u=r[a];Array.isArray(u)?hg(n,u):kb(n,u)}}function kb(n,r){let a;for(a in r)if(fg.call(r,a))switch(a){case"canContainEols":{const u=r[a];u&&n[a].push(...u);break}case"transforms":{const u=r[a];u&&n[a].push(...u);break}case"enter":case"exit":{const u=r[a];u&&Object.assign(n[a],u);break}}}function pp(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+za({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+za({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+za({start:r.start,end:r.end})+") is still open")}function jb(n){const r=this;r.parser=a;function a(u){return bb(u,{...r.data("settings"),...n,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function Eb(n,r){const a={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(r),!0)};return n.patch(r,a),n.applyData(r,a)}function Nb(n,r){const a={type:"element",tagName:"br",properties:{},children:[]};return n.patch(r,a),[n.applyData(r,a),{type:"text",value:`
|
|
54
|
-
`}]}function Tb(n,r){const a=r.value?r.value+`
|
|
55
|
-
`:"",u={},c=r.lang?r.lang.split(/\s+/):[];c.length>0&&(u.className=["language-"+c[0]]);let h={type:"element",tagName:"code",properties:u,children:[{type:"text",value:a}]};return r.meta&&(h.data={meta:r.meta}),n.patch(r,h),h=n.applyData(r,h),h={type:"element",tagName:"pre",properties:{},children:[h]},n.patch(r,h),h}function Ab(n,r){const a={type:"element",tagName:"del",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function Cb(n,r){const a={type:"element",tagName:"em",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function wb(n,r){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(r.identifier).toUpperCase(),c=zi(u.toLowerCase()),h=n.footnoteOrder.indexOf(u);let f,m=n.footnoteCounts.get(u);m===void 0?(m=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=h+1,m+=1,n.footnoteCounts.set(u,m);const g={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+c,id:a+"fnref-"+c+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(r,g);const p={type:"element",tagName:"sup",properties:{},children:[g]};return n.patch(r,p),n.applyData(r,p)}function zb(n,r){const a={type:"element",tagName:"h"+r.depth,properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function Db(n,r){if(n.options.allowDangerousHtml){const a={type:"raw",value:r.value};return n.patch(r,a),n.applyData(r,a)}}function dg(n,r){const a=r.referenceType;let u="]";if(a==="collapsed"?u+="[]":a==="full"&&(u+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+u}];const c=n.all(r),h=c[0];h&&h.type==="text"?h.value="["+h.value:c.unshift({type:"text",value:"["});const f=c[c.length-1];return f&&f.type==="text"?f.value+=u:c.push({type:"text",value:u}),c}function _b(n,r){const a=String(r.identifier).toUpperCase(),u=n.definitionById.get(a);if(!u)return dg(n,r);const c={src:zi(u.url||""),alt:r.alt};u.title!==null&&u.title!==void 0&&(c.title=u.title);const h={type:"element",tagName:"img",properties:c,children:[]};return n.patch(r,h),n.applyData(r,h)}function Mb(n,r){const a={src:zi(r.url)};r.alt!==null&&r.alt!==void 0&&(a.alt=r.alt),r.title!==null&&r.title!==void 0&&(a.title=r.title);const u={type:"element",tagName:"img",properties:a,children:[]};return n.patch(r,u),n.applyData(r,u)}function Ob(n,r){const a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};n.patch(r,a);const u={type:"element",tagName:"code",properties:{},children:[a]};return n.patch(r,u),n.applyData(r,u)}function Rb(n,r){const a=String(r.identifier).toUpperCase(),u=n.definitionById.get(a);if(!u)return dg(n,r);const c={href:zi(u.url||"")};u.title!==null&&u.title!==void 0&&(c.title=u.title);const h={type:"element",tagName:"a",properties:c,children:n.all(r)};return n.patch(r,h),n.applyData(r,h)}function Lb(n,r){const a={href:zi(r.url)};r.title!==null&&r.title!==void 0&&(a.title=r.title);const u={type:"element",tagName:"a",properties:a,children:n.all(r)};return n.patch(r,u),n.applyData(r,u)}function Bb(n,r,a){const u=n.all(r),c=a?Ub(a):mg(r),h={},f=[];if(typeof r.checked=="boolean"){const v=u[0];let y;v&&v.type==="element"&&v.tagName==="p"?y=v:(y={type:"element",tagName:"p",properties:{},children:[]},u.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),h.className=["task-list-item"]}let m=-1;for(;++m<u.length;){const v=u[m];(c||m!==0||v.type!=="element"||v.tagName!=="p")&&f.push({type:"text",value:`
|
|
56
|
-
`}),v.type==="element"&&v.tagName==="p"&&!c?f.push(...v.children):f.push(v)}const g=u[u.length-1];g&&(c||g.type!=="element"||g.tagName!=="p")&&f.push({type:"text",value:`
|
|
57
|
-
`});const p={type:"element",tagName:"li",properties:h,children:f};return n.patch(r,p),n.applyData(r,p)}function Ub(n){let r=!1;if(n.type==="list"){r=n.spread||!1;const a=n.children;let u=-1;for(;!r&&++u<a.length;)r=mg(a[u])}return r}function mg(n){const r=n.spread;return r??n.children.length>1}function Hb(n,r){const a={},u=n.all(r);let c=-1;for(typeof r.start=="number"&&r.start!==1&&(a.start=r.start);++c<u.length;){const f=u[c];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const h={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:n.wrap(u,!0)};return n.patch(r,h),n.applyData(r,h)}function qb(n,r){const a={type:"element",tagName:"p",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function Yb(n,r){const a={type:"root",children:n.wrap(n.all(r))};return n.patch(r,a),n.applyData(r,a)}function Gb(n,r){const a={type:"element",tagName:"strong",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}function Vb(n,r){const a=n.all(r),u=a.shift(),c=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(r.children[0],f),c.push(f)}if(a.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(a,!0)},m=ko(r.children[1]),g=Zp(r.children[r.children.length-1]);m&&g&&(f.position={start:m,end:g}),c.push(f)}const h={type:"element",tagName:"table",properties:{},children:n.wrap(c,!0)};return n.patch(r,h),n.applyData(r,h)}function Qb(n,r,a){const u=a?a.children:void 0,h=(u?u.indexOf(r):1)===0?"th":"td",f=a&&a.type==="table"?a.align:void 0,m=f?f.length:r.children.length;let g=-1;const p=[];for(;++g<m;){const y=r.children[g],j={},S=f?f[g]:void 0;S&&(j.align=S);let A={type:"element",tagName:h,properties:j,children:[]};y&&(A.children=n.all(y),n.patch(y,A),A=n.applyData(y,A)),p.push(A)}const v={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(r,v),n.applyData(r,v)}function Xb(n,r){const a={type:"element",tagName:"td",properties:{},children:n.all(r)};return n.patch(r,a),n.applyData(r,a)}const gp=9,yp=32;function Kb(n){const r=String(n),a=/\r?\n|\r/g;let u=a.exec(r),c=0;const h=[];for(;u;)h.push(xp(r.slice(c,u.index),c>0,!0),u[0]),c=u.index+u[0].length,u=a.exec(r);return h.push(xp(r.slice(c),c>0,!1)),h.join("")}function xp(n,r,a){let u=0,c=n.length;if(r){let h=n.codePointAt(u);for(;h===gp||h===yp;)u++,h=n.codePointAt(u)}if(a){let h=n.codePointAt(c-1);for(;h===gp||h===yp;)c--,h=n.codePointAt(c-1)}return c>u?n.slice(u,c):""}function Zb(n,r){const a={type:"text",value:Kb(String(r.value))};return n.patch(r,a),n.applyData(r,a)}function Fb(n,r){const a={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(r,a),n.applyData(r,a)}const Jb={blockquote:Eb,break:Nb,code:Tb,delete:Ab,emphasis:Cb,footnoteReference:wb,heading:zb,html:Db,imageReference:_b,image:Mb,inlineCode:Ob,linkReference:Rb,link:Lb,listItem:Bb,list:Hb,paragraph:qb,root:Yb,strong:Gb,table:Vb,tableCell:Xb,tableRow:Qb,text:Zb,thematicBreak:Fb,toml:eu,yaml:eu,definition:eu,footnoteDefinition:eu};function eu(){}const pg=-1,gu=0,_a=1,cu=2,wo=3,zo=4,Do=5,_o=6,gg=7,yg=8,vp=typeof self=="object"?self:globalThis,$b=(n,r)=>{const a=(c,h)=>(n.set(h,c),c),u=c=>{if(n.has(c))return n.get(c);const[h,f]=r[c];switch(h){case gu:case pg:return a(f,c);case _a:{const m=a([],c);for(const g of f)m.push(u(g));return m}case cu:{const m=a({},c);for(const[g,p]of f)m[u(g)]=u(p);return m}case wo:return a(new Date(f),c);case zo:{const{source:m,flags:g}=f;return a(new RegExp(m,g),c)}case Do:{const m=a(new Map,c);for(const[g,p]of f)m.set(u(g),u(p));return m}case _o:{const m=a(new Set,c);for(const g of f)m.add(u(g));return m}case gg:{const{name:m,message:g}=f;return a(new vp[m](g),c)}case yg:return a(BigInt(f),c);case"BigInt":return a(Object(BigInt(f)),c);case"ArrayBuffer":return a(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:m}=new Uint8Array(f);return a(new DataView(m),f)}}return a(new vp[h](f),c)};return u},bp=n=>$b(new Map,n)(0),Ni="",{toString:Ib}={},{keys:Wb}=Object,Ca=n=>{const r=typeof n;if(r!=="object"||!n)return[gu,r];const a=Ib.call(n).slice(8,-1);switch(a){case"Array":return[_a,Ni];case"Object":return[cu,Ni];case"Date":return[wo,Ni];case"RegExp":return[zo,Ni];case"Map":return[Do,Ni];case"Set":return[_o,Ni];case"DataView":return[_a,a]}return a.includes("Array")?[_a,a]:a.includes("Error")?[gg,a]:[cu,a]},tu=([n,r])=>n===gu&&(r==="function"||r==="symbol"),Pb=(n,r,a,u)=>{const c=(f,m)=>{const g=u.push(f)-1;return a.set(m,g),g},h=f=>{if(a.has(f))return a.get(f);let[m,g]=Ca(f);switch(m){case gu:{let v=f;switch(g){case"bigint":m=yg,v=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+g);v=null;break;case"undefined":return c([pg],f)}return c([m,v],f)}case _a:{if(g){let j=f;return g==="DataView"?j=new Uint8Array(f.buffer):g==="ArrayBuffer"&&(j=new Uint8Array(f)),c([g,[...j]],f)}const v=[],y=c([m,v],f);for(const j of f)v.push(h(j));return y}case cu:{if(g)switch(g){case"BigInt":return c([g,f.toString()],f);case"Boolean":case"Number":case"String":return c([g,f.valueOf()],f)}if(r&&"toJSON"in f)return h(f.toJSON());const v=[],y=c([m,v],f);for(const j of Wb(f))(n||!tu(Ca(f[j])))&&v.push([h(j),h(f[j])]);return y}case wo:return c([m,f.toISOString()],f);case zo:{const{source:v,flags:y}=f;return c([m,{source:v,flags:y}],f)}case Do:{const v=[],y=c([m,v],f);for(const[j,S]of f)(n||!(tu(Ca(j))||tu(Ca(S))))&&v.push([h(j),h(S)]);return y}case _o:{const v=[],y=c([m,v],f);for(const j of f)(n||!tu(Ca(j)))&&v.push(h(j));return y}}const{message:p}=f;return c([m,{name:g,message:p}],f)};return h},Sp=(n,{json:r,lossy:a}={})=>{const u=[];return Pb(!(r||a),!!r,new Map,u)(n),u},ou=typeof structuredClone=="function"?(n,r)=>r&&("json"in r||"lossy"in r)?bp(Sp(n,r)):structuredClone(n):(n,r)=>bp(Sp(n,r));function eS(n,r){const a=[{type:"text",value:"↩"}];return r>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),a}function tS(n,r){return"Back to reference "+(n+1)+(r>1?"-"+r:"")}function nS(n){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",a=n.options.footnoteBackContent||eS,u=n.options.footnoteBackLabel||tS,c=n.options.footnoteLabel||"Footnotes",h=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let g=-1;for(;++g<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[g]);if(!p)continue;const v=n.all(p),y=String(p.identifier).toUpperCase(),j=zi(y.toLowerCase());let S=0;const A=[],H=n.footnoteCounts.get(y);for(;H!==void 0&&++S<=H;){A.length>0&&A.push({type:"text",value:" "});let F=typeof a=="string"?a:a(g,S);typeof F=="string"&&(F={type:"text",value:F}),A.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+j+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(g,S),className:["data-footnote-backref"]},children:Array.isArray(F)?F:[F]})}const Y=v[v.length-1];if(Y&&Y.type==="element"&&Y.tagName==="p"){const F=Y.children[Y.children.length-1];F&&F.type==="text"?F.value+=" ":Y.children.push({type:"text",value:" "}),Y.children.push(...A)}else v.push(...A);const _={type:"element",tagName:"li",properties:{id:r+"fn-"+j},children:n.wrap(v,!0)};n.patch(p,_),m.push(_)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...ou(f),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:`
|
|
58
|
-
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
|
|
59
|
-
`}]}}const yu=(function(n){if(n==null)return rS;if(typeof n=="function")return xu(n);if(typeof n=="object")return Array.isArray(n)?lS(n):iS(n);if(typeof n=="string")return aS(n);throw new Error("Expected function, string, or object as test")});function lS(n){const r=[];let a=-1;for(;++a<n.length;)r[a]=yu(n[a]);return xu(u);function u(...c){let h=-1;for(;++h<r.length;)if(r[h].apply(this,c))return!0;return!1}}function iS(n){const r=n;return xu(a);function a(u){const c=u;let h;for(h in n)if(c[h]!==r[h])return!1;return!0}}function aS(n){return xu(r);function r(a){return a&&a.type===n}}function xu(n){return r;function r(a,u,c){return!!(uS(a)&&n.call(this,a,typeof u=="number"?u:void 0,c||void 0))}}function rS(){return!0}function uS(n){return n!==null&&typeof n=="object"&&"type"in n}const xg=[],sS=!0,ho=!1,cS="skip";function vg(n,r,a,u){let c;typeof r=="function"&&typeof a!="function"?(u=a,a=r):c=r;const h=yu(c),f=u?-1:1;m(n,void 0,[])();function m(g,p,v){const y=g&&typeof g=="object"?g:{};if(typeof y.type=="string"){const S=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(j,"name",{value:"node ("+(g.type+(S?"<"+S+">":""))+")"})}return j;function j(){let S=xg,A,H,Y;if((!r||h(g,p,v[v.length-1]||void 0))&&(S=oS(a(g,v)),S[0]===ho))return S;if("children"in g&&g.children){const _=g;if(_.children&&S[0]!==cS)for(H=(u?_.children.length:-1)+f,Y=v.concat(_);H>-1&&H<_.children.length;){const F=_.children[H];if(A=m(F,H,Y)(),A[0]===ho)return A;H=typeof A[1]=="number"?A[1]:H+f}}return S}}}function oS(n){return Array.isArray(n)?n:typeof n=="number"?[sS,n]:n==null?xg:[n]}function Mo(n,r,a,u){let c,h,f;typeof r=="function"&&typeof a!="function"?(h=void 0,f=r,c=a):(h=r,f=a,c=u),vg(n,h,m,c);function m(g,p){const v=p[p.length-1],y=v?v.children.indexOf(g):void 0;return f(g,y,v)}}const mo={}.hasOwnProperty,fS={};function hS(n,r){const a=r||fS,u=new Map,c=new Map,h=new Map,f={...Jb,...a.handlers},m={all:p,applyData:mS,definitionById:u,footnoteById:c,footnoteCounts:h,footnoteOrder:[],handlers:f,one:g,options:a,patch:dS,wrap:gS};return Mo(n,function(v){if(v.type==="definition"||v.type==="footnoteDefinition"){const y=v.type==="definition"?u:c,j=String(v.identifier).toUpperCase();y.has(j)||y.set(j,v)}}),m;function g(v,y){const j=v.type,S=m.handlers[j];if(mo.call(m.handlers,j)&&S)return S(m,v,y);if(m.options.passThrough&&m.options.passThrough.includes(j)){if("children"in v){const{children:H,...Y}=v,_=ou(Y);return _.children=m.all(v),_}return ou(v)}return(m.options.unknownHandler||pS)(m,v,y)}function p(v){const y=[];if("children"in v){const j=v.children;let S=-1;for(;++S<j.length;){const A=m.one(j[S],v);if(A){if(S&&j[S-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=kp(A.value)),!Array.isArray(A)&&A.type==="element")){const H=A.children[0];H&&H.type==="text"&&(H.value=kp(H.value))}Array.isArray(A)?y.push(...A):y.push(A)}}}return y}}function dS(n,r){n.position&&(r.position=t1(n))}function mS(n,r){let a=r;if(n&&n.data){const u=n.data.hName,c=n.data.hChildren,h=n.data.hProperties;if(typeof u=="string")if(a.type==="element")a.tagName=u;else{const f="children"in a?a.children:[a];a={type:"element",tagName:u,properties:{},children:f}}a.type==="element"&&h&&Object.assign(a.properties,ou(h)),"children"in a&&a.children&&c!==null&&c!==void 0&&(a.children=c)}return a}function pS(n,r){const a=r.data||{},u="value"in r&&!(mo.call(a,"hProperties")||mo.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:n.all(r)};return n.patch(r,u),n.applyData(r,u)}function gS(n,r){const a=[];let u=-1;for(r&&a.push({type:"text",value:`
|
|
60
|
-
`});++u<n.length;)u&&a.push({type:"text",value:`
|
|
61
|
-
`}),a.push(n[u]);return r&&n.length>0&&a.push({type:"text",value:`
|
|
62
|
-
`}),a}function kp(n){let r=0,a=n.charCodeAt(r);for(;a===9||a===32;)r++,a=n.charCodeAt(r);return n.slice(r)}function jp(n,r){const a=hS(n,r),u=a.one(n,void 0),c=nS(a),h=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return c&&h.children.push({type:"text",value:`
|
|
63
|
-
`},c),h}function yS(n,r){return n&&"run"in n?async function(a,u){const c=jp(a,{file:u,...r});await n.run(c,u)}:function(a,u){return jp(a,{file:u,...n||r})}}function Ep(n){if(n)throw n}var Kc,Np;function xS(){if(Np)return Kc;Np=1;var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=function(p){return typeof Array.isArray=="function"?Array.isArray(p):r.call(p)==="[object Array]"},h=function(p){if(!p||r.call(p)!=="[object Object]")return!1;var v=n.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!v&&!y)return!1;var j;for(j in p);return typeof j>"u"||n.call(p,j)},f=function(p,v){a&&v.name==="__proto__"?a(p,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):p[v.name]=v.newValue},m=function(p,v){if(v==="__proto__")if(n.call(p,v)){if(u)return u(p,v).value}else return;return p[v]};return Kc=function g(){var p,v,y,j,S,A,H=arguments[0],Y=1,_=arguments.length,F=!1;for(typeof H=="boolean"&&(F=H,H=arguments[1]||{},Y=2),(H==null||typeof H!="object"&&typeof H!="function")&&(H={});Y<_;++Y)if(p=arguments[Y],p!=null)for(v in p)y=m(H,v),j=m(p,v),H!==j&&(F&&j&&(h(j)||(S=c(j)))?(S?(S=!1,A=y&&c(y)?y:[]):A=y&&h(y)?y:{},f(H,{name:v,newValue:g(F,A,j)})):typeof j<"u"&&f(H,{name:v,newValue:j}));return H},Kc}var vS=xS();const Zc=du(vS);function po(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function bS(){const n=[],r={run:a,use:u};return r;function a(...c){let h=-1;const f=c.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);m(null,...c);function m(g,...p){const v=n[++h];let y=-1;if(g){f(g);return}for(;++y<c.length;)(p[y]===null||p[y]===void 0)&&(p[y]=c[y]);c=p,v?SS(v,m)(...p):f(null,...p)}}function u(c){if(typeof c!="function")throw new TypeError("Expected `middelware` to be a function, not "+c);return n.push(c),r}}function SS(n,r){let a;return u;function u(...f){const m=n.length>f.length;let g;m&&f.push(c);try{g=n.apply(this,f)}catch(p){const v=p;if(m&&a)throw v;return c(v)}m||(g&&g.then&&typeof g.then=="function"?g.then(h,c):g instanceof Error?c(g):h(g))}function c(f,...m){a||(a=!0,r(f,...m))}function h(f){c(null,f)}}const kn={basename:kS,dirname:jS,extname:ES,join:NS,sep:"/"};function kS(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Ba(n);let a=0,u=-1,c=n.length,h;if(r===void 0||r.length===0||r.length>n.length){for(;c--;)if(n.codePointAt(c)===47){if(h){a=c+1;break}}else u<0&&(h=!0,u=c+1);return u<0?"":n.slice(a,u)}if(r===n)return"";let f=-1,m=r.length-1;for(;c--;)if(n.codePointAt(c)===47){if(h){a=c+1;break}}else f<0&&(h=!0,f=c+1),m>-1&&(n.codePointAt(c)===r.codePointAt(m--)?m<0&&(u=c):(m=-1,u=f));return a===u?u=f:u<0&&(u=n.length),n.slice(a,u)}function jS(n){if(Ba(n),n.length===0)return".";let r=-1,a=n.length,u;for(;--a;)if(n.codePointAt(a)===47){if(u){r=a;break}}else u||(u=!0);return r<0?n.codePointAt(0)===47?"/":".":r===1&&n.codePointAt(0)===47?"//":n.slice(0,r)}function ES(n){Ba(n);let r=n.length,a=-1,u=0,c=-1,h=0,f;for(;r--;){const m=n.codePointAt(r);if(m===47){if(f){u=r+1;break}continue}a<0&&(f=!0,a=r+1),m===46?c<0?c=r:h!==1&&(h=1):c>-1&&(h=-1)}return c<0||a<0||h===0||h===1&&c===a-1&&c===u+1?"":n.slice(c,a)}function NS(...n){let r=-1,a;for(;++r<n.length;)Ba(n[r]),n[r]&&(a=a===void 0?n[r]:a+"/"+n[r]);return a===void 0?".":TS(a)}function TS(n){Ba(n);const r=n.codePointAt(0)===47;let a=AS(n,!r);return a.length===0&&!r&&(a="."),a.length>0&&n.codePointAt(n.length-1)===47&&(a+="/"),r?"/"+a:a}function AS(n,r){let a="",u=0,c=-1,h=0,f=-1,m,g;for(;++f<=n.length;){if(f<n.length)m=n.codePointAt(f);else{if(m===47)break;m=47}if(m===47){if(!(c===f-1||h===1))if(c!==f-1&&h===2){if(a.length<2||u!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(g=a.lastIndexOf("/"),g!==a.length-1){g<0?(a="",u=0):(a=a.slice(0,g),u=a.length-1-a.lastIndexOf("/")),c=f,h=0;continue}}else if(a.length>0){a="",u=0,c=f,h=0;continue}}r&&(a=a.length>0?a+"/..":"..",u=2)}else a.length>0?a+="/"+n.slice(c+1,f):a=n.slice(c+1,f),u=f-c-1;c=f,h=0}else m===46&&h>-1?h++:h=-1}return a}function Ba(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const CS={cwd:wS};function wS(){return"/"}function go(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function zS(n){if(typeof n=="string")n=new URL(n);else if(!go(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return DS(n)}function DS(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const r=n.pathname;let a=-1;for(;++a<r.length;)if(r.codePointAt(a)===37&&r.codePointAt(a+1)===50){const u=r.codePointAt(a+2);if(u===70||u===102){const c=new TypeError("File URL path must not include encoded / characters");throw c.code="ERR_INVALID_FILE_URL_PATH",c}}return decodeURIComponent(r)}const Fc=["history","path","basename","stem","extname","dirname"];class bg{constructor(r){let a;r?go(r)?a={path:r}:typeof r=="string"||_S(r)?a={value:r}:a=r:a={},this.cwd="cwd"in a?"":CS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Fc.length;){const h=Fc[u];h in a&&a[h]!==void 0&&a[h]!==null&&(this[h]=h==="history"?[...a[h]]:a[h])}let c;for(c in a)Fc.includes(c)||(this[c]=a[c])}get basename(){return typeof this.path=="string"?kn.basename(this.path):void 0}set basename(r){$c(r,"basename"),Jc(r,"basename"),this.path=kn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?kn.dirname(this.path):void 0}set dirname(r){Tp(this.basename,"dirname"),this.path=kn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?kn.extname(this.path):void 0}set extname(r){if(Jc(r,"extname"),Tp(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=kn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){go(r)&&(r=zS(r)),$c(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?kn.basename(this.path,this.extname):void 0}set stem(r){$c(r,"stem"),Jc(r,"stem"),this.path=kn.join(this.dirname||"",r+(this.extname||""))}fail(r,a,u){const c=this.message(r,a,u);throw c.fatal=!0,c}info(r,a,u){const c=this.message(r,a,u);return c.fatal=void 0,c}message(r,a,u){const c=new Ct(r,a,u);return this.path&&(c.name=this.path+":"+c.name,c.file=this.path),c.fatal=!1,this.messages.push(c),c}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function Jc(n,r){if(n&&n.includes(kn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+kn.sep+"`")}function $c(n,r){if(!n)throw new Error("`"+r+"` cannot be empty")}function Tp(n,r){if(!n)throw new Error("Setting `"+r+"` requires `path` to be set too")}function _S(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const MS=(function(n){const u=this.constructor.prototype,c=u[n],h=function(){return c.apply(h,arguments)};return Object.setPrototypeOf(h,u),h}),OS={}.hasOwnProperty;class Oo extends MS{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=bS()}copy(){const r=new Oo;let a=-1;for(;++a<this.attachers.length;){const u=this.attachers[a];r.use(...u)}return r.data(Zc(!0,{},this.namespace)),r}data(r,a){return typeof r=="string"?arguments.length===2?(Pc("data",this.frozen),this.namespace[r]=a,this):OS.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Pc("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const c=a.call(r,...u);typeof c=="function"&&this.transformers.use(c)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const a=nu(r),u=this.parser||this.Parser;return Ic("parse",u),u(String(a),a)}process(r,a){const u=this;return this.freeze(),Ic("process",this.parser||this.Parser),Wc("process",this.compiler||this.Compiler),a?c(void 0,a):new Promise(c);function c(h,f){const m=nu(r),g=u.parse(m);u.run(g,m,function(v,y,j){if(v||!y||!j)return p(v);const S=y,A=u.stringify(S,j);BS(A)?j.value=A:j.result=A,p(v,j)});function p(v,y){v||!y?f(v):h?h(y):a(void 0,y)}}}processSync(r){let a=!1,u;return this.freeze(),Ic("processSync",this.parser||this.Parser),Wc("processSync",this.compiler||this.Compiler),this.process(r,c),Cp("processSync","process",a),u;function c(h,f){a=!0,Ep(h),u=f}}run(r,a,u){Ap(r),this.freeze();const c=this.transformers;return!u&&typeof a=="function"&&(u=a,a=void 0),u?h(void 0,u):new Promise(h);function h(f,m){const g=nu(a);c.run(r,g,p);function p(v,y,j){const S=y||r;v?m(v):f?f(S):u(void 0,S,j)}}}runSync(r,a){let u=!1,c;return this.run(r,a,h),Cp("runSync","run",u),c;function h(f,m){Ep(f),c=m,u=!0}}stringify(r,a){this.freeze();const u=nu(a),c=this.compiler||this.Compiler;return Wc("stringify",c),Ap(r),c(r,u)}use(r,...a){const u=this.attachers,c=this.namespace;if(Pc("use",this.frozen),r!=null)if(typeof r=="function")g(r,a);else if(typeof r=="object")Array.isArray(r)?m(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function h(p){if(typeof p=="function")g(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[v,...y]=p;g(v,y)}else f(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function f(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");m(p.plugins),p.settings&&(c.settings=Zc(!0,c.settings,p.settings))}function m(p){let v=-1;if(p!=null)if(Array.isArray(p))for(;++v<p.length;){const y=p[v];h(y)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function g(p,v){let y=-1,j=-1;for(;++y<u.length;)if(u[y][0]===p){j=y;break}if(j===-1)u.push([p,...v]);else if(v.length>0){let[S,...A]=v;const H=u[j][1];po(H)&&po(S)&&(S=Zc(!0,H,S)),u[j]=[p,S,...A]}}}}const RS=new Oo().freeze();function Ic(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Wc(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Pc(n,r){if(r)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ap(n){if(!po(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Cp(n,r,a){if(!a)throw new Error("`"+n+"` finished async. Use `"+r+"` instead")}function nu(n){return LS(n)?n:new bg(n)}function LS(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function BS(n){return typeof n=="string"||US(n)}function US(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const HS="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wp=[],zp={allowDangerousHtml:!0},qS=/^(https?|ircs?|mailto|xmpp)$/i,YS=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function GS(n){const r=VS(n),a=QS(n);return XS(r.runSync(r.parse(a),a),n)}function VS(n){const r=n.rehypePlugins||wp,a=n.remarkPlugins||wp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...zp}:zp;return RS().use(jb).use(a).use(yS,u).use(r)}function QS(n){const r=n.children||"",a=new bg;return typeof r=="string"&&(a.value=r),a}function XS(n,r){const a=r.allowedElements,u=r.allowElement,c=r.components,h=r.disallowedElements,f=r.skipHtml,m=r.unwrapDisallowed,g=r.urlTransform||KS;for(const v of YS)Object.hasOwn(r,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+HS+v.id,void 0);return Mo(n,p),r1(n,{Fragment:d.Fragment,components:c,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function p(v,y,j){if(v.type==="raw"&&j&&typeof y=="number")return f?j.children.splice(y,1):j.children[y]={type:"text",value:v.value},y;if(v.type==="element"){let S;for(S in Vc)if(Object.hasOwn(Vc,S)&&Object.hasOwn(v.properties,S)){const A=v.properties[S],H=Vc[S];(H===null||H.includes(v.tagName))&&(v.properties[S]=g(String(A||""),S,v))}}if(v.type==="element"){let S=a?!a.includes(v.tagName):h?h.includes(v.tagName):!1;if(!S&&u&&typeof y=="number"&&(S=!u(v,y,j)),S&&j&&typeof y=="number")return m&&v.children?j.children.splice(y,1,...v.children):j.children.splice(y,1),y}}}function KS(n){const r=n.indexOf(":"),a=n.indexOf("?"),u=n.indexOf("#"),c=n.indexOf("/");return r===-1||c!==-1&&r>c||a!==-1&&r>a||u!==-1&&r>u||qS.test(n.slice(0,r))?n:""}function Dp(n,r){const a=String(n);if(typeof r!="string")throw new TypeError("Expected character");let u=0,c=a.indexOf(r);for(;c!==-1;)u++,c=a.indexOf(r,c+r.length);return u}function ZS(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function FS(n,r,a){const c=yu((a||{}).ignore||[]),h=JS(r);let f=-1;for(;++f<h.length;)vg(n,"text",m);function m(p,v){let y=-1,j;for(;++y<v.length;){const S=v[y],A=j?j.children:void 0;if(c(S,A?A.indexOf(S):void 0,j))return;j=S}if(j)return g(p,v)}function g(p,v){const y=v[v.length-1],j=h[f][0],S=h[f][1];let A=0;const Y=y.children.indexOf(p);let _=!1,F=[];j.lastIndex=0;let V=j.exec(p.value);for(;V;){const se=V.index,ce={index:V.index,input:V.input,stack:[...v,p]};let B=S(...V,ce);if(typeof B=="string"&&(B=B.length>0?{type:"text",value:B}:void 0),B===!1?j.lastIndex=se+1:(A!==se&&F.push({type:"text",value:p.value.slice(A,se)}),Array.isArray(B)?F.push(...B):B&&F.push(B),A=se+V[0].length,_=!0),!j.global)break;V=j.exec(p.value)}return _?(A<p.value.length&&F.push({type:"text",value:p.value.slice(A)}),y.children.splice(Y,1,...F)):F=[p],Y+F.length}}function JS(n){const r=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<a.length;){const c=a[u];r.push([$S(c[0]),IS(c[1])])}return r}function $S(n){return typeof n=="string"?new RegExp(ZS(n),"g"):n}function IS(n){return typeof n=="function"?n:function(){return n}}const eo="phrasing",to=["autolink","link","image","label"];function WS(){return{transforms:[ak],enter:{literalAutolink:ek,literalAutolinkEmail:no,literalAutolinkHttp:no,literalAutolinkWww:no},exit:{literalAutolink:ik,literalAutolinkEmail:lk,literalAutolinkHttp:tk,literalAutolinkWww:nk}}}function PS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:eo,notInConstruct:to},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:eo,notInConstruct:to},{character:":",before:"[ps]",after:"\\/",inConstruct:eo,notInConstruct:to}]}}function ek(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function no(n){this.config.enter.autolinkProtocol.call(this,n)}function tk(n){this.config.exit.autolinkProtocol.call(this,n)}function nk(n){this.config.exit.data.call(this,n);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(n)}function lk(n){this.config.exit.autolinkEmail.call(this,n)}function ik(n){this.exit(n)}function ak(n){FS(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,rk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),uk]],{ignore:["link","linkReference"]})}function rk(n,r,a,u,c){let h="";if(!Sg(c)||(/^w/i.test(r)&&(a=r+a,r="",h="http://"),!sk(a)))return!1;const f=ck(a+u);if(!f[0])return!1;const m={type:"link",title:null,url:h+r+f[0],children:[{type:"text",value:r+f[0]}]};return f[1]?[m,{type:"text",value:f[1]}]:m}function uk(n,r,a,u){return!Sg(u,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+a,children:[{type:"text",value:r+"@"+a}]}}function sk(n){const r=n.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function ck(n){const r=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!r)return[n,void 0];n=n.slice(0,r.index);let a=r[0],u=a.indexOf(")");const c=Dp(n,"(");let h=Dp(n,")");for(;u!==-1&&c>h;)n+=a.slice(0,u+1),a=a.slice(u+1),u=a.indexOf(")"),h++;return[n,a]}function Sg(n,r){const a=n.input.charCodeAt(n.index-1);return(n.index===0||Ul(a)||mu(a))&&(!r||a!==47)}kg.peek=xk;function ok(){this.buffer()}function fk(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function hk(){this.buffer()}function dk(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function mk(n){const r=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=yn(this.sliceSerialize(n)).toLowerCase(),a.label=r}function pk(n){this.exit(n)}function gk(n){const r=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=yn(this.sliceSerialize(n)).toLowerCase(),a.label=r}function yk(n){this.exit(n)}function xk(){return"["}function kg(n,r,a,u){const c=a.createTracker(u);let h=c.move("[^");const f=a.enter("footnoteReference"),m=a.enter("reference");return h+=c.move(a.safe(a.associationId(n),{after:"]",before:h})),m(),f(),h+=c.move("]"),h}function vk(){return{enter:{gfmFootnoteCallString:ok,gfmFootnoteCall:fk,gfmFootnoteDefinitionLabelString:hk,gfmFootnoteDefinition:dk},exit:{gfmFootnoteCallString:mk,gfmFootnoteCall:pk,gfmFootnoteDefinitionLabelString:gk,gfmFootnoteDefinition:yk}}}function bk(n){let r=!1;return n&&n.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:a,footnoteReference:kg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(u,c,h,f){const m=h.createTracker(f);let g=m.move("[^");const p=h.enter("footnoteDefinition"),v=h.enter("label");return g+=m.move(h.safe(h.associationId(u),{before:g,after:"]"})),v(),g+=m.move("]:"),u.children&&u.children.length>0&&(m.shift(4),g+=m.move((r?`
|
|
64
|
-
`:" ")+h.indentLines(h.containerFlow(u,m.current()),r?jg:Sk))),p(),g}}function Sk(n,r,a){return r===0?n:jg(n,r,a)}function jg(n,r,a){return(a?"":" ")+n}const kk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Eg.peek=Ak;function jk(){return{canContainEols:["delete"],enter:{strikethrough:Nk},exit:{strikethrough:Tk}}}function Ek(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:kk}],handlers:{delete:Eg}}}function Nk(n){this.enter({type:"delete",children:[]},n)}function Tk(n){this.exit(n)}function Eg(n,r,a,u){const c=a.createTracker(u),h=a.enter("strikethrough");let f=c.move("~~");return f+=a.containerPhrasing(n,{...c.current(),before:f,after:"~"}),f+=c.move("~~"),h(),f}function Ak(){return"~"}function Ck(n){return n.length}function wk(n,r){const a=r||{},u=(a.align||[]).concat(),c=a.stringLength||Ck,h=[],f=[],m=[],g=[];let p=0,v=-1;for(;++v<n.length;){const H=[],Y=[];let _=-1;for(n[v].length>p&&(p=n[v].length);++_<n[v].length;){const F=zk(n[v][_]);if(a.alignDelimiters!==!1){const V=c(F);Y[_]=V,(g[_]===void 0||V>g[_])&&(g[_]=V)}H.push(F)}f[v]=H,m[v]=Y}let y=-1;if(typeof u=="object"&&"length"in u)for(;++y<p;)h[y]=_p(u[y]);else{const H=_p(u);for(;++y<p;)h[y]=H}y=-1;const j=[],S=[];for(;++y<p;){const H=h[y];let Y="",_="";H===99?(Y=":",_=":"):H===108?Y=":":H===114&&(_=":");let F=a.alignDelimiters===!1?1:Math.max(1,g[y]-Y.length-_.length);const V=Y+"-".repeat(F)+_;a.alignDelimiters!==!1&&(F=Y.length+F+_.length,F>g[y]&&(g[y]=F),S[y]=F),j[y]=V}f.splice(1,0,j),m.splice(1,0,S),v=-1;const A=[];for(;++v<f.length;){const H=f[v],Y=m[v];y=-1;const _=[];for(;++y<p;){const F=H[y]||"";let V="",se="";if(a.alignDelimiters!==!1){const ce=g[y]-(Y[y]||0),B=h[y];B===114?V=" ".repeat(ce):B===99?ce%2?(V=" ".repeat(ce/2+.5),se=" ".repeat(ce/2-.5)):(V=" ".repeat(ce/2),se=V):se=" ".repeat(ce)}a.delimiterStart!==!1&&!y&&_.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&F==="")&&(a.delimiterStart!==!1||y)&&_.push(" "),a.alignDelimiters!==!1&&_.push(V),_.push(F),a.alignDelimiters!==!1&&_.push(se),a.padding!==!1&&_.push(" "),(a.delimiterEnd!==!1||y!==p-1)&&_.push("|")}A.push(a.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return A.join(`
|
|
65
|
-
`)}function zk(n){return n==null?"":String(n)}function _p(n){const r=typeof n=="string"?n.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function Dk(n,r,a,u){const c=a.enter("blockquote"),h=a.createTracker(u);h.move("> "),h.shift(2);const f=a.indentLines(a.containerFlow(n,h.current()),_k);return c(),f}function _k(n,r,a){return">"+(a?"":" ")+n}function Mk(n,r){return Mp(n,r.inConstruct,!0)&&!Mp(n,r.notInConstruct,!1)}function Mp(n,r,a){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return a;let u=-1;for(;++u<r.length;)if(n.includes(r[u]))return!0;return!1}function Op(n,r,a,u){let c=-1;for(;++c<a.unsafe.length;)if(a.unsafe[c].character===`
|
|
66
|
-
`&&Mk(a.stack,a.unsafe[c]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
67
|
-
`}function Ok(n,r){const a=String(n);let u=a.indexOf(r),c=u,h=0,f=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===c?++h>f&&(f=h):h=1,c=u+r.length,u=a.indexOf(r,c);return f}function Rk(n,r){return!!(r.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function Lk(n){const r=n.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Bk(n,r,a,u){const c=Lk(a),h=n.value||"",f=c==="`"?"GraveAccent":"Tilde";if(Rk(n,a)){const y=a.enter("codeIndented"),j=a.indentLines(h,Uk);return y(),j}const m=a.createTracker(u),g=c.repeat(Math.max(Ok(h,c)+1,3)),p=a.enter("codeFenced");let v=m.move(g);if(n.lang){const y=a.enter(`codeFencedLang${f}`);v+=m.move(a.safe(n.lang,{before:v,after:" ",encode:["`"],...m.current()})),y()}if(n.lang&&n.meta){const y=a.enter(`codeFencedMeta${f}`);v+=m.move(" "),v+=m.move(a.safe(n.meta,{before:v,after:`
|
|
68
|
-
`,encode:["`"],...m.current()})),y()}return v+=m.move(`
|
|
69
|
-
`),h&&(v+=m.move(h+`
|
|
70
|
-
`)),v+=m.move(g),p(),v}function Uk(n,r,a){return(a?"":" ")+n}function Ro(n){const r=n.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function Hk(n,r,a,u){const c=Ro(a),h=c==='"'?"Quote":"Apostrophe",f=a.enter("definition");let m=a.enter("label");const g=a.createTracker(u);let p=g.move("[");return p+=g.move(a.safe(a.associationId(n),{before:p,after:"]",...g.current()})),p+=g.move("]: "),m(),!n.url||/[\0- \u007F]/.test(n.url)?(m=a.enter("destinationLiteral"),p+=g.move("<"),p+=g.move(a.safe(n.url,{before:p,after:">",...g.current()})),p+=g.move(">")):(m=a.enter("destinationRaw"),p+=g.move(a.safe(n.url,{before:p,after:n.title?" ":`
|
|
71
|
-
`,...g.current()}))),m(),n.title&&(m=a.enter(`title${h}`),p+=g.move(" "+c),p+=g.move(a.safe(n.title,{before:p,after:c,...g.current()})),p+=g.move(c),m()),f(),p}function qk(n){const r=n.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function Oa(n){return"&#x"+n.toString(16).toUpperCase()+";"}function fu(n,r,a){const u=Ci(n),c=Ci(r);return u===void 0?c===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ng.peek=Yk;function Ng(n,r,a,u){const c=qk(a),h=a.enter("emphasis"),f=a.createTracker(u),m=f.move(c);let g=f.move(a.containerPhrasing(n,{after:c,before:m,...f.current()}));const p=g.charCodeAt(0),v=fu(u.before.charCodeAt(u.before.length-1),p,c);v.inside&&(g=Oa(p)+g.slice(1));const y=g.charCodeAt(g.length-1),j=fu(u.after.charCodeAt(0),y,c);j.inside&&(g=g.slice(0,-1)+Oa(y));const S=f.move(c);return h(),a.attentionEncodeSurroundingInfo={after:j.outside,before:v.outside},m+g+S}function Yk(n,r,a){return a.options.emphasis||"*"}function Gk(n,r){let a=!1;return Mo(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return a=!0,ho}),!!((!n.depth||n.depth<3)&&To(n)&&(r.options.setext||a))}function Vk(n,r,a,u){const c=Math.max(Math.min(6,n.depth||1),1),h=a.createTracker(u);if(Gk(n,a)){const v=a.enter("headingSetext"),y=a.enter("phrasing"),j=a.containerPhrasing(n,{...h.current(),before:`
|
|
72
|
-
`,after:`
|
|
73
|
-
`});return y(),v(),j+`
|
|
74
|
-
`+(c===1?"=":"-").repeat(j.length-(Math.max(j.lastIndexOf("\r"),j.lastIndexOf(`
|
|
75
|
-
`))+1))}const f="#".repeat(c),m=a.enter("headingAtx"),g=a.enter("phrasing");h.move(f+" ");let p=a.containerPhrasing(n,{before:"# ",after:`
|
|
76
|
-
`,...h.current()});return/^[\t ]/.test(p)&&(p=Oa(p.charCodeAt(0))+p.slice(1)),p=p?f+" "+p:f,a.options.closeAtx&&(p+=" "+f),g(),m(),p}Tg.peek=Qk;function Tg(n){return n.value||""}function Qk(){return"<"}Ag.peek=Xk;function Ag(n,r,a,u){const c=Ro(a),h=c==='"'?"Quote":"Apostrophe",f=a.enter("image");let m=a.enter("label");const g=a.createTracker(u);let p=g.move("![");return p+=g.move(a.safe(n.alt,{before:p,after:"]",...g.current()})),p+=g.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=a.enter("destinationLiteral"),p+=g.move("<"),p+=g.move(a.safe(n.url,{before:p,after:">",...g.current()})),p+=g.move(">")):(m=a.enter("destinationRaw"),p+=g.move(a.safe(n.url,{before:p,after:n.title?" ":")",...g.current()}))),m(),n.title&&(m=a.enter(`title${h}`),p+=g.move(" "+c),p+=g.move(a.safe(n.title,{before:p,after:c,...g.current()})),p+=g.move(c),m()),p+=g.move(")"),f(),p}function Xk(){return"!"}Cg.peek=Kk;function Cg(n,r,a,u){const c=n.referenceType,h=a.enter("imageReference");let f=a.enter("label");const m=a.createTracker(u);let g=m.move("![");const p=a.safe(n.alt,{before:g,after:"]",...m.current()});g+=m.move(p+"]["),f();const v=a.stack;a.stack=[],f=a.enter("reference");const y=a.safe(a.associationId(n),{before:g,after:"]",...m.current()});return f(),a.stack=v,h(),c==="full"||!p||p!==y?g+=m.move(y+"]"):c==="shortcut"?g=g.slice(0,-1):g+=m.move("]"),g}function Kk(){return"!"}wg.peek=Zk;function wg(n,r,a){let u=n.value||"",c="`",h=-1;for(;new RegExp("(^|[^`])"+c+"([^`]|$)").test(u);)c+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++h<a.unsafe.length;){const f=a.unsafe[h],m=a.compilePattern(f);let g;if(f.atBreak)for(;g=m.exec(u);){let p=g.index;u.charCodeAt(p)===10&&u.charCodeAt(p-1)===13&&p--,u=u.slice(0,p)+" "+u.slice(g.index+1)}}return c+u+c}function Zk(){return"`"}function zg(n,r){const a=To(n);return!!(!r.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(a===n.url||"mailto:"+a===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}Dg.peek=Fk;function Dg(n,r,a,u){const c=Ro(a),h=c==='"'?"Quote":"Apostrophe",f=a.createTracker(u);let m,g;if(zg(n,a)){const v=a.stack;a.stack=[],m=a.enter("autolink");let y=f.move("<");return y+=f.move(a.containerPhrasing(n,{before:y,after:">",...f.current()})),y+=f.move(">"),m(),a.stack=v,y}m=a.enter("link"),g=a.enter("label");let p=f.move("[");return p+=f.move(a.containerPhrasing(n,{before:p,after:"](",...f.current()})),p+=f.move("]("),g(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(g=a.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(a.safe(n.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(g=a.enter("destinationRaw"),p+=f.move(a.safe(n.url,{before:p,after:n.title?" ":")",...f.current()}))),g(),n.title&&(g=a.enter(`title${h}`),p+=f.move(" "+c),p+=f.move(a.safe(n.title,{before:p,after:c,...f.current()})),p+=f.move(c),g()),p+=f.move(")"),m(),p}function Fk(n,r,a){return zg(n,a)?"<":"["}_g.peek=Jk;function _g(n,r,a,u){const c=n.referenceType,h=a.enter("linkReference");let f=a.enter("label");const m=a.createTracker(u);let g=m.move("[");const p=a.containerPhrasing(n,{before:g,after:"]",...m.current()});g+=m.move(p+"]["),f();const v=a.stack;a.stack=[],f=a.enter("reference");const y=a.safe(a.associationId(n),{before:g,after:"]",...m.current()});return f(),a.stack=v,h(),c==="full"||!p||p!==y?g+=m.move(y+"]"):c==="shortcut"?g=g.slice(0,-1):g+=m.move("]"),g}function Jk(){return"["}function Lo(n){const r=n.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function $k(n){const r=Lo(n),a=n.options.bulletOther;if(!a)return r==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+a+"`) to be different");return a}function Ik(n){const r=n.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function Mg(n){const r=n.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function Wk(n,r,a,u){const c=a.enter("list"),h=a.bulletCurrent;let f=n.ordered?Ik(a):Lo(a);const m=n.ordered?f==="."?")":".":$k(a);let g=r&&a.bulletLastUsed?f===a.bulletLastUsed:!1;if(!n.ordered){const v=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&v&&(!v.children||!v.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(g=!0),Mg(a)===f&&v){let y=-1;for(;++y<n.children.length;){const j=n.children[y];if(j&&j.type==="listItem"&&j.children&&j.children[0]&&j.children[0].type==="thematicBreak"){g=!0;break}}}}g&&(f=m),a.bulletCurrent=f;const p=a.containerFlow(n,u);return a.bulletLastUsed=f,a.bulletCurrent=h,c(),p}function Pk(n){const r=n.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function ej(n,r,a,u){const c=Pk(a);let h=a.bulletCurrent||Lo(a);r&&r.type==="list"&&r.ordered&&(h=(typeof r.start=="number"&&r.start>-1?r.start:1)+(a.options.incrementListMarker===!1?0:r.children.indexOf(n))+h);let f=h.length+1;(c==="tab"||c==="mixed"&&(r&&r.type==="list"&&r.spread||n.spread))&&(f=Math.ceil(f/4)*4);const m=a.createTracker(u);m.move(h+" ".repeat(f-h.length)),m.shift(f);const g=a.enter("listItem"),p=a.indentLines(a.containerFlow(n,m.current()),v);return g(),p;function v(y,j,S){return j?(S?"":" ".repeat(f))+y:(S?h:h+" ".repeat(f-h.length))+y}}function tj(n,r,a,u){const c=a.enter("paragraph"),h=a.enter("phrasing"),f=a.containerPhrasing(n,u);return h(),c(),f}const nj=yu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lj(n,r,a,u){return(n.children.some(function(f){return nj(f)})?a.containerPhrasing:a.containerFlow).call(a,n,u)}function ij(n){const r=n.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}Og.peek=aj;function Og(n,r,a,u){const c=ij(a),h=a.enter("strong"),f=a.createTracker(u),m=f.move(c+c);let g=f.move(a.containerPhrasing(n,{after:c,before:m,...f.current()}));const p=g.charCodeAt(0),v=fu(u.before.charCodeAt(u.before.length-1),p,c);v.inside&&(g=Oa(p)+g.slice(1));const y=g.charCodeAt(g.length-1),j=fu(u.after.charCodeAt(0),y,c);j.inside&&(g=g.slice(0,-1)+Oa(y));const S=f.move(c+c);return h(),a.attentionEncodeSurroundingInfo={after:j.outside,before:v.outside},m+g+S}function aj(n,r,a){return a.options.strong||"*"}function rj(n,r,a,u){return a.safe(n.value,u)}function uj(n){const r=n.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function sj(n,r,a){const u=(Mg(a)+(a.options.ruleSpaces?" ":"")).repeat(uj(a));return a.options.ruleSpaces?u.slice(0,-1):u}const Rg={blockquote:Dk,break:Op,code:Bk,definition:Hk,emphasis:Ng,hardBreak:Op,heading:Vk,html:Tg,image:Ag,imageReference:Cg,inlineCode:wg,link:Dg,linkReference:_g,list:Wk,listItem:ej,paragraph:tj,root:lj,strong:Og,text:rj,thematicBreak:sj};function cj(){return{enter:{table:oj,tableData:Rp,tableHeader:Rp,tableRow:hj},exit:{codeText:dj,table:fj,tableData:lo,tableHeader:lo,tableRow:lo}}}function oj(n){const r=n._align;this.enter({type:"table",align:r.map(function(a){return a==="none"?null:a}),children:[]},n),this.data.inTable=!0}function fj(n){this.exit(n),this.data.inTable=void 0}function hj(n){this.enter({type:"tableRow",children:[]},n)}function lo(n){this.exit(n)}function Rp(n){this.enter({type:"tableCell",children:[]},n)}function dj(n){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,mj));const a=this.stack[this.stack.length-1];a.type,a.value=r,this.exit(n)}function mj(n,r){return r==="|"?r:n}function pj(n){const r=n||{},a=r.tableCellPadding,u=r.tablePipeAlign,c=r.stringLength,h=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
77
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:j,table:f,tableCell:g,tableRow:m}};function f(S,A,H,Y){return p(v(S,H,Y),S.align)}function m(S,A,H,Y){const _=y(S,H,Y),F=p([_]);return F.slice(0,F.indexOf(`
|
|
78
|
-
`))}function g(S,A,H,Y){const _=H.enter("tableCell"),F=H.enter("phrasing"),V=H.containerPhrasing(S,{...Y,before:h,after:h});return F(),_(),V}function p(S,A){return wk(S,{align:A,alignDelimiters:u,padding:a,stringLength:c})}function v(S,A,H){const Y=S.children;let _=-1;const F=[],V=A.enter("table");for(;++_<Y.length;)F[_]=y(Y[_],A,H);return V(),F}function y(S,A,H){const Y=S.children;let _=-1;const F=[],V=A.enter("tableRow");for(;++_<Y.length;)F[_]=g(Y[_],S,A,H);return V(),F}function j(S,A,H){let Y=Rg.inlineCode(S,A,H);return H.stack.includes("tableCell")&&(Y=Y.replace(/\|/g,"\\$&")),Y}}function gj(){return{exit:{taskListCheckValueChecked:Lp,taskListCheckValueUnchecked:Lp,paragraph:xj}}}function yj(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vj}}}function Lp(n){const r=this.stack[this.stack.length-2];r.type,r.checked=n.type==="taskListCheckValueChecked"}function xj(n){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const u=a.children[0];if(u&&u.type==="text"){const c=r.children;let h=-1,f;for(;++h<c.length;){const m=c[h];if(m.type==="paragraph"){f=m;break}}f===a&&(u.value=u.value.slice(1),u.value.length===0?a.children.shift():a.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,a.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function vj(n,r,a,u){const c=n.children[0],h=typeof n.checked=="boolean"&&c&&c.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",m=a.createTracker(u);h&&m.move(f);let g=Rg.listItem(n,r,a,{...u,...m.current()});return h&&(g=g.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),g;function p(v){return v+f}}function bj(){return[WS(),vk(),jk(),cj(),gj()]}function Sj(n){return{extensions:[PS(),bk(n),Ek(),pj(n),yj()]}}const kj={tokenize:Cj,partial:!0},Lg={tokenize:wj,partial:!0},Bg={tokenize:zj,partial:!0},Ug={tokenize:Dj,partial:!0},jj={tokenize:_j,partial:!0},Hg={name:"wwwAutolink",tokenize:Tj,previous:Yg},qg={name:"protocolAutolink",tokenize:Aj,previous:Gg},Qn={name:"emailAutolink",tokenize:Nj,previous:Vg},En={};function Ej(){return{text:En}}let Bl=48;for(;Bl<123;)En[Bl]=Qn,Bl++,Bl===58?Bl=65:Bl===91&&(Bl=97);En[43]=Qn;En[45]=Qn;En[46]=Qn;En[95]=Qn;En[72]=[Qn,qg];En[104]=[Qn,qg];En[87]=[Qn,Hg];En[119]=[Qn,Hg];function Nj(n,r,a){const u=this;let c,h;return f;function f(y){return!yo(y)||!Vg.call(u,u.previous)||Bo(u.events)?a(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(y))}function m(y){return yo(y)?(n.consume(y),m):y===64?(n.consume(y),g):a(y)}function g(y){return y===46?n.check(jj,v,p)(y):y===45||y===95||At(y)?(h=!0,n.consume(y),g):v(y)}function p(y){return n.consume(y),c=!0,g}function v(y){return h&&c&&Dt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),r(y)):a(y)}}function Tj(n,r,a){const u=this;return c;function c(f){return f!==87&&f!==119||!Yg.call(u,u.previous)||Bo(u.events)?a(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(kj,n.attempt(Lg,n.attempt(Bg,h),a),a)(f))}function h(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),r(f)}}function Aj(n,r,a){const u=this;let c="",h=!1;return f;function f(y){return(y===72||y===104)&&Gg.call(u,u.previous)&&!Bo(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),c+=String.fromCodePoint(y),n.consume(y),m):a(y)}function m(y){if(Dt(y)&&c.length<5)return c+=String.fromCodePoint(y),n.consume(y),m;if(y===58){const j=c.toLowerCase();if(j==="http"||j==="https")return n.consume(y),g}return a(y)}function g(y){return y===47?(n.consume(y),h?p:(h=!0,g)):a(y)}function p(y){return y===null||su(y)||et(y)||Ul(y)||mu(y)?a(y):n.attempt(Lg,n.attempt(Bg,v),a)(y)}function v(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),r(y)}}function Cj(n,r,a){let u=0;return c;function c(f){return(f===87||f===119)&&u<3?(u++,n.consume(f),c):f===46&&u===3?(n.consume(f),h):a(f)}function h(f){return f===null?a(f):r(f)}}function wj(n,r,a){let u,c,h;return f;function f(p){return p===46||p===95?n.check(Ug,g,m)(p):p===null||et(p)||Ul(p)||p!==45&&mu(p)?g(p):(h=!0,n.consume(p),f)}function m(p){return p===95?u=!0:(c=u,u=void 0),n.consume(p),f}function g(p){return c||u||!h?a(p):r(p)}}function zj(n,r){let a=0,u=0;return c;function c(f){return f===40?(a++,n.consume(f),c):f===41&&u<a?h(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(Ug,r,h)(f):f===null||et(f)||Ul(f)?r(f):(n.consume(f),c)}function h(f){return f===41&&u++,n.consume(f),c}}function Dj(n,r,a){return u;function u(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),u):m===38?(n.consume(m),h):m===93?(n.consume(m),c):m===60||m===null||et(m)||Ul(m)?r(m):a(m)}function c(m){return m===null||m===40||m===91||et(m)||Ul(m)?r(m):u(m)}function h(m){return Dt(m)?f(m):a(m)}function f(m){return m===59?(n.consume(m),u):Dt(m)?(n.consume(m),f):a(m)}}function _j(n,r,a){return u;function u(h){return n.consume(h),c}function c(h){return At(h)?a(h):r(h)}}function Yg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||et(n)}function Gg(n){return!Dt(n)}function Vg(n){return!(n===47||yo(n))}function yo(n){return n===43||n===45||n===46||n===95||At(n)}function Bo(n){let r=n.length,a=!1;for(;r--;){const u=n[r][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){a=!0;break}if(u._gfmAutolinkLiteralWalkedInto){a=!1;break}}return n.length>0&&!a&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const Mj={tokenize:Yj,partial:!0};function Oj(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Uj,continuation:{tokenize:Hj},exit:qj}},text:{91:{name:"gfmFootnoteCall",tokenize:Bj},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Rj,resolveTo:Lj}}}}function Rj(n,r,a){const u=this;let c=u.events.length;const h=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f;for(;c--;){const g=u.events[c][1];if(g.type==="labelImage"){f=g;break}if(g.type==="gfmFootnoteCall"||g.type==="labelLink"||g.type==="label"||g.type==="image"||g.type==="link")break}return m;function m(g){if(!f||!f._balanced)return a(g);const p=yn(u.sliceSerialize({start:f.end,end:u.now()}));return p.codePointAt(0)!==94||!h.includes(p.slice(1))?a(g):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),r(g))}}function Lj(n,r){let a=n.length;for(;a--;)if(n[a][1].type==="labelImage"&&n[a][0]==="enter"){n[a][1];break}n[a+1][1].type="data",n[a+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[a+3][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"gfmFootnoteCallMarker",start:Object.assign({},n[a+3][1].end),end:Object.assign({},n[a+3][1].end)};c.end.column++,c.end.offset++,c.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},c.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},m=[n[a+1],n[a+2],["enter",u,r],n[a+3],n[a+4],["enter",c,r],["exit",c,r],["enter",h,r],["enter",f,r],["exit",f,r],["exit",h,r],n[n.length-2],n[n.length-1],["exit",u,r]];return n.splice(a,n.length-a+1,...m),n}function Bj(n,r,a){const u=this,c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let h=0,f;return m;function m(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),g}function g(y){return y!==94?a(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(y){if(h>999||y===93&&!f||y===null||y===91||et(y))return a(y);if(y===93){n.exit("chunkString");const j=n.exit("gfmFootnoteCallString");return c.includes(yn(u.sliceSerialize(j)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),r):a(y)}return et(y)||(f=!0),h++,n.consume(y),y===92?v:p}function v(y){return y===91||y===92||y===93?(n.consume(y),h++,p):p(y)}}function Uj(n,r,a){const u=this,c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let h,f=0,m;return g;function g(A){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(A){return A===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",v):a(A)}function v(A){if(f>999||A===93&&!m||A===null||A===91||et(A))return a(A);if(A===93){n.exit("chunkString");const H=n.exit("gfmFootnoteDefinitionLabelString");return h=yn(u.sliceSerialize(H)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),j}return et(A)||(m=!0),f++,n.consume(A),A===92?y:v}function y(A){return A===91||A===92||A===93?(n.consume(A),f++,v):v(A)}function j(A){return A===58?(n.enter("definitionMarker"),n.consume(A),n.exit("definitionMarker"),c.includes(h)||c.push(h),He(n,S,"gfmFootnoteDefinitionWhitespace")):a(A)}function S(A){return r(A)}}function Hj(n,r,a){return n.check(La,r,n.attempt(Mj,r,a))}function qj(n){n.exit("gfmFootnoteDefinition")}function Yj(n,r,a){const u=this;return He(n,c,"gfmFootnoteDefinitionIndent",5);function c(h){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?r(h):a(h)}}function Gj(n){let a=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:h,resolveAll:c};return a==null&&(a=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function c(f,m){let g=-1;for(;++g<f.length;)if(f[g][0]==="enter"&&f[g][1].type==="strikethroughSequenceTemporary"&&f[g][1]._close){let p=g;for(;p--;)if(f[p][0]==="exit"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._open&&f[g][1].end.offset-f[g][1].start.offset===f[p][1].end.offset-f[p][1].start.offset){f[g][1].type="strikethroughSequence",f[p][1].type="strikethroughSequence";const v={type:"strikethrough",start:Object.assign({},f[p][1].start),end:Object.assign({},f[g][1].end)},y={type:"strikethroughText",start:Object.assign({},f[p][1].end),end:Object.assign({},f[g][1].start)},j=[["enter",v,m],["enter",f[p][1],m],["exit",f[p][1],m],["enter",y,m]],S=m.parser.constructs.insideSpan.null;S&&Wt(j,j.length,0,pu(S,f.slice(p+1,g),m)),Wt(j,j.length,0,[["exit",y,m],["enter",f[g][1],m],["exit",f[g][1],m],["exit",v,m]]),Wt(f,p-1,g-p+3,j),g=p+j.length-2;break}}for(g=-1;++g<f.length;)f[g][1].type==="strikethroughSequenceTemporary"&&(f[g][1].type="data");return f}function h(f,m,g){const p=this.previous,v=this.events;let y=0;return j;function j(A){return p===126&&v[v.length-1][1].type!=="characterEscape"?g(A):(f.enter("strikethroughSequenceTemporary"),S(A))}function S(A){const H=Ci(p);if(A===126)return y>1?g(A):(f.consume(A),y++,S);if(y<2&&!a)return g(A);const Y=f.exit("strikethroughSequenceTemporary"),_=Ci(A);return Y._open=!_||_===2&&!!H,Y._close=!H||H===2&&!!_,m(A)}}}class Vj{constructor(){this.map=[]}add(r,a,u){Qj(this,r,a,u)}consume(r){if(this.map.sort(function(h,f){return h[0]-f[0]}),this.map.length===0)return;let a=this.map.length;const u=[];for(;a>0;)a-=1,u.push(r.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),r.length=this.map[a][0];u.push(r.slice()),r.length=0;let c=u.pop();for(;c;){for(const h of c)r.push(h);c=u.pop()}this.map.length=0}}function Qj(n,r,a,u){let c=0;if(!(a===0&&u.length===0)){for(;c<n.map.length;){if(n.map[c][0]===r){n.map[c][1]+=a,n.map[c][2].push(...u);return}c+=1}n.map.push([r,a,u])}}function Xj(n,r){let a=!1;const u=[];for(;r<n.length;){const c=n[r];if(a){if(c[0]==="enter")c[1].type==="tableContent"&&u.push(n[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(c[1].type==="tableContent"){if(n[r-1][1].type==="tableDelimiterMarker"){const h=u.length-1;u[h]=u[h]==="left"?"center":"right"}}else if(c[1].type==="tableDelimiterRow")break}else c[0]==="enter"&&c[1].type==="tableDelimiterRow"&&(a=!0);r+=1}return u}function Kj(){return{flow:{null:{name:"table",tokenize:Zj,resolveAll:Fj}}}}function Zj(n,r,a){const u=this;let c=0,h=0,f;return m;function m(M){let le=u.events.length-1;for(;le>-1;){const ae=u.events[le][1].type;if(ae==="lineEnding"||ae==="linePrefix")le--;else break}const ie=le>-1?u.events[le][1].type:null,ge=ie==="tableHead"||ie==="tableRow"?B:g;return ge===B&&u.parser.lazy[u.now().line]?a(M):ge(M)}function g(M){return n.enter("tableHead"),n.enter("tableRow"),p(M)}function p(M){return M===124||(f=!0,h+=1),v(M)}function v(M){return M===null?a(M):be(M)?h>1?(h=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(M),n.exit("lineEnding"),S):a(M):Re(M)?He(n,v,"whitespace")(M):(h+=1,f&&(f=!1,c+=1),M===124?(n.enter("tableCellDivider"),n.consume(M),n.exit("tableCellDivider"),f=!0,v):(n.enter("data"),y(M)))}function y(M){return M===null||M===124||et(M)?(n.exit("data"),v(M)):(n.consume(M),M===92?j:y)}function j(M){return M===92||M===124?(n.consume(M),y):y(M)}function S(M){return u.interrupt=!1,u.parser.lazy[u.now().line]?a(M):(n.enter("tableDelimiterRow"),f=!1,Re(M)?He(n,A,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):A(M))}function A(M){return M===45||M===58?Y(M):M===124?(f=!0,n.enter("tableCellDivider"),n.consume(M),n.exit("tableCellDivider"),H):ce(M)}function H(M){return Re(M)?He(n,Y,"whitespace")(M):Y(M)}function Y(M){return M===58?(h+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(M),n.exit("tableDelimiterMarker"),_):M===45?(h+=1,_(M)):M===null||be(M)?se(M):ce(M)}function _(M){return M===45?(n.enter("tableDelimiterFiller"),F(M)):ce(M)}function F(M){return M===45?(n.consume(M),F):M===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(M),n.exit("tableDelimiterMarker"),V):(n.exit("tableDelimiterFiller"),V(M))}function V(M){return Re(M)?He(n,se,"whitespace")(M):se(M)}function se(M){return M===124?A(M):M===null||be(M)?!f||c!==h?ce(M):(n.exit("tableDelimiterRow"),n.exit("tableHead"),r(M)):ce(M)}function ce(M){return a(M)}function B(M){return n.enter("tableRow"),ee(M)}function ee(M){return M===124?(n.enter("tableCellDivider"),n.consume(M),n.exit("tableCellDivider"),ee):M===null||be(M)?(n.exit("tableRow"),r(M)):Re(M)?He(n,ee,"whitespace")(M):(n.enter("data"),ue(M))}function ue(M){return M===null||M===124||et(M)?(n.exit("data"),ee(M)):(n.consume(M),M===92?ye:ue)}function ye(M){return M===92||M===124?(n.consume(M),ue):ue(M)}}function Fj(n,r){let a=-1,u=!0,c=0,h=[0,0,0,0],f=[0,0,0,0],m=!1,g=0,p,v,y;const j=new Vj;for(;++a<n.length;){const S=n[a],A=S[1];S[0]==="enter"?A.type==="tableHead"?(m=!1,g!==0&&(Bp(j,r,g,p,v),v=void 0,g=0),p={type:"table",start:Object.assign({},A.start),end:Object.assign({},A.end)},j.add(a,0,[["enter",p,r]])):A.type==="tableRow"||A.type==="tableDelimiterRow"?(u=!0,y=void 0,h=[0,0,0,0],f=[0,a+1,0,0],m&&(m=!1,v={type:"tableBody",start:Object.assign({},A.start),end:Object.assign({},A.end)},j.add(a,0,[["enter",v,r]])),c=A.type==="tableDelimiterRow"?2:v?3:1):c&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(h[1]!==0&&(f[0]=f[1],y=lu(j,r,h,c,void 0,y),h=[0,0,0,0]),f[2]=a)):A.type==="tableCellDivider"&&(u?u=!1:(h[1]!==0&&(f[0]=f[1],y=lu(j,r,h,c,void 0,y)),h=f,f=[h[1],a,0,0])):A.type==="tableHead"?(m=!0,g=a):A.type==="tableRow"||A.type==="tableDelimiterRow"?(g=a,h[1]!==0?(f[0]=f[1],y=lu(j,r,h,c,a,y)):f[1]!==0&&(y=lu(j,r,f,c,a,y)),c=0):c&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")&&(f[3]=a)}for(g!==0&&Bp(j,r,g,p,v),j.consume(r.events),a=-1;++a<r.events.length;){const S=r.events[a];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=Xj(r.events,a))}return n}function lu(n,r,a,u,c,h){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",m="tableContent";a[0]!==0&&(h.end=Object.assign({},Ti(r.events,a[0])),n.add(a[0],0,[["exit",h,r]]));const g=Ti(r.events,a[1]);if(h={type:f,start:Object.assign({},g),end:Object.assign({},g)},n.add(a[1],0,[["enter",h,r]]),a[2]!==0){const p=Ti(r.events,a[2]),v=Ti(r.events,a[3]),y={type:m,start:Object.assign({},p),end:Object.assign({},v)};if(n.add(a[2],0,[["enter",y,r]]),u!==2){const j=r.events[a[2]],S=r.events[a[3]];if(j[1].end=Object.assign({},S[1].end),j[1].type="chunkText",j[1].contentType="text",a[3]>a[2]+1){const A=a[2]+1,H=a[3]-a[2]-1;n.add(A,H,[])}}n.add(a[3]+1,0,[["exit",y,r]])}return c!==void 0&&(h.end=Object.assign({},Ti(r.events,c)),n.add(c,0,[["exit",h,r]]),h=void 0),h}function Bp(n,r,a,u,c){const h=[],f=Ti(r.events,a);c&&(c.end=Object.assign({},f),h.push(["exit",c,r])),u.end=Object.assign({},f),h.push(["exit",u,r]),n.add(a+1,0,h)}function Ti(n,r){const a=n[r],u=a[0]==="enter"?"start":"end";return a[1][u]}const Jj={name:"tasklistCheck",tokenize:Ij};function $j(){return{text:{91:Jj}}}function Ij(n,r,a){const u=this;return c;function c(g){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?a(g):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(g),n.exit("taskListCheckMarker"),h)}function h(g){return et(g)?(n.enter("taskListCheckValueUnchecked"),n.consume(g),n.exit("taskListCheckValueUnchecked"),f):g===88||g===120?(n.enter("taskListCheckValueChecked"),n.consume(g),n.exit("taskListCheckValueChecked"),f):a(g)}function f(g){return g===93?(n.enter("taskListCheckMarker"),n.consume(g),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),m):a(g)}function m(g){return be(g)?r(g):Re(g)?n.check({tokenize:Wj},r,a)(g):a(g)}}function Wj(n,r,a){return He(n,u,"whitespace");function u(c){return c===null?a(c):r(c)}}function Pj(n){return eg([Ej(),Oj(),Gj(n),Kj(),$j()])}const e2={};function t2(n){const r=this,a=n||e2,u=r.data(),c=u.micromarkExtensions||(u.micromarkExtensions=[]),h=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);c.push(Pj(a)),h.push(bj()),f.push(Sj(a))}const ru={neoul:"너울"},n2={neoul:"var(--persona-neoul)"};function wa(n){return n?n2[n]??"var(--persona-unknown)":"var(--persona-unknown)"}function xo(n){return n?ru[n]??n:"미지정"}const uu={decision:"의사결정",order_submitted:"주문 접수",order_status:"주문 상태",order_rejected:"주문 거부",watcher_triggered:"감시자 발화"};function Up(n){if(!n)return{};try{const r=n.match(/```(?:json)?\s*([\s\S]*?)```/),a=r?r[1]:n,u=JSON.parse(a);return{action:u.action,symbol:u.symbol_code,symbolName:u.symbol_name,reasoning:typeof u.reasoning=="string"?u.reasoning:void 0}}catch{const r=n.match(/"reasoning"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*)"/);return r?{reasoning:r[1].replace(/\\n/g,`
|
|
79
|
-
`).replace(/\\"/g,'"')}:{reasoning:n}}}function l2(n){const r=new Date(n),a=new Date;return r.toDateString()===a.toDateString()?r.toLocaleTimeString("ko-KR",{hour:"2-digit",minute:"2-digit"}):r.toLocaleDateString("ko-KR",{month:"numeric",day:"numeric"})+" "+r.toLocaleTimeString("ko-KR",{hour:"2-digit",minute:"2-digit"})}function jn(n){return n==null?"—":Math.abs(n)>=1e8?`${(n/1e8).toFixed(2)}억`:Math.abs(n)>=1e4?`${(n/1e4).toFixed(0)}만`:n.toLocaleString("ko-KR")}const io=5;function i2(n={}){var ve;const[r,a]=re.useState([]),[u,c]=re.useState(null),[h,f]=re.useState(null),[m,g]=re.useState(7),[p,v]=re.useState("all"),[y,j]=re.useState("all"),[S,A]=re.useState(0),[H,Y]=re.useState(0),[_,F]=re.useState(!1),[V,se]=re.useState(null),[ce,B]=re.useState(null);async function ee(){F(!0),se(null);try{const[E,N,U]=await Promise.all([fetch(`/api/journal/events?days=${m}`).then(k=>k.json()),fetch(`/api/journal/pnl?days=${Math.max(m,30)}`).then(k=>k.json()).catch(()=>null),fetch("/api/watchers").then(k=>k.json())]);a((E.events??[]).reverse()),c(N),f(U),A(0)}catch(E){se(String(E))}finally{F(!1)}}re.useEffect(()=>{ee()},[m]);const ue=re.useMemo(()=>r.filter(E=>!(p!=="all"&&E.eventType!==p||y!=="all"&&E.personaSlug!==y)),[r,p,y]),ye=re.useMemo(()=>Array.from(new Set(r.map(E=>E.personaSlug).filter(Boolean))),[r]),M=re.useMemo(()=>{const E={};for(const N of r){const U=N.personaSlug??"unknown";E[U]||(E[U]={decisions:0,orders:0,watcher:0,total:0,buyKrw:0,sellKrw:0});const k=E[U];k.total++,N.eventType==="decision"&&k.decisions++,N.eventType.startsWith("order")&&k.orders++,N.eventType==="watcher_triggered"&&k.watcher++,N.priceKrw&&N.filledQty&&(N.side==="buy"&&(k.buyKrw+=N.priceKrw*N.filledQty),N.side==="sell"&&(k.sellKrw+=N.priceKrw*N.filledQty))}return E},[r]),le=re.useMemo(()=>{const E=Object.keys(uu),N=Object.keys(M),U={};for(const k of E)U[k]={};for(const k of r){U[k.eventType]||(U[k.eventType]={});const W=k.personaSlug??"unknown";U[k.eventType][W]=(U[k.eventType][W]??0)+1}return{types:E,personaList:N,matrix:U}},[r,M]),ie=re.useMemo(()=>{const E=(h==null?void 0:h.watchers)??[],N={};for(const U of E){const k=U.personaSlug??"unknown";N[k]||(N[k]=[]),N[k].push(U)}return N},[h]);re.useEffect(()=>{if(!ce)return;const E=N=>{N.key==="Escape"&&B(null)};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[ce]);const ge=Math.max(1,Math.ceil(ue.length/io)),ae=Math.min(H,ge-1),P=ae*io,D=Math.min(P+io,ue.length),I=ue.slice(P,D);re.useEffect(()=>{Y(0),A(0)},[p,y,m,r.length]);const K=ue[S];return V?d.jsxs("div",{className:"banner danger",children:["API 오류 · ",V]}):d.jsxs(d.Fragment,{children:[d.jsxs("section",{className:"stat-row",children:[d.jsxs("button",{type:"button",className:"stat-card glass is-clickable",onClick:()=>B("pnl"),"aria-label":"실현 손익 상세 보기",children:[d.jsx("div",{className:"icon green","aria-hidden":!0,children:"💰"}),d.jsxs("div",{className:"stat-body",children:[d.jsxs("div",{className:`v num ${((u==null?void 0:u.totalRealizedPnlKrw)??0)>=0?"gain":"loss"}`,children:[((u==null?void 0:u.totalRealizedPnlKrw)??0)>=0?"+":"",jn((u==null?void 0:u.totalRealizedPnlKrw)??0)]}),d.jsx("div",{className:"k",children:"실현 손익 30일"})]})]}),d.jsxs("button",{type:"button",className:"stat-card glass is-clickable",onClick:()=>B("trades"),"aria-label":"거래 수 상세 보기",children:[d.jsx("div",{className:"icon purple","aria-hidden":!0,children:"📊"}),d.jsxs("div",{className:"stat-body",children:[d.jsx("div",{className:"v num",children:(u==null?void 0:u.totalTrades)??0}),d.jsx("div",{className:"k",children:"총 거래 수"})]})]}),d.jsxs("button",{type:"button",className:"stat-card glass is-clickable",onClick:()=>B("events"),"aria-label":"이벤트 상세 보기",children:[d.jsx("div",{className:"icon amber","aria-hidden":!0,children:"📓"}),d.jsxs("div",{className:"stat-body",children:[d.jsx("div",{className:"v num",children:r.length}),d.jsxs("div",{className:"k",children:[m,"일 이벤트"]})]})]}),d.jsxs("button",{type:"button",className:"stat-card glass is-clickable",onClick:()=>B("watchers"),"aria-label":"감시자 상세 보기",children:[d.jsx("div",{className:"icon sky","aria-hidden":!0,children:"⏰"}),d.jsxs("div",{className:"stat-body",children:[d.jsxs("div",{className:"v num",children:[(h==null?void 0:h.stats.active)??0,(h==null?void 0:h.dbStats)&&h.dbStats.total>(h.stats.active??0)&&d.jsxs("span",{style:{color:"var(--ink-dim)",fontSize:14,fontWeight:500,marginLeft:4},children:["/",h.dbStats.total]})]}),d.jsx("div",{className:"k",children:"활성 감시자"})]})]})]}),d.jsxs("div",{className:"section-head",style:{marginBottom:0},children:[d.jsxs("h2",{style:{fontSize:"var(--fs-h3)",fontWeight:700,letterSpacing:"-0.025em"},children:["이벤트 ",ue.length,"건"]}),d.jsxs("div",{className:"filter-bar",children:[d.jsxs("select",{value:m,onChange:E=>g(Number(E.target.value)),children:[d.jsx("option",{value:1,children:"오늘"}),d.jsx("option",{value:7,children:"7일"}),d.jsx("option",{value:30,children:"30일"}),d.jsx("option",{value:90,children:"90일"})]}),d.jsxs("select",{value:p,onChange:E=>v(E.target.value),children:[d.jsx("option",{value:"all",children:"모든 이벤트"}),d.jsx("option",{value:"decision",children:"의사결정"}),d.jsx("option",{value:"order_submitted",children:"주문 접수"}),d.jsx("option",{value:"order_status",children:"주문 상태"}),d.jsx("option",{value:"order_rejected",children:"주문 거부"}),d.jsx("option",{value:"watcher_triggered",children:"감시자 발화"})]}),ye.length>1&&d.jsxs("select",{value:y,onChange:E=>j(E.target.value),children:[d.jsx("option",{value:"all",children:"모든 트레이더"}),ye.map(E=>d.jsx("option",{value:E,children:ru[E]??E},E))]}),d.jsx("button",{className:"btn ghost sm",onClick:()=>void ee(),disabled:_,children:_?"...":"↻"})]})]}),d.jsxs("div",{className:"journal-grid",children:[d.jsxs("div",{className:"glass",style:{display:"flex",flexDirection:"column"},children:[d.jsx("div",{className:"journal-list",children:ue.length===0?d.jsx("div",{className:"empty",children:"표시할 이벤트가 없어요."}):I.map(E=>{var W,he,oe;const N=ue.indexOf(E),U=E.personaSlug?ru[E.personaSlug]??E.personaSlug:"—";let k=uu[E.eventType]??E.eventType;if(E.eventType==="decision"){const{action:pe,symbolName:Ae}=Up((W=E.llmContext)==null?void 0:W.reasoning);pe&&(k=`${pe==="buy"?"매수":pe==="sell"?"매도":pe==="hold"?"보유":"관망"}${Ae?` · ${Ae}`:""}`)}else if(E.eventType==="watcher_triggered"){const pe=(he=E.meta)==null?void 0:he.intent;typeof pe=="string"&&(k=`깨움 · ${pe}`)}else if(E.eventType==="order_status"){const pe=(oe=E.meta)==null?void 0:oe.next;k=`${E.symbolName??E.symbolCode??""} · ${pe??"상태 변경"}`}return d.jsxs("button",{className:`item ${N===S?"is-active":""}`,onClick:()=>A(N),children:[d.jsxs("div",{className:"ev-row",children:[d.jsx("span",{className:"ev-time",children:l2(E.timestamp)}),d.jsx("span",{className:"ev-meta",children:U})]}),d.jsx("div",{className:"ev-summary",children:k})]},N)})}),ge>1&&d.jsxs("div",{className:"pagination",children:[d.jsxs("span",{children:[P+1,"–",D," ",d.jsxs("span",{style:{color:"var(--ink-dim)"},children:["/ ",ue.length]})]}),d.jsxs("div",{className:"pages",children:[d.jsx("button",{className:"page-btn",disabled:ae===0,onClick:()=>Y(0),children:"«"}),d.jsx("button",{className:"page-btn",disabled:ae===0,onClick:()=>Y(E=>Math.max(0,E-1)),children:"‹"}),d.jsxs("span",{className:"page-num",children:[d.jsx("strong",{children:ae+1})," / ",ge]}),d.jsx("button",{className:"page-btn",disabled:ae>=ge-1,onClick:()=>Y(E=>Math.min(ge-1,E+1)),children:"›"}),d.jsx("button",{className:"page-btn",disabled:ae>=ge-1,onClick:()=>Y(ge-1),children:"»"})]})]})]}),K&&d.jsxs("div",{className:"journal-detail glass",children:[d.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",marginBottom:"var(--sp-3)"},children:[d.jsx("h3",{children:uu[K.eventType]??K.eventType}),d.jsx("span",{className:"ev-time",style:{fontFamily:"var(--font-mono)",fontSize:"var(--fs-sm)"},children:new Date(K.timestamp).toLocaleString("ko-KR")})]}),K.eventType==="decision"&&(()=>{var oe,pe,Ae,X,w,Z,fe;const{action:E,symbol:N,symbolName:U,reasoning:k}=Up((oe=K.llmContext)==null?void 0:oe.reasoning),W=E==="buy"?"매수":E==="sell"?"매도":E==="hold"?"보유":"관망",he=E==="buy"?"buy":E==="sell"?"sell":"hold";return d.jsxs(d.Fragment,{children:[d.jsxs("div",{style:{display:"flex",gap:"var(--sp-3)",alignItems:"center",marginBottom:"var(--sp-4)"},children:[d.jsx("span",{className:`verdict-pill ${he}`,children:W}),U&&d.jsx("strong",{children:U}),N&&d.jsx("span",{style:{fontFamily:"var(--font-mono)",color:"var(--ink-mute)",fontSize:"var(--fs-sm)"},children:N})]}),k&&d.jsx("div",{className:"reasoning markdown",children:d.jsx(GS,{remarkPlugins:[t2],children:k})}),d.jsxs("dl",{className:"kv-list",children:[K.personaSlug&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"트레이더"}),d.jsx("dd",{children:ru[K.personaSlug]??K.personaSlug})]}),d.jsx("dt",{children:"모델"}),d.jsx("dd",{children:((pe=K.llmContext)==null?void 0:pe.model)??"—"}),((Ae=K.llmContext)==null?void 0:Ae.stopReason)&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"응답 종료"}),d.jsxs("dd",{children:[K.llmContext.stopReason,K.llmContext.truncated&&d.jsx("span",{style:{color:"var(--loss)",fontWeight:700},children:" · 잘림 ⚠"})]})]}),((X=K.llmContext)==null?void 0:X.triggered_by)&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"발화 원인"}),d.jsxs("dd",{children:["감시자 · ",K.llmContext.triggered_by.intent]})]}),((w=K.llmContext)==null?void 0:w.followup_status)&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"처리 상태"}),d.jsxs("dd",{style:{color:"var(--loss)"},children:[K.llmContext.followup_status,K.llmContext.error?` · ${K.llmContext.error}`:""]})]}),((Z=K.llmContext)==null?void 0:Z.screening_summary)&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"스크리닝"}),d.jsxs("dd",{children:["universe ",(fe=K.llmContext.screening_summary.universe)==null?void 0:fe.toLocaleString()," →"," ","평가 ",K.llmContext.screening_summary.evaluated," →"," ","후보 ",K.llmContext.screening_summary.candidates]})]})]})]})})(),K.eventType.startsWith("order_")&&K.eventType!=="decision"&&d.jsxs("dl",{className:"kv-list",children:[d.jsx("dt",{children:"종목"}),d.jsxs("dd",{children:[K.symbolName??"—"," ",K.symbolCode&&d.jsxs("span",{style:{fontFamily:"var(--font-mono)",color:"var(--ink-mute)"},children:["(",K.symbolCode,")"]})]}),d.jsx("dt",{children:"방향"}),d.jsx("dd",{children:K.side==="buy"?"매수":K.side==="sell"?"매도":"—"}),d.jsx("dt",{children:"수량"}),d.jsxs("dd",{className:"num",children:[K.quantity??"—",K.filledQty!=null&&K.filledQty!==K.quantity?` (체결 ${K.filledQty})`:""]}),K.priceKrw!=null&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"가격"}),d.jsxs("dd",{className:"num",children:[jn(K.priceKrw),"원"]})]}),K.brokerOrderNo&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"broker 주문번호"}),d.jsx("dd",{className:"num",children:K.brokerOrderNo})]}),K.clientOrderId&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"client id"}),d.jsx("dd",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--fs-xs)"},children:K.clientOrderId})]}),K.meta&&Object.keys(K.meta).length>0&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"메타"}),d.jsx("dd",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--fs-xs)"},children:JSON.stringify(K.meta)})]}),K.error&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"오류"}),d.jsx("dd",{style:{color:"var(--loss)"},children:K.error})]})]}),K.eventType==="watcher_triggered"&&K.meta&&(()=>{const E=K.meta;return d.jsxs("dl",{className:"kv-list",children:[d.jsx("dt",{children:"의도"}),d.jsx("dd",{children:String(E.intent??"—")}),d.jsx("dt",{children:"watcher"}),d.jsx("dd",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--fs-xs)"},children:String(E.watcherId??"")}),E.lifecycle==="expired"&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"이유"}),d.jsx("dd",{style:{color:"var(--warn)"},children:"만료 (maxWaitHours 초과)"})]}),E.triggerData!=null&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"trigger data"}),d.jsx("dd",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--fs-xs)"},children:JSON.stringify(E.triggerData)})]})]})})()]})]}),d.jsx("div",{className:"disclaimer",children:"본 소프트웨어는 트레이딩 로직 라이선스 + 소프트웨어 공급 모델로 제공됩니다. 거래 의사결정과 실행은 사용자의 책임이며, 본 소프트웨어는 투자 자문 · 투자 일임 · 수익 보장을 제공하지 않습니다. 원금 손실의 위험이 있습니다."}),ce==="pnl"&&d.jsx(iu,{title:"실현 손익 상세",subtitle:`최근 ${Math.max(m,30)}일 · FIFO 추정`,onClose:()=>B(null),children:d.jsx(a2,{pnl:u,personaStats:M})}),ce==="trades"&&d.jsx(iu,{title:"거래 수 상세",subtitle:`총 ${(u==null?void 0:u.totalTrades)??0}건 · 트레이더별 분포`,onClose:()=>B(null),children:d.jsx(r2,{pnl:u,personaStats:M})}),ce==="events"&&d.jsx(iu,{title:"이벤트 상세",subtitle:`최근 ${m}일 · ${r.length}건`,onClose:()=>B(null),children:d.jsx(u2,{matrix:le})}),ce==="watchers"&&d.jsx(iu,{title:"감시자 상세",subtitle:`활성 ${(h==null?void 0:h.stats.active)??0} / 누적 ${((ve=h==null?void 0:h.dbStats)==null?void 0:ve.total)??0}`,onClose:()=>B(null),children:d.jsx(s2,{groups:ie})})]})}function iu({title:n,subtitle:r,onClose:a,children:u}){return d.jsx("div",{className:"dialog-backdrop",onClick:a,role:"dialog","aria-modal":"true","aria-label":n,children:d.jsxs("div",{className:"dialog",onClick:c=>c.stopPropagation(),children:[d.jsx("button",{className:"close",onClick:a,"aria-label":"닫기",children:"×"}),d.jsxs("div",{style:{marginBottom:"var(--sp-5)"},children:[d.jsx("h2",{style:{fontSize:"var(--fs-h1)",fontWeight:800,letterSpacing:"-0.02em"},children:n}),r&&d.jsx("p",{style:{color:"var(--ink-mute)",fontSize:"var(--fs-sm)",marginTop:4},children:r})]}),u]})})}function a2({pnl:n,personaStats:r}){const a=(n==null?void 0:n.byDate)??[],u=re.useMemo(()=>{let f=0;return a.map(m=>(f+=m.realizedPnlKrw,{date:m.date,value:f}))},[a]),c=Object.keys(r).filter(f=>r[f].buyKrw>0||r[f].sellKrw>0),h=Math.max(0,...c.flatMap(f=>[r[f].buyKrw,r[f].sellKrw]));return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"dialog-section",children:[d.jsx("h3",{children:"일별 누적 손익"}),d.jsx("p",{className:"sub",children:"날짜별 실현 손익 누적 추이"}),u.length===0?d.jsx("div",{className:"empty",children:"아직 손익 데이터가 없어요."}):d.jsx(c2,{data:u,color:u[u.length-1].value>=0?"var(--gain)":"var(--loss)"})]}),d.jsxs("div",{className:"dialog-section",children:[d.jsx("h3",{children:"트레이더별 매수 · 매도 금액"}),d.jsx("p",{className:"sub",children:"체결가 × 체결수량 합계"}),c.length===0?d.jsx("div",{className:"empty",children:"집계할 거래가 없어요."}):d.jsx("div",{children:c.map(f=>d.jsxs("div",{style:{marginBottom:"var(--sp-3)"},children:[d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:4},children:[d.jsx(Uo,{slug:f}),d.jsxs("span",{className:"num",style:{fontSize:"var(--fs-xs)",color:"var(--ink-mute)"},children:["매수 ",jn(r[f].buyKrw)," · 매도 ",jn(r[f].sellKrw)]})]}),d.jsx(hu,{label:"매수",value:r[f].buyKrw,max:h,color:"var(--gain)",hideLabel:!0}),d.jsx(hu,{label:"매도",value:r[f].sellKrw,max:h,color:"var(--loss)",hideLabel:!0})]},f))})]})]})}function r2({pnl:n,personaStats:r}){const a=Object.keys(r).sort((h,f)=>r[f].orders-r[h].orders),u=Math.max(1,...a.map(h=>r[h].orders)),c=Math.max(1,...a.map(h=>r[h].decisions));return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"dialog-section",children:[d.jsx("h3",{children:"요약"}),d.jsxs("div",{className:"metric-grid",children:[d.jsxs("div",{className:"item",children:[d.jsx("span",{className:"k",children:"총 거래 (체결)"}),d.jsx("span",{className:"v num",children:(n==null?void 0:n.totalTrades)??0})]}),d.jsxs("div",{className:"item",children:[d.jsx("span",{className:"k",children:"총 매수액"}),d.jsx("span",{className:"v num",children:jn(n==null?void 0:n.totalBuyAmountKrw)})]}),d.jsxs("div",{className:"item",children:[d.jsx("span",{className:"k",children:"총 매도액"}),d.jsx("span",{className:"v num",children:jn(n==null?void 0:n.totalSellAmountKrw)})]}),d.jsxs("div",{className:"item",children:[d.jsx("span",{className:"k",children:"실현 손익"}),d.jsx("span",{className:"v num",children:jn(n==null?void 0:n.totalRealizedPnlKrw)})]})]})]}),d.jsxs("div",{className:"dialog-section",children:[d.jsx("h3",{children:"트레이더별 주문 이벤트"}),d.jsx("p",{className:"sub",children:"order_submitted / order_status / order_rejected 합계"}),a.length===0?d.jsx("div",{className:"empty",children:"데이터 없음"}):a.map(h=>d.jsx(hu,{label:xo(h),dotColor:wa(h),value:r[h].orders,max:u,color:wa(h)},h))]}),d.jsxs("div",{className:"dialog-section",children:[d.jsx("h3",{children:"트레이더별 의사결정 횟수"}),d.jsx("p",{className:"sub",children:"decision 이벤트 카운트 (LLM 판단 횟수)"}),a.length===0?d.jsx("div",{className:"empty",children:"데이터 없음"}):a.map(h=>d.jsx(hu,{label:xo(h),dotColor:wa(h),value:r[h].decisions,max:c,color:wa(h)},h))]})]})}function u2({matrix:n}){const r=n.personaList.filter(f=>f!=="unknown").sort(),a=n.personaList.includes("unknown")?[...r,"unknown"]:r,u=n.types.filter(f=>Object.values(n.matrix[f]??{}).some(m=>m>0)),c=f=>Object.values(n.matrix[f]??{}).reduce((m,g)=>m+g,0),h=f=>u.reduce((m,g)=>{var p;return m+(((p=n.matrix[g])==null?void 0:p[f])??0)},0);return u.length===0?d.jsx("div",{className:"empty",children:"집계할 이벤트가 없어요."}):d.jsxs("div",{className:"dialog-section",children:[d.jsx("h3",{children:"이벤트 타입 × 트레이더"}),d.jsx("p",{className:"sub",children:"행: 이벤트 타입 · 열: 트레이더"}),d.jsxs("table",{className:"matrix-table",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{className:"row-head",children:"타입"}),a.map(f=>d.jsx("th",{children:d.jsx(Uo,{slug:f,compact:!0})},f)),d.jsx("th",{children:"합계"})]})}),d.jsxs("tbody",{children:[u.map(f=>d.jsxs("tr",{children:[d.jsx("td",{className:"row-head",children:uu[f]??f}),a.map(m=>{var p;const g=((p=n.matrix[f])==null?void 0:p[m])??0;return d.jsx("td",{className:g===0?"zero":"",children:g||"·"},m)}),d.jsx("td",{className:"total",children:c(f)})]},f)),d.jsxs("tr",{children:[d.jsx("td",{className:"row-head total",children:"합계"}),a.map(f=>d.jsx("td",{className:"total",children:h(f)},f)),d.jsx("td",{className:"total",children:u.reduce((f,m)=>f+c(m),0)})]})]})]})]})}function s2({groups:n}){const r=Object.keys(n).sort();if(r.length===0)return d.jsx("div",{className:"empty",children:"활성 감시자가 없어요."});const a=u=>({active:"활성",triggered:"발화",expired:"만료",revoked:"해제"})[u];return d.jsx(d.Fragment,{children:r.map(u=>d.jsxs("div",{className:"watcher-group",children:[d.jsxs("div",{className:"group-head",children:[d.jsx(Uo,{slug:u}),d.jsxs("span",{className:"count",children:[n[u].length,"건"]})]}),n[u].map(c=>{var f,m,g,p;const h=((g=(m=(f=c.spec)==null?void 0:f.condition)==null?void 0:m.config)==null?void 0:g.symbolCode)??"—";return d.jsxs("div",{className:"watcher-row",children:[d.jsxs("div",{style:{minWidth:0},children:[d.jsx("div",{className:"intent",children:((p=c.spec)==null?void 0:p.intent)??"—"}),d.jsx("div",{className:"symbol",children:h})]}),d.jsx("span",{className:`status ${c.status}`,children:a(c.status)})]},c.id)})]},u))})}function Uo({slug:n,compact:r=!1}){const a=wa(n),u=xo(n);return d.jsxs("span",{className:"persona-chip",style:{"--persona-color":a},children:[d.jsx("span",{className:"dot",style:{background:a}}),!r&&d.jsx("span",{children:u}),r&&d.jsx("span",{style:{fontSize:"var(--fs-xs)"},children:u})]})}function hu({label:n,value:r,max:a,color:u,dotColor:c,hideLabel:h=!1}){const f=a>0?Math.max(0,r/a*100):0,m=r>=1e4?jn(r):r.toLocaleString("ko-KR");return d.jsxs("div",{className:"bar-row",style:h?{gridTemplateColumns:"60px 1fr 80px"}:void 0,children:[d.jsxs("div",{className:"bar-label",children:[c&&d.jsx("span",{className:"dot",style:{background:c}}),d.jsx("span",{className:"name",children:n})]}),d.jsx("div",{className:"bar-track",children:d.jsx("div",{className:"bar-fill",style:{width:`${f}%`,background:u}})}),d.jsx("div",{className:"bar-value",children:m})]})}function c2({data:n,color:r}){if(n.length===0)return null;const a=600,u=180,c=16,h=n.map(F=>F.value),f=Math.max(...h,0),m=Math.min(...h,0),g=f-m||1,p=n.length>1?(a-2*c)/(n.length-1):0,v=n.map((F,V)=>{const se=c+V*p,ce=c+(u-2*c)*(1-(F.value-m)/g);return[se,ce]}),y=v.map(([F,V],se)=>`${se===0?"M":"L"} ${F} ${V}`).join(" "),j=v[v.length-1],S=v[0],A=`${y} L ${j[0]} ${u-c} L ${S[0]} ${u-c} Z`,H=c+(u-2*c)*(1-(0-m)/g),Y=n[0].date.slice(5),_=n[n.length-1].date.slice(5);return d.jsx("div",{className:"mini-chart",children:d.jsxs("svg",{viewBox:`0 0 ${a} ${u+18}`,preserveAspectRatio:"none",children:[m<0&&f>0&&d.jsx("line",{x1:c,y1:H,x2:a-c,y2:H,stroke:"var(--ink-faint)",strokeDasharray:"3 4",strokeWidth:"1"}),d.jsx("path",{d:A,fill:r,fillOpacity:"0.12"}),d.jsx("path",{d:y,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),v.map(([F,V],se)=>d.jsx("circle",{cx:F,cy:V,r:n.length>30?0:2.5,fill:r},se)),d.jsx("text",{className:"axis",x:c,y:u+12,textAnchor:"start",children:Y}),d.jsx("text",{className:"axis",x:a-c,y:u+12,textAnchor:"end",children:_}),d.jsx("text",{className:"axis",x:a-c,y:c+4,textAnchor:"end",fill:"var(--ink-mute)",children:jn(f)}),m<0&&d.jsx("text",{className:"axis",x:a-c,y:u-c+2,textAnchor:"end",fill:"var(--ink-mute)",children:jn(m)})]})})}const Qg=[{id:"status",label:"대시보드",path:"/"},{id:"personas",label:"트레이더",path:"/personas"},{id:"journal",label:"일지",path:"/journal"},{id:"setup",label:"설정",path:"/setup"}],o2={"/":"status","/status":"status","/personas":"personas","/journal":"journal","/setup":"setup"};function ao(n){return o2[n]??"status"}function Hp(n){var r;return((r=Qg.find(a=>a.id===n))==null?void 0:r.path)??"/"}function f2(){const[n,r]=re.useState(()=>ao(window.location.pathname)),[a,u]=re.useState({halted:!1});function c(h,{replace:f=!1}={}){r(h);const m=Hp(h);if(window.location.pathname!==m){const g=f?"replaceState":"pushState";window.history[g]({tab:h},"",m)}}return re.useEffect(()=>{const h=()=>{r(ao(window.location.pathname))};return window.addEventListener("popstate",h),()=>window.removeEventListener("popstate",h)},[]),re.useEffect(()=>{const h=Hp(ao(window.location.pathname));window.location.pathname!==h&&window.history.replaceState({tab:n},"",h)},[]),re.useEffect(()=>{(async()=>{var h,f;try{const[m,g]=await Promise.all([fetch("/api/health"),fetch("/api/safety")]),p=await m.json(),v=await g.json();u({halted:!!v.halted}),(!((h=p.config)!=null&&h.present)||((f=p.config)==null?void 0:f.provider)==="none")&&n!=="setup"&&c("setup",{replace:!0})}catch{n!=="setup"&&c("setup",{replace:!0})}})()},[]),d.jsxs("div",{className:"app-shell",children:[d.jsxs("header",{className:"app-bar",role:"banner",children:[d.jsxs("a",{className:"brand",href:"/","aria-label":"mulsok 홈",onClick:h=>{h.preventDefault(),c("status")},children:[d.jsx(h2,{}),d.jsx("span",{className:"brand-word",children:"mulsok"})]}),d.jsx("nav",{className:"app-nav",role:"tablist","aria-label":"주 탐색",children:Qg.map(h=>d.jsx("button",{role:"tab","aria-selected":n===h.id,className:n===h.id?"is-active":"",onClick:()=>c(h.id),children:h.label},h.id))}),d.jsxs("div",{className:`user-pill ${a.halted?"is-halt":""}`,children:[d.jsx("div",{className:"dot"}),a.halted?"긴급 정지":"가동 중"]})]}),d.jsxs("main",{className:"app-main",children:[n==="status"&&d.jsx(bv,{onGoToSetup:()=>c("setup"),onGoToPersonas:()=>c("personas"),onGoToJournal:()=>c("journal"),onSafetyChange:h=>u({halted:h})}),n==="personas"&&d.jsx(Nv,{onGoToSetup:()=>c("setup"),onGoToJournal:()=>c("journal")}),n==="journal"&&d.jsx(i2,{onGoToSetup:()=>c("setup")}),n==="setup"&&d.jsx(vv,{onSaved:()=>c("status"),onSafetyChange:h=>u({halted:h})})]})]})}function h2(){return d.jsx("div",{className:"brand-mark",children:"m"})}gv.createRoot(document.getElementById("root")).render(d.jsx(sv.StrictMode,{children:d.jsx(f2,{})}));
|