@aws/agentcore 0.8.1 → 0.9.1

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.
Files changed (33) hide show
  1. package/dist/agent-inspector/favicon.svg +60 -0
  2. package/dist/agent-inspector/index.css +1 -0
  3. package/dist/agent-inspector/index.html +14 -0
  4. package/dist/agent-inspector/index.js +256 -0
  5. package/dist/agent-inspector/index.js.map +1 -0
  6. package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +2 -2
  7. package/dist/assets/agents/AGENTS.md +1 -1
  8. package/dist/assets/cdk/package.json +1 -1
  9. package/dist/cli/index.mjs +471 -456
  10. package/dist/lib/packaging/index.d.ts.map +1 -1
  11. package/dist/lib/packaging/index.js +2 -1
  12. package/dist/lib/packaging/index.js.map +1 -1
  13. package/dist/lib/packaging/python.d.ts.map +1 -1
  14. package/dist/lib/packaging/python.js +2 -1
  15. package/dist/lib/packaging/python.js.map +1 -1
  16. package/dist/lib/packaging/uv.d.ts.map +1 -1
  17. package/dist/lib/packaging/uv.js +1 -1
  18. package/dist/lib/packaging/uv.js.map +1 -1
  19. package/dist/schema/constants.d.ts +4 -0
  20. package/dist/schema/constants.d.ts.map +1 -1
  21. package/dist/schema/constants.js +4 -2
  22. package/dist/schema/constants.js.map +1 -1
  23. package/dist/schema/schemas/agent-env.d.ts +1 -0
  24. package/dist/schema/schemas/agent-env.d.ts.map +1 -1
  25. package/dist/schema/schemas/agentcore-project.d.ts +6 -0
  26. package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
  27. package/dist/schema/schemas/mcp.d.ts +11 -0
  28. package/dist/schema/schemas/mcp.d.ts.map +1 -1
  29. package/dist/schema/schemas/primitives/evaluator.d.ts.map +1 -1
  30. package/dist/schema/schemas/primitives/evaluator.js +0 -1
  31. package/dist/schema/schemas/primitives/evaluator.js.map +1 -1
  32. package/package.json +4 -1
  33. package/scripts/copy-assets.mjs +14 -0
@@ -0,0 +1,256 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function i(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=i(u);fetch(u.href,o)}})();function zu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var uf={exports:{}},xr={};/**
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 Tg;function S0(){if(Tg)return xr;Tg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,u,o){var c=null;if(o!==void 0&&(c=""+o),u.key!==void 0&&(c=""+u.key),"key"in u){o={};for(var h in u)h!=="key"&&(o[h]=u[h])}else o=u;return u=o.ref,{$$typeof:n,type:r,key:c,ref:u!==void 0?u:null,props:o}}return xr.Fragment=a,xr.jsx=i,xr.jsxs=i,xr}var kg;function T0(){return kg||(kg=1,uf.exports=S0()),uf.exports}var g=T0(),of={exports:{}},Me={};/**
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 Eg;function k0(){if(Eg)return Me;Eg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,R={};function T(A,Z,E){this.props=A,this.context=Z,this.refs=R,this.updater=E||k}T.prototype.isReactComponent={},T.prototype.setState=function(A,Z){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Z,"setState")},T.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function M(){}M.prototype=T.prototype;function O(A,Z,E){this.props=A,this.context=Z,this.refs=R,this.updater=E||k}var K=O.prototype=new M;K.constructor=O,w(K,T.prototype),K.isPureReactComponent=!0;var te=Array.isArray;function D(){}var P={H:null,A:null,T:null,S:null},ve=Object.prototype.hasOwnProperty;function ge(A,Z,E){var G=E.ref;return{$$typeof:n,type:A,key:Z,ref:G!==void 0?G:null,props:E}}function L(A,Z){return ge(A.type,Z,A.props)}function W(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function F(A){var Z={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(E){return Z[E]})}var Se=/\/+/g;function ce(A,Z){return typeof A=="object"&&A!==null&&A.key!=null?F(""+A.key):Z.toString(36)}function ie(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(D,D):(A.status="pending",A.then(function(Z){A.status==="pending"&&(A.status="fulfilled",A.value=Z)},function(Z){A.status==="pending"&&(A.status="rejected",A.reason=Z)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,Z,E,G,ae){var oe=typeof A;(oe==="undefined"||oe==="boolean")&&(A=null);var je=!1;if(A===null)je=!0;else switch(oe){case"bigint":case"string":case"number":je=!0;break;case"object":switch(A.$$typeof){case n:case a:je=!0;break;case _:return je=A._init,U(je(A._payload),Z,E,G,ae)}}if(je)return ae=ae(A),je=G===""?"."+ce(A,0):G,te(ae)?(E="",je!=null&&(E=je.replace(Se,"$&/")+"/"),U(ae,Z,E,"",function(yn){return yn})):ae!=null&&(W(ae)&&(ae=L(ae,E+(ae.key==null||A&&A.key===ae.key?"":(""+ae.key).replace(Se,"$&/")+"/")+je)),Z.push(ae)),1;je=0;var pt=G===""?".":G+":";if(te(A))for(var lt=0;lt<A.length;lt++)G=A[lt],oe=pt+ce(G,lt),je+=U(G,Z,E,oe,ae);else if(lt=b(A),typeof lt=="function")for(A=lt.call(A),lt=0;!(G=A.next()).done;)G=G.value,oe=pt+ce(G,lt++),je+=U(G,Z,E,oe,ae);else if(oe==="object"){if(typeof A.then=="function")return U(ie(A),Z,E,G,ae);throw Z=String(A),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return je}function J(A,Z,E){if(A==null)return A;var G=[],ae=0;return U(A,G,"","",function(oe){return Z.call(E,oe,ae++)}),G}function fe(A){if(A._status===-1){var Z=A._result;Z=Z(),Z.then(function(E){(A._status===0||A._status===-1)&&(A._status=1,A._result=E)},function(E){(A._status===0||A._status===-1)&&(A._status=2,A._result=E)}),A._status===-1&&(A._status=0,A._result=Z)}if(A._status===1)return A._result.default;throw A._result}var re=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},N={map:J,forEach:function(A,Z,E){J(A,function(){Z.apply(this,arguments)},E)},count:function(A){var Z=0;return J(A,function(){Z++}),Z},toArray:function(A){return J(A,function(Z){return Z})||[]},only:function(A){if(!W(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Me.Activity=y,Me.Children=N,Me.Component=T,Me.Fragment=i,Me.Profiler=u,Me.PureComponent=O,Me.StrictMode=r,Me.Suspense=m,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Me.__COMPILER_RUNTIME={__proto__:null,c:function(A){return P.H.useMemoCache(A)}},Me.cache=function(A){return function(){return A.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(A,Z,E){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var G=w({},A.props),ae=A.key;if(Z!=null)for(oe in Z.key!==void 0&&(ae=""+Z.key),Z)!ve.call(Z,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&Z.ref===void 0||(G[oe]=Z[oe]);var oe=arguments.length-2;if(oe===1)G.children=E;else if(1<oe){for(var je=Array(oe),pt=0;pt<oe;pt++)je[pt]=arguments[pt+2];G.children=je}return ge(A.type,ae,G)},Me.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:o,_context:A},A},Me.createElement=function(A,Z,E){var G,ae={},oe=null;if(Z!=null)for(G in Z.key!==void 0&&(oe=""+Z.key),Z)ve.call(Z,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(ae[G]=Z[G]);var je=arguments.length-2;if(je===1)ae.children=E;else if(1<je){for(var pt=Array(je),lt=0;lt<je;lt++)pt[lt]=arguments[lt+2];ae.children=pt}if(A&&A.defaultProps)for(G in je=A.defaultProps,je)ae[G]===void 0&&(ae[G]=je[G]);return ge(A,oe,ae)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(A){return{$$typeof:h,render:A}},Me.isValidElement=W,Me.lazy=function(A){return{$$typeof:_,_payload:{_status:-1,_result:A},_init:fe}},Me.memo=function(A,Z){return{$$typeof:p,type:A,compare:Z===void 0?null:Z}},Me.startTransition=function(A){var Z=P.T,E={};P.T=E;try{var G=A(),ae=P.S;ae!==null&&ae(E,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(D,re)}catch(oe){re(oe)}finally{Z!==null&&E.types!==null&&(Z.types=E.types),P.T=Z}},Me.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Me.use=function(A){return P.H.use(A)},Me.useActionState=function(A,Z,E){return P.H.useActionState(A,Z,E)},Me.useCallback=function(A,Z){return P.H.useCallback(A,Z)},Me.useContext=function(A){return P.H.useContext(A)},Me.useDebugValue=function(){},Me.useDeferredValue=function(A,Z){return P.H.useDeferredValue(A,Z)},Me.useEffect=function(A,Z){return P.H.useEffect(A,Z)},Me.useEffectEvent=function(A){return P.H.useEffectEvent(A)},Me.useId=function(){return P.H.useId()},Me.useImperativeHandle=function(A,Z,E){return P.H.useImperativeHandle(A,Z,E)},Me.useInsertionEffect=function(A,Z){return P.H.useInsertionEffect(A,Z)},Me.useLayoutEffect=function(A,Z){return P.H.useLayoutEffect(A,Z)},Me.useMemo=function(A,Z){return P.H.useMemo(A,Z)},Me.useOptimistic=function(A,Z){return P.H.useOptimistic(A,Z)},Me.useReducer=function(A,Z,E){return P.H.useReducer(A,Z,E)},Me.useRef=function(A){return P.H.useRef(A)},Me.useState=function(A){return P.H.useState(A)},Me.useSyncExternalStore=function(A,Z,E){return P.H.useSyncExternalStore(A,Z,E)},Me.useTransition=function(){return P.H.useTransition()},Me.version="19.2.4",Me}var Ng;function ad(){return Ng||(Ng=1,of.exports=k0()),of.exports}var I=ad();const E0=zu(I);var cf={exports:{}},br={},ff={exports:{}},df={};/**
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 Cg;function N0(){return Cg||(Cg=1,(function(n){function a(U,J){var fe=U.length;U.push(J);e:for(;0<fe;){var re=fe-1>>>1,N=U[re];if(0<u(N,J))U[re]=J,U[fe]=N,fe=re;else break e}}function i(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var J=U[0],fe=U.pop();if(fe!==J){U[0]=fe;e:for(var re=0,N=U.length,A=N>>>1;re<A;){var Z=2*(re+1)-1,E=U[Z],G=Z+1,ae=U[G];if(0>u(E,fe))G<N&&0>u(ae,E)?(U[re]=ae,U[G]=fe,re=G):(U[re]=E,U[Z]=fe,re=Z);else if(G<N&&0>u(ae,fe))U[re]=ae,U[G]=fe,re=G;else break e}}return J}function u(U,J){var fe=U.sortIndex-J.sortIndex;return fe!==0?fe:U.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var c=Date,h=c.now();n.unstable_now=function(){return c.now()-h}}var m=[],p=[],_=1,y=null,x=3,b=!1,k=!1,w=!1,R=!1,T=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function K(U){for(var J=i(p);J!==null;){if(J.callback===null)r(p);else if(J.startTime<=U)r(p),J.sortIndex=J.expirationTime,a(m,J);else break;J=i(p)}}function te(U){if(w=!1,K(U),!k)if(i(m)!==null)k=!0,D||(D=!0,F());else{var J=i(p);J!==null&&ie(te,J.startTime-U)}}var D=!1,P=-1,ve=5,ge=-1;function L(){return R?!0:!(n.unstable_now()-ge<ve)}function W(){if(R=!1,D){var U=n.unstable_now();ge=U;var J=!0;try{e:{k=!1,w&&(w=!1,M(P),P=-1),b=!0;var fe=x;try{t:{for(K(U),y=i(m);y!==null&&!(y.expirationTime>U&&L());){var re=y.callback;if(typeof re=="function"){y.callback=null,x=y.priorityLevel;var N=re(y.expirationTime<=U);if(U=n.unstable_now(),typeof N=="function"){y.callback=N,K(U),J=!0;break t}y===i(m)&&r(m),K(U)}else r(m);y=i(m)}if(y!==null)J=!0;else{var A=i(p);A!==null&&ie(te,A.startTime-U),J=!1}}break e}finally{y=null,x=fe,b=!1}J=void 0}}finally{J?F():D=!1}}}var F;if(typeof O=="function")F=function(){O(W)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ce=Se.port2;Se.port1.onmessage=W,F=function(){ce.postMessage(null)}}else F=function(){T(W,0)};function ie(U,J){P=T(function(){U(n.unstable_now())},J)}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(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ve=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(U){switch(x){case 1:case 2:case 3:var J=3;break;default:J=x}var fe=x;x=J;try{return U()}finally{x=fe}},n.unstable_requestPaint=function(){R=!0},n.unstable_runWithPriority=function(U,J){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var fe=x;x=U;try{return J()}finally{x=fe}},n.unstable_scheduleCallback=function(U,J,fe){var re=n.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?re+fe:re):fe=re,U){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=fe+N,U={id:_++,callback:J,priorityLevel:U,startTime:fe,expirationTime:N,sortIndex:-1},fe>re?(U.sortIndex=fe,a(p,U),i(m)===null&&U===i(p)&&(w?(M(P),P=-1):w=!0,ie(te,fe-re))):(U.sortIndex=N,a(m,U),k||b||(k=!0,D||(D=!0,F()))),U},n.unstable_shouldYield=L,n.unstable_wrapCallback=function(U){var J=x;return function(){var fe=x;x=J;try{return U.apply(this,arguments)}finally{x=fe}}}})(df)),df}var Ag;function C0(){return Ag||(Ag=1,ff.exports=N0()),ff.exports}var hf={exports:{}},Ht={};/**
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 wg;function A0(){if(wg)return Ht;wg=1;var n=ad();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)p+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(m,p,_){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:m,containerInfo:p,implementation:_}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ht.createPortal=function(m,p){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return o(m,p,null,_)},Ht.flushSync=function(m){var p=c.T,_=r.p;try{if(c.T=null,r.p=2,m)return m()}finally{c.T=p,r.p=_,r.d.f()}},Ht.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},Ht.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Ht.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var _=p.as,y=h(_,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;_==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:b}):_==="script"&&r.d.X(m,{crossOrigin:y,integrity:x,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ht.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var _=h(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},Ht.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var _=p.as,y=h(_,p.crossOrigin);r.d.L(m,_,{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})}},Ht.preloadModule=function(m,p){if(typeof m=="string")if(p){var _=h(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},Ht.requestFormReset=function(m){r.d.r(m)},Ht.unstable_batchedUpdates=function(m,p){return m(p)},Ht.useFormState=function(m,p,_){return c.H.useFormState(m,p,_)},Ht.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ht.version="19.2.4",Ht}var jg;function w0(){if(jg)return hf.exports;jg=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(a){console.error(a)}}return n(),hf.exports=A0(),hf.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 Mg;function j0(){if(Mg)return br;Mg=1;var n=C0(),a=ad(),i=w0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(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 c(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 h(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 m(e){if(o(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,s=t;;){var f=l.return;if(f===null)break;var d=f.alternate;if(d===null){if(s=f.return,s!==null){l=s;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===l)return m(f),e;if(d===s)return m(f),t;d=d.sibling}throw Error(r(188))}if(l.return!==s.return)l=f,s=d;else{for(var v=!1,S=f.child;S;){if(S===l){v=!0,l=f,s=d;break}if(S===s){v=!0,s=f,l=d;break}S=S.sibling}if(!v){for(S=d.child;S;){if(S===l){v=!0,l=d,s=f;break}if(S===s){v=!0,s=d,l=f;break}S=S.sibling}if(!v)throw Error(r(189))}}if(l.alternate!==s)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),O=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case T:return"Profiler";case R:return"StrictMode";case te:return"Suspense";case D:return"SuspenseList";case ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case O:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case ve:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var ie=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},re=[],N=-1;function A(e){return{current:e}}function Z(e){0>N||(e.current=re[N],re[N]=null,N--)}function E(e,t){N++,re[N]=e.current,e.current=t}var G=A(null),ae=A(null),oe=A(null),je=A(null);function pt(e,t){switch(E(oe,t),E(ae,e),E(G,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xp(t),e=$p(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(G),E(G,e)}function lt(){Z(G),Z(ae),Z(oe)}function yn(e){e.memoizedState!==null&&E(je,e);var t=G.current,l=$p(t,e.type);t!==l&&(E(ae,e),E(G,l))}function Kn(e){ae.current===e&&(Z(G),Z(ae)),je.current===e&&(Z(je),gr._currentValue=fe)}var Ci,qr;function Jn(e){if(Ci===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ci=t&&t[1]||"",qr=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ci+e+qr}var El=!1;function Nl(e,t){if(!e||El)return"";El=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(V){var q=V}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(V){q=V}e.call(Q.prototype)}}else{try{throw Error()}catch(V){q=V}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(V){if(V&&q&&typeof V.stack=="string")return[V.stack,q.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=s.DetermineComponentFrameRoot(),v=d[0],S=d[1];if(v&&S){var C=v.split(`
44
+ `),H=S.split(`
45
+ `);for(f=s=0;s<C.length&&!C[s].includes("DetermineComponentFrameRoot");)s++;for(;f<H.length&&!H[f].includes("DetermineComponentFrameRoot");)f++;if(s===C.length||f===H.length)for(s=C.length-1,f=H.length-1;1<=s&&0<=f&&C[s]!==H[f];)f--;for(;1<=s&&0<=f;s--,f--)if(C[s]!==H[f]){if(s!==1||f!==1)do if(s--,f--,0>f||C[s]!==H[f]){var Y=`
46
+ `+C[s].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=s&&0<=f);break}}}finally{El=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Jn(l):""}function Ir(e,t){switch(e.tag){case 26:case 27:case 5:return Jn(e.type);case 16:return Jn("Lazy");case 13:return e.child!==t&&t!==null?Jn("Suspense Fallback"):Jn("Suspense");case 19:return Jn("SuspenseList");case 0:case 15:return Nl(e.type,!1);case 11:return Nl(e.type.render,!1);case 1:return Nl(e.type,!0);case 31:return Jn("Activity");default:return""}}function Vr(e){try{var t="",l=null;do t+=Ir(e,l),l=e,e=e.return;while(e);return t}catch(s){return`
47
+ Error generating stack: `+s.message+`
48
+ `+s.stack}}var Cl=Object.prototype.hasOwnProperty,Al=n.unstable_scheduleCallback,Ai=n.unstable_cancelCallback,Yu=n.unstable_shouldYield,Xu=n.unstable_requestPaint,Gt=n.unstable_now,$u=n.unstable_getCurrentPriorityLevel,X=n.unstable_ImmediatePriority,se=n.unstable_UserBlockingPriority,Ne=n.unstable_NormalPriority,Be=n.unstable_LowPriority,et=n.unstable_IdlePriority,ln=n.log,Pn=n.unstable_setDisableYieldValue,Zt=null,wt=null;function Qt(e){if(typeof ln=="function"&&Pn(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Zt,e)}catch{}}var ut=Math.clz32?Math.clz32:u_,Ta=Math.log,zn=Math.LN2;function u_(e){return e>>>=0,e===0?32:31-(Ta(e)/zn|0)|0}var Gr=256,Zr=262144,Yr=4194304;function Wa(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 Xr(e,t,l){var s=e.pendingLanes;if(s===0)return 0;var f=0,d=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var S=s&134217727;return S!==0?(s=S&~d,s!==0?f=Wa(s):(v&=S,v!==0?f=Wa(v):l||(l=S&~e,l!==0&&(f=Wa(l))))):(S=s&~d,S!==0?f=Wa(S):v!==0?f=Wa(v):l||(l=s&~e,l!==0&&(f=Wa(l)))),f===0?0:t!==0&&t!==f&&(t&d)===0&&(d=f&-f,l=t&-t,d>=l||d===32&&(l&4194048)!==0)?t:f}function wi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function o_(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 Cd(){var e=Yr;return Yr<<=1,(Yr&62914560)===0&&(Yr=4194304),e}function Qu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ji(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function c_(e,t,l,s,f,d){var v=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 S=e.entanglements,C=e.expirationTimes,H=e.hiddenUpdates;for(l=v&~l;0<l;){var Y=31-ut(l),Q=1<<Y;S[Y]=0,C[Y]=-1;var q=H[Y];if(q!==null)for(H[Y]=null,Y=0;Y<q.length;Y++){var V=q[Y];V!==null&&(V.lane&=-536870913)}l&=~Q}s!==0&&Ad(e,s,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(v&~t))}function Ad(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-ut(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|l&261930}function wd(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var s=31-ut(l),f=1<<s;f&t|e[s]&t&&(e[s]|=t),l&=~f}}function jd(e,t){var l=t&-t;return l=(l&42)!==0?1:Fu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Fu(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 Ku(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Md(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:gg(e.type))}function zd(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var ka=Math.random().toString(36).slice(2),Ot="__reactFiber$"+ka,Ft="__reactProps$"+ka,wl="__reactContainer$"+ka,Ju="__reactEvents$"+ka,f_="__reactListeners$"+ka,d_="__reactHandles$"+ka,Rd="__reactResources$"+ka,Mi="__reactMarker$"+ka;function Pu(e){delete e[Ot],delete e[Ft],delete e[Ju],delete e[f_],delete e[d_]}function jl(e){var t=e[Ot];if(t)return t;for(var l=e.parentNode;l;){if(t=l[wl]||l[Ot]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=eg(e);e!==null;){if(l=e[Ot])return l;e=eg(e)}return t}e=l,l=e.parentNode}return null}function Ml(e){if(e=e[Ot]||e[wl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function zi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function zl(e){var t=e[Rd];return t||(t=e[Rd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function zt(e){e[Mi]=!0}var Od=new Set,Dd={};function el(e,t){Rl(e,t),Rl(e+"Capture",t)}function Rl(e,t){for(Dd[e]=t,e=0;e<t.length;e++)Od.add(t[e])}var h_=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]*$"),Ld={},Bd={};function m_(e){return Cl.call(Bd,e)?!0:Cl.call(Ld,e)?!1:h_.test(e)?Bd[e]=!0:(Ld[e]=!0,!1)}function $r(e,t,l){if(m_(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Qr(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 Wn(e,t,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+s)}}function _n(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ud(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p_(e,t,l){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,d=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return f.call(this)},set:function(v){l=""+v,d.call(this,v)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wu(e){if(!e._valueTracker){var t=Ud(e)?"checked":"value";e._valueTracker=p_(e,t,""+e[t])}}function Hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return e&&(s=Ud(e)?e.checked?"true":"false":e.value),e=s,e!==l?(t.setValue(e),!0):!1}function Fr(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 g_=/[\n"\\]/g;function vn(e){return e.replace(g_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function eo(e,t,l,s,f,d,v,S){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_n(t)):e.value!==""+_n(t)&&(e.value=""+_n(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?to(e,v,_n(t)):l!=null?to(e,v,_n(l)):s!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+_n(S):e.removeAttribute("name")}function qd(e,t,l,s,f,d,v,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Wu(e);return}l=l!=null?""+_n(l):"",t=t!=null?""+_n(t):l,S||t===e.value||(e.value=t),e.defaultValue=t}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=S?e.checked:!!s,e.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Wu(e)}function to(e,t,l){t==="number"&&Fr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ol(e,t,l,s){if(e=e.options,t){t={};for(var f=0;f<l.length;f++)t["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=t.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&s&&(e[l].defaultSelected=!0)}else{for(l=""+_n(l),t=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}t!==null||e[f].disabled||(t=e[f])}t!==null&&(t.selected=!0)}}function Id(e,t,l){if(t!=null&&(t=""+_n(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+_n(l):""}function Vd(e,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(r(92));if(ie(s)){if(1<s.length)throw Error(r(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=_n(t),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s),Wu(e)}function Dl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var y_=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 Gd(e,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,l):typeof l!="number"||l===0||y_.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Zd(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in t)s=t[f],t.hasOwnProperty(f)&&l[f]!==s&&Gd(e,f,s)}else for(var d in t)t.hasOwnProperty(d)&&Gd(e,d,t[d])}function no(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 __=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"]]),v_=/^[\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 Kr(e){return v_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ea(){}var ao=null;function lo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ll=null,Bl=null;function Yd(e){var t=Ml(e);if(t&&(e=t.stateNode)){var l=e[Ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(eo(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="'+vn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==e&&s.form===e.form){var f=s[Ft]||null;if(!f)throw Error(r(90));eo(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===e.form&&Hd(s)}break e;case"textarea":Id(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ol(e,!!l.multiple,t,!1)}}}var io=!1;function Xd(e,t,l){if(io)return e(t,l);io=!0;try{var s=e(t);return s}finally{if(io=!1,(Ll!==null||Bl!==null)&&(Bs(),Ll&&(t=Ll,e=Bl,Bl=Ll=null,Yd(t),e)))for(t=0;t<e.length;t++)Yd(e[t])}}function Ri(e,t){var l=e.stateNode;if(l===null)return null;var s=l[Ft]||null;if(s===null)return null;l=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ro=!1;if(ta)try{var Oi={};Object.defineProperty(Oi,"passive",{get:function(){ro=!0}}),window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{ro=!1}var Ea=null,so=null,Jr=null;function $d(){if(Jr)return Jr;var e,t=so,l=t.length,s,f="value"in Ea?Ea.value:Ea.textContent,d=f.length;for(e=0;e<l&&t[e]===f[e];e++);var v=l-e;for(s=1;s<=v&&t[l-s]===f[d-s];s++);return Jr=f.slice(e,1<s?1-s:void 0)}function Pr(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 Wr(){return!0}function Qd(){return!1}function Kt(e){function t(l,s,f,d,v){this._reactName=l,this._targetInst=f,this.type=s,this.nativeEvent=d,this.target=v,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Wr:Qd,this.isPropagationStopped=Qd,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=Wr)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wr)},persist:function(){},isPersistent:Wr}),t}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},es=Kt(tl),Di=y({},tl,{view:0,detail:0}),x_=Kt(Di),uo,oo,Li,ts=y({},Di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fo,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!==Li&&(Li&&e.type==="mousemove"?(uo=e.screenX-Li.screenX,oo=e.screenY-Li.screenY):oo=uo=0,Li=e),uo)},movementY:function(e){return"movementY"in e?e.movementY:oo}}),Fd=Kt(ts),b_=y({},ts,{dataTransfer:0}),S_=Kt(b_),T_=y({},Di,{relatedTarget:0}),co=Kt(T_),k_=y({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),E_=Kt(k_),N_=y({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),C_=Kt(N_),A_=y({},tl,{data:0}),Kd=Kt(A_),w_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j_={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"},M_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M_[e])?!!t[e]:!1}function fo(){return z_}var R_=y({},Di,{key:function(e){if(e.key){var t=w_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fo,charCode:function(e){return e.type==="keypress"?Pr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O_=Kt(R_),D_=y({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jd=Kt(D_),L_=y({},Di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fo}),B_=Kt(L_),U_=y({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),H_=Kt(U_),q_=y({},ts,{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}),I_=Kt(q_),V_=y({},tl,{newState:0,oldState:0}),G_=Kt(V_),Z_=[9,13,27,32],ho=ta&&"CompositionEvent"in window,Bi=null;ta&&"documentMode"in document&&(Bi=document.documentMode);var Y_=ta&&"TextEvent"in window&&!Bi,Pd=ta&&(!ho||Bi&&8<Bi&&11>=Bi),Wd=" ",eh=!1;function th(e,t){switch(e){case"keyup":return Z_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function X_(e,t){switch(e){case"compositionend":return nh(t);case"keypress":return t.which!==32?null:(eh=!0,Wd);case"textInput":return e=t.data,e===Wd&&eh?null:e;default:return null}}function $_(e,t){if(Ul)return e==="compositionend"||!ho&&th(e,t)?(e=$d(),Jr=so=Ea=null,Ul=!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 Pd&&t.locale!=="ko"?null:t.data;default:return null}}var Q_={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 ah(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q_[e.type]:t==="textarea"}function lh(e,t,l,s){Ll?Bl?Bl.push(s):Bl=[s]:Ll=s,t=Zs(t,"onChange"),0<t.length&&(l=new es("onChange","change",null,l,s),e.push({event:l,listeners:t}))}var Ui=null,Hi=null;function F_(e){qp(e,0)}function ns(e){var t=zi(e);if(Hd(t))return e}function ih(e,t){if(e==="change")return t}var rh=!1;if(ta){var mo;if(ta){var po="oninput"in document;if(!po){var sh=document.createElement("div");sh.setAttribute("oninput","return;"),po=typeof sh.oninput=="function"}mo=po}else mo=!1;rh=mo&&(!document.documentMode||9<document.documentMode)}function uh(){Ui&&(Ui.detachEvent("onpropertychange",oh),Hi=Ui=null)}function oh(e){if(e.propertyName==="value"&&ns(Hi)){var t=[];lh(t,Hi,e,lo(e)),Xd(F_,t)}}function K_(e,t,l){e==="focusin"?(uh(),Ui=t,Hi=l,Ui.attachEvent("onpropertychange",oh)):e==="focusout"&&uh()}function J_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ns(Hi)}function P_(e,t){if(e==="click")return ns(t)}function W_(e,t){if(e==="input"||e==="change")return ns(t)}function ev(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rn=typeof Object.is=="function"?Object.is:ev;function qi(e,t){if(rn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var f=l[s];if(!Cl.call(t,f)||!rn(e[f],t[f]))return!1}return!0}function ch(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fh(e,t){var l=ch(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=t&&s>=t)return{node:l,offset:t-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ch(l)}}function dh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fr(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=Fr(e.document)}return t}function go(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 tv=ta&&"documentMode"in document&&11>=document.documentMode,Hl=null,yo=null,Ii=null,_o=!1;function mh(e,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_o||Hl==null||Hl!==Fr(s)||(s=Hl,"selectionStart"in s&&go(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ii&&qi(Ii,s)||(Ii=s,s=Zs(yo,"onSelect"),0<s.length&&(t=new es("onSelect","select",null,t,l),e.push({event:t,listeners:s}),t.target=Hl)))}function nl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ql={animationend:nl("Animation","AnimationEnd"),animationiteration:nl("Animation","AnimationIteration"),animationstart:nl("Animation","AnimationStart"),transitionrun:nl("Transition","TransitionRun"),transitionstart:nl("Transition","TransitionStart"),transitioncancel:nl("Transition","TransitionCancel"),transitionend:nl("Transition","TransitionEnd")},vo={},ph={};ta&&(ph=document.createElement("div").style,"AnimationEvent"in window||(delete ql.animationend.animation,delete ql.animationiteration.animation,delete ql.animationstart.animation),"TransitionEvent"in window||delete ql.transitionend.transition);function al(e){if(vo[e])return vo[e];if(!ql[e])return e;var t=ql[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ph)return vo[e]=t[l];return e}var gh=al("animationend"),yh=al("animationiteration"),_h=al("animationstart"),nv=al("transitionrun"),av=al("transitionstart"),lv=al("transitioncancel"),vh=al("transitionend"),xh=new Map,xo="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(" ");xo.push("scrollEnd");function Rn(e,t){xh.set(e,t),el(t,[e])}var as=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)},xn=[],Il=0,bo=0;function ls(){for(var e=Il,t=bo=Il=0;t<e;){var l=xn[t];xn[t++]=null;var s=xn[t];xn[t++]=null;var f=xn[t];xn[t++]=null;var d=xn[t];if(xn[t++]=null,s!==null&&f!==null){var v=s.pending;v===null?f.next=f:(f.next=v.next,v.next=f),s.pending=f}d!==0&&bh(l,f,d)}}function is(e,t,l,s){xn[Il++]=e,xn[Il++]=t,xn[Il++]=l,xn[Il++]=s,bo|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function So(e,t,l,s){return is(e,t,l,s),rs(e)}function ll(e,t){return is(e,null,null,t),rs(e)}function bh(e,t,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var f=!1,d=e.return;d!==null;)d.childLanes|=l,s=d.alternate,s!==null&&(s.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&t!==null&&(f=31-ut(l),e=d.hiddenUpdates,s=e[f],s===null?e[f]=[t]:s.push(t),t.lane=l|536870912),d):null}function rs(e){if(50<or)throw or=0,Mc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Vl={};function iv(e,t,l,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(e,t,l,s){return new iv(e,t,l,s)}function To(e){return e=e.prototype,!(!e||!e.isReactComponent)}function na(e,t){var l=e.alternate;return l===null?(l=sn(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 Sh(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 ss(e,t,l,s,f,d){var v=0;if(s=e,typeof e=="function")To(e)&&(v=1);else if(typeof e=="string")v=c0(e,l,G.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ge:return e=sn(31,l,t,f),e.elementType=ge,e.lanes=d,e;case w:return il(l.children,f,d,t);case R:v=8,f|=24;break;case T:return e=sn(12,l,t,f|2),e.elementType=T,e.lanes=d,e;case te:return e=sn(13,l,t,f),e.elementType=te,e.lanes=d,e;case D:return e=sn(19,l,t,f),e.elementType=D,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:v=10;break e;case M:v=9;break e;case K:v=11;break e;case P:v=14;break e;case ve:v=16,s=null;break e}v=29,l=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=sn(v,l,t,f),t.elementType=e,t.type=s,t.lanes=d,t}function il(e,t,l,s){return e=sn(7,e,s,t),e.lanes=l,e}function ko(e,t,l){return e=sn(6,e,null,t),e.lanes=l,e}function Th(e){var t=sn(18,null,null,0);return t.stateNode=e,t}function Eo(e,t,l){return t=sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var kh=new WeakMap;function bn(e,t){if(typeof e=="object"&&e!==null){var l=kh.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Vr(t)},kh.set(e,t),t)}return{value:e,source:t,stack:Vr(t)}}var Gl=[],Zl=0,us=null,Vi=0,Sn=[],Tn=0,Na=null,In=1,Vn="";function aa(e,t){Gl[Zl++]=Vi,Gl[Zl++]=us,us=e,Vi=t}function Eh(e,t,l){Sn[Tn++]=In,Sn[Tn++]=Vn,Sn[Tn++]=Na,Na=e;var s=In;e=Vn;var f=32-ut(s)-1;s&=~(1<<f),l+=1;var d=32-ut(t)+f;if(30<d){var v=f-f%5;d=(s&(1<<v)-1).toString(32),s>>=v,f-=v,In=1<<32-ut(t)+f|l<<f|s,Vn=d+e}else In=1<<d|l<<f|s,Vn=e}function No(e){e.return!==null&&(aa(e,1),Eh(e,1,0))}function Co(e){for(;e===us;)us=Gl[--Zl],Gl[Zl]=null,Vi=Gl[--Zl],Gl[Zl]=null;for(;e===Na;)Na=Sn[--Tn],Sn[Tn]=null,Vn=Sn[--Tn],Sn[Tn]=null,In=Sn[--Tn],Sn[Tn]=null}function Nh(e,t){Sn[Tn++]=In,Sn[Tn++]=Vn,Sn[Tn++]=Na,In=t.id,Vn=t.overflow,Na=e}var Dt=null,ht=null,Ye=!1,Ca=null,kn=!1,Ao=Error(r(519));function Aa(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gi(bn(t,e)),Ao}function Ch(e){var t=e.stateNode,l=e.type,s=e.memoizedProps;switch(t[Ot]=e,t[Ft]=s,l){case"dialog":He("cancel",t),He("close",t);break;case"iframe":case"object":case"embed":He("load",t);break;case"video":case"audio":for(l=0;l<fr.length;l++)He(fr[l],t);break;case"source":He("error",t);break;case"img":case"image":case"link":He("error",t),He("load",t);break;case"details":He("toggle",t);break;case"input":He("invalid",t),qd(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":He("invalid",t);break;case"textarea":He("invalid",t),Vd(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||Zp(t.textContent,l)?(s.popover!=null&&(He("beforetoggle",t),He("toggle",t)),s.onScroll!=null&&He("scroll",t),s.onScrollEnd!=null&&He("scrollend",t),s.onClick!=null&&(t.onclick=ea),t=!0):t=!1,t||Aa(e,!0)}function Ah(e){for(Dt=e.return;Dt;)switch(Dt.tag){case 5:case 31:case 13:kn=!1;return;case 27:case 3:kn=!0;return;default:Dt=Dt.return}}function Yl(e){if(e!==Dt)return!1;if(!Ye)return Ah(e),Ye=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Xc(e.type,e.memoizedProps)),l=!l),l&&ht&&Aa(e),Ah(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));ht=Wp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));ht=Wp(e)}else t===27?(t=ht,Va(e.type)?(e=Jc,Jc=null,ht=e):ht=t):ht=Dt?Nn(e.stateNode.nextSibling):null;return!0}function rl(){ht=Dt=null,Ye=!1}function wo(){var e=Ca;return e!==null&&(en===null?en=e:en.push.apply(en,e),Ca=null),e}function Gi(e){Ca===null?Ca=[e]:Ca.push(e)}var jo=A(null),sl=null,la=null;function wa(e,t,l){E(jo,t._currentValue),t._currentValue=l}function ia(e){e._currentValue=jo.current,Z(jo)}function Mo(e,t,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===l)break;e=e.return}}function zo(e,t,l,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var v=f.child;d=d.firstContext;e:for(;d!==null;){var S=d;d=f;for(var C=0;C<t.length;C++)if(S.context===t[C]){d.lanes|=l,S=d.alternate,S!==null&&(S.lanes|=l),Mo(d.return,l,e),s||(v=null);break e}d=S.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(r(341));v.lanes|=l,d=v.alternate,d!==null&&(d.lanes|=l),Mo(v,l,e),v=null}else v=f.child;if(v!==null)v.return=f;else for(v=f;v!==null;){if(v===e){v=null;break}if(f=v.sibling,f!==null){f.return=v.return,v=f;break}v=v.return}f=v}}function Xl(e,t,l,s){e=null;for(var f=t,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var v=f.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var S=f.type;rn(f.pendingProps.value,v.value)||(e!==null?e.push(S):e=[S])}}else if(f===je.current){if(v=f.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(gr):e=[gr])}f=f.return}e!==null&&zo(t,e,l,s),t.flags|=262144}function os(e){for(e=e.firstContext;e!==null;){if(!rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ul(e){sl=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Lt(e){return wh(sl,e)}function cs(e,t){return sl===null&&ul(e),wh(e,t)}function wh(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},la===null){if(e===null)throw Error(r(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return l}var rv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},sv=n.unstable_scheduleCallback,uv=n.unstable_NormalPriority,Tt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ro(){return{controller:new rv,data:new Map,refCount:0}}function Zi(e){e.refCount--,e.refCount===0&&sv(uv,function(){e.controller.abort()})}var Yi=null,Oo=0,$l=0,Ql=null;function ov(e,t){if(Yi===null){var l=Yi=[];Oo=0,$l=Bc(),Ql={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Oo++,t.then(jh,jh),t}function jh(){if(--Oo===0&&Yi!==null){Ql!==null&&(Ql.status="fulfilled");var e=Yi;Yi=null,$l=0,Ql=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cv(e,t){var l=[],s={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var f=0;f<l.length;f++)(0,l[f])(t)},function(f){for(s.status="rejected",s.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),s}var Mh=U.S;U.S=function(e,t){mp=Gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ov(e,t),Mh!==null&&Mh(e,t)};var ol=A(null);function Do(){var e=ol.current;return e!==null?e:ot.pooledCache}function fs(e,t){t===null?E(ol,ol.current):E(ol,t.pool)}function zh(){var e=Do();return e===null?null:{parent:Tt._currentValue,pool:e}}var Fl=Error(r(460)),Lo=Error(r(474)),ds=Error(r(542)),hs={then:function(){}};function Rh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Oh(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ea,ea),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lh(e),e;default:if(typeof t.status=="string")t.then(ea,ea);else{if(e=ot,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=s}},function(s){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lh(e),e}throw fl=t,Fl}}function cl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(fl=l,Fl):l}}var fl=null;function Dh(){if(fl===null)throw Error(r(459));var e=fl;return fl=null,e}function Lh(e){if(e===Fl||e===ds)throw Error(r(483))}var Kl=null,Xi=0;function ms(e){var t=Xi;return Xi+=1,Kl===null&&(Kl=[]),Oh(Kl,e,t)}function $i(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ps(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Bh(e){function t(z,j){if(e){var B=z.deletions;B===null?(z.deletions=[j],z.flags|=16):B.push(j)}}function l(z,j){if(!e)return null;for(;j!==null;)t(z,j),j=j.sibling;return null}function s(z){for(var j=new Map;z!==null;)z.key!==null?j.set(z.key,z):j.set(z.index,z),z=z.sibling;return j}function f(z,j){return z=na(z,j),z.index=0,z.sibling=null,z}function d(z,j,B){return z.index=B,e?(B=z.alternate,B!==null?(B=B.index,B<j?(z.flags|=67108866,j):B):(z.flags|=67108866,j)):(z.flags|=1048576,j)}function v(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function S(z,j,B,$){return j===null||j.tag!==6?(j=ko(B,z.mode,$),j.return=z,j):(j=f(j,B),j.return=z,j)}function C(z,j,B,$){var be=B.type;return be===w?Y(z,j,B.props.children,$,B.key):j!==null&&(j.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===ve&&cl(be)===j.type)?(j=f(j,B.props),$i(j,B),j.return=z,j):(j=ss(B.type,B.key,B.props,null,z.mode,$),$i(j,B),j.return=z,j)}function H(z,j,B,$){return j===null||j.tag!==4||j.stateNode.containerInfo!==B.containerInfo||j.stateNode.implementation!==B.implementation?(j=Eo(B,z.mode,$),j.return=z,j):(j=f(j,B.children||[]),j.return=z,j)}function Y(z,j,B,$,be){return j===null||j.tag!==7?(j=il(B,z.mode,$,be),j.return=z,j):(j=f(j,B),j.return=z,j)}function Q(z,j,B){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=ko(""+j,z.mode,B),j.return=z,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case b:return B=ss(j.type,j.key,j.props,null,z.mode,B),$i(B,j),B.return=z,B;case k:return j=Eo(j,z.mode,B),j.return=z,j;case ve:return j=cl(j),Q(z,j,B)}if(ie(j)||F(j))return j=il(j,z.mode,B,null),j.return=z,j;if(typeof j.then=="function")return Q(z,ms(j),B);if(j.$$typeof===O)return Q(z,cs(z,j),B);ps(z,j)}return null}function q(z,j,B,$){var be=j!==null?j.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return be!==null?null:S(z,j,""+B,$);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case b:return B.key===be?C(z,j,B,$):null;case k:return B.key===be?H(z,j,B,$):null;case ve:return B=cl(B),q(z,j,B,$)}if(ie(B)||F(B))return be!==null?null:Y(z,j,B,$,null);if(typeof B.then=="function")return q(z,j,ms(B),$);if(B.$$typeof===O)return q(z,j,cs(z,B),$);ps(z,B)}return null}function V(z,j,B,$,be){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return z=z.get(B)||null,S(j,z,""+$,be);if(typeof $=="object"&&$!==null){switch($.$$typeof){case b:return z=z.get($.key===null?B:$.key)||null,C(j,z,$,be);case k:return z=z.get($.key===null?B:$.key)||null,H(j,z,$,be);case ve:return $=cl($),V(z,j,B,$,be)}if(ie($)||F($))return z=z.get(B)||null,Y(j,z,$,be,null);if(typeof $.then=="function")return V(z,j,B,ms($),be);if($.$$typeof===O)return V(z,j,B,cs(j,$),be);ps(j,$)}return null}function me(z,j,B,$){for(var be=null,Fe=null,ye=j,Oe=j=0,Ge=null;ye!==null&&Oe<B.length;Oe++){ye.index>Oe?(Ge=ye,ye=null):Ge=ye.sibling;var Ke=q(z,ye,B[Oe],$);if(Ke===null){ye===null&&(ye=Ge);break}e&&ye&&Ke.alternate===null&&t(z,ye),j=d(Ke,j,Oe),Fe===null?be=Ke:Fe.sibling=Ke,Fe=Ke,ye=Ge}if(Oe===B.length)return l(z,ye),Ye&&aa(z,Oe),be;if(ye===null){for(;Oe<B.length;Oe++)ye=Q(z,B[Oe],$),ye!==null&&(j=d(ye,j,Oe),Fe===null?be=ye:Fe.sibling=ye,Fe=ye);return Ye&&aa(z,Oe),be}for(ye=s(ye);Oe<B.length;Oe++)Ge=V(ye,z,Oe,B[Oe],$),Ge!==null&&(e&&Ge.alternate!==null&&ye.delete(Ge.key===null?Oe:Ge.key),j=d(Ge,j,Oe),Fe===null?be=Ge:Fe.sibling=Ge,Fe=Ge);return e&&ye.forEach(function($a){return t(z,$a)}),Ye&&aa(z,Oe),be}function ke(z,j,B,$){if(B==null)throw Error(r(151));for(var be=null,Fe=null,ye=j,Oe=j=0,Ge=null,Ke=B.next();ye!==null&&!Ke.done;Oe++,Ke=B.next()){ye.index>Oe?(Ge=ye,ye=null):Ge=ye.sibling;var $a=q(z,ye,Ke.value,$);if($a===null){ye===null&&(ye=Ge);break}e&&ye&&$a.alternate===null&&t(z,ye),j=d($a,j,Oe),Fe===null?be=$a:Fe.sibling=$a,Fe=$a,ye=Ge}if(Ke.done)return l(z,ye),Ye&&aa(z,Oe),be;if(ye===null){for(;!Ke.done;Oe++,Ke=B.next())Ke=Q(z,Ke.value,$),Ke!==null&&(j=d(Ke,j,Oe),Fe===null?be=Ke:Fe.sibling=Ke,Fe=Ke);return Ye&&aa(z,Oe),be}for(ye=s(ye);!Ke.done;Oe++,Ke=B.next())Ke=V(ye,z,Oe,Ke.value,$),Ke!==null&&(e&&Ke.alternate!==null&&ye.delete(Ke.key===null?Oe:Ke.key),j=d(Ke,j,Oe),Fe===null?be=Ke:Fe.sibling=Ke,Fe=Ke);return e&&ye.forEach(function(b0){return t(z,b0)}),Ye&&aa(z,Oe),be}function st(z,j,B,$){if(typeof B=="object"&&B!==null&&B.type===w&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case b:e:{for(var be=B.key;j!==null;){if(j.key===be){if(be=B.type,be===w){if(j.tag===7){l(z,j.sibling),$=f(j,B.props.children),$.return=z,z=$;break e}}else if(j.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===ve&&cl(be)===j.type){l(z,j.sibling),$=f(j,B.props),$i($,B),$.return=z,z=$;break e}l(z,j);break}else t(z,j);j=j.sibling}B.type===w?($=il(B.props.children,z.mode,$,B.key),$.return=z,z=$):($=ss(B.type,B.key,B.props,null,z.mode,$),$i($,B),$.return=z,z=$)}return v(z);case k:e:{for(be=B.key;j!==null;){if(j.key===be)if(j.tag===4&&j.stateNode.containerInfo===B.containerInfo&&j.stateNode.implementation===B.implementation){l(z,j.sibling),$=f(j,B.children||[]),$.return=z,z=$;break e}else{l(z,j);break}else t(z,j);j=j.sibling}$=Eo(B,z.mode,$),$.return=z,z=$}return v(z);case ve:return B=cl(B),st(z,j,B,$)}if(ie(B))return me(z,j,B,$);if(F(B)){if(be=F(B),typeof be!="function")throw Error(r(150));return B=be.call(B),ke(z,j,B,$)}if(typeof B.then=="function")return st(z,j,ms(B),$);if(B.$$typeof===O)return st(z,j,cs(z,B),$);ps(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,j!==null&&j.tag===6?(l(z,j.sibling),$=f(j,B),$.return=z,z=$):(l(z,j),$=ko(B,z.mode,$),$.return=z,z=$),v(z)):l(z,j)}return function(z,j,B,$){try{Xi=0;var be=st(z,j,B,$);return Kl=null,be}catch(ye){if(ye===Fl||ye===ds)throw ye;var Fe=sn(29,ye,null,z.mode);return Fe.lanes=$,Fe.return=z,Fe}finally{}}}var dl=Bh(!0),Uh=Bh(!1),ja=!1;function Bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uo(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 Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(We&2)!==0){var f=s.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),s.pending=t,t=rs(e),bh(e,null,l),t}return is(e,s,t,l),rs(e)}function Qi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,wd(e,l)}}function Ho(e,t){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?f=d=v:d=d.next=v,l=l.next}while(l!==null);d===null?f=d=t:d=d.next=t}else f=d=t;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var qo=!1;function Fi(){if(qo){var e=Ql;if(e!==null)throw e}}function Ki(e,t,l,s){qo=!1;var f=e.updateQueue;ja=!1;var d=f.firstBaseUpdate,v=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var C=S,H=C.next;C.next=null,v===null?d=H:v.next=H,v=C;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,S=Y.lastBaseUpdate,S!==v&&(S===null?Y.firstBaseUpdate=H:S.next=H,Y.lastBaseUpdate=C))}if(d!==null){var Q=f.baseState;v=0,Y=H=C=null,S=d;do{var q=S.lane&-536870913,V=q!==S.lane;if(V?(Ve&q)===q:(s&q)===q){q!==0&&q===$l&&(qo=!0),Y!==null&&(Y=Y.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var me=e,ke=S;q=t;var st=l;switch(ke.tag){case 1:if(me=ke.payload,typeof me=="function"){Q=me.call(st,Q,q);break e}Q=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ke.payload,q=typeof me=="function"?me.call(st,Q,q):me,q==null)break e;Q=y({},Q,q);break e;case 2:ja=!0}}q=S.callback,q!==null&&(e.flags|=64,V&&(e.flags|=8192),V=f.callbacks,V===null?f.callbacks=[q]:V.push(q))}else V={lane:q,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Y===null?(H=Y=V,C=Q):Y=Y.next=V,v|=q;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;V=S,S=V.next,V.next=null,f.lastBaseUpdate=V,f.shared.pending=null}}while(!0);Y===null&&(C=Q),f.baseState=C,f.firstBaseUpdate=H,f.lastBaseUpdate=Y,d===null&&(f.shared.lanes=0),Ba|=v,e.lanes=v,e.memoizedState=Q}}function Hh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function qh(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Hh(l[e],t)}var Jl=A(null),gs=A(0);function Ih(e,t){e=ma,E(gs,e),E(Jl,t),ma=e|t.baseLanes}function Io(){E(gs,ma),E(Jl,Jl.current)}function Vo(){ma=gs.current,Z(Jl),Z(gs)}var un=A(null),En=null;function Ra(e){var t=e.alternate;E(xt,xt.current&1),E(un,e),En===null&&(t===null||Jl.current!==null||t.memoizedState!==null)&&(En=e)}function Go(e){E(xt,xt.current),E(un,e),En===null&&(En=e)}function Vh(e){e.tag===22?(E(xt,xt.current),E(un,e),En===null&&(En=e)):Oa()}function Oa(){E(xt,xt.current),E(un,un.current)}function on(e){Z(un),En===e&&(En=null),Z(xt)}var xt=A(0);function ys(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Fc(l)||Kc(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 ra=0,ze=null,it=null,kt=null,_s=!1,Pl=!1,hl=!1,vs=0,Ji=0,Wl=null,fv=0;function _t(){throw Error(r(321))}function Zo(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!rn(e[l],t[l]))return!1;return!0}function Yo(e,t,l,s,f,d){return ra=d,ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Em:rc,hl=!1,d=l(s,f),hl=!1,Pl&&(d=Zh(t,l,s,f)),Gh(e),d}function Gh(e){U.H=er;var t=it!==null&&it.next!==null;if(ra=0,kt=it=ze=null,_s=!1,Ji=0,Wl=null,t)throw Error(r(300));e===null||Et||(e=e.dependencies,e!==null&&os(e)&&(Et=!0))}function Zh(e,t,l,s){ze=e;var f=0;do{if(Pl&&(Wl=null),Ji=0,Pl=!1,25<=f)throw Error(r(301));if(f+=1,kt=it=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}U.H=Nm,d=t(l,s)}while(Pl);return d}function dv(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Pi(t):t,e=e.useState()[0],(it!==null?it.memoizedState:null)!==e&&(ze.flags|=1024),t}function Xo(){var e=vs!==0;return vs=0,e}function $o(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Qo(e){if(_s){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_s=!1}ra=0,kt=it=ze=null,Pl=!1,Ji=vs=0,Wl=null}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?ze.memoizedState=kt=e:kt=kt.next=e,kt}function bt(){if(it===null){var e=ze.alternate;e=e!==null?e.memoizedState:null}else e=it.next;var t=kt===null?ze.memoizedState:kt.next;if(t!==null)kt=t,it=e;else{if(e===null)throw ze.alternate===null?Error(r(467)):Error(r(310));it=e,e={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},kt===null?ze.memoizedState=kt=e:kt=kt.next=e}return kt}function xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pi(e){var t=Ji;return Ji+=1,Wl===null&&(Wl=[]),e=Oh(Wl,e,t),t=ze,(kt===null?t.memoizedState:kt.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Em:rc),e}function bs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Pi(e);if(e.$$typeof===O)return Lt(e)}throw Error(r(438,String(e)))}function Fo(e){var t=null,l=ze.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=ze.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=xs(),ze.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),s=0;s<e;s++)l[s]=L;return t.index++,l}function sa(e,t){return typeof t=="function"?t(e):t}function Ss(e){var t=bt();return Ko(t,it,e)}function Ko(e,t,l){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=l;var f=e.baseQueue,d=s.pending;if(d!==null){if(f!==null){var v=f.next;f.next=d.next,d.next=v}t.baseQueue=f=d,s.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{t=f.next;var S=v=null,C=null,H=t,Y=!1;do{var Q=H.lane&-536870913;if(Q!==H.lane?(Ve&Q)===Q:(ra&Q)===Q){var q=H.revertLane;if(q===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),Q===$l&&(Y=!0);else if((ra&q)===q){H=H.next,q===$l&&(Y=!0);continue}else Q={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},C===null?(S=C=Q,v=d):C=C.next=Q,ze.lanes|=q,Ba|=q;Q=H.action,hl&&l(d,Q),d=H.hasEagerState?H.eagerState:l(d,Q)}else q={lane:Q,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},C===null?(S=C=q,v=d):C=C.next=q,ze.lanes|=Q,Ba|=Q;H=H.next}while(H!==null&&H!==t);if(C===null?v=d:C.next=S,!rn(d,e.memoizedState)&&(Et=!0,Y&&(l=Ql,l!==null)))throw l;e.memoizedState=d,e.baseState=v,e.baseQueue=C,s.lastRenderedState=d}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Jo(e){var t=bt(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var s=l.dispatch,f=l.pending,d=t.memoizedState;if(f!==null){l.pending=null;var v=f=f.next;do d=e(d,v.action),v=v.next;while(v!==f);rn(d,t.memoizedState)||(Et=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),l.lastRenderedState=d}return[d,s]}function Yh(e,t,l){var s=ze,f=bt(),d=Ye;if(d){if(l===void 0)throw Error(r(407));l=l()}else l=t();var v=!rn((it||f).memoizedState,l);if(v&&(f.memoizedState=l,Et=!0),f=f.queue,ec(Qh.bind(null,s,f,e),[e]),f.getSnapshot!==t||v||kt!==null&&kt.memoizedState.tag&1){if(s.flags|=2048,ei(9,{destroy:void 0},$h.bind(null,s,f,l,t),null),ot===null)throw Error(r(349));d||(ra&127)!==0||Xh(s,t,l)}return l}function Xh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ze.updateQueue,t===null?(t=xs(),ze.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function $h(e,t,l,s){t.value=l,t.getSnapshot=s,Fh(t)&&Kh(e)}function Qh(e,t,l){return l(function(){Fh(t)&&Kh(e)})}function Fh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!rn(e,l)}catch{return!0}}function Kh(e){var t=ll(e,2);t!==null&&tn(t,e,2)}function Po(e){var t=Yt();if(typeof e=="function"){var l=e;if(e=l(),hl){Qt(!0);try{l()}finally{Qt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e},t}function Jh(e,t,l,s){return e.baseState=l,Ko(e,it,typeof s=="function"?s:sa)}function hv(e,t,l,s,f){if(Es(e))throw Error(r(485));if(e=t.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};U.T!==null?l(!0):d.isTransition=!1,s(d),l=t.pending,l===null?(d.next=t.pending=d,Ph(t,d)):(d.next=l.next,t.pending=l.next=d)}}function Ph(e,t){var l=t.action,s=t.payload,f=e.state;if(t.isTransition){var d=U.T,v={};U.T=v;try{var S=l(f,s),C=U.S;C!==null&&C(v,S),Wh(e,t,S)}catch(H){Wo(e,t,H)}finally{d!==null&&v.types!==null&&(d.types=v.types),U.T=d}}else try{d=l(f,s),Wh(e,t,d)}catch(H){Wo(e,t,H)}}function Wh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){em(e,t,s)},function(s){return Wo(e,t,s)}):em(e,t,l)}function em(e,t,l){t.status="fulfilled",t.value=l,tm(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ph(e,l)))}function Wo(e,t,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,tm(t),t=t.next;while(t!==s)}e.action=null}function tm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nm(e,t){return t}function am(e,t){if(Ye){var l=ot.formState;if(l!==null){e:{var s=ze;if(Ye){if(ht){t:{for(var f=ht,d=kn;f.nodeType!==8;){if(!d){f=null;break t}if(f=Nn(f.nextSibling),f===null){f=null;break t}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){ht=Nn(f.nextSibling),s=f.data==="F!";break e}}Aa(s)}s=!1}s&&(t=l[0])}}return l=Yt(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nm,lastRenderedState:t},l.queue=s,l=Sm.bind(null,ze,s),s.dispatch=l,s=Po(!1),d=ic.bind(null,ze,!1,s.queue),s=Yt(),f={state:t,dispatch:null,action:e,pending:null},s.queue=f,l=hv.bind(null,ze,f,d,l),f.dispatch=l,s.memoizedState=e,[t,l,!1]}function lm(e){var t=bt();return im(t,it,e)}function im(e,t,l){if(t=Ko(e,t,nm)[0],e=Ss(sa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Pi(t)}catch(v){throw v===Fl?ds:v}else s=t;t=bt();var f=t.queue,d=f.dispatch;return l!==t.memoizedState&&(ze.flags|=2048,ei(9,{destroy:void 0},mv.bind(null,f,l),null)),[s,d,e]}function mv(e,t){e.action=t}function rm(e){var t=bt(),l=it;if(l!==null)return im(t,l,e);bt(),t=t.memoizedState,l=bt();var s=l.queue.dispatch;return l.memoizedState=e,[t,s,!1]}function ei(e,t,l,s){return e={tag:e,create:l,deps:s,inst:t,next:null},t=ze.updateQueue,t===null&&(t=xs(),ze.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,t.lastEffect=e),e}function sm(){return bt().memoizedState}function Ts(e,t,l,s){var f=Yt();ze.flags|=e,f.memoizedState=ei(1|t,{destroy:void 0},l,s===void 0?null:s)}function ks(e,t,l,s){var f=bt();s=s===void 0?null:s;var d=f.memoizedState.inst;it!==null&&s!==null&&Zo(s,it.memoizedState.deps)?f.memoizedState=ei(t,d,l,s):(ze.flags|=e,f.memoizedState=ei(1|t,d,l,s))}function um(e,t){Ts(8390656,8,e,t)}function ec(e,t){ks(2048,8,e,t)}function pv(e){ze.flags|=4;var t=ze.updateQueue;if(t===null)t=xs(),ze.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function om(e){var t=bt().memoizedState;return pv({ref:t,nextImpl:e}),function(){if((We&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function cm(e,t){return ks(4,2,e,t)}function fm(e,t){return ks(4,4,e,t)}function dm(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 hm(e,t,l){l=l!=null?l.concat([e]):null,ks(4,4,dm.bind(null,t,e),l)}function tc(){}function mm(e,t){var l=bt();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&Zo(t,s[1])?s[0]:(l.memoizedState=[e,t],e)}function pm(e,t){var l=bt();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&Zo(t,s[1]))return s[0];if(s=e(),hl){Qt(!0);try{e()}finally{Qt(!1)}}return l.memoizedState=[s,t],s}function nc(e,t,l){return l===void 0||(ra&1073741824)!==0&&(Ve&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=gp(),ze.lanes|=e,Ba|=e,l)}function gm(e,t,l,s){return rn(l,t)?l:Jl.current!==null?(e=nc(e,l,s),rn(e,t)||(Et=!0),e):(ra&42)===0||(ra&1073741824)!==0&&(Ve&261930)===0?(Et=!0,e.memoizedState=l):(e=gp(),ze.lanes|=e,Ba|=e,t)}function ym(e,t,l,s,f){var d=J.p;J.p=d!==0&&8>d?d:8;var v=U.T,S={};U.T=S,ic(e,!1,t,l);try{var C=f(),H=U.S;if(H!==null&&H(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Y=cv(C,s);Wi(e,t,Y,dn(e))}else Wi(e,t,s,dn(e))}catch(Q){Wi(e,t,{then:function(){},status:"rejected",reason:Q},dn())}finally{J.p=d,v!==null&&S.types!==null&&(v.types=S.types),U.T=v}}function gv(){}function ac(e,t,l,s){if(e.tag!==5)throw Error(r(476));var f=_m(e).queue;ym(e,f,t,fe,l===null?gv:function(){return vm(e),l(s)})}function _m(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:fe},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vm(e){var t=_m(e);t.next===null&&(t=e.alternate.memoizedState),Wi(e,t.next.queue,{},dn())}function lc(){return Lt(gr)}function xm(){return bt().memoizedState}function bm(){return bt().memoizedState}function yv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=dn();e=Ma(l);var s=za(t,e,l);s!==null&&(tn(s,t,l),Qi(s,t,l)),t={cache:Ro()},e.payload=t;return}t=t.return}}function _v(e,t,l){var s=dn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Es(e)?Tm(t,l):(l=So(e,t,l,s),l!==null&&(tn(l,e,s),km(l,t,s)))}function Sm(e,t,l){var s=dn();Wi(e,t,l,s)}function Wi(e,t,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Tm(t,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var v=t.lastRenderedState,S=d(v,l);if(f.hasEagerState=!0,f.eagerState=S,rn(S,v))return is(e,t,f,0),ot===null&&ls(),!1}catch{}finally{}if(l=So(e,t,f,s),l!==null)return tn(l,e,s),km(l,t,s),!0}return!1}function ic(e,t,l,s){if(s={lane:2,revertLane:Bc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Es(e)){if(t)throw Error(r(479))}else t=So(e,l,s,2),t!==null&&tn(t,e,2)}function Es(e){var t=e.alternate;return e===ze||t!==null&&t===ze}function Tm(e,t){Pl=_s=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function km(e,t,l){if((l&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,wd(e,l)}}var er={readContext:Lt,use:bs,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};er.useEffectEvent=_t;var Em={readContext:Lt,use:bs,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:um,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ts(4194308,4,dm.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ts(4194308,4,e,t)},useInsertionEffect:function(e,t){Ts(4,2,e,t)},useMemo:function(e,t){var l=Yt();t=t===void 0?null:t;var s=e();if(hl){Qt(!0);try{e()}finally{Qt(!1)}}return l.memoizedState=[s,t],s},useReducer:function(e,t,l){var s=Yt();if(l!==void 0){var f=l(t);if(hl){Qt(!0);try{l(t)}finally{Qt(!1)}}}else f=t;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=_v.bind(null,ze,e),[s.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Po(e);var t=e.queue,l=Sm.bind(null,ze,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:tc,useDeferredValue:function(e,t){var l=Yt();return nc(l,e,t)},useTransition:function(){var e=Po(!1);return e=ym.bind(null,ze,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var s=ze,f=Yt();if(Ye){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),ot===null)throw Error(r(349));(Ve&127)!==0||Xh(s,t,l)}f.memoizedState=l;var d={value:l,getSnapshot:t};return f.queue=d,um(Qh.bind(null,s,d,e),[e]),s.flags|=2048,ei(9,{destroy:void 0},$h.bind(null,s,d,l,t),null),l},useId:function(){var e=Yt(),t=ot.identifierPrefix;if(Ye){var l=Vn,s=In;l=(s&~(1<<32-ut(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=vs++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=fv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:lc,useFormState:am,useActionState:am,useOptimistic:function(e){var t=Yt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ic.bind(null,ze,!0,l),l.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return Yt().memoizedState=yv.bind(null,ze)},useEffectEvent:function(e){var t=Yt(),l={impl:e};return t.memoizedState=l,function(){if((We&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},rc={readContext:Lt,use:bs,useCallback:mm,useContext:Lt,useEffect:ec,useImperativeHandle:hm,useInsertionEffect:cm,useLayoutEffect:fm,useMemo:pm,useReducer:Ss,useRef:sm,useState:function(){return Ss(sa)},useDebugValue:tc,useDeferredValue:function(e,t){var l=bt();return gm(l,it.memoizedState,e,t)},useTransition:function(){var e=Ss(sa)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Pi(e),t]},useSyncExternalStore:Yh,useId:xm,useHostTransitionStatus:lc,useFormState:lm,useActionState:lm,useOptimistic:function(e,t){var l=bt();return Jh(l,it,e,t)},useMemoCache:Fo,useCacheRefresh:bm};rc.useEffectEvent=om;var Nm={readContext:Lt,use:bs,useCallback:mm,useContext:Lt,useEffect:ec,useImperativeHandle:hm,useInsertionEffect:cm,useLayoutEffect:fm,useMemo:pm,useReducer:Jo,useRef:sm,useState:function(){return Jo(sa)},useDebugValue:tc,useDeferredValue:function(e,t){var l=bt();return it===null?nc(l,e,t):gm(l,it.memoizedState,e,t)},useTransition:function(){var e=Jo(sa)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Pi(e),t]},useSyncExternalStore:Yh,useId:xm,useHostTransitionStatus:lc,useFormState:rm,useActionState:rm,useOptimistic:function(e,t){var l=bt();return it!==null?Jh(l,it,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Fo,useCacheRefresh:bm};Nm.useEffectEvent=om;function sc(e,t,l,s){t=e.memoizedState,l=l(s,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var uc={enqueueSetState:function(e,t,l){e=e._reactInternals;var s=dn(),f=Ma(s);f.payload=t,l!=null&&(f.callback=l),t=za(e,f,s),t!==null&&(tn(t,e,s),Qi(t,e,s))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var s=dn(),f=Ma(s);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=za(e,f,s),t!==null&&(tn(t,e,s),Qi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=dn(),s=Ma(l);s.tag=2,t!=null&&(s.callback=t),t=za(e,s,l),t!==null&&(tn(t,e,l),Qi(t,e,l))}};function Cm(e,t,l,s,f,d,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,v):t.prototype&&t.prototype.isPureReactComponent?!qi(l,s)||!qi(f,d):!0}function Am(e,t,l,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==e&&uc.enqueueReplaceState(t,t.state,null)}function ml(e,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var f in e)l[f]===void 0&&(l[f]=e[f])}return l}function wm(e){as(e)}function jm(e){console.error(e)}function Mm(e){as(e)}function Ns(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function zm(e,t,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function oc(e,t,l){return l=Ma(l),l.tag=3,l.payload={element:null},l.callback=function(){Ns(e,t)},l}function Rm(e){return e=Ma(e),e.tag=3,e}function Om(e,t,l,s){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var d=s.value;e.payload=function(){return f(d)},e.callback=function(){zm(t,l,s)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){zm(t,l,s),typeof f!="function"&&(Ua===null?Ua=new Set([this]):Ua.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})})}function vv(e,t,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&Xl(t,l,f,!0),l=un.current,l!==null){switch(l.tag){case 31:case 13:return En===null?Us():l.alternate===null&&vt===0&&(vt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===hs?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),Oc(e,s,f)),!1;case 22:return l.flags|=65536,s===hs?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),Oc(e,s,f)),!1}throw Error(r(435,l.tag))}return Oc(e,s,f),Us(),!1}if(Ye)return t=un.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,s!==Ao&&(e=Error(r(422),{cause:s}),Gi(bn(e,l)))):(s!==Ao&&(t=Error(r(423),{cause:s}),Gi(bn(t,l))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=bn(s,l),f=oc(e.stateNode,s,f),Ho(e,f),vt!==4&&(vt=2)),!1;var d=Error(r(520),{cause:s});if(d=bn(d,l),ur===null?ur=[d]:ur.push(d),vt!==4&&(vt=2),t===null)return!0;s=bn(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=f&-f,l.lanes|=e,e=oc(l.stateNode,s,e),Ho(l,e),!1;case 1:if(t=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ua===null||!Ua.has(d))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Rm(f),Om(f,e,l,s),Ho(l,f),!1}l=l.return}while(l!==null);return!1}var cc=Error(r(461)),Et=!1;function Bt(e,t,l,s){t.child=e===null?Uh(t,null,l,s):dl(t,e.child,l,s)}function Dm(e,t,l,s,f){l=l.render;var d=t.ref;if("ref"in s){var v={};for(var S in s)S!=="ref"&&(v[S]=s[S])}else v=s;return ul(t),s=Yo(e,t,l,v,d,f),S=Xo(),e!==null&&!Et?($o(e,t,f),ua(e,t,f)):(Ye&&S&&No(t),t.flags|=1,Bt(e,t,s,f),t.child)}function Lm(e,t,l,s,f){if(e===null){var d=l.type;return typeof d=="function"&&!To(d)&&d.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=d,Bm(e,t,d,s,f)):(e=ss(l.type,null,s,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!_c(e,f)){var v=d.memoizedProps;if(l=l.compare,l=l!==null?l:qi,l(v,s)&&e.ref===t.ref)return ua(e,t,f)}return t.flags|=1,e=na(d,s),e.ref=t.ref,e.return=t,t.child=e}function Bm(e,t,l,s,f){if(e!==null){var d=e.memoizedProps;if(qi(d,s)&&e.ref===t.ref)if(Et=!1,t.pendingProps=s=d,_c(e,f))(e.flags&131072)!==0&&(Et=!0);else return t.lanes=e.lanes,ua(e,t,f)}return fc(e,t,l,s,f)}function Um(e,t,l,s){var f=s.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|l:l,e!==null){for(s=t.child=e.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~d}else s=0,t.child=null;return Hm(e,t,d,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fs(t,d!==null?d.cachePool:null),d!==null?Ih(t,d):Io(),Vh(t);else return s=t.lanes=536870912,Hm(e,t,d!==null?d.baseLanes|l:l,l,s)}else d!==null?(fs(t,d.cachePool),Ih(t,d),Oa(),t.memoizedState=null):(e!==null&&fs(t,null),Io(),Oa());return Bt(e,t,f,l),t.child}function tr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hm(e,t,l,s,f){var d=Do();return d=d===null?null:{parent:Tt._currentValue,pool:d},t.memoizedState={baseLanes:l,cachePool:d},e!==null&&fs(t,null),Io(),Vh(t),e!==null&&Xl(e,t,s,!0),t.childLanes=f,null}function Cs(e,t){return t=ws({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function qm(e,t,l){return dl(t,e.child,null,l),e=Cs(t,t.pendingProps),e.flags|=2,on(t),t.memoizedState=null,e}function xv(e,t,l){var s=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ye){if(s.mode==="hidden")return e=Cs(t,s),t.lanes=536870912,tr(null,e);if(Go(t),(e=ht)?(e=Pp(e,kn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Na!==null?{id:In,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},l=Th(e),l.return=t,t.child=l,Dt=t,ht=null)):e=null,e===null)throw Aa(t);return t.lanes=536870912,null}return Cs(t,s)}var d=e.memoizedState;if(d!==null){var v=d.dehydrated;if(Go(t),f)if(t.flags&256)t.flags&=-257,t=qm(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Et||Xl(e,t,l,!1),f=(l&e.childLanes)!==0,Et||f){if(s=ot,s!==null&&(v=jd(s,l),v!==0&&v!==d.retryLane))throw d.retryLane=v,ll(e,v),tn(s,e,v),cc;Us(),t=qm(e,t,l)}else e=d.treeContext,ht=Nn(v.nextSibling),Dt=t,Ye=!0,Ca=null,kn=!1,e!==null&&Nh(t,e),t=Cs(t,s),t.flags|=4096;return t}return e=na(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function As(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function fc(e,t,l,s,f){return ul(t),l=Yo(e,t,l,s,void 0,f),s=Xo(),e!==null&&!Et?($o(e,t,f),ua(e,t,f)):(Ye&&s&&No(t),t.flags|=1,Bt(e,t,l,f),t.child)}function Im(e,t,l,s,f,d){return ul(t),t.updateQueue=null,l=Zh(t,s,l,f),Gh(e),s=Xo(),e!==null&&!Et?($o(e,t,d),ua(e,t,d)):(Ye&&s&&No(t),t.flags|=1,Bt(e,t,l,d),t.child)}function Vm(e,t,l,s,f){if(ul(t),t.stateNode===null){var d=Vl,v=l.contextType;typeof v=="object"&&v!==null&&(d=Lt(v)),d=new l(s,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=uc,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=s,d.state=t.memoizedState,d.refs={},Bo(t),v=l.contextType,d.context=typeof v=="object"&&v!==null?Lt(v):Vl,d.state=t.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(sc(t,l,v,s),d.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&uc.enqueueReplaceState(d,d.state,null),Ki(t,s,d,f),Fi(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){d=t.stateNode;var S=t.memoizedProps,C=ml(l,S);d.props=C;var H=d.context,Y=l.contextType;v=Vl,typeof Y=="object"&&Y!==null&&(v=Lt(Y));var Q=l.getDerivedStateFromProps;Y=typeof Q=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,Y||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||H!==v)&&Am(t,d,s,v),ja=!1;var q=t.memoizedState;d.state=q,Ki(t,s,d,f),Fi(),H=t.memoizedState,S||q!==H||ja?(typeof Q=="function"&&(sc(t,l,Q,s),H=t.memoizedState),(C=ja||Cm(t,l,C,s,q,H,v))?(Y||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=H),d.props=s,d.state=H,d.context=v,s=C):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{d=t.stateNode,Uo(e,t),v=t.memoizedProps,Y=ml(l,v),d.props=Y,Q=t.pendingProps,q=d.context,H=l.contextType,C=Vl,typeof H=="object"&&H!==null&&(C=Lt(H)),S=l.getDerivedStateFromProps,(H=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==Q||q!==C)&&Am(t,d,s,C),ja=!1,q=t.memoizedState,d.state=q,Ki(t,s,d,f),Fi();var V=t.memoizedState;v!==Q||q!==V||ja||e!==null&&e.dependencies!==null&&os(e.dependencies)?(typeof S=="function"&&(sc(t,l,S,s),V=t.memoizedState),(Y=ja||Cm(t,l,Y,s,q,V,C)||e!==null&&e.dependencies!==null&&os(e.dependencies))?(H||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,V,C),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,V,C)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=V),d.props=s,d.state=V,d.context=C,s=Y):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),s=!1)}return d=s,As(e,t),s=(t.flags&128)!==0,d||s?(d=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&s?(t.child=dl(t,e.child,null,f),t.child=dl(t,null,l,f)):Bt(e,t,l,f),t.memoizedState=d.state,e=t.child):e=ua(e,t,f),e}function Gm(e,t,l,s){return rl(),t.flags|=256,Bt(e,t,l,s),t.child}var dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hc(e){return{baseLanes:e,cachePool:zh()}}function mc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=fn),e}function Zm(e,t,l){var s=t.pendingProps,f=!1,d=(t.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:(xt.current&2)!==0),v&&(f=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ye){if(f?Ra(t):Oa(),(e=ht)?(e=Pp(e,kn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Na!==null?{id:In,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},l=Th(e),l.return=t,t.child=l,Dt=t,ht=null)):e=null,e===null)throw Aa(t);return Kc(e)?t.lanes=32:t.lanes=536870912,null}var S=s.children;return s=s.fallback,f?(Oa(),f=t.mode,S=ws({mode:"hidden",children:S},f),s=il(s,f,l,null),S.return=t,s.return=t,S.sibling=s,t.child=S,s=t.child,s.memoizedState=hc(l),s.childLanes=mc(e,v,l),t.memoizedState=dc,tr(null,s)):(Ra(t),pc(t,S))}var C=e.memoizedState;if(C!==null&&(S=C.dehydrated,S!==null)){if(d)t.flags&256?(Ra(t),t.flags&=-257,t=gc(e,t,l)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,t=null):(Oa(),S=s.fallback,f=t.mode,s=ws({mode:"visible",children:s.children},f),S=il(S,f,l,null),S.flags|=2,s.return=t,S.return=t,s.sibling=S,t.child=s,dl(t,e.child,null,l),s=t.child,s.memoizedState=hc(l),s.childLanes=mc(e,v,l),t.memoizedState=dc,t=tr(null,s));else if(Ra(t),Kc(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var H=v.dgst;v=H,s=Error(r(419)),s.stack="",s.digest=v,Gi({value:s,source:null,stack:null}),t=gc(e,t,l)}else if(Et||Xl(e,t,l,!1),v=(l&e.childLanes)!==0,Et||v){if(v=ot,v!==null&&(s=jd(v,l),s!==0&&s!==C.retryLane))throw C.retryLane=s,ll(e,s),tn(v,e,s),cc;Fc(S)||Us(),t=gc(e,t,l)}else Fc(S)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,ht=Nn(S.nextSibling),Dt=t,Ye=!0,Ca=null,kn=!1,e!==null&&Nh(t,e),t=pc(t,s.children),t.flags|=4096);return t}return f?(Oa(),S=s.fallback,f=t.mode,C=e.child,H=C.sibling,s=na(C,{mode:"hidden",children:s.children}),s.subtreeFlags=C.subtreeFlags&65011712,H!==null?S=na(H,S):(S=il(S,f,l,null),S.flags|=2),S.return=t,s.return=t,s.sibling=S,t.child=s,tr(null,s),s=t.child,S=e.child.memoizedState,S===null?S=hc(l):(f=S.cachePool,f!==null?(C=Tt._currentValue,f=f.parent!==C?{parent:C,pool:C}:f):f=zh(),S={baseLanes:S.baseLanes|l,cachePool:f}),s.memoizedState=S,s.childLanes=mc(e,v,l),t.memoizedState=dc,tr(e.child,s)):(Ra(t),l=e.child,e=l.sibling,l=na(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=l,t.memoizedState=null,l)}function pc(e,t){return t=ws({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ws(e,t){return e=sn(22,e,null,t),e.lanes=0,e}function gc(e,t,l){return dl(t,e.child,null,l),e=pc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ym(e,t,l){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Mo(e.return,t,l)}function yc(e,t,l,s,f,d){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:f,treeForkCount:d}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=l,v.tailMode=f,v.treeForkCount=d)}function Xm(e,t,l){var s=t.pendingProps,f=s.revealOrder,d=s.tail;s=s.children;var v=xt.current,S=(v&2)!==0;if(S?(v=v&1|2,t.flags|=128):v&=1,E(xt,v),Bt(e,t,s,l),s=Ye?Vi:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ym(e,l,t);else if(e.tag===19)Ym(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(f){case"forwards":for(l=t.child,f=null;l!==null;)e=l.alternate,e!==null&&ys(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),yc(t,!1,f,l,d,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=t.child,t.child=null;f!==null;){if(e=f.alternate,e!==null&&ys(e)===null){t.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}yc(t,!0,l,null,d,s);break;case"together":yc(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function ua(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ba|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Xl(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=na(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=na(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function _c(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&os(e)))}function bv(e,t,l){switch(t.tag){case 3:pt(t,t.stateNode.containerInfo),wa(t,Tt,e.memoizedState.cache),rl();break;case 27:case 5:yn(t);break;case 4:pt(t,t.stateNode.containerInfo);break;case 10:wa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Go(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Ra(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Zm(e,t,l):(Ra(t),e=ua(e,t,l),e!==null?e.sibling:null);Ra(t);break;case 19:var f=(e.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(Xl(e,t,l,!1),s=(l&t.childLanes)!==0),f){if(s)return Xm(e,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),E(xt,xt.current),s)break;return null;case 22:return t.lanes=0,Um(e,t,l,t.pendingProps);case 24:wa(t,Tt,e.memoizedState.cache)}return ua(e,t,l)}function $m(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Et=!0;else{if(!_c(e,l)&&(t.flags&128)===0)return Et=!1,bv(e,t,l);Et=(e.flags&131072)!==0}else Et=!1,Ye&&(t.flags&1048576)!==0&&Eh(t,Vi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=cl(t.elementType),t.type=e,typeof e=="function")To(e)?(s=ml(e,s),t.tag=1,t=Vm(null,t,e,s,l)):(t.tag=0,t=fc(null,t,e,s,l));else{if(e!=null){var f=e.$$typeof;if(f===K){t.tag=11,t=Dm(null,t,e,s,l);break e}else if(f===P){t.tag=14,t=Lm(null,t,e,s,l);break e}}throw t=ce(e)||e,Error(r(306,t,""))}}return t;case 0:return fc(e,t,t.type,t.pendingProps,l);case 1:return s=t.type,f=ml(s,t.pendingProps),Vm(e,t,s,f,l);case 3:e:{if(pt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var d=t.memoizedState;f=d.element,Uo(e,t),Ki(t,s,null,l);var v=t.memoizedState;if(s=v.cache,wa(t,Tt,s),s!==d.cache&&zo(t,[Tt],l,!0),Fi(),s=v.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Gm(e,t,s,l);break e}else if(s!==f){f=bn(Error(r(424)),t),Gi(f),t=Gm(e,t,s,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(ht=Nn(e.firstChild),Dt=t,Ye=!0,Ca=null,kn=!0,l=Uh(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(rl(),s===f){t=ua(e,t,l);break e}Bt(e,t,s,l)}t=t.child}return t;case 26:return As(e,t),e===null?(l=lg(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ye||(l=t.type,e=t.pendingProps,s=Ys(oe.current).createElement(l),s[Ot]=t,s[Ft]=e,Ut(s,l,e),zt(s),t.stateNode=s):t.memoizedState=lg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return yn(t),e===null&&Ye&&(s=t.stateNode=tg(t.type,t.pendingProps,oe.current),Dt=t,kn=!0,f=ht,Va(t.type)?(Jc=f,ht=Nn(s.firstChild)):ht=f),Bt(e,t,t.pendingProps.children,l),As(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ye&&((f=s=ht)&&(s=Jv(s,t.type,t.pendingProps,kn),s!==null?(t.stateNode=s,Dt=t,ht=Nn(s.firstChild),kn=!1,f=!0):f=!1),f||Aa(t)),yn(t),f=t.type,d=t.pendingProps,v=e!==null?e.memoizedProps:null,s=d.children,Xc(f,d)?s=null:v!==null&&Xc(f,v)&&(t.flags|=32),t.memoizedState!==null&&(f=Yo(e,t,dv,null,null,l),gr._currentValue=f),As(e,t),Bt(e,t,s,l),t.child;case 6:return e===null&&Ye&&((e=l=ht)&&(l=Pv(l,t.pendingProps,kn),l!==null?(t.stateNode=l,Dt=t,ht=null,e=!0):e=!1),e||Aa(t)),null;case 13:return Zm(e,t,l);case 4:return pt(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=dl(t,null,s,l):Bt(e,t,s,l),t.child;case 11:return Dm(e,t,t.type,t.pendingProps,l);case 7:return Bt(e,t,t.pendingProps,l),t.child;case 8:return Bt(e,t,t.pendingProps.children,l),t.child;case 12:return Bt(e,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,wa(t,t.type,s.value),Bt(e,t,s.children,l),t.child;case 9:return f=t.type._context,s=t.pendingProps.children,ul(t),f=Lt(f),s=s(f),t.flags|=1,Bt(e,t,s,l),t.child;case 14:return Lm(e,t,t.type,t.pendingProps,l);case 15:return Bm(e,t,t.type,t.pendingProps,l);case 19:return Xm(e,t,l);case 31:return xv(e,t,l);case 22:return Um(e,t,l,t.pendingProps);case 24:return ul(t),s=Lt(Tt),e===null?(f=Do(),f===null&&(f=ot,d=Ro(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=l),f=d),t.memoizedState={parent:s,cache:f},Bo(t),wa(t,Tt,f)):((e.lanes&l)!==0&&(Uo(e,t),Ki(t,null,null,l),Fi()),f=e.memoizedState,d=t.memoizedState,f.parent!==s?(f={parent:s,cache:s},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),wa(t,Tt,s)):(s=d.cache,wa(t,Tt,s),s!==f.cache&&zo(t,[Tt],l,!0))),Bt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function oa(e){e.flags|=4}function vc(e,t,l,s,f){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(xp())e.flags|=8192;else throw fl=hs,Lo}else e.flags&=-16777217}function Qm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!og(t))if(xp())e.flags|=8192;else throw fl=hs,Lo}function js(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Cd():536870912,e.lanes|=t,li|=t)}function nr(e,t){if(!Ye)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 s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(t)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=l,t}function Sv(e,t,l){var s=t.pendingProps;switch(Co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return mt(t),null;case 3:return l=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),ia(Tt),lt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Yl(t)?oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wo())),mt(t),null;case 26:var f=t.type,d=t.memoizedState;return e===null?(oa(t),d!==null?(mt(t),Qm(t,d)):(mt(t),vc(t,f,null,s,l))):d?d!==e.memoizedState?(oa(t),mt(t),Qm(t,d)):(mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&oa(t),mt(t),vc(t,f,e,s,l)),null;case 27:if(Kn(t),l=oe.current,f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&oa(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return mt(t),null}e=G.current,Yl(t)?Ch(t):(e=tg(f,s,l),t.stateNode=e,oa(t))}return mt(t),null;case 5:if(Kn(t),f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&oa(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return mt(t),null}if(d=G.current,Yl(t))Ch(t);else{var v=Ys(oe.current);switch(d){case 1:d=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:d=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":d=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":d=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":d=v.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?d.multiple=!0:s.size&&(d.size=s.size);break;default:d=typeof s.is=="string"?v.createElement(f,{is:s.is}):v.createElement(f)}}d[Ot]=t,d[Ft]=s;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)d.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=d;e:switch(Ut(d,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&oa(t)}}return mt(t),vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&oa(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=oe.current,Yl(t)){if(e=t.stateNode,l=t.memoizedProps,s=null,f=Dt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[Ot]=t,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Zp(e.nodeValue,l)),e||Aa(t,!0)}else e=Ys(e).createTextNode(s),e[Ot]=t,t.stateNode=e}return mt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(s=Yl(t),l!==null){if(e===null){if(!s)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ot]=t}else rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),e=!1}else l=wo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(on(t),t):(on(t),null);if((t.flags&128)!==0)throw Error(r(558))}return mt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Yl(t),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(r(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[Ot]=t}else rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),f=!1}else f=wo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(on(t),t):(on(t),null)}return on(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=t.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==f&&(s.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),js(t,t.updateQueue),mt(t),null);case 4:return lt(),e===null&&Ic(t.stateNode.containerInfo),mt(t),null;case 10:return ia(t.type),mt(t),null;case 19:if(Z(xt),s=t.memoizedState,s===null)return mt(t),null;if(f=(t.flags&128)!==0,d=s.rendering,d===null)if(f)nr(s,!1);else{if(vt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=ys(e),d!==null){for(t.flags|=128,nr(s,!1),e=d.updateQueue,t.updateQueue=e,js(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Sh(l,e),l=l.sibling;return E(xt,xt.current&1|2),Ye&&aa(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Gt()>Ds&&(t.flags|=128,f=!0,nr(s,!1),t.lanes=4194304)}else{if(!f)if(e=ys(d),e!==null){if(t.flags|=128,f=!0,e=e.updateQueue,t.updateQueue=e,js(t,e),nr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!d.alternate&&!Ye)return mt(t),null}else 2*Gt()-s.renderingStartTime>Ds&&l!==536870912&&(t.flags|=128,f=!0,nr(s,!1),t.lanes=4194304);s.isBackwards?(d.sibling=t.child,t.child=d):(e=s.last,e!==null?e.sibling=d:t.child=d,s.last=d)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Gt(),e.sibling=null,l=xt.current,E(xt,f?l&1|2:l&1),Ye&&aa(t,s.treeForkCount),e):(mt(t),null);case 22:case 23:return on(t),Vo(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),l=t.updateQueue,l!==null&&js(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),e!==null&&Z(ol),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ia(Tt),mt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Tv(e,t){switch(Co(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ia(Tt),lt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Kn(t),null;case 31:if(t.memoizedState!==null){if(on(t),t.alternate===null)throw Error(r(340));rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(on(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(xt),null;case 4:return lt(),null;case 10:return ia(t.type),null;case 22:case 23:return on(t),Vo(),e!==null&&Z(ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ia(Tt),null;case 25:return null;default:return null}}function Fm(e,t){switch(Co(t),t.tag){case 3:ia(Tt),lt();break;case 26:case 27:case 5:Kn(t);break;case 4:lt();break;case 31:t.memoizedState!==null&&on(t);break;case 13:on(t);break;case 19:Z(xt);break;case 10:ia(t.type);break;case 22:case 23:on(t),Vo(),e!==null&&Z(ol);break;case 24:ia(Tt)}}function ar(e,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&e)===e){s=void 0;var d=l.create,v=l.inst;s=d(),v.destroy=s}l=l.next}while(l!==f)}}catch(S){nt(t,t.return,S)}}function Da(e,t,l){try{var s=t.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var d=f.next;s=d;do{if((s.tag&e)===e){var v=s.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,f=t;var C=l,H=S;try{H()}catch(Y){nt(f,C,Y)}}}s=s.next}while(s!==d)}}catch(Y){nt(t,t.return,Y)}}function Km(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{qh(t,l)}catch(s){nt(e,e.return,s)}}}function Jm(e,t,l){l.props=ml(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){nt(e,t,s)}}function lr(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(f){nt(e,t,f)}}function Gn(e,t){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){nt(e,t,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){nt(e,t,f)}else l.current=null}function Pm(e){var t=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(f){nt(e,e.return,f)}}function xc(e,t,l){try{var s=e.stateNode;Yv(s,e.type,l,t),s[Ft]=t}catch(f){nt(e,e.return,f)}}function Wm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Va(e.type)||e.tag===4}function bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wm(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&&Va(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 Sc(e,t,l){var s=e.tag;if(s===5||s===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=ea));else if(s!==4&&(s===27&&Va(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Sc(e,t,l),e=e.sibling;e!==null;)Sc(e,t,l),e=e.sibling}function Ms(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(s!==4&&(s===27&&Va(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ms(e,t,l),e=e.sibling;e!==null;)Ms(e,t,l),e=e.sibling}function ep(e){var t=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);Ut(t,s,l),t[Ot]=e,t[Ft]=l}catch(d){nt(e,e.return,d)}}var ca=!1,Nt=!1,Tc=!1,tp=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function kv(e,t){if(e=e.containerInfo,Zc=Ps,e=hh(e),go(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var f=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var v=0,S=-1,C=-1,H=0,Y=0,Q=e,q=null;t:for(;;){for(var V;Q!==l||f!==0&&Q.nodeType!==3||(S=v+f),Q!==d||s!==0&&Q.nodeType!==3||(C=v+s),Q.nodeType===3&&(v+=Q.nodeValue.length),(V=Q.firstChild)!==null;)q=Q,Q=V;for(;;){if(Q===e)break t;if(q===l&&++H===f&&(S=v),q===d&&++Y===s&&(C=v),(V=Q.nextSibling)!==null)break;Q=q,q=Q.parentNode}Q=V}l=S===-1||C===-1?null:{start:S,end:C}}else l=null}l=l||{start:0,end:0}}else l=null;for(Yc={focusedElem:e,selectionRange:l},Ps=!1,Rt=t;Rt!==null;)if(t=Rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Rt=e;else for(;Rt!==null;){switch(t=Rt,d=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++)f=e[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,l=t,f=d.memoizedProps,d=d.memoizedState,s=l.stateNode;try{var me=ml(l.type,f);e=s.getSnapshotBeforeUpdate(me,d),s.__reactInternalSnapshotBeforeUpdate=e}catch(ke){nt(l,l.return,ke)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Qc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Rt=e;break}Rt=t.return}}function np(e,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:da(e,l),s&4&&ar(5,l);break;case 1:if(da(e,l),s&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(v){nt(l,l.return,v)}else{var f=ml(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(f,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){nt(l,l.return,v)}}s&64&&Km(l),s&512&&lr(l,l.return);break;case 3:if(da(e,l),s&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{qh(e,t)}catch(v){nt(l,l.return,v)}}break;case 27:t===null&&s&4&&ep(l);case 26:case 5:da(e,l),t===null&&s&4&&Pm(l),s&512&&lr(l,l.return);break;case 12:da(e,l);break;case 31:da(e,l),s&4&&ip(e,l);break;case 13:da(e,l),s&4&&rp(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Rv.bind(null,l),Wv(e,l))));break;case 22:if(s=l.memoizedState!==null||ca,!s){t=t!==null&&t.memoizedState!==null||Nt,f=ca;var d=Nt;ca=s,(Nt=t)&&!d?ha(e,l,(l.subtreeFlags&8772)!==0):da(e,l),ca=f,Nt=d}break;case 30:break;default:da(e,l)}}function ap(e){var t=e.alternate;t!==null&&(e.alternate=null,ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pu(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 gt=null,Jt=!1;function fa(e,t,l){for(l=l.child;l!==null;)lp(e,t,l),l=l.sibling}function lp(e,t,l){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Zt,l)}catch{}switch(l.tag){case 26:Nt||Gn(l,t),fa(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Nt||Gn(l,t);var s=gt,f=Jt;Va(l.type)&&(gt=l.stateNode,Jt=!1),fa(e,t,l),hr(l.stateNode),gt=s,Jt=f;break;case 5:Nt||Gn(l,t);case 6:if(s=gt,f=Jt,gt=null,fa(e,t,l),gt=s,Jt=f,gt!==null)if(Jt)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(l.stateNode)}catch(d){nt(l,t,d)}else try{gt.removeChild(l.stateNode)}catch(d){nt(l,t,d)}break;case 18:gt!==null&&(Jt?(e=gt,Kp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),di(e)):Kp(gt,l.stateNode));break;case 4:s=gt,f=Jt,gt=l.stateNode.containerInfo,Jt=!0,fa(e,t,l),gt=s,Jt=f;break;case 0:case 11:case 14:case 15:Da(2,l,t),Nt||Da(4,l,t),fa(e,t,l);break;case 1:Nt||(Gn(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&Jm(l,t,s)),fa(e,t,l);break;case 21:fa(e,t,l);break;case 22:Nt=(s=Nt)||l.memoizedState!==null,fa(e,t,l),Nt=s;break;default:fa(e,t,l)}}function ip(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{di(e)}catch(l){nt(t,t.return,l)}}}function rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{di(e)}catch(l){nt(t,t.return,l)}}function Ev(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tp),t;default:throw Error(r(435,e.tag))}}function zs(e,t){var l=Ev(e);t.forEach(function(s){if(!l.has(s)){l.add(s);var f=Ov.bind(null,e,s);s.then(f,f)}})}function Pt(e,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var f=l[s],d=e,v=t,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Va(S.type)){gt=S.stateNode,Jt=!1;break e}break;case 5:gt=S.stateNode,Jt=!1;break e;case 3:case 4:gt=S.stateNode.containerInfo,Jt=!0;break e}S=S.return}if(gt===null)throw Error(r(160));lp(d,v,f),gt=null,Jt=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sp(t,e),t=t.sibling}var On=null;function sp(e,t){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pt(t,e),Wt(e),s&4&&(Da(3,e,e.return),ar(3,e),Da(5,e,e.return));break;case 1:Pt(t,e),Wt(e),s&512&&(Nt||l===null||Gn(l,l.return)),s&64&&ca&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var f=On;if(Pt(t,e),Wt(e),s&512&&(Nt||l===null||Gn(l,l.return)),s&4){var d=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){e:{s=e.type,l=e.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":d=f.getElementsByTagName("title")[0],(!d||d[Mi]||d[Ot]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(s),f.head.insertBefore(d,f.querySelector("head > title"))),Ut(d,s,l),d[Ot]=e,zt(d),s=d;break e;case"link":var v=sg("link","href",f).get(s+(l.href||""));if(v){for(var S=0;S<v.length;S++)if(d=v[S],d.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&d.getAttribute("rel")===(l.rel==null?null:l.rel)&&d.getAttribute("title")===(l.title==null?null:l.title)&&d.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(S,1);break t}}d=f.createElement(s),Ut(d,s,l),f.head.appendChild(d);break;case"meta":if(v=sg("meta","content",f).get(s+(l.content||""))){for(S=0;S<v.length;S++)if(d=v[S],d.getAttribute("content")===(l.content==null?null:""+l.content)&&d.getAttribute("name")===(l.name==null?null:l.name)&&d.getAttribute("property")===(l.property==null?null:l.property)&&d.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&d.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(S,1);break t}}d=f.createElement(s),Ut(d,s,l),f.head.appendChild(d);break;default:throw Error(r(468,s))}d[Ot]=e,zt(d),s=d}e.stateNode=s}else ug(f,e.type,e.stateNode);else e.stateNode=rg(f,s,e.memoizedProps);else d!==s?(d===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):d.count--,s===null?ug(f,e.type,e.stateNode):rg(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&xc(e,e.memoizedProps,l.memoizedProps)}break;case 27:Pt(t,e),Wt(e),s&512&&(Nt||l===null||Gn(l,l.return)),l!==null&&s&4&&xc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Pt(t,e),Wt(e),s&512&&(Nt||l===null||Gn(l,l.return)),e.flags&32){f=e.stateNode;try{Dl(f,"")}catch(me){nt(e,e.return,me)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,xc(e,f,l!==null?l.memoizedProps:f)),s&1024&&(Tc=!0);break;case 6:if(Pt(t,e),Wt(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(me){nt(e,e.return,me)}}break;case 3:if(Qs=null,f=On,On=Xs(t.containerInfo),Pt(t,e),On=f,Wt(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{di(t.containerInfo)}catch(me){nt(e,e.return,me)}Tc&&(Tc=!1,up(e));break;case 4:s=On,On=Xs(e.stateNode.containerInfo),Pt(t,e),Wt(e),On=s;break;case 12:Pt(t,e),Wt(e);break;case 31:Pt(t,e),Wt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,zs(e,s)));break;case 13:Pt(t,e),Wt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Os=Gt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,zs(e,s)));break;case 22:f=e.memoizedState!==null;var C=l!==null&&l.memoizedState!==null,H=ca,Y=Nt;if(ca=H||f,Nt=Y||C,Pt(t,e),Nt=Y,ca=H,Wt(e),s&8192)e:for(t=e.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||C||ca||Nt||pl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){C=l=t;try{if(d=C.stateNode,f)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=C.stateNode;var Q=C.memoizedProps.style,q=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;S.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(me){nt(C,C.return,me)}}}else if(t.tag===6){if(l===null){C=t;try{C.stateNode.nodeValue=f?"":C.memoizedProps}catch(me){nt(C,C.return,me)}}}else if(t.tag===18){if(l===null){C=t;try{var V=C.stateNode;f?Jp(V,!0):Jp(C.stateNode,!1)}catch(me){nt(C,C.return,me)}}}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}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,zs(e,l))));break;case 19:Pt(t,e),Wt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,zs(e,s)));break;case 30:break;case 21:break;default:Pt(t,e),Wt(e)}}function Wt(e){var t=e.flags;if(t&2){try{for(var l,s=e.return;s!==null;){if(Wm(s)){l=s;break}s=s.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var f=l.stateNode,d=bc(e);Ms(e,d,f);break;case 5:var v=l.stateNode;l.flags&32&&(Dl(v,""),l.flags&=-33);var S=bc(e);Ms(e,S,v);break;case 3:case 4:var C=l.stateNode.containerInfo,H=bc(e);Sc(e,H,C);break;default:throw Error(r(161))}}catch(Y){nt(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function up(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;up(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)np(e,t.alternate,t),t=t.sibling}function pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Da(4,t,t.return),pl(t);break;case 1:Gn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Jm(t,t.return,l),pl(t);break;case 27:hr(t.stateNode);case 26:case 5:Gn(t,t.return),pl(t);break;case 22:t.memoizedState===null&&pl(t);break;case 30:pl(t);break;default:pl(t)}e=e.sibling}}function ha(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,f=e,d=t,v=d.flags;switch(d.tag){case 0:case 11:case 15:ha(f,d,l),ar(4,d);break;case 1:if(ha(f,d,l),s=d,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(H){nt(s,s.return,H)}if(s=d,f=s.updateQueue,f!==null){var S=s.stateNode;try{var C=f.shared.hiddenCallbacks;if(C!==null)for(f.shared.hiddenCallbacks=null,f=0;f<C.length;f++)Hh(C[f],S)}catch(H){nt(s,s.return,H)}}l&&v&64&&Km(d),lr(d,d.return);break;case 27:ep(d);case 26:case 5:ha(f,d,l),l&&s===null&&v&4&&Pm(d),lr(d,d.return);break;case 12:ha(f,d,l);break;case 31:ha(f,d,l),l&&v&4&&ip(f,d);break;case 13:ha(f,d,l),l&&v&4&&rp(f,d);break;case 22:d.memoizedState===null&&ha(f,d,l),lr(d,d.return);break;case 30:break;default:ha(f,d,l)}t=t.sibling}}function kc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Zi(l))}function Ec(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e))}function Dn(e,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)op(e,t,l,s),t=t.sibling}function op(e,t,l,s){var f=t.flags;switch(t.tag){case 0:case 11:case 15:Dn(e,t,l,s),f&2048&&ar(9,t);break;case 1:Dn(e,t,l,s);break;case 3:Dn(e,t,l,s),f&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e)));break;case 12:if(f&2048){Dn(e,t,l,s),e=t.stateNode;try{var d=t.memoizedProps,v=d.id,S=d.onPostCommit;typeof S=="function"&&S(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){nt(t,t.return,C)}}else Dn(e,t,l,s);break;case 31:Dn(e,t,l,s);break;case 13:Dn(e,t,l,s);break;case 23:break;case 22:d=t.stateNode,v=t.alternate,t.memoizedState!==null?d._visibility&2?Dn(e,t,l,s):ir(e,t):d._visibility&2?Dn(e,t,l,s):(d._visibility|=2,ti(e,t,l,s,(t.subtreeFlags&10256)!==0||!1)),f&2048&&kc(v,t);break;case 24:Dn(e,t,l,s),f&2048&&Ec(t.alternate,t);break;default:Dn(e,t,l,s)}}function ti(e,t,l,s,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,v=t,S=l,C=s,H=v.flags;switch(v.tag){case 0:case 11:case 15:ti(d,v,S,C,f),ar(8,v);break;case 23:break;case 22:var Y=v.stateNode;v.memoizedState!==null?Y._visibility&2?ti(d,v,S,C,f):ir(d,v):(Y._visibility|=2,ti(d,v,S,C,f)),f&&H&2048&&kc(v.alternate,v);break;case 24:ti(d,v,S,C,f),f&&H&2048&&Ec(v.alternate,v);break;default:ti(d,v,S,C,f)}t=t.sibling}}function ir(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,s=t,f=s.flags;switch(s.tag){case 22:ir(l,s),f&2048&&kc(s.alternate,s);break;case 24:ir(l,s),f&2048&&Ec(s.alternate,s);break;default:ir(l,s)}t=t.sibling}}var rr=8192;function ni(e,t,l){if(e.subtreeFlags&rr)for(e=e.child;e!==null;)cp(e,t,l),e=e.sibling}function cp(e,t,l){switch(e.tag){case 26:ni(e,t,l),e.flags&rr&&e.memoizedState!==null&&f0(l,On,e.memoizedState,e.memoizedProps);break;case 5:ni(e,t,l);break;case 3:case 4:var s=On;On=Xs(e.stateNode.containerInfo),ni(e,t,l),On=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=rr,rr=16777216,ni(e,t,l),rr=s):ni(e,t,l));break;default:ni(e,t,l)}}function fp(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 sr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Rt=s,hp(s,e)}fp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dp(e),e=e.sibling}function dp(e){switch(e.tag){case 0:case 11:case 15:sr(e),e.flags&2048&&Da(9,e,e.return);break;case 3:sr(e);break;case 12:sr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rs(e)):sr(e);break;default:sr(e)}}function Rs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Rt=s,hp(s,e)}fp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Da(8,t,t.return),Rs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Rs(t));break;default:Rs(t)}e=e.sibling}}function hp(e,t){for(;Rt!==null;){var l=Rt;switch(l.tag){case 0:case 11:case 15:Da(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Zi(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Rt=s;else e:for(l=e;Rt!==null;){s=Rt;var f=s.sibling,d=s.return;if(ap(s),s===l){Rt=null;break e}if(f!==null){f.return=d,Rt=f;break e}Rt=d}}}var Nv={getCacheForType:function(e){var t=Lt(Tt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Lt(Tt).controller.signal}},Cv=typeof WeakMap=="function"?WeakMap:Map,We=0,ot=null,Ue=null,Ve=0,tt=0,cn=null,La=!1,ai=!1,Nc=!1,ma=0,vt=0,Ba=0,gl=0,Cc=0,fn=0,li=0,ur=null,en=null,Ac=!1,Os=0,mp=0,Ds=1/0,Ls=null,Ua=null,jt=0,Ha=null,ii=null,pa=0,wc=0,jc=null,pp=null,or=0,Mc=null;function dn(){return(We&2)!==0&&Ve!==0?Ve&-Ve:U.T!==null?Bc():Md()}function gp(){if(fn===0)if((Ve&536870912)===0||Ye){var e=Zr;Zr<<=1,(Zr&3932160)===0&&(Zr=262144),fn=e}else fn=536870912;return e=un.current,e!==null&&(e.flags|=32),fn}function tn(e,t,l){(e===ot&&(tt===2||tt===9)||e.cancelPendingCommit!==null)&&(ri(e,0),qa(e,Ve,fn,!1)),ji(e,l),((We&2)===0||e!==ot)&&(e===ot&&((We&2)===0&&(gl|=l),vt===4&&qa(e,Ve,fn,!1)),Zn(e))}function yp(e,t,l){if((We&6)!==0)throw Error(r(327));var s=!l&&(t&127)===0&&(t&e.expiredLanes)===0||wi(e,t),f=s?jv(e,t):Rc(e,t,!0),d=s;do{if(f===0){ai&&!s&&qa(e,t,0,!1);break}else{if(l=e.current.alternate,d&&!Av(l)){f=Rc(e,t,!1),d=!1;continue}if(f===2){if(d=t,e.errorRecoveryDisabledLanes&d)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var S=e;f=ur;var C=S.current.memoizedState.isDehydrated;if(C&&(ri(S,v).flags|=256),v=Rc(S,v,!1),v!==2){if(Nc&&!C){S.errorRecoveryDisabledLanes|=d,gl|=d,f=4;break e}d=en,en=f,d!==null&&(en===null?en=d:en.push.apply(en,d))}f=v}if(d=!1,f!==2)continue}}if(f===1){ri(e,0),qa(e,t,0,!0);break}e:{switch(s=e,d=f,d){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:qa(s,t,fn,!La);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(f=Os+300-Gt(),10<f)){if(qa(s,t,fn,!La),Xr(s,0,!0)!==0)break e;pa=t,s.timeoutHandle=Qp(_p.bind(null,s,l,en,Ls,Ac,t,fn,gl,li,La,d,"Throttled",-0,0),f);break e}_p(s,l,en,Ls,Ac,t,fn,gl,li,La,d,null,-0,0)}}break}while(!0);Zn(e)}function _p(e,t,l,s,f,d,v,S,C,H,Y,Q,q,V){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ea},cp(t,d,Q);var me=(d&62914560)===d?Os-Gt():(d&4194048)===d?mp-Gt():0;if(me=d0(Q,me),me!==null){pa=d,e.cancelPendingCommit=me(Np.bind(null,e,t,d,l,s,f,v,S,C,Y,Q,null,q,V)),qa(e,d,v,!H);return}}Np(e,t,d,l,s,f,v,S,C)}function Av(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 s=0;s<l.length;s++){var f=l[s],d=f.getSnapshot;f=f.value;try{if(!rn(d(),f))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 qa(e,t,l,s){t&=~Cc,t&=~gl,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var f=t;0<f;){var d=31-ut(f),v=1<<d;s[d]=-1,f&=~v}l!==0&&Ad(e,l,t)}function Bs(){return(We&6)===0?(cr(0),!1):!0}function zc(){if(Ue!==null){if(tt===0)var e=Ue.return;else e=Ue,la=sl=null,Qo(e),Kl=null,Xi=0,e=Ue;for(;e!==null;)Fm(e.alternate,e),e=e.return;Ue=null}}function ri(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Qv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),pa=0,zc(),ot=e,Ue=l=na(e.current,null),Ve=t,tt=0,cn=null,La=!1,ai=wi(e,t),Nc=!1,li=fn=Cc=gl=Ba=vt=0,en=ur=null,Ac=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var f=31-ut(s),d=1<<f;t|=e[f],s&=~d}return ma=t,ls(),l}function vp(e,t){ze=null,U.H=er,t===Fl||t===ds?(t=Dh(),tt=3):t===Lo?(t=Dh(),tt=4):tt=t===cc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,cn=t,Ue===null&&(vt=1,Ns(e,bn(t,e.current)))}function xp(){var e=un.current;return e===null?!0:(Ve&4194048)===Ve?En===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?e===En:!1}function bp(){var e=U.H;return U.H=er,e===null?er:e}function Sp(){var e=U.A;return U.A=Nv,e}function Us(){vt=4,La||(Ve&4194048)!==Ve&&un.current!==null||(ai=!0),(Ba&134217727)===0&&(gl&134217727)===0||ot===null||qa(ot,Ve,fn,!1)}function Rc(e,t,l){var s=We;We|=2;var f=bp(),d=Sp();(ot!==e||Ve!==t)&&(Ls=null,ri(e,t)),t=!1;var v=vt;e:do try{if(tt!==0&&Ue!==null){var S=Ue,C=cn;switch(tt){case 8:zc(),v=6;break e;case 3:case 2:case 9:case 6:un.current===null&&(t=!0);var H=tt;if(tt=0,cn=null,si(e,S,C,H),l&&ai){v=0;break e}break;default:H=tt,tt=0,cn=null,si(e,S,C,H)}}wv(),v=vt;break}catch(Y){vp(e,Y)}while(!0);return t&&e.shellSuspendCounter++,la=sl=null,We=s,U.H=f,U.A=d,Ue===null&&(ot=null,Ve=0,ls()),v}function wv(){for(;Ue!==null;)Tp(Ue)}function jv(e,t){var l=We;We|=2;var s=bp(),f=Sp();ot!==e||Ve!==t?(Ls=null,Ds=Gt()+500,ri(e,t)):ai=wi(e,t);e:do try{if(tt!==0&&Ue!==null){t=Ue;var d=cn;t:switch(tt){case 1:tt=0,cn=null,si(e,t,d,1);break;case 2:case 9:if(Rh(d)){tt=0,cn=null,kp(t);break}t=function(){tt!==2&&tt!==9||ot!==e||(tt=7),Zn(e)},d.then(t,t);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:Rh(d)?(tt=0,cn=null,kp(t)):(tt=0,cn=null,si(e,t,d,7));break;case 5:var v=null;switch(Ue.tag){case 26:v=Ue.memoizedState;case 5:case 27:var S=Ue;if(v?og(v):S.stateNode.complete){tt=0,cn=null;var C=S.sibling;if(C!==null)Ue=C;else{var H=S.return;H!==null?(Ue=H,Hs(H)):Ue=null}break t}}tt=0,cn=null,si(e,t,d,5);break;case 6:tt=0,cn=null,si(e,t,d,6);break;case 8:zc(),vt=6;break e;default:throw Error(r(462))}}Mv();break}catch(Y){vp(e,Y)}while(!0);return la=sl=null,U.H=s,U.A=f,We=l,Ue!==null?0:(ot=null,Ve=0,ls(),vt)}function Mv(){for(;Ue!==null&&!Yu();)Tp(Ue)}function Tp(e){var t=$m(e.alternate,e,ma);e.memoizedProps=e.pendingProps,t===null?Hs(e):Ue=t}function kp(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Im(l,t,t.pendingProps,t.type,void 0,Ve);break;case 11:t=Im(l,t,t.pendingProps,t.type.render,t.ref,Ve);break;case 5:Qo(t);default:Fm(l,t),t=Ue=Sh(t,ma),t=$m(l,t,ma)}e.memoizedProps=e.pendingProps,t===null?Hs(e):Ue=t}function si(e,t,l,s){la=sl=null,Qo(t),Kl=null,Xi=0;var f=t.return;try{if(vv(e,f,t,l,Ve)){vt=1,Ns(e,bn(l,e.current)),Ue=null;return}}catch(d){if(f!==null)throw Ue=f,d;vt=1,Ns(e,bn(l,e.current)),Ue=null;return}t.flags&32768?(Ye||s===1?e=!0:ai||(Ve&536870912)!==0?e=!1:(La=e=!0,(s===2||s===9||s===3||s===6)&&(s=un.current,s!==null&&s.tag===13&&(s.flags|=16384))),Ep(t,e)):Hs(t)}function Hs(e){var t=e;do{if((t.flags&32768)!==0){Ep(t,La);return}e=t.return;var l=Sv(t.alternate,t,ma);if(l!==null){Ue=l;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);vt===0&&(vt=5)}function Ep(e,t){do{var l=Tv(e.alternate,e);if(l!==null){l.flags&=32767,Ue=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ue=e;return}Ue=e=l}while(e!==null);vt=6,Ue=null}function Np(e,t,l,s,f,d,v,S,C){e.cancelPendingCommit=null;do qs();while(jt!==0);if((We&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(d=t.lanes|t.childLanes,d|=bo,c_(e,l,d,v,S,C),e===ot&&(Ue=ot=null,Ve=0),ii=t,Ha=e,pa=l,wc=d,jc=f,pp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Dv(Ne,function(){return Mp(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=U.T,U.T=null,f=J.p,J.p=2,v=We,We|=4;try{kv(e,t,l)}finally{We=v,J.p=f,U.T=s}}jt=1,Cp(),Ap(),wp()}}function Cp(){if(jt===1){jt=0;var e=Ha,t=ii,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var s=J.p;J.p=2;var f=We;We|=4;try{sp(t,e);var d=Yc,v=hh(e.containerInfo),S=d.focusedElem,C=d.selectionRange;if(v!==S&&S&&S.ownerDocument&&dh(S.ownerDocument.documentElement,S)){if(C!==null&&go(S)){var H=C.start,Y=C.end;if(Y===void 0&&(Y=H),"selectionStart"in S)S.selectionStart=H,S.selectionEnd=Math.min(Y,S.value.length);else{var Q=S.ownerDocument||document,q=Q&&Q.defaultView||window;if(q.getSelection){var V=q.getSelection(),me=S.textContent.length,ke=Math.min(C.start,me),st=C.end===void 0?ke:Math.min(C.end,me);!V.extend&&ke>st&&(v=st,st=ke,ke=v);var z=fh(S,ke),j=fh(S,st);if(z&&j&&(V.rangeCount!==1||V.anchorNode!==z.node||V.anchorOffset!==z.offset||V.focusNode!==j.node||V.focusOffset!==j.offset)){var B=Q.createRange();B.setStart(z.node,z.offset),V.removeAllRanges(),ke>st?(V.addRange(B),V.extend(j.node,j.offset)):(B.setEnd(j.node,j.offset),V.addRange(B))}}}}for(Q=[],V=S;V=V.parentNode;)V.nodeType===1&&Q.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Q.length;S++){var $=Q[S];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}Ps=!!Zc,Yc=Zc=null}finally{We=f,J.p=s,U.T=l}}e.current=t,jt=2}}function Ap(){if(jt===2){jt=0;var e=Ha,t=ii,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var s=J.p;J.p=2;var f=We;We|=4;try{np(e,t.alternate,t)}finally{We=f,J.p=s,U.T=l}}jt=3}}function wp(){if(jt===4||jt===3){jt=0,Xu();var e=Ha,t=ii,l=pa,s=pp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?jt=5:(jt=0,ii=Ha=null,jp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Ua=null),Ku(l),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(Zt,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=U.T,f=J.p,J.p=2,U.T=null;try{for(var d=e.onRecoverableError,v=0;v<s.length;v++){var S=s[v];d(S.value,{componentStack:S.stack})}}finally{U.T=t,J.p=f}}(pa&3)!==0&&qs(),Zn(e),f=e.pendingLanes,(l&261930)!==0&&(f&42)!==0?e===Mc?or++:(or=0,Mc=e):or=0,cr(0)}}function jp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zi(t)))}function qs(){return Cp(),Ap(),wp(),Mp()}function Mp(){if(jt!==5)return!1;var e=Ha,t=wc;wc=0;var l=Ku(pa),s=U.T,f=J.p;try{J.p=32>l?32:l,U.T=null,l=jc,jc=null;var d=Ha,v=pa;if(jt=0,ii=Ha=null,pa=0,(We&6)!==0)throw Error(r(331));var S=We;if(We|=4,dp(d.current),op(d,d.current,v,l),We=S,cr(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Zt,d)}catch{}return!0}finally{J.p=f,U.T=s,jp(e,t)}}function zp(e,t,l){t=bn(l,t),t=oc(e.stateNode,t,2),e=za(e,t,2),e!==null&&(ji(e,2),Zn(e))}function nt(e,t,l){if(e.tag===3)zp(e,e,l);else for(;t!==null;){if(t.tag===3){zp(t,e,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ua===null||!Ua.has(s))){e=bn(l,e),l=Rm(2),s=za(t,l,2),s!==null&&(Om(l,s,t,e),ji(s,2),Zn(s));break}}t=t.return}}function Oc(e,t,l){var s=e.pingCache;if(s===null){s=e.pingCache=new Cv;var f=new Set;s.set(t,f)}else f=s.get(t),f===void 0&&(f=new Set,s.set(t,f));f.has(l)||(Nc=!0,f.add(l),e=zv.bind(null,e,t,l),t.then(e,e))}function zv(e,t,l){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ot===e&&(Ve&l)===l&&(vt===4||vt===3&&(Ve&62914560)===Ve&&300>Gt()-Os?(We&2)===0&&ri(e,0):Cc|=l,li===Ve&&(li=0)),Zn(e)}function Rp(e,t){t===0&&(t=Cd()),e=ll(e,t),e!==null&&(ji(e,t),Zn(e))}function Rv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Rp(e,l)}function Ov(e,t){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(t),Rp(e,l)}function Dv(e,t){return Al(e,t)}var Is=null,ui=null,Dc=!1,Vs=!1,Lc=!1,Ia=0;function Zn(e){e!==ui&&e.next===null&&(ui===null?Is=ui=e:ui=ui.next=e),Vs=!0,Dc||(Dc=!0,Bv())}function cr(e,t){if(!Lc&&Vs){Lc=!0;do for(var l=!1,s=Is;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var d=0;else{var v=s.suspendedLanes,S=s.pingedLanes;d=(1<<31-ut(42|e)+1)-1,d&=f&~(v&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,Bp(s,d))}else d=Ve,d=Xr(s,s===ot?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||wi(s,d)||(l=!0,Bp(s,d));s=s.next}while(l);Lc=!1}}function Lv(){Op()}function Op(){Vs=Dc=!1;var e=0;Ia!==0&&$v()&&(e=Ia);for(var t=Gt(),l=null,s=Is;s!==null;){var f=s.next,d=Dp(s,t);d===0?(s.next=null,l===null?Is=f:l.next=f,f===null&&(ui=l)):(l=s,(e!==0||(d&3)!==0)&&(Vs=!0)),s=f}jt!==0&&jt!==5||cr(e),Ia!==0&&(Ia=0)}function Dp(e,t){for(var l=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var v=31-ut(d),S=1<<v,C=f[v];C===-1?((S&l)===0||(S&s)!==0)&&(f[v]=o_(S,t)):C<=t&&(e.expiredLanes|=S),d&=~S}if(t=ot,l=Ve,l=Xr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===t&&(tt===2||tt===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ai(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||wi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(s!==null&&Ai(s),Ku(l)){case 2:case 8:l=se;break;case 32:l=Ne;break;case 268435456:l=et;break;default:l=Ne}return s=Lp.bind(null,e),l=Al(l,s),e.callbackPriority=t,e.callbackNode=l,t}return s!==null&&s!==null&&Ai(s),e.callbackPriority=2,e.callbackNode=null,2}function Lp(e,t){if(jt!==0&&jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qs()&&e.callbackNode!==l)return null;var s=Ve;return s=Xr(e,e===ot?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(yp(e,s,t),Dp(e,Gt()),e.callbackNode!=null&&e.callbackNode===l?Lp.bind(null,e):null)}function Bp(e,t){if(qs())return null;yp(e,t,!0)}function Bv(){Fv(function(){(We&6)!==0?Al(X,Lv):Op()})}function Bc(){if(Ia===0){var e=$l;e===0&&(e=Gr,Gr<<=1,(Gr&261888)===0&&(Gr=256)),Ia=e}return Ia}function Up(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Kr(""+e)}function Hp(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 Uv(e,t,l,s,f){if(t==="submit"&&l&&l.stateNode===f){var d=Up((f[Ft]||null).action),v=s.submitter;v&&(t=(t=v[Ft]||null)?Up(t.formAction):v.getAttribute("formAction"),t!==null&&(d=t,v=null));var S=new es("action","action",null,s,f);e.push({event:S,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Ia!==0){var C=v?Hp(f,v):new FormData(f);ac(l,{pending:!0,data:C,method:f.method,action:d},null,C)}}else typeof d=="function"&&(S.preventDefault(),C=v?Hp(f,v):new FormData(f),ac(l,{pending:!0,data:C,method:f.method,action:d},d,C))},currentTarget:f}]})}}for(var Uc=0;Uc<xo.length;Uc++){var Hc=xo[Uc],Hv=Hc.toLowerCase(),qv=Hc[0].toUpperCase()+Hc.slice(1);Rn(Hv,"on"+qv)}Rn(gh,"onAnimationEnd"),Rn(yh,"onAnimationIteration"),Rn(_h,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(nv,"onTransitionRun"),Rn(av,"onTransitionStart"),Rn(lv,"onTransitionCancel"),Rn(vh,"onTransitionEnd"),Rl("onMouseEnter",["mouseout","mouseover"]),Rl("onMouseLeave",["mouseout","mouseover"]),Rl("onPointerEnter",["pointerout","pointerover"]),Rl("onPointerLeave",["pointerout","pointerover"]),el("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),el("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),el("onBeforeInput",["compositionend","keypress","textInput","paste"]),el("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fr="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(" "),Iv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fr));function qp(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],f=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var v=s.length-1;0<=v;v--){var S=s[v],C=S.instance,H=S.currentTarget;if(S=S.listener,C!==d&&f.isPropagationStopped())break e;d=S,f.currentTarget=H;try{d(f)}catch(Y){as(Y)}f.currentTarget=null,d=C}else for(v=0;v<s.length;v++){if(S=s[v],C=S.instance,H=S.currentTarget,S=S.listener,C!==d&&f.isPropagationStopped())break e;d=S,f.currentTarget=H;try{d(f)}catch(Y){as(Y)}f.currentTarget=null,d=C}}}}function He(e,t){var l=t[Ju];l===void 0&&(l=t[Ju]=new Set);var s=e+"__bubble";l.has(s)||(Ip(t,e,2,!1),l.add(s))}function qc(e,t,l){var s=0;t&&(s|=4),Ip(l,e,s,t)}var Gs="_reactListening"+Math.random().toString(36).slice(2);function Ic(e){if(!e[Gs]){e[Gs]=!0,Od.forEach(function(l){l!=="selectionchange"&&(Iv.has(l)||qc(l,!1,e),qc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gs]||(t[Gs]=!0,qc("selectionchange",!1,t))}}function Ip(e,t,l,s){switch(gg(t)){case 2:var f=p0;break;case 8:f=g0;break;default:f=nf}l=f.bind(null,t,l,e),f=void 0,!ro||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(t,l,{capture:!0,passive:f}):e.addEventListener(t,l,!0):f!==void 0?e.addEventListener(t,l,{passive:f}):e.addEventListener(t,l,!1)}function Vc(e,t,l,s,f){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var S=s.stateNode.containerInfo;if(S===f)break;if(v===4)for(v=s.return;v!==null;){var C=v.tag;if((C===3||C===4)&&v.stateNode.containerInfo===f)return;v=v.return}for(;S!==null;){if(v=jl(S),v===null)return;if(C=v.tag,C===5||C===6||C===26||C===27){s=d=v;continue e}S=S.parentNode}}s=s.return}Xd(function(){var H=d,Y=lo(l),Q=[];e:{var q=xh.get(e);if(q!==void 0){var V=es,me=e;switch(e){case"keypress":if(Pr(l)===0)break e;case"keydown":case"keyup":V=O_;break;case"focusin":me="focus",V=co;break;case"focusout":me="blur",V=co;break;case"beforeblur":case"afterblur":V=co;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":V=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=S_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=B_;break;case gh:case yh:case _h:V=E_;break;case vh:V=H_;break;case"scroll":case"scrollend":V=x_;break;case"wheel":V=I_;break;case"copy":case"cut":case"paste":V=C_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Jd;break;case"toggle":case"beforetoggle":V=G_}var ke=(t&4)!==0,st=!ke&&(e==="scroll"||e==="scrollend"),z=ke?q!==null?q+"Capture":null:q;ke=[];for(var j=H,B;j!==null;){var $=j;if(B=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||B===null||z===null||($=Ri(j,z),$!=null&&ke.push(dr(j,$,B))),st)break;j=j.return}0<ke.length&&(q=new V(q,me,null,l,Y),Q.push({event:q,listeners:ke}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",q&&l!==ao&&(me=l.relatedTarget||l.fromElement)&&(jl(me)||me[wl]))break e;if((V||q)&&(q=Y.window===Y?Y:(q=Y.ownerDocument)?q.defaultView||q.parentWindow:window,V?(me=l.relatedTarget||l.toElement,V=H,me=me?jl(me):null,me!==null&&(st=o(me),ke=me.tag,me!==st||ke!==5&&ke!==27&&ke!==6)&&(me=null)):(V=null,me=H),V!==me)){if(ke=Fd,$="onMouseLeave",z="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ke=Jd,$="onPointerLeave",z="onPointerEnter",j="pointer"),st=V==null?q:zi(V),B=me==null?q:zi(me),q=new ke($,j+"leave",V,l,Y),q.target=st,q.relatedTarget=B,$=null,jl(Y)===H&&(ke=new ke(z,j+"enter",me,l,Y),ke.target=B,ke.relatedTarget=st,$=ke),st=$,V&&me)t:{for(ke=Vv,z=V,j=me,B=0,$=z;$;$=ke($))B++;$=0;for(var be=j;be;be=ke(be))$++;for(;0<B-$;)z=ke(z),B--;for(;0<$-B;)j=ke(j),$--;for(;B--;){if(z===j||j!==null&&z===j.alternate){ke=z;break t}z=ke(z),j=ke(j)}ke=null}else ke=null;V!==null&&Vp(Q,q,V,ke,!1),me!==null&&st!==null&&Vp(Q,st,me,ke,!0)}}e:{if(q=H?zi(H):window,V=q.nodeName&&q.nodeName.toLowerCase(),V==="select"||V==="input"&&q.type==="file")var Fe=ih;else if(ah(q))if(rh)Fe=W_;else{Fe=J_;var ye=K_}else V=q.nodeName,!V||V.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?H&&no(H.elementType)&&(Fe=ih):Fe=P_;if(Fe&&(Fe=Fe(e,H))){lh(Q,Fe,l,Y);break e}ye&&ye(e,q,H),e==="focusout"&&H&&q.type==="number"&&H.memoizedProps.value!=null&&to(q,"number",q.value)}switch(ye=H?zi(H):window,e){case"focusin":(ah(ye)||ye.contentEditable==="true")&&(Hl=ye,yo=H,Ii=null);break;case"focusout":Ii=yo=Hl=null;break;case"mousedown":_o=!0;break;case"contextmenu":case"mouseup":case"dragend":_o=!1,mh(Q,l,Y);break;case"selectionchange":if(tv)break;case"keydown":case"keyup":mh(Q,l,Y)}var Oe;if(ho)e:{switch(e){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Ul?th(e,l)&&(Ge="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ge="onCompositionStart");Ge&&(Pd&&l.locale!=="ko"&&(Ul||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Ul&&(Oe=$d()):(Ea=Y,so="value"in Ea?Ea.value:Ea.textContent,Ul=!0)),ye=Zs(H,Ge),0<ye.length&&(Ge=new Kd(Ge,e,null,l,Y),Q.push({event:Ge,listeners:ye}),Oe?Ge.data=Oe:(Oe=nh(l),Oe!==null&&(Ge.data=Oe)))),(Oe=Y_?X_(e,l):$_(e,l))&&(Ge=Zs(H,"onBeforeInput"),0<Ge.length&&(ye=new Kd("onBeforeInput","beforeinput",null,l,Y),Q.push({event:ye,listeners:Ge}),ye.data=Oe)),Uv(Q,e,H,l,Y)}qp(Q,t)})}function dr(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Zs(e,t){for(var l=t+"Capture",s=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=Ri(e,l),f!=null&&s.unshift(dr(e,f,d)),f=Ri(e,t),f!=null&&s.push(dr(e,f,d))),e.tag===3)return s;e=e.return}return[]}function Vv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vp(e,t,l,s,f){for(var d=t._reactName,v=[];l!==null&&l!==s;){var S=l,C=S.alternate,H=S.stateNode;if(S=S.tag,C!==null&&C===s)break;S!==5&&S!==26&&S!==27||H===null||(C=H,f?(H=Ri(l,d),H!=null&&v.unshift(dr(l,H,C))):f||(H=Ri(l,d),H!=null&&v.push(dr(l,H,C)))),l=l.return}v.length!==0&&e.push({event:t,listeners:v})}var Gv=/\r\n?/g,Zv=/\u0000|\uFFFD/g;function Gp(e){return(typeof e=="string"?e:""+e).replace(Gv,`
49
+ `).replace(Zv,"")}function Zp(e,t){return t=Gp(t),Gp(e)===t}function rt(e,t,l,s,f,d){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Dl(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Dl(e,""+s);break;case"className":Qr(e,"class",s);break;case"tabIndex":Qr(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Qr(e,l,s);break;case"style":Zd(e,s,d);break;case"data":if(t!=="object"){Qr(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Kr(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="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 d=="function"&&(l==="formAction"?(t!=="input"&&rt(e,t,"name",f.name,f,null),rt(e,t,"formEncType",f.formEncType,f,null),rt(e,t,"formMethod",f.formMethod,f,null),rt(e,t,"formTarget",f.formTarget,f,null)):(rt(e,t,"encType",f.encType,f,null),rt(e,t,"method",f.method,f,null),rt(e,t,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Kr(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=ea);break;case"onScroll":s!=null&&He("scroll",e);break;case"onScrollEnd":s!=null&&He("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=Kr(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":He("beforetoggle",e),He("toggle",e),$r(e,"popover",s);break;case"xlinkActuate":Wn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Wn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Wn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Wn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Wn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Wn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":$r(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=__.get(l)||l,$r(e,l,s))}}function Gc(e,t,l,s,f,d){switch(l){case"style":Zd(e,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof s=="string"?Dl(e,s):(typeof s=="number"||typeof s=="bigint")&&Dl(e,""+s);break;case"onScroll":s!=null&&He("scroll",e);break;case"onScrollEnd":s!=null&&He("scrollend",e);break;case"onClick":s!=null&&(e.onclick=ea);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dd.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),t=l.slice(2,f?l.length-7:void 0),d=e[Ft]||null,d=d!=null?d[l]:null,typeof d=="function"&&e.removeEventListener(t,d,f),typeof s=="function")){typeof d!="function"&&d!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,s,f);break e}l in e?e[l]=s:s===!0?e.setAttribute(l,""):$r(e,l,s)}}}function Ut(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":He("error",e),He("load",e);var s=!1,f=!1,d;for(d in l)if(l.hasOwnProperty(d)){var v=l[d];if(v!=null)switch(d){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:rt(e,t,d,v,l,null)}}f&&rt(e,t,"srcSet",l.srcSet,l,null),s&&rt(e,t,"src",l.src,l,null);return;case"input":He("invalid",e);var S=d=v=f=null,C=null,H=null;for(s in l)if(l.hasOwnProperty(s)){var Y=l[s];if(Y!=null)switch(s){case"name":f=Y;break;case"type":v=Y;break;case"checked":C=Y;break;case"defaultChecked":H=Y;break;case"value":d=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,t));break;default:rt(e,t,s,Y,l,null)}}qd(e,d,S,C,H,v,f,!1);return;case"select":He("invalid",e),s=v=d=null;for(f in l)if(l.hasOwnProperty(f)&&(S=l[f],S!=null))switch(f){case"value":d=S;break;case"defaultValue":v=S;break;case"multiple":s=S;default:rt(e,t,f,S,l,null)}t=d,l=v,e.multiple=!!s,t!=null?Ol(e,!!s,t,!1):l!=null&&Ol(e,!!s,l,!0);return;case"textarea":He("invalid",e),d=f=s=null;for(v in l)if(l.hasOwnProperty(v)&&(S=l[v],S!=null))switch(v){case"value":s=S;break;case"defaultValue":f=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:rt(e,t,v,S,l,null)}Vd(e,s,f,d);return;case"option":for(C in l)if(l.hasOwnProperty(C)&&(s=l[C],s!=null))switch(C){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:rt(e,t,C,s,l,null)}return;case"dialog":He("beforetoggle",e),He("toggle",e),He("cancel",e),He("close",e);break;case"iframe":case"object":He("load",e);break;case"video":case"audio":for(s=0;s<fr.length;s++)He(fr[s],e);break;case"image":He("error",e),He("load",e);break;case"details":He("toggle",e);break;case"embed":case"source":case"link":He("error",e),He("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(H in l)if(l.hasOwnProperty(H)&&(s=l[H],s!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:rt(e,t,H,s,l,null)}return;default:if(no(t)){for(Y in l)l.hasOwnProperty(Y)&&(s=l[Y],s!==void 0&&Gc(e,t,Y,s,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(s=l[S],s!=null&&rt(e,t,S,s,l,null))}function Yv(e,t,l,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,v=null,S=null,C=null,H=null,Y=null;for(V in l){var Q=l[V];if(l.hasOwnProperty(V)&&Q!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":C=Q;default:s.hasOwnProperty(V)||rt(e,t,V,null,s,Q)}}for(var q in s){var V=s[q];if(Q=l[q],s.hasOwnProperty(q)&&(V!=null||Q!=null))switch(q){case"type":d=V;break;case"name":f=V;break;case"checked":H=V;break;case"defaultChecked":Y=V;break;case"value":v=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,t));break;default:V!==Q&&rt(e,t,q,V,s,Q)}}eo(e,v,S,C,H,Y,d,f);return;case"select":V=v=S=q=null;for(d in l)if(C=l[d],l.hasOwnProperty(d)&&C!=null)switch(d){case"value":break;case"multiple":V=C;default:s.hasOwnProperty(d)||rt(e,t,d,null,s,C)}for(f in s)if(d=s[f],C=l[f],s.hasOwnProperty(f)&&(d!=null||C!=null))switch(f){case"value":q=d;break;case"defaultValue":S=d;break;case"multiple":v=d;default:d!==C&&rt(e,t,f,d,s,C)}t=S,l=v,s=V,q!=null?Ol(e,!!l,q,!1):!!s!=!!l&&(t!=null?Ol(e,!!l,t,!0):Ol(e,!!l,l?[]:"",!1));return;case"textarea":V=q=null;for(S in l)if(f=l[S],l.hasOwnProperty(S)&&f!=null&&!s.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:rt(e,t,S,null,s,f)}for(v in s)if(f=s[v],d=l[v],s.hasOwnProperty(v)&&(f!=null||d!=null))switch(v){case"value":q=f;break;case"defaultValue":V=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==d&&rt(e,t,v,f,s,d)}Id(e,q,V);return;case"option":for(var me in l)if(q=l[me],l.hasOwnProperty(me)&&q!=null&&!s.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:rt(e,t,me,null,s,q)}for(C in s)if(q=s[C],V=l[C],s.hasOwnProperty(C)&&q!==V&&(q!=null||V!=null))switch(C){case"selected":e.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:rt(e,t,C,q,s,V)}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 ke in l)q=l[ke],l.hasOwnProperty(ke)&&q!=null&&!s.hasOwnProperty(ke)&&rt(e,t,ke,null,s,q);for(H in s)if(q=s[H],V=l[H],s.hasOwnProperty(H)&&q!==V&&(q!=null||V!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:rt(e,t,H,q,s,V)}return;default:if(no(t)){for(var st in l)q=l[st],l.hasOwnProperty(st)&&q!==void 0&&!s.hasOwnProperty(st)&&Gc(e,t,st,void 0,s,q);for(Y in s)q=s[Y],V=l[Y],!s.hasOwnProperty(Y)||q===V||q===void 0&&V===void 0||Gc(e,t,Y,q,s,V);return}}for(var z in l)q=l[z],l.hasOwnProperty(z)&&q!=null&&!s.hasOwnProperty(z)&&rt(e,t,z,null,s,q);for(Q in s)q=s[Q],V=l[Q],!s.hasOwnProperty(Q)||q===V||q==null&&V==null||rt(e,t,Q,q,s,V)}function Yp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var f=l[s],d=f.transferSize,v=f.initiatorType,S=f.duration;if(d&&S&&Yp(v)){for(v=0,S=f.responseEnd,s+=1;s<l.length;s++){var C=l[s],H=C.startTime;if(H>S)break;var Y=C.transferSize,Q=C.initiatorType;Y&&Yp(Q)&&(C=C.responseEnd,v+=Y*(C<S?1:(S-H)/(C-H)))}if(--s,t+=8*(d+v)/(f.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 Zc=null,Yc=null;function Ys(e){return e.nodeType===9?e:e.ownerDocument}function Xp(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 $p(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 Xc(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 $c=null;function $v(){var e=window.event;return e&&e.type==="popstate"?e===$c?!1:($c=e,!0):($c=null,!1)}var Qp=typeof setTimeout=="function"?setTimeout:void 0,Qv=typeof clearTimeout=="function"?clearTimeout:void 0,Fp=typeof Promise=="function"?Promise:void 0,Fv=typeof queueMicrotask=="function"?queueMicrotask:typeof Fp<"u"?function(e){return Fp.resolve(null).then(e).catch(Kv)}:Qp;function Kv(e){setTimeout(function(){throw e})}function Va(e){return e==="head"}function Kp(e,t){var l=t,s=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(s===0){e.removeChild(f),di(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")hr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,hr(l);for(var d=l.firstChild;d;){var v=d.nextSibling,S=d.nodeName;d[Mi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=v}}else l==="body"&&hr(e.ownerDocument.body);l=f}while(l);di(t)}function Jp(e,t){var l=e;e=0;do{var s=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||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=s}while(l)}function Qc(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":Qc(l),Pu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Jv(e,t,l,s){for(;e.nodeType===1;){var f=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Mi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Nn(e.nextSibling),e===null)break}return null}function Pv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Nn(e.nextSibling),e===null))return null;return e}function Pp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Nn(e.nextSibling),e===null))return null;return e}function Fc(e){return e.data==="$?"||e.data==="$~"}function Kc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Wv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Nn(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 Jc=null;function Wp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Nn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function eg(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 tg(e,t,l){switch(t=Ys(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function hr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pu(e)}var Cn=new Map,ng=new Set;function Xs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ga=J.d;J.d={f:e0,r:t0,D:n0,C:a0,L:l0,m:i0,X:s0,S:r0,M:u0};function e0(){var e=ga.f(),t=Bs();return e||t}function t0(e){var t=Ml(e);t!==null&&t.tag===5&&t.type==="form"?vm(t):ga.r(e)}var oi=typeof document>"u"?null:document;function ag(e,t,l){var s=oi;if(s&&typeof t=="string"&&t){var f=vn(t);f='link[rel="'+e+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),ng.has(f)||(ng.add(f),e={rel:e,crossOrigin:l,href:t},s.querySelector(f)===null&&(t=s.createElement("link"),Ut(t,"link",e),zt(t),s.head.appendChild(t)))}}function n0(e){ga.D(e),ag("dns-prefetch",e,null)}function a0(e,t){ga.C(e,t),ag("preconnect",e,t)}function l0(e,t,l){ga.L(e,t,l);var s=oi;if(s&&e&&t){var f='link[rel="preload"][as="'+vn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+vn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+vn(l.imageSizes)+'"]')):f+='[href="'+vn(e)+'"]';var d=f;switch(t){case"style":d=ci(e);break;case"script":d=fi(e)}Cn.has(d)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Cn.set(d,e),s.querySelector(f)!==null||t==="style"&&s.querySelector(mr(d))||t==="script"&&s.querySelector(pr(d))||(t=s.createElement("link"),Ut(t,"link",e),zt(t),s.head.appendChild(t)))}}function i0(e,t){ga.m(e,t);var l=oi;if(l&&e){var s=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+vn(s)+'"][href="'+vn(e)+'"]',d=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=fi(e)}if(!Cn.has(d)&&(e=y({rel:"modulepreload",href:e},t),Cn.set(d,e),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(pr(d)))return}s=l.createElement("link"),Ut(s,"link",e),zt(s),l.head.appendChild(s)}}}function r0(e,t,l){ga.S(e,t,l);var s=oi;if(s&&e){var f=zl(s).hoistableStyles,d=ci(e);t=t||"default";var v=f.get(d);if(!v){var S={loading:0,preload:null};if(v=s.querySelector(mr(d)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Cn.get(d))&&Pc(e,l);var C=v=s.createElement("link");zt(C),Ut(C,"link",e),C._p=new Promise(function(H,Y){C.onload=H,C.onerror=Y}),C.addEventListener("load",function(){S.loading|=1}),C.addEventListener("error",function(){S.loading|=2}),S.loading|=4,$s(v,t,s)}v={type:"stylesheet",instance:v,count:1,state:S},f.set(d,v)}}}function s0(e,t){ga.X(e,t);var l=oi;if(l&&e){var s=zl(l).hoistableScripts,f=fi(e),d=s.get(f);d||(d=l.querySelector(pr(f)),d||(e=y({src:e,async:!0},t),(t=Cn.get(f))&&Wc(e,t),d=l.createElement("script"),zt(d),Ut(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function u0(e,t){ga.M(e,t);var l=oi;if(l&&e){var s=zl(l).hoistableScripts,f=fi(e),d=s.get(f);d||(d=l.querySelector(pr(f)),d||(e=y({src:e,async:!0,type:"module"},t),(t=Cn.get(f))&&Wc(e,t),d=l.createElement("script"),zt(d),Ut(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function lg(e,t,l,s){var f=(f=oe.current)?Xs(f):null;if(!f)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ci(l.href),l=zl(f).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ci(l.href);var d=zl(f).hoistableStyles,v=d.get(e);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,v),(d=f.querySelector(mr(e)))&&!d._p&&(v.instance=d,v.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),d||o0(f,e,l,v.state))),t&&s===null)throw Error(r(528,""));return v}if(t&&s!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=fi(l),l=zl(f).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ci(e){return'href="'+vn(e)+'"'}function mr(e){return'link[rel="stylesheet"]['+e+"]"}function ig(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function o0(e,t,l,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Ut(t,"link",l),zt(t),e.head.appendChild(t))}function fi(e){return'[src="'+vn(e)+'"]'}function pr(e){return"script[async]"+e}function rg(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+vn(l.href)+'"]');if(s)return t.instance=s,zt(s),s;var f=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),zt(s),Ut(s,"style",f),$s(s,l.precedence,e),t.instance=s;case"stylesheet":f=ci(l.href);var d=e.querySelector(mr(f));if(d)return t.state.loading|=4,t.instance=d,zt(d),d;s=ig(l),(f=Cn.get(f))&&Pc(s,f),d=(e.ownerDocument||e).createElement("link"),zt(d);var v=d;return v._p=new Promise(function(S,C){v.onload=S,v.onerror=C}),Ut(d,"link",s),t.state.loading|=4,$s(d,l.precedence,e),t.instance=d;case"script":return d=fi(l.src),(f=e.querySelector(pr(d)))?(t.instance=f,zt(f),f):(s=l,(f=Cn.get(d))&&(s=y({},l),Wc(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),zt(f),Ut(f,"link",s),e.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,$s(s,l.precedence,e));return t.instance}function $s(e,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,d=f,v=0;v<s.length;v++){var S=s[v];if(S.dataset.precedence===t)d=S;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Pc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Wc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Qs=null;function sg(e,t,l){if(Qs===null){var s=new Map,f=Qs=new Map;f.set(l,s)}else f=Qs,s=f.get(l),s||(s=new Map,f.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),f=0;f<l.length;f++){var d=l[f];if(!(d[Mi]||d[Ot]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var v=d.getAttribute(t)||"";v=e+v;var S=s.get(v);S?S.push(d):s.set(v,[d])}}return s}function ug(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function c0(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 og(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(e,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=ci(s.href),d=t.querySelector(mr(f));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Fs.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=d,zt(d);return}d=t.ownerDocument||t,s=ig(s),(f=Cn.get(f))&&Pc(s,f),d=d.createElement("link"),zt(d);var v=d;v._p=new Promise(function(S,C){v.onload=S,v.onerror=C}),Ut(d,"link",s),l.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Fs.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ef=0;function d0(e,t){return e.stylesheets&&e.count===0&&Js(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var s=setTimeout(function(){if(e.stylesheets&&Js(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&ef===0&&(ef=62500*Xv());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Js(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>ef?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function Fs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Js(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ks=null;function Js(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ks=new Map,t.forEach(h0,e),Ks=null,Fs.call(e))}function h0(e,t){if(!(t.state.loading&4)){var l=Ks.get(e);if(l)var s=l.get(null);else{l=new Map,Ks.set(e,l);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var v=f[d];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),s=v)}s&&l.set(null,s)}f=t.instance,v=f.getAttribute("data-precedence"),d=l.get(v)||s,d===s&&l.set(null,f),l.set(v,f),this.count++,s=Fs.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),t.state.loading|=4}}var gr={$$typeof:O,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function m0(e,t,l,s,f,d,v,S,C){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=Qu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qu(0),this.hiddenUpdates=Qu(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function cg(e,t,l,s,f,d,v,S,C,H,Y,Q){return e=new m0(e,t,l,v,C,H,Y,Q,S),t=1,d===!0&&(t|=24),d=sn(3,null,null,t),e.current=d,d.stateNode=e,t=Ro(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:s,isDehydrated:l,cache:t},Bo(d),e}function fg(e){return e?(e=Vl,e):Vl}function dg(e,t,l,s,f,d){f=fg(f),s.context===null?s.context=f:s.pendingContext=f,s=Ma(t),s.payload={element:l},d=d===void 0?null:d,d!==null&&(s.callback=d),l=za(e,s,t),l!==null&&(tn(l,e,t),Qi(l,e,t))}function hg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function tf(e,t){hg(e,t),(e=e.alternate)&&hg(e,t)}function mg(e){if(e.tag===13||e.tag===31){var t=ll(e,67108864);t!==null&&tn(t,e,67108864),tf(e,67108864)}}function pg(e){if(e.tag===13||e.tag===31){var t=dn();t=Fu(t);var l=ll(e,t);l!==null&&tn(l,e,t),tf(e,t)}}var Ps=!0;function p0(e,t,l,s){var f=U.T;U.T=null;var d=J.p;try{J.p=2,nf(e,t,l,s)}finally{J.p=d,U.T=f}}function g0(e,t,l,s){var f=U.T;U.T=null;var d=J.p;try{J.p=8,nf(e,t,l,s)}finally{J.p=d,U.T=f}}function nf(e,t,l,s){if(Ps){var f=af(s);if(f===null)Vc(e,t,s,Ws,l),yg(e,s);else if(_0(f,e,t,l,s))s.stopPropagation();else if(yg(e,s),t&4&&-1<y0.indexOf(e)){for(;f!==null;){var d=Ml(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=Wa(d.pendingLanes);if(v!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var C=1<<31-ut(v);S.entanglements[1]|=C,v&=~C}Zn(d),(We&6)===0&&(Ds=Gt()+500,cr(0))}}break;case 31:case 13:S=ll(d,2),S!==null&&tn(S,d,2),Bs(),tf(d,2)}if(d=af(s),d===null&&Vc(e,t,s,Ws,l),d===f)break;f=d}f!==null&&s.stopPropagation()}else Vc(e,t,s,null,l)}}function af(e){return e=lo(e),lf(e)}var Ws=null;function lf(e){if(Ws=null,e=jl(e),e!==null){var t=o(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=c(t),e!==null)return e;e=null}else if(l===31){if(e=h(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 Ws=e,null}function gg(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($u()){case X:return 2;case se:return 8;case Ne:case Be:return 32;case et:return 268435456;default:return 32}default:return 32}}var rf=!1,Ga=null,Za=null,Ya=null,yr=new Map,_r=new Map,Xa=[],y0="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 yg(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":yr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_r.delete(t.pointerId)}}function vr(e,t,l,s,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:d,targetContainers:[f]},t!==null&&(t=Ml(t),t!==null&&mg(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),e)}function _0(e,t,l,s,f){switch(t){case"focusin":return Ga=vr(Ga,e,t,l,s,f),!0;case"dragenter":return Za=vr(Za,e,t,l,s,f),!0;case"mouseover":return Ya=vr(Ya,e,t,l,s,f),!0;case"pointerover":var d=f.pointerId;return yr.set(d,vr(yr.get(d)||null,e,t,l,s,f)),!0;case"gotpointercapture":return d=f.pointerId,_r.set(d,vr(_r.get(d)||null,e,t,l,s,f)),!0}return!1}function _g(e){var t=jl(e.target);if(t!==null){var l=o(t);if(l!==null){if(t=l.tag,t===13){if(t=c(l),t!==null){e.blockedOn=t,zd(e.priority,function(){pg(l)});return}}else if(t===31){if(t=h(l),t!==null){e.blockedOn=t,zd(e.priority,function(){pg(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 eu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=af(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);ao=s,l.target.dispatchEvent(s),ao=null}else return t=Ml(l),t!==null&&mg(t),e.blockedOn=l,!1;t.shift()}return!0}function vg(e,t,l){eu(e)&&l.delete(t)}function v0(){rf=!1,Ga!==null&&eu(Ga)&&(Ga=null),Za!==null&&eu(Za)&&(Za=null),Ya!==null&&eu(Ya)&&(Ya=null),yr.forEach(vg),_r.forEach(vg)}function tu(e,t){e.blockedOn===t&&(e.blockedOn=null,rf||(rf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,v0)))}var nu=null;function xg(e){nu!==e&&(nu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){nu===e&&(nu=null);for(var t=0;t<e.length;t+=3){var l=e[t],s=e[t+1],f=e[t+2];if(typeof s!="function"){if(lf(s||l)===null)continue;break}var d=Ml(l);d!==null&&(e.splice(t,3),t-=3,ac(d,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function di(e){function t(C){return tu(C,e)}Ga!==null&&tu(Ga,e),Za!==null&&tu(Za,e),Ya!==null&&tu(Ya,e),yr.forEach(t),_r.forEach(t);for(var l=0;l<Xa.length;l++){var s=Xa[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Xa.length&&(l=Xa[0],l.blockedOn===null);)_g(l),l.blockedOn===null&&Xa.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var f=l[s],d=l[s+1],v=f[Ft]||null;if(typeof d=="function")v||xg(l);else if(v){var S=null;if(d&&d.hasAttribute("formAction")){if(f=d,v=d[Ft]||null)S=v.formAction;else if(lf(f)!==null)continue}else S=v.action;typeof S=="function"?l[s+1]=S:(l.splice(s,3),s-=3),xg(l)}}}function bg(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(v){return f=v})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function sf(e){this._internalRoot=e}au.prototype.render=sf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,s=dn();dg(l,s,e,t,null,null)},au.prototype.unmount=sf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dg(e.current,2,null,e,null,null),Bs(),t[wl]=null}};function au(e){this._internalRoot=e}au.prototype.unstable_scheduleHydration=function(e){if(e){var t=Md();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Xa.length&&t!==0&&t<Xa[l].priority;l++);Xa.splice(l,0,e),l===0&&_g(e)}};var Sg=a.version;if(Sg!=="19.2.4")throw Error(r(527,Sg,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var x0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{Zt=lu.inject(x0),wt=lu}catch{}}return br.createRoot=function(e,t){if(!u(e))throw Error(r(299));var l=!1,s="",f=wm,d=jm,v=Mm;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=cg(e,1,!1,null,null,l,s,null,f,d,v,bg),e[wl]=t.current,Ic(e),new sf(t)},br.hydrateRoot=function(e,t,l){if(!u(e))throw Error(r(299));var s=!1,f="",d=wm,v=jm,S=Mm,C=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.formState!==void 0&&(C=l.formState)),t=cg(e,1,!0,t,l??null,s,f,C,d,v,S,bg),t.context=fg(null),l=t.current,s=dn(),s=Fu(s),f=Ma(s),f.callback=null,za(l,f,s),l=s,t.current.lanes=l,ji(t,l),Zn(t),e[wl]=t.current,Ic(e),new au(t)},br.version="19.2.4",br}var zg;function M0(){if(zg)return cf.exports;zg=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(a){console.error(a)}}return n(),cf.exports=j0(),cf.exports}var z0=M0();const R0=zu(z0);/**
50
+ * @license lucide-react v0.575.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const qy=(...n)=>n.filter((a,i,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===i).join(" ").trim();/**
55
+ * @license lucide-react v0.575.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const O0=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
60
+ * @license lucide-react v0.575.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const D0=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,r)=>r?r.toUpperCase():i.toLowerCase());/**
65
+ * @license lucide-react v0.575.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const Rg=n=>{const a=D0(n);return a.charAt(0).toUpperCase()+a.slice(1)};/**
70
+ * @license lucide-react v0.575.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */var L0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
75
+ * @license lucide-react v0.575.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const B0=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
80
+ * @license lucide-react v0.575.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const U0=I.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:c,...h},m)=>I.createElement("svg",{ref:m,...L0,width:a,height:a,stroke:n,strokeWidth:r?Number(i)*24/Number(a):i,className:qy("lucide",u),...!o&&!B0(h)&&{"aria-hidden":"true"},...h},[...c.map(([p,_])=>I.createElement(p,_)),...Array.isArray(o)?o:[o]]));/**
85
+ * @license lucide-react v0.575.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const ft=(n,a)=>{const i=I.forwardRef(({className:r,...u},o)=>I.createElement(U0,{ref:o,iconNode:a,className:qy(`lucide-${O0(Rg(n))}`,`lucide-${n}`,r),...u}));return i.displayName=Rg(n),i};/**
90
+ * @license lucide-react v0.575.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const H0=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],q0=ft("activity",H0);/**
95
+ * @license lucide-react v0.575.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const I0=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Iy=ft("bot",I0);/**
100
+ * @license lucide-react v0.575.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const V0=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],G0=ft("brain-circuit",V0);/**
105
+ * @license lucide-react v0.575.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const Z0=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Y0=ft("bug",Z0);/**
110
+ * @license lucide-react v0.575.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const X0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vy=ft("check",X0);/**
115
+ * @license lucide-react v0.575.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const $0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vi=ft("chevron-down",$0);/**
120
+ * @license lucide-react v0.575.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const Q0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Mr=ft("chevron-right",Q0);/**
125
+ * @license lucide-react v0.575.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const F0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],K0=ft("circle",F0);/**
130
+ * @license lucide-react v0.575.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const J0=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],P0=ft("clipboard-check",J0);/**
135
+ * @license lucide-react v0.575.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const W0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Gy=ft("copy",W0);/**
140
+ * @license lucide-react v0.575.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const ex=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],tx=ft("corner-down-right",ex);/**
145
+ * @license lucide-react v0.575.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const nx=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],ax=ft("cpu",nx);/**
150
+ * @license lucide-react v0.575.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const lx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ix=ft("file-text",lx);/**
155
+ * @license lucide-react v0.575.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const rx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],sx=ft("globe",rx);/**
160
+ * @license lucide-react v0.575.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const ux=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],ox=ft("hexagon",ux);/**
165
+ * @license lucide-react v0.575.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const cx=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],fx=ft("key-round",cx);/**
170
+ * @license lucide-react v0.575.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const dx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],hx=ft("loader-circle",dx);/**
175
+ * @license lucide-react v0.575.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const mx=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],px=ft("message-square",mx);/**
180
+ * @license lucide-react v0.575.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const gx=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ld=ft("refresh-cw",gx);/**
185
+ * @license lucide-react v0.575.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const yx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_x=ft("shield-check",yx);/**
190
+ * @license lucide-react v0.575.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const vx=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],xx=ft("trash-2",vx);/**
195
+ * @license lucide-react v0.575.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const bx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],id=ft("triangle-alert",bx);/**
200
+ * @license lucide-react v0.575.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const Sx=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],Zy=ft("unplug",Sx);/**
205
+ * @license lucide-react v0.575.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const Tx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],kx=ft("user",Tx);/**
210
+ * @license lucide-react v0.575.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const Ex=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Tl=ft("wrench",Ex);/**
215
+ * @license lucide-react v0.575.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const Nx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ru=ft("x",Nx);/**
220
+ * @license lucide-react v0.575.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const Cx=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Yy=ft("zap",Cx),Ax="_panel_1gqyj_1",wx="_resizeHandle_1gqyj_11",jx="_header_1gqyj_22",Mx="_headerLeft_1gqyj_32",zx="_headerTitle_1gqyj_38",Rx="_headerActions_1gqyj_44",Ox="_collapseToggle_1gqyj_50",Dx="_iconBtn_1gqyj_66",Lx="_spinning_1gqyj_86",Bx="_status_1gqyj_98",Ux="_body_1gqyj_103",Ln={panel:Ax,resizeHandle:wx,header:jx,headerLeft:Mx,headerTitle:zx,headerActions:Rx,collapseToggle:Ox,iconBtn:Dx,spinning:Lx,status:Bx,body:Ux},Hx=300,qx=150;function rd({title:n,status:a,onRefresh:i,isRefreshing:r,titleExtra:u,defaultCollapsed:o=!1,defaultHeight:c=Hx,children:h}){const[m,p]=I.useState(o),[_,y]=I.useState(c),x=I.useRef(o);I.useEffect(()=>{o!==x.current&&(x.current=o,p(o))},[o]);const b=I.useRef(null),k=I.useCallback(w=>{w.preventDefault();const R=w.clientY,T=_,M=K=>{const te=R-K.clientY;y(Math.max(qx,T+te))},O=()=>{b.current=null,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",O),document.body.style.cursor="",document.body.style.userSelect=""};b.current={move:M,up:O},document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",M),document.addEventListener("mouseup",O)},[_]);return I.useEffect(()=>()=>{b.current&&(document.removeEventListener("mousemove",b.current.move),document.removeEventListener("mouseup",b.current.up),document.body.style.cursor="",document.body.style.userSelect="")},[]),g.jsxs("div",{className:Ln.panel,style:{height:m?"auto":_},children:[!m&&g.jsx("div",{className:Ln.resizeHandle,onMouseDown:k,role:"separator","aria-label":"Resize panel"}),g.jsxs("div",{className:Ln.header,children:[g.jsxs("div",{className:Ln.headerLeft,children:[g.jsxs("button",{className:Ln.collapseToggle,onClick:()=>p(w=>!w),"aria-label":"Toggle panel",children:[m?g.jsx(Mr,{size:14}):g.jsx(vi,{size:14}),g.jsx("span",{className:Ln.headerTitle,children:n}),u]}),a&&g.jsx("span",{className:Ln.status,children:a})]}),g.jsx("div",{className:Ln.headerActions,children:i&&g.jsx("button",{className:Ln.iconBtn,onClick:i,disabled:r,title:"Refresh","aria-label":`Refresh ${n}`,children:g.jsx(ld,{size:12,className:r?Ln.spinning:""})})})]}),!m&&g.jsx("div",{className:Ln.body,children:h})]})}const Ix="_error_1di92_1",Vx="_version_1di92_7",Gx="_body_1di92_13",Zx="_cardName_1di92_17",Yx="_cardDesc_1di92_24",Xx="_section_1di92_30",$x="_sectionLabel_1di92_34",Qx="_tags_1di92_43",Fx="_tag_1di92_43",Kx="_skillList_1di92_58",Jx="_skillItem_1di92_64",Px="_skillName_1di92_73",Wx="_skillDesc_1di92_80",eb="_skillTags_1di92_85",Mt={error:Ix,version:Vx,body:Gx,cardName:Zx,cardDesc:Yx,section:Xx,sectionLabel:$x,tags:Qx,tag:Fx,skillList:Kx,skillItem:Jx,skillName:Px,skillDesc:Wx,skillTags:eb};function tb({card:n,isLoading:a,error:i,onRefresh:r}){var u,o,c;return!n&&!i&&!a?null:g.jsxs(rd,{title:"A2A Agent Card",titleExtra:n!=null&&n.version?g.jsxs("span",{className:Mt.version,children:["v",n.version]}):void 0,onRefresh:r,isRefreshing:a,children:[i&&g.jsx("div",{className:Mt.error,children:i}),n&&g.jsxs("div",{className:Mt.body,children:[n.name&&g.jsx("div",{className:Mt.cardName,children:n.name}),n.description&&g.jsx("div",{className:Mt.cardDesc,children:n.description}),g.jsxs("div",{className:Mt.section,children:[g.jsx("div",{className:Mt.sectionLabel,children:"Capabilities"}),g.jsxs("div",{className:Mt.tags,children:[((u=n.capabilities)==null?void 0:u.streaming)&&g.jsx("span",{className:Mt.tag,children:"streaming"}),(o=n.defaultInputModes)==null?void 0:o.map(h=>g.jsxs("span",{className:Mt.tag,children:["input: ",h]},`in-${h}`)),(c=n.defaultOutputModes)==null?void 0:c.map(h=>g.jsxs("span",{className:Mt.tag,children:["output: ",h]},`out-${h}`))]})]}),n.skills&&n.skills.length>0&&g.jsxs("div",{className:Mt.section,children:[g.jsxs("div",{className:Mt.sectionLabel,children:["Skills (",n.skills.length,")"]}),g.jsx("div",{className:Mt.skillList,children:n.skills.map((h,m)=>g.jsxs("div",{className:Mt.skillItem,children:[g.jsx("span",{className:Mt.skillName,children:h.name??h.id??`Skill ${m+1}`}),h.description&&g.jsx("span",{className:Mt.skillDesc,children:h.description}),h.tags&&h.tags.length>0&&g.jsx("div",{className:Mt.skillTags,children:h.tags.map(p=>g.jsx("span",{className:Mt.tag,children:p},p))})]},h.id??m))})]})]})]})}const nb="_area_1u9gx_1",ab="_row_1u9gx_8",lb="_textarea_1u9gx_16",ib="_sendBtn_1u9gx_45",iu={area:nb,row:ab,textarea:lb,sendBtn:ib};function rb({isStreaming:n,isStarting:a,onSend:i}){const[r,u]=I.useState(""),o=I.useRef(null),c=!n&&!!r.trim(),h=_=>{u(_.target.value);const y=_.target;y.style.height="auto",y.style.height=Math.min(y.scrollHeight,160)+"px"},m=()=>{if(!c)return;const _=r.trim();u(""),o.current&&(o.current.style.height="auto"),i(_)},p=_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),m())};return g.jsx("div",{className:iu.area,children:g.jsxs("div",{className:iu.row,children:[g.jsx("textarea",{className:iu.textarea,ref:o,value:r,onChange:h,onKeyDown:p,placeholder:a?"Agent is starting...":"Enter a test prompt...",disabled:a,rows:1,autoFocus:!0}),g.jsx("button",{className:iu.sendBtn,onClick:m,disabled:!c,"aria-label":"Send message",children:g.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),g.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})})]})})}const sb="_toolbar_m380z_1",ub="_agentSection_m380z_11",ob="_agentPicker_m380z_18",cb="_clickable_m380z_30",fb="_agentLabel_m380z_44",db="_agentName_m380z_49",hb="_starting_m380z_53",mb="_chevron_m380z_59",pb="_dropdown_m380z_64",gb="_dropdownItem_m380z_77",yb="_active_m380z_101",_b="_hasError_m380z_105",vb="_dropdownName_m380z_110",xb="_statusBadge_m380z_115",bb="_status_running_m380z_125",Sb="_status_starting_m380z_130",Tb="_status_error_m380z_135",kb="_status_idle_m380z_140",Eb="_dropdownMeta_m380z_145",Nb="_rightSection_m380z_150",Cb="_errorText_m380z_157",Ab="_sessionBadge_m380z_162",wb="_newSessionBtn_m380z_183",jb="_confirmOverlay_m380z_201",Mb="_confirmModal_m380z_211",zb="_confirmTitle_m380z_220",Rb="_confirmMessage_m380z_227",Ob="_confirmActions_m380z_234",Db="_confirmBtn_m380z_240",Lb="_confirmBtnPrimary_m380z_255",at={toolbar:sb,agentSection:ub,agentPicker:ob,clickable:cb,agentLabel:fb,agentName:db,starting:hb,chevron:mb,dropdown:pb,dropdownItem:gb,active:yb,hasError:_b,dropdownName:vb,statusBadge:xb,status_running:bb,status_starting:Sb,status_error:Tb,status_idle:kb,dropdownMeta:Eb,rightSection:Nb,errorText:Cb,sessionBadge:Ab,newSessionBtn:wb,confirmOverlay:jb,confirmModal:Mb,confirmTitle:zb,confirmMessage:Rb,confirmActions:Ob,confirmBtn:Db,confirmBtnPrimary:Lb};function Bb(n,a,i,r,u){return u.has(n)?"error":n===a&&i?"starting":n===a&&r?"running":"idle"}const Ub={running:"Running",starting:"Starting",error:"Error",idle:"Idle"};function Hb({agents:n,errors:a,selectedAgentName:i,isStarting:r,isReady:u,startError:o,sessionId:c,onSelectAgent:h,onResetChat:m}){const[p,_]=I.useState(!1),[y,x]=I.useState(null),[b,k]=I.useState(!1),w=I.useRef(null),R=new Map(a.map(D=>[D.name,D.message]));I.useEffect(()=>{if(!p)return;const D=P=>{w.current&&!w.current.contains(P.target)&&_(!1)};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[p]);const T=D=>{_(!1),D!==i&&x(D)},M=()=>{y&&(h(y),x(null))},O=()=>{x(null)},K=()=>{c&&navigator.clipboard.writeText(c).then(()=>{k(!0),setTimeout(()=>k(!1),1500)}).catch(()=>{})},te=n.length>1;return g.jsxs("div",{className:at.toolbar,children:[g.jsxs("div",{className:at.agentSection,ref:w,children:[g.jsxs("button",{className:`${at.agentPicker} ${te?at.clickable:""}`,onClick:te?()=>_(D=>!D):void 0,disabled:!te,title:te?"Switch agent":void 0,children:[g.jsx("span",{className:at.agentLabel,children:"Chat with"}),g.jsx("span",{className:at.agentName,children:i??(n.length===0?"No agents":"Starting…")}),r&&g.jsx("span",{className:at.starting,children:"starting…"}),te&&g.jsx(vi,{size:14,className:at.chevron})]}),p&&g.jsx("div",{className:at.dropdown,children:n.map(D=>{const P=R.get(D.name),ve=D.name===i,ge=Bb(D.name,i,r,u,R);return g.jsxs("button",{className:`${at.dropdownItem} ${ve?at.active:""} ${P?at.hasError:""}`,onClick:()=>T(D.name),disabled:!!P||r,title:P??void 0,children:[g.jsx("span",{className:at.dropdownName,children:D.name}),g.jsx("span",{className:`${at.statusBadge} ${at[`status_${ge}`]}`,children:Ub[ge]}),g.jsx("span",{className:at.dropdownMeta,children:D.buildType}),D.protocol&&g.jsx("span",{className:at.dropdownMeta,children:D.protocol})]},D.name)})})]}),g.jsxs("div",{className:at.rightSection,children:[o&&g.jsx("span",{className:at.errorText,children:o}),c&&g.jsxs("button",{className:at.sessionBadge,onClick:K,title:`Session: ${c} (click to copy)`,children:["session: ",c.length>12?c.slice(0,12)+"…":c,b?g.jsx(Vy,{size:10}):g.jsx(Gy,{size:10})]}),c&&g.jsx("button",{className:at.newSessionBtn,onClick:m,title:"New session","aria-label":"Start new session",children:g.jsx(xx,{size:12})})]}),y&&g.jsx("div",{className:at.confirmOverlay,onClick:O,children:g.jsxs("div",{className:at.confirmModal,onClick:D=>D.stopPropagation(),children:[g.jsx("div",{className:at.confirmTitle,children:"Switch agent?"}),g.jsxs("div",{className:at.confirmMessage,children:["Switching to ",g.jsx("strong",{children:y})," will clear your current conversation history."]}),g.jsxs("div",{className:at.confirmActions,children:[g.jsx("button",{className:at.confirmBtn,onClick:O,children:"Cancel"}),g.jsx("button",{className:`${at.confirmBtn} ${at.confirmBtnPrimary}`,onClick:M,children:"Switch"})]})]})})]})}const qb="_header_lggp3_1",Ib="_title_lggp3_11",Vb="_badge_lggp3_16",Gb="_ready_lggp3_24",Zb="_error_lggp3_29",Yb="_rightGroup_lggp3_34",Xb="_iconBtn_lggp3_41",$b="_iconBtnActive_lggp3_61",Yn={header:qb,title:Ib,badge:Vb,ready:Gb,error:Zb,rightGroup:Yb,iconBtn:Xb,iconBtnActive:$b};function Qb({isConnected:n,hasConnected:a,hasError:i,onToggleResources:r,isResourcesOpen:u}){return g.jsxs("header",{className:Yn.header,children:[g.jsx("div",{className:Yn.title,children:"AgentCore agent inspector"}),g.jsx("div",{className:`${Yn.badge} ${i?Yn.error:n?Yn.ready:a?Yn.error:""}`,children:i?"Error":n?"Connected":a?"Disconnected":"Connecting"}),g.jsxs("div",{className:Yn.rightGroup,children:[g.jsx("a",{className:Yn.iconBtn,href:"https://github.com/aws/agentcore-cli/issues/new?template=bug_report.yml",target:"_blank",rel:"noopener noreferrer",title:"Report an issue","aria-label":"Report an issue",children:g.jsx(Y0,{size:14})}),r&&g.jsx("button",{className:`${Yn.iconBtn} ${u?Yn.iconBtnActive:""}`,onClick:r,title:"Toggle resources","aria-label":"Toggle resource panel",children:g.jsx(ox,{size:14})})]})]})}const Fb="_errorMessage_1up60_1",Kb="_truncated_1up60_7",Jb="_full_1up60_12",Pb="_toggle_1up60_17",ru={errorMessage:Fb,truncated:Kb,full:Jb,toggle:Pb},Og=300;function Lf({content:n}){const[a,i]=I.useState(!1),r=n.length>Og;return g.jsxs("div",{className:ru.errorMessage,children:[g.jsx("span",{className:a||!r?ru.full:ru.truncated,children:a||!r?n:n.slice(0,Og)+"…"}),r&&g.jsx("button",{className:ru.toggle,onClick:()=>i(u=>!u),children:a?"Show less":"Show more"})]})}function Wb(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const eS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nS={};function Dg(n,a){return(nS.jsx?tS:eS).test(n)}const aS=/[ \t\n\f\r]/g;function lS(n){return typeof n=="object"?n.type==="text"?Lg(n.value):!1:Lg(n)}function Lg(n){return n.replace(aS,"")===""}class Lr{constructor(a,i,r){this.normal=i,this.property=a,r&&(this.space=r)}}Lr.prototype.normal={};Lr.prototype.property={};Lr.prototype.space=void 0;function Xy(n,a){const i={},r={};for(const u of n)Object.assign(i,u.property),Object.assign(r,u.normal);return new Lr(i,r,a)}function Bf(n){return n.toLowerCase()}class an{constructor(a,i){this.attribute=i,this.property=a}}an.prototype.attribute="";an.prototype.booleanish=!1;an.prototype.boolean=!1;an.prototype.commaOrSpaceSeparated=!1;an.prototype.commaSeparated=!1;an.prototype.defined=!1;an.prototype.mustUseProperty=!1;an.prototype.number=!1;an.prototype.overloadedBoolean=!1;an.prototype.property="";an.prototype.spaceSeparated=!1;an.prototype.space=void 0;let iS=0;const De=kl(),Ct=kl(),Uf=kl(),le=kl(),dt=kl(),yi=kl(),hn=kl();function kl(){return 2**++iS}const Hf=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:Ct,commaOrSpaceSeparated:hn,commaSeparated:yi,number:le,overloadedBoolean:Uf,spaceSeparated:dt},Symbol.toStringTag,{value:"Module"})),mf=Object.keys(Hf);class sd extends an{constructor(a,i,r,u){let o=-1;if(super(a,i),Bg(this,"space",u),typeof r=="number")for(;++o<mf.length;){const c=mf[o];Bg(this,mf[o],(r&Hf[c])===Hf[c])}}}sd.prototype.defined=!0;function Bg(n,a,i){i&&(n[a]=i)}function ki(n){const a={},i={};for(const[r,u]of Object.entries(n.properties)){const o=new sd(r,n.transform(n.attributes||{},r),u,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),a[r]=o,i[Bf(r)]=r,i[Bf(o.attribute)]=r}return new Lr(a,i,n.space)}const $y=ki({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:dt,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:le,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:dt,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:Ct,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Qy(n,a){return a in n?n[a]:a}function Fy(n,a){return Qy(n,a.toLowerCase())}const rS=ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yi,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:dt,autoFocus:De,autoPlay:De,blocking:dt,capture:null,charSet:null,checked:De,cite:null,className:dt,cols:le,colSpan:null,content:null,contentEditable:Ct,controls:De,controlsList:dt,coords:le|yi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:Uf,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:dt,height:le,hidden:Uf,high:le,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:dt,itemRef:dt,itemScope:De,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,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:De,optimum:le,pattern:null,ping:dt,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:dt,required:De,reversed:De,rows:le,rowSpan:le,sandbox:dt,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:Ct,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:Fy}),sS=ki({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:hn,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:dt,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:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,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:yi,g2:yi,glyphName:yi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,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:le,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:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,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:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qy}),Ky=ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),Jy=ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fy}),Py=ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),uS={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"},oS=/[A-Z]/g,Ug=/-[a-z]/g,cS=/^data[-\w.:]+$/i;function fS(n,a){const i=Bf(a);let r=a,u=an;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&cS.test(a)){if(a.charAt(4)==="-"){const o=a.slice(5).replace(Ug,hS);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=a.slice(4);if(!Ug.test(o)){let c=o.replace(oS,dS);c.charAt(0)!=="-"&&(c="-"+c),a="data"+c}}u=sd}return new u(r,a)}function dS(n){return"-"+n.toLowerCase()}function hS(n){return n.charAt(1).toUpperCase()}const mS=Xy([$y,rS,Ky,Jy,Py],"html"),ud=Xy([$y,sS,Ky,Jy,Py],"svg");function pS(n){return n.join(" ").trim()}var hi={},pf,Hg;function gS(){if(Hg)return pf;Hg=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,h=/^\s+|\s+$/g,m=`
225
+ `,p="/",_="*",y="",x="comment",b="declaration";function k(R,T){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];T=T||{};var M=1,O=1;function K(ce){var ie=ce.match(a);ie&&(M+=ie.length);var U=ce.lastIndexOf(m);O=~U?ce.length-U:O+ce.length}function te(){var ce={line:M,column:O};return function(ie){return ie.position=new D(ce),ge(),ie}}function D(ce){this.start=ce,this.end={line:M,column:O},this.source=T.source}D.prototype.content=R;function P(ce){var ie=new Error(T.source+":"+M+":"+O+": "+ce);if(ie.reason=ce,ie.filename=T.source,ie.line=M,ie.column=O,ie.source=R,!T.silent)throw ie}function ve(ce){var ie=ce.exec(R);if(ie){var U=ie[0];return K(U),R=R.slice(U.length),ie}}function ge(){ve(i)}function L(ce){var ie;for(ce=ce||[];ie=W();)ie!==!1&&ce.push(ie);return ce}function W(){var ce=te();if(!(p!=R.charAt(0)||_!=R.charAt(1))){for(var ie=2;y!=R.charAt(ie)&&(_!=R.charAt(ie)||p!=R.charAt(ie+1));)++ie;if(ie+=2,y===R.charAt(ie-1))return P("End of comment missing");var U=R.slice(2,ie-2);return O+=2,K(U),R=R.slice(ie),O+=2,ce({type:x,comment:U})}}function F(){var ce=te(),ie=ve(r);if(ie){if(W(),!ve(u))return P("property missing ':'");var U=ve(o),J=ce({type:b,property:w(ie[0].replace(n,y)),value:U?w(U[0].replace(n,y)):y});return ve(c),J}}function Se(){var ce=[];L(ce);for(var ie;ie=F();)ie!==!1&&(ce.push(ie),L(ce));return ce}return ge(),Se()}function w(R){return R?R.replace(h,y):y}return pf=k,pf}var qg;function yS(){if(qg)return hi;qg=1;var n=hi&&hi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=i;const a=n(gS());function i(r,u){let o=null;if(!r||typeof r!="string")return o;const c=(0,a.default)(r),h=typeof u=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:_}=m;h?u(p,_,m):_&&(o=o||{},o[p]=_)}),o}return hi}var Sr={},Ig;function _S(){if(Ig)return Sr;Ig=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,i=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,o=function(p){return!p||i.test(p)||n.test(p)},c=function(p,_){return _.toUpperCase()},h=function(p,_){return"".concat(_,"-")},m=function(p,_){return _===void 0&&(_={}),o(p)?p:(p=p.toLowerCase(),_.reactCompat?p=p.replace(u,h):p=p.replace(r,h),p.replace(a,c))};return Sr.camelCase=m,Sr}var Tr,Vg;function vS(){if(Vg)return Tr;Vg=1;var n=Tr&&Tr.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},a=n(yS()),i=_S();function r(u,o){var c={};return!u||typeof u!="string"||(0,a.default)(u,function(h,m){h&&m&&(c[(0,i.camelCase)(h,o)]=m)}),c}return r.default=r,Tr=r,Tr}var xS=vS();const bS=zu(xS),Wy=e1("end"),od=e1("start");function e1(n){return a;function a(i){const r=i&&i.position&&i.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function SS(n){const a=od(n),i=Wy(n);if(a&&i)return{start:a,end:i}}function Ar(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Gg(n.position):"start"in n||"end"in n?Gg(n):"line"in n||"column"in n?qf(n):""}function qf(n){return Zg(n&&n.line)+":"+Zg(n&&n.column)}function Gg(n){return qf(n&&n.start)+"-"+qf(n&&n.end)}function Zg(n){return n&&typeof n=="number"?n:1}class Vt extends Error{constructor(a,i,r){super(),typeof i=="string"&&(r=i,i=void 0);let u="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof a=="string"?u=a:!o.cause&&a&&(c=!0,u=a.message,o.cause=a),!o.ruleId&&!o.source&&typeof r=="string"){const m=r.indexOf(":");m===-1?o.ruleId=r:(o.source=r.slice(0,m),o.ruleId=r.slice(m+1))}if(!o.place&&o.ancestors&&o.ancestors){const m=o.ancestors[o.ancestors.length-1];m&&(o.place=m.position)}const h=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=u,this.line=h?h.line:void 0,this.name=Ar(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Vt.prototype.file="";Vt.prototype.name="";Vt.prototype.reason="";Vt.prototype.message="";Vt.prototype.stack="";Vt.prototype.column=void 0;Vt.prototype.line=void 0;Vt.prototype.ancestors=void 0;Vt.prototype.cause=void 0;Vt.prototype.fatal=void 0;Vt.prototype.place=void 0;Vt.prototype.ruleId=void 0;Vt.prototype.source=void 0;const cd={}.hasOwnProperty,TS=new Map,kS=/[A-Z]/g,ES=new Set(["table","tbody","thead","tfoot","tr"]),NS=new Set(["td","th"]),t1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function CS(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=a.filePath||void 0;let r;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=DS(i,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=OS(i,a.jsx,a.jsxs)}const u={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:r,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?ud:mS,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},o=n1(u,n,void 0);return o&&typeof o!="string"?o:u.create(n,u.Fragment,{children:o||void 0},void 0)}function n1(n,a,i){if(a.type==="element")return AS(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return wS(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return MS(n,a,i);if(a.type==="mdxjsEsm")return jS(n,a);if(a.type==="root")return zS(n,a,i);if(a.type==="text")return RS(n,a)}function AS(n,a,i){const r=n.schema;let u=r;a.tagName.toLowerCase()==="svg"&&r.space==="html"&&(u=ud,n.schema=u),n.ancestors.push(a);const o=l1(n,a.tagName,!1),c=LS(n,a);let h=dd(n,a);return ES.has(a.tagName)&&(h=h.filter(function(m){return typeof m=="string"?!lS(m):!0})),a1(n,c,o,a),fd(c,h),n.ancestors.pop(),n.schema=r,n.create(a,o,c,i)}function wS(n,a){if(a.data&&a.data.estree&&n.evaluater){const r=a.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}zr(n,a.position)}function jS(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);zr(n,a.position)}function MS(n,a,i){const r=n.schema;let u=r;a.name==="svg"&&r.space==="html"&&(u=ud,n.schema=u),n.ancestors.push(a);const o=a.name===null?n.Fragment:l1(n,a.name,!0),c=BS(n,a),h=dd(n,a);return a1(n,c,o,a),fd(c,h),n.ancestors.pop(),n.schema=r,n.create(a,o,c,i)}function zS(n,a,i){const r={};return fd(r,dd(n,a)),n.create(a,n.Fragment,r,i)}function RS(n,a){return a.value}function a1(n,a,i,r){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(a.node=r)}function fd(n,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(n.children=i)}}function OS(n,a,i){return r;function r(u,o,c,h){const p=Array.isArray(c.children)?i:a;return h?p(o,c,h):p(o,c)}}function DS(n,a){return i;function i(r,u,o,c){const h=Array.isArray(o.children),m=od(r);return a(u,o,c,h,{columnNumber:m?m.column-1:void 0,fileName:n,lineNumber:m?m.line:void 0},void 0)}}function LS(n,a){const i={};let r,u;for(u in a.properties)if(u!=="children"&&cd.call(a.properties,u)){const o=US(n,u,a.properties[u]);if(o){const[c,h]=o;n.tableCellAlignToStyle&&c==="align"&&typeof h=="string"&&NS.has(a.tagName)?r=h:i[c]=h}}if(r){const o=i.style||(i.style={});o[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return i}function BS(n,a){const i={};for(const r of a.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const o=r.data.estree.body[0];o.type;const c=o.expression;c.type;const h=c.properties[0];h.type,Object.assign(i,n.evaluater.evaluateExpression(h.argument))}else zr(n,a.position);else{const u=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const h=r.value.data.estree.body[0];h.type,o=n.evaluater.evaluateExpression(h.expression)}else zr(n,a.position);else o=r.value===null?!0:r.value;i[u]=o}return i}function dd(n,a){const i=[];let r=-1;const u=n.passKeys?new Map:TS;for(;++r<a.children.length;){const o=a.children[r];let c;if(n.passKeys){const m=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(m){const p=u.get(m)||0;c=m+"-"+p,u.set(m,p+1)}}const h=n1(n,o,c);h!==void 0&&i.push(h)}return i}function US(n,a,i){const r=fS(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=r.commaSeparated?Wb(i):pS(i)),r.property==="style"){let u=typeof i=="object"?i:HS(n,String(i));return n.stylePropertyNameCase==="css"&&(u=qS(u)),["style",u]}return[n.elementAttributeNameCase==="react"&&r.space?uS[r.property]||r.property:r.attribute,i]}}function HS(n,a){try{return bS(a,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const r=i,u=new Vt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=n.filePath||void 0,u.url=t1+"#cannot-parse-style-attribute",u}}function l1(n,a,i){let r;if(!i)r={type:"Literal",value:a};else if(a.includes(".")){const u=a.split(".");let o=-1,c;for(;++o<u.length;){const h=Dg(u[o])?{type:"Identifier",name:u[o]}:{type:"Literal",value:u[o]};c=c?{type:"MemberExpression",object:c,property:h,computed:!!(o&&h.type==="Literal"),optional:!1}:h}r=c}else r=Dg(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(r.type==="Literal"){const u=r.value;return cd.call(n.components,u)?n.components[u]:u}if(n.evaluater)return n.evaluater.evaluateExpression(r);zr(n)}function zr(n,a){const i=new Vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=n.filePath||void 0,i.url=t1+"#cannot-handle-mdx-estrees-without-createevaluater",i}function qS(n){const a={};let i;for(i in n)cd.call(n,i)&&(a[IS(i)]=n[i]);return a}function IS(n){let a=n.replace(kS,VS);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function VS(n){return"-"+n.toLowerCase()}const gf={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"]},GS={};function hd(n,a){const i=GS,r=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,u=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return i1(n,r,u)}function i1(n,a,i){if(ZS(n)){if("value"in n)return n.type==="html"&&!i?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Yg(n.children,a,i)}return Array.isArray(n)?Yg(n,a,i):""}function Yg(n,a,i){const r=[];let u=-1;for(;++u<n.length;)r[u]=i1(n[u],a,i);return r.join("")}function ZS(n){return!!(n&&typeof n=="object")}const Xg=document.createElement("i");function md(n){const a="&"+n+";";Xg.innerHTML=a;const i=Xg.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}function pn(n,a,i,r){const u=n.length;let o=0,c;if(a<0?a=-a>u?0:u+a:a=a>u?u:a,i=i>0?i:0,r.length<1e4)c=Array.from(r),c.unshift(a,i),n.splice(...c);else for(i&&n.splice(a,i);o<r.length;)c=r.slice(o,o+1e4),c.unshift(a,0),n.splice(...c),o+=1e4,a+=1e4}function wn(n,a){return n.length>0?(pn(n,n.length,0,a),n):a}const $g={}.hasOwnProperty;function r1(n){const a={};let i=-1;for(;++i<n.length;)YS(a,n[i]);return a}function YS(n,a){let i;for(i in a){const u=($g.call(n,i)?n[i]:void 0)||(n[i]={}),o=a[i];let c;if(o)for(c in o){$g.call(u,c)||(u[c]=[]);const h=o[c];XS(u[c],Array.isArray(h)?h:h?[h]:[])}}}function XS(n,a){let i=-1;const r=[];for(;++i<a.length;)(a[i].add==="after"?n:r).push(a[i]);pn(n,0,0,r)}function s1(n,a){const i=Number.parseInt(n,a);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Hn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xt=Pa(/[A-Za-z]/),It=Pa(/[\dA-Za-z]/),$S=Pa(/[#-'*+\--9=?A-Z^-~]/);function yu(n){return n!==null&&(n<32||n===127)}const If=Pa(/\d/),QS=Pa(/[\dA-Fa-f]/),FS=Pa(/[!-/:-@[-`{-~]/);function Te(n){return n!==null&&n<-2}function ct(n){return n!==null&&(n<0||n===32)}function qe(n){return n===-2||n===-1||n===32}const Ou=Pa(new RegExp("\\p{P}|\\p{S}","u")),_l=Pa(/\s/);function Pa(n){return a;function a(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function Ei(n){const a=[];let i=-1,r=0,u=0;for(;++i<n.length;){const o=n.charCodeAt(i);let c="";if(o===37&&It(n.charCodeAt(i+1))&&It(n.charCodeAt(i+2)))u=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const h=n.charCodeAt(i+1);o<56320&&h>56319&&h<57344?(c=String.fromCharCode(o,h),u=1):c="�"}else c=String.fromCharCode(o);c&&(a.push(n.slice(r,i),encodeURIComponent(c)),r=i+u+1,c=""),u&&(i+=u,u=0)}return a.join("")+n.slice(r)}function Xe(n,a,i,r){const u=r?r-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(m){return qe(m)?(n.enter(i),h(m)):a(m)}function h(m){return qe(m)&&o++<u?(n.consume(m),h):(n.exit(i),a(m))}}const KS={tokenize:JS};function JS(n){const a=n.attempt(this.parser.constructs.contentInitial,r,u);let i;return a;function r(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),Xe(n,a,"linePrefix")}function u(h){return n.enter("paragraph"),o(h)}function o(h){const m=n.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,c(h)}function c(h){if(h===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(h);return}return Te(h)?(n.consume(h),n.exit("chunkText"),o):(n.consume(h),c)}}const PS={tokenize:WS},Qg={tokenize:e2};function WS(n){const a=this,i=[];let r=0,u,o,c;return h;function h(O){if(r<i.length){const K=i[r];return a.containerState=K[1],n.attempt(K[0].continuation,m,p)(O)}return p(O)}function m(O){if(r++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,u&&M();const K=a.events.length;let te=K,D;for(;te--;)if(a.events[te][0]==="exit"&&a.events[te][1].type==="chunkFlow"){D=a.events[te][1].end;break}T(r);let P=K;for(;P<a.events.length;)a.events[P][1].end={...D},P++;return pn(a.events,te+1,0,a.events.slice(K)),a.events.length=P,p(O)}return h(O)}function p(O){if(r===i.length){if(!u)return x(O);if(u.currentConstruct&&u.currentConstruct.concrete)return k(O);a.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(Qg,_,y)(O)}function _(O){return u&&M(),T(r),x(O)}function y(O){return a.parser.lazy[a.now().line]=r!==i.length,c=a.now().offset,k(O)}function x(O){return a.containerState={},n.attempt(Qg,b,k)(O)}function b(O){return r++,i.push([a.currentConstruct,a.containerState]),x(O)}function k(O){if(O===null){u&&M(),T(0),n.consume(O);return}return u=u||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:o}),w(O)}function w(O){if(O===null){R(n.exit("chunkFlow"),!0),T(0),n.consume(O);return}return Te(O)?(n.consume(O),R(n.exit("chunkFlow")),r=0,a.interrupt=void 0,h):(n.consume(O),w)}function R(O,K){const te=a.sliceStream(O);if(K&&te.push(null),O.previous=o,o&&(o.next=O),o=O,u.defineSkip(O.start),u.write(te),a.parser.lazy[O.start.line]){let D=u.events.length;for(;D--;)if(u.events[D][1].start.offset<c&&(!u.events[D][1].end||u.events[D][1].end.offset>c))return;const P=a.events.length;let ve=P,ge,L;for(;ve--;)if(a.events[ve][0]==="exit"&&a.events[ve][1].type==="chunkFlow"){if(ge){L=a.events[ve][1].end;break}ge=!0}for(T(r),D=P;D<a.events.length;)a.events[D][1].end={...L},D++;pn(a.events,ve+1,0,a.events.slice(P)),a.events.length=D}}function T(O){let K=i.length;for(;K-- >O;){const te=i[K];a.containerState=te[1],te[0].exit.call(a,n)}i.length=O}function M(){u.write([null]),o=void 0,u=void 0,a.containerState._closeFlow=void 0}}function e2(n,a,i){return Xe(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xi(n){if(n===null||ct(n)||_l(n))return 1;if(Ou(n))return 2}function Du(n,a,i){const r=[];let u=-1;for(;++u<n.length;){const o=n[u].resolveAll;o&&!r.includes(o)&&(a=o(a,i),r.push(o))}return a}const Vf={name:"attention",resolveAll:t2,tokenize:n2};function t2(n,a){let i=-1,r,u,o,c,h,m,p,_;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(r=i;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&a.sliceSerialize(n[r][1]).charCodeAt(0)===a.sliceSerialize(n[i][1]).charCodeAt(0)){if((n[r][1]._close||n[i][1]._open)&&(n[i][1].end.offset-n[i][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[i][1].end.offset-n[i][1].start.offset)%3))continue;m=n[r][1].end.offset-n[r][1].start.offset>1&&n[i][1].end.offset-n[i][1].start.offset>1?2:1;const y={...n[r][1].end},x={...n[i][1].start};Fg(y,-m),Fg(x,m),c={type:m>1?"strongSequence":"emphasisSequence",start:y,end:{...n[r][1].end}},h={type:m>1?"strongSequence":"emphasisSequence",start:{...n[i][1].start},end:x},o={type:m>1?"strongText":"emphasisText",start:{...n[r][1].end},end:{...n[i][1].start}},u={type:m>1?"strong":"emphasis",start:{...c.start},end:{...h.end}},n[r][1].end={...c.start},n[i][1].start={...h.end},p=[],n[r][1].end.offset-n[r][1].start.offset&&(p=wn(p,[["enter",n[r][1],a],["exit",n[r][1],a]])),p=wn(p,[["enter",u,a],["enter",c,a],["exit",c,a],["enter",o,a]]),p=wn(p,Du(a.parser.constructs.insideSpan.null,n.slice(r+1,i),a)),p=wn(p,[["exit",o,a],["enter",h,a],["exit",h,a],["exit",u,a]]),n[i][1].end.offset-n[i][1].start.offset?(_=2,p=wn(p,[["enter",n[i][1],a],["exit",n[i][1],a]])):_=0,pn(n,r-1,i-r+3,p),i=r+p.length-_-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function n2(n,a){const i=this.parser.constructs.attentionMarkers.null,r=this.previous,u=xi(r);let o;return c;function c(m){return o=m,n.enter("attentionSequence"),h(m)}function h(m){if(m===o)return n.consume(m),h;const p=n.exit("attentionSequence"),_=xi(m),y=!_||_===2&&u||i.includes(m),x=!u||u===2&&_||i.includes(r);return p._open=!!(o===42?y:y&&(u||!x)),p._close=!!(o===42?x:x&&(_||!y)),a(m)}}function Fg(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const a2={name:"autolink",tokenize:l2};function l2(n,a,i){let r=0;return u;function u(b){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),o}function o(b){return Xt(b)?(n.consume(b),c):b===64?i(b):p(b)}function c(b){return b===43||b===45||b===46||It(b)?(r=1,h(b)):p(b)}function h(b){return b===58?(n.consume(b),r=0,m):(b===43||b===45||b===46||It(b))&&r++<32?(n.consume(b),h):(r=0,p(b))}function m(b){return b===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),a):b===null||b===32||b===60||yu(b)?i(b):(n.consume(b),m)}function p(b){return b===64?(n.consume(b),_):$S(b)?(n.consume(b),p):i(b)}function _(b){return It(b)?y(b):i(b)}function y(b){return b===46?(n.consume(b),r=0,_):b===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),a):x(b)}function x(b){if((b===45||It(b))&&r++<63){const k=b===45?x:y;return n.consume(b),k}return i(b)}}const Br={partial:!0,tokenize:i2};function i2(n,a,i){return r;function r(o){return qe(o)?Xe(n,u,"linePrefix")(o):u(o)}function u(o){return o===null||Te(o)?a(o):i(o)}}const u1={continuation:{tokenize:s2},exit:u2,name:"blockQuote",tokenize:r2};function r2(n,a,i){const r=this;return u;function u(c){if(c===62){const h=r.containerState;return h.open||(n.enter("blockQuote",{_container:!0}),h.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(c),n.exit("blockQuoteMarker"),o}return i(c)}function o(c){return qe(c)?(n.enter("blockQuotePrefixWhitespace"),n.consume(c),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(c))}}function s2(n,a,i){const r=this;return u;function u(c){return qe(c)?Xe(n,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return n.attempt(u1,a,i)(c)}}function u2(n){n.exit("blockQuote")}const o1={name:"characterEscape",tokenize:o2};function o2(n,a,i){return r;function r(o){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(o),n.exit("escapeMarker"),u}function u(o){return FS(o)?(n.enter("characterEscapeValue"),n.consume(o),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(o)}}const c1={name:"characterReference",tokenize:c2};function c2(n,a,i){const r=this;let u=0,o,c;return h;function h(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),m}function m(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),o=31,c=It,_(y))}function p(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),o=6,c=QS,_):(n.enter("characterReferenceValue"),o=7,c=If,_(y))}function _(y){if(y===59&&u){const x=n.exit("characterReferenceValue");return c===It&&!md(r.sliceSerialize(x))?i(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return c(y)&&u++<o?(n.consume(y),_):i(y)}}const Kg={partial:!0,tokenize:d2},Jg={concrete:!0,name:"codeFenced",tokenize:f2};function f2(n,a,i){const r=this,u={partial:!0,tokenize:te};let o=0,c=0,h;return m;function m(D){return p(D)}function p(D){const P=r.events[r.events.length-1];return o=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,h=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),_(D)}function _(D){return D===h?(c++,n.consume(D),_):c<3?i(D):(n.exit("codeFencedFenceSequence"),qe(D)?Xe(n,y,"whitespace")(D):y(D))}function y(D){return D===null||Te(D)?(n.exit("codeFencedFence"),r.interrupt?a(D):n.check(Kg,w,K)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(D))}function x(D){return D===null||Te(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(D)):qe(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Xe(n,b,"whitespace")(D)):D===96&&D===h?i(D):(n.consume(D),x)}function b(D){return D===null||Te(D)?y(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),k(D))}function k(D){return D===null||Te(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(D)):D===96&&D===h?i(D):(n.consume(D),k)}function w(D){return n.attempt(u,K,R)(D)}function R(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),T}function T(D){return o>0&&qe(D)?Xe(n,M,"linePrefix",o+1)(D):M(D)}function M(D){return D===null||Te(D)?n.check(Kg,w,K)(D):(n.enter("codeFlowValue"),O(D))}function O(D){return D===null||Te(D)?(n.exit("codeFlowValue"),M(D)):(n.consume(D),O)}function K(D){return n.exit("codeFenced"),a(D)}function te(D,P,ve){let ge=0;return L;function L(ie){return D.enter("lineEnding"),D.consume(ie),D.exit("lineEnding"),W}function W(ie){return D.enter("codeFencedFence"),qe(ie)?Xe(D,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):F(ie)}function F(ie){return ie===h?(D.enter("codeFencedFenceSequence"),Se(ie)):ve(ie)}function Se(ie){return ie===h?(ge++,D.consume(ie),Se):ge>=c?(D.exit("codeFencedFenceSequence"),qe(ie)?Xe(D,ce,"whitespace")(ie):ce(ie)):ve(ie)}function ce(ie){return ie===null||Te(ie)?(D.exit("codeFencedFence"),P(ie)):ve(ie)}}}function d2(n,a,i){const r=this;return u;function u(c){return c===null?i(c):(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),o)}function o(c){return r.parser.lazy[r.now().line]?i(c):a(c)}}const yf={name:"codeIndented",tokenize:m2},h2={partial:!0,tokenize:p2};function m2(n,a,i){const r=this;return u;function u(p){return n.enter("codeIndented"),Xe(n,o,"linePrefix",5)(p)}function o(p){const _=r.events[r.events.length-1];return _&&_[1].type==="linePrefix"&&_[2].sliceSerialize(_[1],!0).length>=4?c(p):i(p)}function c(p){return p===null?m(p):Te(p)?n.attempt(h2,c,m)(p):(n.enter("codeFlowValue"),h(p))}function h(p){return p===null||Te(p)?(n.exit("codeFlowValue"),c(p)):(n.consume(p),h)}function m(p){return n.exit("codeIndented"),a(p)}}function p2(n,a,i){const r=this;return u;function u(c){return r.parser.lazy[r.now().line]?i(c):Te(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),u):Xe(n,o,"linePrefix",5)(c)}function o(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):Te(c)?u(c):i(c)}}const g2={name:"codeText",previous:_2,resolve:y2,tokenize:v2};function y2(n){let a=n.length-4,i=3,r,u;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(r=i;++r<a;)if(n[r][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(r=i-1,a++;++r<=a;)u===void 0?r!==a&&n[r][1].type!=="lineEnding"&&(u=r):(r===a||n[r][1].type==="lineEnding")&&(n[u][1].type="codeTextData",r!==u+2&&(n[u][1].end=n[r-1][1].end,n.splice(u+2,r-u-2),a-=r-u-2,r=u+2),u=void 0);return n}function _2(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function v2(n,a,i){let r=0,u,o;return c;function c(y){return n.enter("codeText"),n.enter("codeTextSequence"),h(y)}function h(y){return y===96?(n.consume(y),r++,h):(n.exit("codeTextSequence"),m(y))}function m(y){return y===null?i(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),m):y===96?(o=n.enter("codeTextSequence"),u=0,_(y)):Te(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),m):(n.enter("codeTextData"),p(y))}function p(y){return y===null||y===32||y===96||Te(y)?(n.exit("codeTextData"),m(y)):(n.consume(y),p)}function _(y){return y===96?(n.consume(y),u++,_):u===r?(n.exit("codeTextSequence"),n.exit("codeText"),a(y)):(o.type="codeTextData",p(y))}}class x2{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,i){const r=i??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(a,r):a>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(a,i,r){const u=i||0;this.setCursor(Math.trunc(a));const o=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return r&&kr(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),kr(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),kr(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const i=this.left.splice(a,Number.POSITIVE_INFINITY);kr(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);kr(this.left,i.reverse())}}}function kr(n,a){let i=0;if(a.length<1e4)n.push(...a);else for(;i<a.length;)n.push(...a.slice(i,i+1e4)),i+=1e4}function f1(n){const a={};let i=-1,r,u,o,c,h,m,p;const _=new x2(n);for(;++i<_.length;){for(;i in a;)i=a[i];if(r=_.get(i),i&&r[1].type==="chunkFlow"&&_.get(i-1)[1].type==="listItemPrefix"&&(m=r[1]._tokenizer.events,o=0,o<m.length&&m[o][1].type==="lineEndingBlank"&&(o+=2),o<m.length&&m[o][1].type==="content"))for(;++o<m.length&&m[o][1].type!=="content";)m[o][1].type==="chunkText"&&(m[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(a,b2(_,i)),i=a[i],p=!0);else if(r[1]._container){for(o=i,u=void 0;o--;)if(c=_.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(u&&(_.get(u)[1].type="lineEndingBlank"),c[1].type="lineEnding",u=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;u&&(r[1].end={..._.get(u)[1].start},h=_.slice(u,i),h.unshift(r),_.splice(u,i-u+1,h))}}return pn(n,0,Number.POSITIVE_INFINITY,_.slice(0)),!p}function b2(n,a){const i=n.get(a)[1],r=n.get(a)[2];let u=a-1;const o=[];let c=i._tokenizer;c||(c=r.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const h=c.events,m=[],p={};let _,y,x=-1,b=i,k=0,w=0;const R=[w];for(;b;){for(;n.get(++u)[1]!==b;);o.push(u),b._tokenizer||(_=r.sliceStream(b),b.next||_.push(null),y&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(_),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=b,b=b.next}for(b=i;++x<h.length;)h[x][0]==="exit"&&h[x-1][0]==="enter"&&h[x][1].type===h[x-1][1].type&&h[x][1].start.line!==h[x][1].end.line&&(w=x+1,R.push(w),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):R.pop(),x=R.length;x--;){const T=h.slice(R[x],R[x+1]),M=o.pop();m.push([M,M+T.length-1]),n.splice(M,2,T)}for(m.reverse(),x=-1;++x<m.length;)p[k+m[x][0]]=k+m[x][1],k+=m[x][1]-m[x][0]-1;return p}const S2={resolve:k2,tokenize:E2},T2={partial:!0,tokenize:N2};function k2(n){return f1(n),n}function E2(n,a){let i;return r;function r(h){return n.enter("content"),i=n.enter("chunkContent",{contentType:"content"}),u(h)}function u(h){return h===null?o(h):Te(h)?n.check(T2,c,o)(h):(n.consume(h),u)}function o(h){return n.exit("chunkContent"),n.exit("content"),a(h)}function c(h){return n.consume(h),n.exit("chunkContent"),i.next=n.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,u}}function N2(n,a,i){const r=this;return u;function u(c){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),Xe(n,o,"linePrefix")}function o(c){if(c===null||Te(c))return i(c);const h=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):n.interrupt(r.parser.constructs.flow,i,a)(c)}}function d1(n,a,i,r,u,o,c,h,m){const p=m||Number.POSITIVE_INFINITY;let _=0;return y;function y(T){return T===60?(n.enter(r),n.enter(u),n.enter(o),n.consume(T),n.exit(o),x):T===null||T===32||T===41||yu(T)?i(T):(n.enter(r),n.enter(c),n.enter(h),n.enter("chunkString",{contentType:"string"}),w(T))}function x(T){return T===62?(n.enter(o),n.consume(T),n.exit(o),n.exit(u),n.exit(r),a):(n.enter(h),n.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===62?(n.exit("chunkString"),n.exit(h),x(T)):T===null||T===60||Te(T)?i(T):(n.consume(T),T===92?k:b)}function k(T){return T===60||T===62||T===92?(n.consume(T),b):b(T)}function w(T){return!_&&(T===null||T===41||ct(T))?(n.exit("chunkString"),n.exit(h),n.exit(c),n.exit(r),a(T)):_<p&&T===40?(n.consume(T),_++,w):T===41?(n.consume(T),_--,w):T===null||T===32||T===40||yu(T)?i(T):(n.consume(T),T===92?R:w)}function R(T){return T===40||T===41||T===92?(n.consume(T),w):w(T)}}function h1(n,a,i,r,u,o){const c=this;let h=0,m;return p;function p(b){return n.enter(r),n.enter(u),n.consume(b),n.exit(u),n.enter(o),_}function _(b){return h>999||b===null||b===91||b===93&&!m||b===94&&!h&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(n.exit(o),n.enter(u),n.consume(b),n.exit(u),n.exit(r),a):Te(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),_):(n.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||Te(b)||h++>999?(n.exit("chunkString"),_(b)):(n.consume(b),m||(m=!qe(b)),b===92?x:y)}function x(b){return b===91||b===92||b===93?(n.consume(b),h++,y):y(b)}}function m1(n,a,i,r,u,o){let c;return h;function h(x){return x===34||x===39||x===40?(n.enter(r),n.enter(u),n.consume(x),n.exit(u),c=x===40?41:x,m):i(x)}function m(x){return x===c?(n.enter(u),n.consume(x),n.exit(u),n.exit(r),a):(n.enter(o),p(x))}function p(x){return x===c?(n.exit(o),m(c)):x===null?i(x):Te(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),Xe(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),_(x))}function _(x){return x===c||x===null||Te(x)?(n.exit("chunkString"),p(x)):(n.consume(x),x===92?y:_)}function y(x){return x===c||x===92?(n.consume(x),_):_(x)}}function wr(n,a){let i;return r;function r(u){return Te(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),i=!0,r):qe(u)?Xe(n,r,i?"linePrefix":"lineSuffix")(u):a(u)}}const C2={name:"definition",tokenize:w2},A2={partial:!0,tokenize:j2};function w2(n,a,i){const r=this;let u;return o;function o(b){return n.enter("definition"),c(b)}function c(b){return h1.call(r,n,h,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function h(b){return u=Hn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(n.enter("definitionMarker"),n.consume(b),n.exit("definitionMarker"),m):i(b)}function m(b){return ct(b)?wr(n,p)(b):p(b)}function p(b){return d1(n,_,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function _(b){return n.attempt(A2,y,y)(b)}function y(b){return qe(b)?Xe(n,x,"whitespace")(b):x(b)}function x(b){return b===null||Te(b)?(n.exit("definition"),r.parser.defined.push(u),a(b)):i(b)}}function j2(n,a,i){return r;function r(h){return ct(h)?wr(n,u)(h):i(h)}function u(h){return m1(n,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function o(h){return qe(h)?Xe(n,c,"whitespace")(h):c(h)}function c(h){return h===null||Te(h)?a(h):i(h)}}const M2={name:"hardBreakEscape",tokenize:z2};function z2(n,a,i){return r;function r(o){return n.enter("hardBreakEscape"),n.consume(o),u}function u(o){return Te(o)?(n.exit("hardBreakEscape"),a(o)):i(o)}}const R2={name:"headingAtx",resolve:O2,tokenize:D2};function O2(n,a){let i=n.length-2,r=3,u,o;return n[r][1].type==="whitespace"&&(r+=2),i-2>r&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(r===i-1||i-4>r&&n[i-2][1].type==="whitespace")&&(i-=r+1===i?2:4),i>r&&(u={type:"atxHeadingText",start:n[r][1].start,end:n[i][1].end},o={type:"chunkText",start:n[r][1].start,end:n[i][1].end,contentType:"text"},pn(n,r,i-r+1,[["enter",u,a],["enter",o,a],["exit",o,a],["exit",u,a]])),n}function D2(n,a,i){let r=0;return u;function u(_){return n.enter("atxHeading"),o(_)}function o(_){return n.enter("atxHeadingSequence"),c(_)}function c(_){return _===35&&r++<6?(n.consume(_),c):_===null||ct(_)?(n.exit("atxHeadingSequence"),h(_)):i(_)}function h(_){return _===35?(n.enter("atxHeadingSequence"),m(_)):_===null||Te(_)?(n.exit("atxHeading"),a(_)):qe(_)?Xe(n,h,"whitespace")(_):(n.enter("atxHeadingText"),p(_))}function m(_){return _===35?(n.consume(_),m):(n.exit("atxHeadingSequence"),h(_))}function p(_){return _===null||_===35||ct(_)?(n.exit("atxHeadingText"),h(_)):(n.consume(_),p)}}const L2=["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"],Pg=["pre","script","style","textarea"],B2={concrete:!0,name:"htmlFlow",resolveTo:q2,tokenize:I2},U2={partial:!0,tokenize:G2},H2={partial:!0,tokenize:V2};function q2(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function I2(n,a,i){const r=this;let u,o,c,h,m;return p;function p(E){return _(E)}function _(E){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(E),y}function y(E){return E===33?(n.consume(E),x):E===47?(n.consume(E),o=!0,w):E===63?(n.consume(E),u=3,r.interrupt?a:N):Xt(E)?(n.consume(E),c=String.fromCharCode(E),R):i(E)}function x(E){return E===45?(n.consume(E),u=2,b):E===91?(n.consume(E),u=5,h=0,k):Xt(E)?(n.consume(E),u=4,r.interrupt?a:N):i(E)}function b(E){return E===45?(n.consume(E),r.interrupt?a:N):i(E)}function k(E){const G="CDATA[";return E===G.charCodeAt(h++)?(n.consume(E),h===G.length?r.interrupt?a:F:k):i(E)}function w(E){return Xt(E)?(n.consume(E),c=String.fromCharCode(E),R):i(E)}function R(E){if(E===null||E===47||E===62||ct(E)){const G=E===47,ae=c.toLowerCase();return!G&&!o&&Pg.includes(ae)?(u=1,r.interrupt?a(E):F(E)):L2.includes(c.toLowerCase())?(u=6,G?(n.consume(E),T):r.interrupt?a(E):F(E)):(u=7,r.interrupt&&!r.parser.lazy[r.now().line]?i(E):o?M(E):O(E))}return E===45||It(E)?(n.consume(E),c+=String.fromCharCode(E),R):i(E)}function T(E){return E===62?(n.consume(E),r.interrupt?a:F):i(E)}function M(E){return qe(E)?(n.consume(E),M):L(E)}function O(E){return E===47?(n.consume(E),L):E===58||E===95||Xt(E)?(n.consume(E),K):qe(E)?(n.consume(E),O):L(E)}function K(E){return E===45||E===46||E===58||E===95||It(E)?(n.consume(E),K):te(E)}function te(E){return E===61?(n.consume(E),D):qe(E)?(n.consume(E),te):O(E)}function D(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(n.consume(E),m=E,P):qe(E)?(n.consume(E),D):ve(E)}function P(E){return E===m?(n.consume(E),m=null,ge):E===null||Te(E)?i(E):(n.consume(E),P)}function ve(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ct(E)?te(E):(n.consume(E),ve)}function ge(E){return E===47||E===62||qe(E)?O(E):i(E)}function L(E){return E===62?(n.consume(E),W):i(E)}function W(E){return E===null||Te(E)?F(E):qe(E)?(n.consume(E),W):i(E)}function F(E){return E===45&&u===2?(n.consume(E),U):E===60&&u===1?(n.consume(E),J):E===62&&u===4?(n.consume(E),A):E===63&&u===3?(n.consume(E),N):E===93&&u===5?(n.consume(E),re):Te(E)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(U2,Z,Se)(E)):E===null||Te(E)?(n.exit("htmlFlowData"),Se(E)):(n.consume(E),F)}function Se(E){return n.check(H2,ce,Z)(E)}function ce(E){return n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),ie}function ie(E){return E===null||Te(E)?Se(E):(n.enter("htmlFlowData"),F(E))}function U(E){return E===45?(n.consume(E),N):F(E)}function J(E){return E===47?(n.consume(E),c="",fe):F(E)}function fe(E){if(E===62){const G=c.toLowerCase();return Pg.includes(G)?(n.consume(E),A):F(E)}return Xt(E)&&c.length<8?(n.consume(E),c+=String.fromCharCode(E),fe):F(E)}function re(E){return E===93?(n.consume(E),N):F(E)}function N(E){return E===62?(n.consume(E),A):E===45&&u===2?(n.consume(E),N):F(E)}function A(E){return E===null||Te(E)?(n.exit("htmlFlowData"),Z(E)):(n.consume(E),A)}function Z(E){return n.exit("htmlFlow"),a(E)}}function V2(n,a,i){const r=this;return u;function u(c){return Te(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),o):i(c)}function o(c){return r.parser.lazy[r.now().line]?i(c):a(c)}}function G2(n,a,i){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Br,a,i)}}const Z2={name:"htmlText",tokenize:Y2};function Y2(n,a,i){const r=this;let u,o,c;return h;function h(N){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(N),m}function m(N){return N===33?(n.consume(N),p):N===47?(n.consume(N),te):N===63?(n.consume(N),O):Xt(N)?(n.consume(N),ve):i(N)}function p(N){return N===45?(n.consume(N),_):N===91?(n.consume(N),o=0,k):Xt(N)?(n.consume(N),M):i(N)}function _(N){return N===45?(n.consume(N),b):i(N)}function y(N){return N===null?i(N):N===45?(n.consume(N),x):Te(N)?(c=y,J(N)):(n.consume(N),y)}function x(N){return N===45?(n.consume(N),b):y(N)}function b(N){return N===62?U(N):N===45?x(N):y(N)}function k(N){const A="CDATA[";return N===A.charCodeAt(o++)?(n.consume(N),o===A.length?w:k):i(N)}function w(N){return N===null?i(N):N===93?(n.consume(N),R):Te(N)?(c=w,J(N)):(n.consume(N),w)}function R(N){return N===93?(n.consume(N),T):w(N)}function T(N){return N===62?U(N):N===93?(n.consume(N),T):w(N)}function M(N){return N===null||N===62?U(N):Te(N)?(c=M,J(N)):(n.consume(N),M)}function O(N){return N===null?i(N):N===63?(n.consume(N),K):Te(N)?(c=O,J(N)):(n.consume(N),O)}function K(N){return N===62?U(N):O(N)}function te(N){return Xt(N)?(n.consume(N),D):i(N)}function D(N){return N===45||It(N)?(n.consume(N),D):P(N)}function P(N){return Te(N)?(c=P,J(N)):qe(N)?(n.consume(N),P):U(N)}function ve(N){return N===45||It(N)?(n.consume(N),ve):N===47||N===62||ct(N)?ge(N):i(N)}function ge(N){return N===47?(n.consume(N),U):N===58||N===95||Xt(N)?(n.consume(N),L):Te(N)?(c=ge,J(N)):qe(N)?(n.consume(N),ge):U(N)}function L(N){return N===45||N===46||N===58||N===95||It(N)?(n.consume(N),L):W(N)}function W(N){return N===61?(n.consume(N),F):Te(N)?(c=W,J(N)):qe(N)?(n.consume(N),W):ge(N)}function F(N){return N===null||N===60||N===61||N===62||N===96?i(N):N===34||N===39?(n.consume(N),u=N,Se):Te(N)?(c=F,J(N)):qe(N)?(n.consume(N),F):(n.consume(N),ce)}function Se(N){return N===u?(n.consume(N),u=void 0,ie):N===null?i(N):Te(N)?(c=Se,J(N)):(n.consume(N),Se)}function ce(N){return N===null||N===34||N===39||N===60||N===61||N===96?i(N):N===47||N===62||ct(N)?ge(N):(n.consume(N),ce)}function ie(N){return N===47||N===62||ct(N)?ge(N):i(N)}function U(N){return N===62?(n.consume(N),n.exit("htmlTextData"),n.exit("htmlText"),a):i(N)}function J(N){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(N),n.exit("lineEnding"),fe}function fe(N){return qe(N)?Xe(n,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):re(N)}function re(N){return n.enter("htmlTextData"),c(N)}}const pd={name:"labelEnd",resolveAll:F2,resolveTo:K2,tokenize:J2},X2={tokenize:P2},$2={tokenize:W2},Q2={tokenize:eT};function F2(n){let a=-1;const i=[];for(;++a<n.length;){const r=n[a][1];if(i.push(n[a]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const u=r.type==="labelImage"?4:2;r.type="data",a+=u}}return n.length!==i.length&&pn(n,0,n.length,i),n}function K2(n,a){let i=n.length,r=0,u,o,c,h;for(;i--;)if(u=n[i][1],o){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[i][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(c){if(n[i][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(o=i,u.type!=="labelLink")){r=2;break}}else u.type==="labelEnd"&&(c=i);const m={type:n[o][1].type==="labelLink"?"link":"image",start:{...n[o][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[o][1].start},end:{...n[c][1].end}},_={type:"labelText",start:{...n[o+r+2][1].end},end:{...n[c-2][1].start}};return h=[["enter",m,a],["enter",p,a]],h=wn(h,n.slice(o+1,o+r+3)),h=wn(h,[["enter",_,a]]),h=wn(h,Du(a.parser.constructs.insideSpan.null,n.slice(o+r+4,c-3),a)),h=wn(h,[["exit",_,a],n[c-2],n[c-1],["exit",p,a]]),h=wn(h,n.slice(c+1)),h=wn(h,[["exit",m,a]]),pn(n,o,n.length,h),n}function J2(n,a,i){const r=this;let u=r.events.length,o,c;for(;u--;)if((r.events[u][1].type==="labelImage"||r.events[u][1].type==="labelLink")&&!r.events[u][1]._balanced){o=r.events[u][1];break}return h;function h(x){return o?o._inactive?y(x):(c=r.parser.defined.includes(Hn(r.sliceSerialize({start:o.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),m):i(x)}function m(x){return x===40?n.attempt(X2,_,c?_:y)(x):x===91?n.attempt($2,_,c?p:y)(x):c?_(x):y(x)}function p(x){return n.attempt(Q2,_,y)(x)}function _(x){return a(x)}function y(x){return o._balanced=!0,i(x)}}function P2(n,a,i){return r;function r(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),u}function u(y){return ct(y)?wr(n,o)(y):o(y)}function o(y){return y===41?_(y):d1(n,c,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return ct(y)?wr(n,m)(y):_(y)}function h(y){return i(y)}function m(y){return y===34||y===39||y===40?m1(n,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):_(y)}function p(y){return ct(y)?wr(n,_)(y):_(y)}function _(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),a):i(y)}}function W2(n,a,i){const r=this;return u;function u(h){return h1.call(r,n,o,c,"reference","referenceMarker","referenceString")(h)}function o(h){return r.parser.defined.includes(Hn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?a(h):i(h)}function c(h){return i(h)}}function eT(n,a,i){return r;function r(o){return n.enter("reference"),n.enter("referenceMarker"),n.consume(o),n.exit("referenceMarker"),u}function u(o){return o===93?(n.enter("referenceMarker"),n.consume(o),n.exit("referenceMarker"),n.exit("reference"),a):i(o)}}const tT={name:"labelStartImage",resolveAll:pd.resolveAll,tokenize:nT};function nT(n,a,i){const r=this;return u;function u(h){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(h),n.exit("labelImageMarker"),o}function o(h){return h===91?(n.enter("labelMarker"),n.consume(h),n.exit("labelMarker"),n.exit("labelImage"),c):i(h)}function c(h){return h===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(h):a(h)}}const aT={name:"labelStartLink",resolveAll:pd.resolveAll,tokenize:lT};function lT(n,a,i){const r=this;return u;function u(c){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(c),n.exit("labelMarker"),n.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(c):a(c)}}const _f={name:"lineEnding",tokenize:iT};function iT(n,a){return i;function i(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),Xe(n,a,"linePrefix")}}const pu={name:"thematicBreak",tokenize:rT};function rT(n,a,i){let r=0,u;return o;function o(p){return n.enter("thematicBreak"),c(p)}function c(p){return u=p,h(p)}function h(p){return p===u?(n.enter("thematicBreakSequence"),m(p)):r>=3&&(p===null||Te(p))?(n.exit("thematicBreak"),a(p)):i(p)}function m(p){return p===u?(n.consume(p),r++,m):(n.exit("thematicBreakSequence"),qe(p)?Xe(n,h,"whitespace")(p):h(p))}}const nn={continuation:{tokenize:cT},exit:dT,name:"list",tokenize:oT},sT={partial:!0,tokenize:hT},uT={partial:!0,tokenize:fT};function oT(n,a,i){const r=this,u=r.events[r.events.length-1];let o=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,c=0;return h;function h(b){const k=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:If(b)){if(r.containerState.type||(r.containerState.type=k,n.enter(k,{_container:!0})),k==="listUnordered")return n.enter("listItemPrefix"),b===42||b===45?n.check(pu,i,p)(b):p(b);if(!r.interrupt||b===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(b)}return i(b)}function m(b){return If(b)&&++c<10?(n.consume(b),m):(!r.interrupt||c<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(n.exit("listItemValue"),p(b)):i(b)}function p(b){return n.enter("listItemMarker"),n.consume(b),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,n.check(Br,r.interrupt?i:_,n.attempt(sT,x,y))}function _(b){return r.containerState.initialBlankLine=!0,o++,x(b)}function y(b){return qe(b)?(n.enter("listItemPrefixWhitespace"),n.consume(b),n.exit("listItemPrefixWhitespace"),x):i(b)}function x(b){return r.containerState.size=o+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(b)}}function cT(n,a,i){const r=this;return r.containerState._closeFlow=void 0,n.check(Br,u,o);function u(h){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Xe(n,a,"listItemIndent",r.containerState.size+1)(h)}function o(h){return r.containerState.furtherBlankLines||!qe(h)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(h)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(uT,a,c)(h))}function c(h){return r.containerState._closeFlow=!0,r.interrupt=void 0,Xe(n,n.attempt(nn,a,i),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function fT(n,a,i){const r=this;return Xe(n,u,"listItemIndent",r.containerState.size+1);function u(o){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?a(o):i(o)}}function dT(n){n.exit(this.containerState.type)}function hT(n,a,i){const r=this;return Xe(n,u,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(o){const c=r.events[r.events.length-1];return!qe(o)&&c&&c[1].type==="listItemPrefixWhitespace"?a(o):i(o)}}const Wg={name:"setextUnderline",resolveTo:mT,tokenize:pT};function mT(n,a){let i=n.length,r,u,o;for(;i--;)if(n[i][0]==="enter"){if(n[i][1].type==="content"){r=i;break}n[i][1].type==="paragraph"&&(u=i)}else n[i][1].type==="content"&&n.splice(i,1),!o&&n[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...n[r][1].start},end:{...n[n.length-1][1].end}};return n[u][1].type="setextHeadingText",o?(n.splice(u,0,["enter",c,a]),n.splice(o+1,0,["exit",n[r][1],a]),n[r][1].end={...n[o][1].end}):n[r][1]=c,n.push(["exit",c,a]),n}function pT(n,a,i){const r=this;let u;return o;function o(p){let _=r.events.length,y;for(;_--;)if(r.events[_][1].type!=="lineEnding"&&r.events[_][1].type!=="linePrefix"&&r.events[_][1].type!=="content"){y=r.events[_][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(n.enter("setextHeadingLine"),u=p,c(p)):i(p)}function c(p){return n.enter("setextHeadingLineSequence"),h(p)}function h(p){return p===u?(n.consume(p),h):(n.exit("setextHeadingLineSequence"),qe(p)?Xe(n,m,"lineSuffix")(p):m(p))}function m(p){return p===null||Te(p)?(n.exit("setextHeadingLine"),a(p)):i(p)}}const gT={tokenize:yT};function yT(n){const a=this,i=n.attempt(Br,r,n.attempt(this.parser.constructs.flowInitial,u,Xe(n,n.attempt(this.parser.constructs.flow,u,n.attempt(S2,u)),"linePrefix")));return i;function r(o){if(o===null){n.consume(o);return}return n.enter("lineEndingBlank"),n.consume(o),n.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function u(o){if(o===null){n.consume(o);return}return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),a.currentConstruct=void 0,i}}const _T={resolveAll:g1()},vT=p1("string"),xT=p1("text");function p1(n){return{resolveAll:g1(n==="text"?bT:void 0),tokenize:a};function a(i){const r=this,u=this.parser.constructs[n],o=i.attempt(u,c,h);return c;function c(_){return p(_)?o(_):h(_)}function h(_){if(_===null){i.consume(_);return}return i.enter("data"),i.consume(_),m}function m(_){return p(_)?(i.exit("data"),o(_)):(i.consume(_),m)}function p(_){if(_===null)return!0;const y=u[_];let x=-1;if(y)for(;++x<y.length;){const b=y[x];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function g1(n){return a;function a(i,r){let u=-1,o;for(;++u<=i.length;)o===void 0?i[u]&&i[u][1].type==="data"&&(o=u,u++):(!i[u]||i[u][1].type!=="data")&&(u!==o+2&&(i[o][1].end=i[u-1][1].end,i.splice(o+2,u-o-2),u=o+2),o=void 0);return n?n(i,r):i}}function bT(n,a){let i=0;for(;++i<=n.length;)if((i===n.length||n[i][1].type==="lineEnding")&&n[i-1][1].type==="data"){const r=n[i-1][1],u=a.sliceStream(r);let o=u.length,c=-1,h=0,m;for(;o--;){const p=u[o];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)h++,c--;if(c)break;c=-1}else if(p===-2)m=!0,h++;else if(p!==-1){o++;break}}if(a._contentTypeTextTrailing&&i===n.length&&(h=0),h){const p={type:i===n.length||m||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:r.start._bufferIndex+c,_index:r.start._index+o,line:r.end.line,column:r.end.column-h,offset:r.end.offset-h},end:{...r.end}};r.end={...p.start},r.start.offset===r.end.offset?Object.assign(r,p):(n.splice(i,0,["enter",p,a],["exit",p,a]),i+=2)}i++}return n}const ST={42:nn,43:nn,45:nn,48:nn,49:nn,50:nn,51:nn,52:nn,53:nn,54:nn,55:nn,56:nn,57:nn,62:u1},TT={91:C2},kT={[-2]:yf,[-1]:yf,32:yf},ET={35:R2,42:pu,45:[Wg,pu],60:B2,61:Wg,95:pu,96:Jg,126:Jg},NT={38:c1,92:o1},CT={[-5]:_f,[-4]:_f,[-3]:_f,33:tT,38:c1,42:Vf,60:[a2,Z2],91:aT,92:[M2,o1],93:pd,95:Vf,96:g2},AT={null:[Vf,_T]},wT={null:[42,95]},jT={null:[]},MT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wT,contentInitial:TT,disable:jT,document:ST,flow:ET,flowInitial:kT,insideSpan:AT,string:NT,text:CT},Symbol.toStringTag,{value:"Module"}));function zT(n,a,i){let r={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const u={},o=[];let c=[],h=[];const m={attempt:P(te),check:P(D),consume:M,enter:O,exit:K,interrupt:P(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:w,events:[],now:k,parser:n,previous:null,sliceSerialize:x,sliceStream:b,write:y};let _=a.tokenize.call(p,m);return a.resolveAll&&o.push(a),p;function y(W){return c=wn(c,W),R(),c[c.length-1]!==null?[]:(ve(a,0),p.events=Du(o,p.events,p),p.events)}function x(W,F){return OT(b(W),F)}function b(W){return RT(c,W)}function k(){const{_bufferIndex:W,_index:F,line:Se,column:ce,offset:ie}=r;return{_bufferIndex:W,_index:F,line:Se,column:ce,offset:ie}}function w(W){u[W.line]=W.column,L()}function R(){let W;for(;r._index<c.length;){const F=c[r._index];if(typeof F=="string")for(W=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===W&&r._bufferIndex<F.length;)T(F.charCodeAt(r._bufferIndex));else T(F)}}function T(W){_=_(W)}function M(W){Te(W)?(r.line++,r.column=1,r.offset+=W===-3?2:1,L()):W!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=W}function O(W,F){const Se=F||{};return Se.type=W,Se.start=k(),p.events.push(["enter",Se,p]),h.push(Se),Se}function K(W){const F=h.pop();return F.end=k(),p.events.push(["exit",F,p]),F}function te(W,F){ve(W,F.from)}function D(W,F){F.restore()}function P(W,F){return Se;function Se(ce,ie,U){let J,fe,re,N;return Array.isArray(ce)?Z(ce):"tokenize"in ce?Z([ce]):A(ce);function A(oe){return je;function je(pt){const lt=pt!==null&&oe[pt],yn=pt!==null&&oe.null,Kn=[...Array.isArray(lt)?lt:lt?[lt]:[],...Array.isArray(yn)?yn:yn?[yn]:[]];return Z(Kn)(pt)}}function Z(oe){return J=oe,fe=0,oe.length===0?U:E(oe[fe])}function E(oe){return je;function je(pt){return N=ge(),re=oe,oe.partial||(p.currentConstruct=oe),oe.name&&p.parser.constructs.disable.null.includes(oe.name)?ae():oe.tokenize.call(F?Object.assign(Object.create(p),F):p,m,G,ae)(pt)}}function G(oe){return W(re,N),ie}function ae(oe){return N.restore(),++fe<J.length?E(J[fe]):U}}}function ve(W,F){W.resolveAll&&!o.includes(W)&&o.push(W),W.resolve&&pn(p.events,F,p.events.length-F,W.resolve(p.events.slice(F),p)),W.resolveTo&&(p.events=W.resolveTo(p.events,p))}function ge(){const W=k(),F=p.previous,Se=p.currentConstruct,ce=p.events.length,ie=Array.from(h);return{from:ce,restore:U};function U(){r=W,p.previous=F,p.currentConstruct=Se,p.events.length=ce,h=ie,L()}}function L(){r.line in u&&r.column<2&&(r.column=u[r.line],r.offset+=u[r.line]-1)}}function RT(n,a){const i=a.start._index,r=a.start._bufferIndex,u=a.end._index,o=a.end._bufferIndex;let c;if(i===u)c=[n[i].slice(r,o)];else{if(c=n.slice(i,u),r>-1){const h=c[0];typeof h=="string"?c[0]=h.slice(r):c.shift()}o>0&&c.push(n[u].slice(0,o))}return c}function OT(n,a){let i=-1;const r=[];let u;for(;++i<n.length;){const o=n[i];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
226
+ `;break}case-3:{c=`\r
227
+ `;break}case-2:{c=a?" ":" ";break}case-1:{if(!a&&u)continue;c=" ";break}default:c=String.fromCharCode(o)}u=o===-2,r.push(c)}return r.join("")}function DT(n){const r={constructs:r1([MT,...(n||{}).extensions||[]]),content:u(KS),defined:[],document:u(PS),flow:u(gT),lazy:{},string:u(vT),text:u(xT)};return r;function u(o){return c;function c(h){return zT(r,o,h)}}}function LT(n){for(;!f1(n););return n}const ey=/[\0\t\n\r]/g;function BT(){let n=1,a="",i=!0,r;return u;function u(o,c,h){const m=[];let p,_,y,x,b;for(o=a+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),y=0,a="",i&&(o.charCodeAt(0)===65279&&y++,i=void 0);y<o.length;){if(ey.lastIndex=y,p=ey.exec(o),x=p&&p.index!==void 0?p.index:o.length,b=o.charCodeAt(x),!p){a=o.slice(y);break}if(b===10&&y===x&&r)m.push(-3),r=void 0;else switch(r&&(m.push(-5),r=void 0),y<x&&(m.push(o.slice(y,x)),n+=x-y),b){case 0:{m.push(65533),n++;break}case 9:{for(_=Math.ceil(n/4)*4,m.push(-2);n++<_;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:r=!0,n=1}y=x+1}return h&&(r&&m.push(-5),a&&m.push(a),m.push(null)),m}}const UT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function HT(n){return n.replace(UT,qT)}function qT(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const u=i.charCodeAt(1),o=u===120||u===88;return s1(i.slice(o?2:1),o?16:10)}return md(i)||n}const y1={}.hasOwnProperty;function IT(n,a,i){return a&&typeof a=="object"&&(i=a,a=void 0),VT(i)(LT(DT(i).document().write(BT()(n,a,!0))))}function VT(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Cl),autolinkProtocol:ge,autolinkEmail:ge,atxHeading:o(El),blockQuote:o(yn),characterEscape:ge,characterReference:ge,codeFenced:o(Kn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(Kn,c),codeText:o(Ci,c),codeTextData:ge,data:ge,codeFlowValue:ge,definition:o(qr),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(Jn),hardBreakEscape:o(Nl),hardBreakTrailing:o(Nl),htmlFlow:o(Ir,c),htmlFlowData:ge,htmlText:o(Ir,c),htmlTextData:ge,image:o(Vr),label:c,link:o(Cl),listItem:o(Ai),listItemValue:x,listOrdered:o(Al,y),listUnordered:o(Al),paragraph:o(Yu),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(El),strong:o(Xu),thematicBreak:o($u)},exit:{atxHeading:m(),atxHeadingSequence:te,autolink:m(),autolinkEmail:lt,autolinkProtocol:pt,blockQuote:m(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:oe,characterReference:je,codeFenced:m(R),codeFencedFence:w,codeFencedFenceInfo:b,codeFencedFenceMeta:k,codeFlowValue:L,codeIndented:m(T),codeText:m(ie),codeTextData:L,data:L,definition:m(),definitionDestinationString:K,definitionLabelString:M,definitionTitleString:O,emphasis:m(),hardBreakEscape:m(F),hardBreakTrailing:m(F),htmlFlow:m(Se),htmlFlowData:L,htmlText:m(ce),htmlTextData:L,image:m(J),label:re,labelText:fe,lineEnding:W,link:m(U),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:G,resourceDestinationString:N,resourceTitleString:A,resource:Z,setextHeading:m(ve),setextHeadingLineSequence:P,setextHeadingText:D,strong:m(),thematicBreak:m()}};_1(a,(n||{}).mdastExtensions||[]);const i={};return r;function r(X){let se={type:"root",children:[]};const Ne={stack:[se],tokenStack:[],config:a,enter:h,exit:p,buffer:c,resume:_,data:i},Be=[];let et=-1;for(;++et<X.length;)if(X[et][1].type==="listOrdered"||X[et][1].type==="listUnordered")if(X[et][0]==="enter")Be.push(et);else{const ln=Be.pop();et=u(X,ln,et)}for(et=-1;++et<X.length;){const ln=a[X[et][0]];y1.call(ln,X[et][1].type)&&ln[X[et][1].type].call(Object.assign({sliceSerialize:X[et][2].sliceSerialize},Ne),X[et][1])}if(Ne.tokenStack.length>0){const ln=Ne.tokenStack[Ne.tokenStack.length-1];(ln[1]||ty).call(Ne,void 0,ln[0])}for(se.position={start:Qa(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Qa(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},et=-1;++et<a.transforms.length;)se=a.transforms[et](se)||se;return se}function u(X,se,Ne){let Be=se-1,et=-1,ln=!1,Pn,Zt,wt,Qt;for(;++Be<=Ne;){const ut=X[Be];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?et++:et--,Qt=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(Pn&&!Qt&&!et&&!wt&&(wt=Be),Qt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qt=void 0}if(!et&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||et===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(Pn){let Ta=Be;for(Zt=void 0;Ta--;){const zn=X[Ta];if(zn[1].type==="lineEnding"||zn[1].type==="lineEndingBlank"){if(zn[0]==="exit")continue;Zt&&(X[Zt][1].type="lineEndingBlank",ln=!0),zn[1].type="lineEnding",Zt=Ta}else if(!(zn[1].type==="linePrefix"||zn[1].type==="blockQuotePrefix"||zn[1].type==="blockQuotePrefixWhitespace"||zn[1].type==="blockQuoteMarker"||zn[1].type==="listItemIndent"))break}wt&&(!Zt||wt<Zt)&&(Pn._spread=!0),Pn.end=Object.assign({},Zt?X[Zt][1].start:ut[1].end),X.splice(Zt||Be,0,["exit",Pn,ut[2]]),Be++,Ne++}if(ut[1].type==="listItemPrefix"){const Ta={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};Pn=Ta,X.splice(Be,0,["enter",Ta,ut[2]]),Be++,Ne++,wt=void 0,Qt=!0}}}return X[se][1]._spread=ln,Ne}function o(X,se){return Ne;function Ne(Be){h.call(this,X(Be),Be),se&&se.call(this,Be)}}function c(){this.stack.push({type:"fragment",children:[]})}function h(X,se,Ne){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([se,Ne||void 0]),X.position={start:Qa(se.start),end:void 0}}function m(X){return se;function se(Ne){X&&X.call(this,Ne),p.call(this,Ne)}}function p(X,se){const Ne=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==X.type&&(se?se.call(this,X,Be[0]):(Be[1]||ty).call(this,X,Be[0]));else throw new Error("Cannot close `"+X.type+"` ("+Ar({start:X.start,end:X.end})+"): it’s not open");Ne.position.end=Qa(X.end)}function _(){return hd(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function x(X){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function b(){const X=this.resume(),se=this.stack[this.stack.length-1];se.lang=X}function k(){const X=this.resume(),se=this.stack[this.stack.length-1];se.meta=X}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X.replace(/(\r?\n|\r)$/g,"")}function M(X){const se=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=se,Ne.identifier=Hn(this.sliceSerialize(X)).toLowerCase()}function O(){const X=this.resume(),se=this.stack[this.stack.length-1];se.title=X}function K(){const X=this.resume(),se=this.stack[this.stack.length-1];se.url=X}function te(X){const se=this.stack[this.stack.length-1];if(!se.depth){const Ne=this.sliceSerialize(X).length;se.depth=Ne}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function P(X){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ve(){this.data.setextHeadingSlurpLineEnding=void 0}function ge(X){const Ne=this.stack[this.stack.length-1].children;let Be=Ne[Ne.length-1];(!Be||Be.type!=="text")&&(Be=Gt(),Be.position={start:Qa(X.start),end:void 0},Ne.push(Be)),this.stack.push(Be)}function L(X){const se=this.stack.pop();se.value+=this.sliceSerialize(X),se.position.end=Qa(X.end)}function W(X){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ne=se.children[se.children.length-1];Ne.position.end=Qa(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(se.type)&&(ge.call(this,X),L.call(this,X))}function F(){this.data.atHardBreak=!0}function Se(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X}function ce(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X}function ie(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X}function U(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=se,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function J(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=se,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function fe(X){const se=this.sliceSerialize(X),Ne=this.stack[this.stack.length-2];Ne.label=HT(se),Ne.identifier=Hn(se).toLowerCase()}function re(){const X=this.stack[this.stack.length-1],se=this.resume(),Ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ne.type==="link"){const Be=X.children;Ne.children=Be}else Ne.alt=se}function N(){const X=this.resume(),se=this.stack[this.stack.length-1];se.url=X}function A(){const X=this.resume(),se=this.stack[this.stack.length-1];se.title=X}function Z(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function G(X){const se=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=se,Ne.identifier=Hn(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function ae(X){this.data.characterReferenceType=X.type}function oe(X){const se=this.sliceSerialize(X),Ne=this.data.characterReferenceType;let Be;Ne?(Be=s1(se,Ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Be=md(se);const et=this.stack[this.stack.length-1];et.value+=Be}function je(X){const se=this.stack.pop();se.position.end=Qa(X.end)}function pt(X){L.call(this,X);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(X)}function lt(X){L.call(this,X);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(X)}function yn(){return{type:"blockquote",children:[]}}function Kn(){return{type:"code",lang:null,meta:null,value:""}}function Ci(){return{type:"inlineCode",value:""}}function qr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Jn(){return{type:"emphasis",children:[]}}function El(){return{type:"heading",depth:0,children:[]}}function Nl(){return{type:"break"}}function Ir(){return{type:"html",value:""}}function Vr(){return{type:"image",title:null,url:"",alt:null}}function Cl(){return{type:"link",title:null,url:"",children:[]}}function Al(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Ai(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function Yu(){return{type:"paragraph",children:[]}}function Xu(){return{type:"strong",children:[]}}function Gt(){return{type:"text",value:""}}function $u(){return{type:"thematicBreak"}}}function Qa(n){return{line:n.line,column:n.column,offset:n.offset}}function _1(n,a){let i=-1;for(;++i<a.length;){const r=a[i];Array.isArray(r)?_1(n,r):GT(n,r)}}function GT(n,a){let i;for(i in a)if(y1.call(a,i))switch(i){case"canContainEols":{const r=a[i];r&&n[i].push(...r);break}case"transforms":{const r=a[i];r&&n[i].push(...r);break}case"enter":case"exit":{const r=a[i];r&&Object.assign(n[i],r);break}}}function ty(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Ar({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Ar({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ar({start:a.start,end:a.end})+") is still open")}function ZT(n){const a=this;a.parser=i;function i(r){return IT(r,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function YT(n,a){const i={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,i),n.applyData(a,i)}function XT(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
228
+ `}]}function $T(n,a){const i=a.value?a.value+`
229
+ `:"",r={},u=a.lang?a.lang.split(/\s+/):[];u.length>0&&(r.className=["language-"+u[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:i}]};return a.meta&&(o.data={meta:a.meta}),n.patch(a,o),o=n.applyData(a,o),o={type:"element",tagName:"pre",properties:{},children:[o]},n.patch(a,o),o}function QT(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function FT(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function KT(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=String(a.identifier).toUpperCase(),u=Ei(r.toLowerCase()),o=n.footnoteOrder.indexOf(r);let c,h=n.footnoteCounts.get(r);h===void 0?(h=0,n.footnoteOrder.push(r),c=n.footnoteOrder.length):c=o+1,h+=1,n.footnoteCounts.set(r,h);const m={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+u,id:i+"fnref-"+u+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};n.patch(a,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return n.patch(a,p),n.applyData(a,p)}function JT(n,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function PT(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function v1(n,a){const i=a.referenceType;let r="]";if(i==="collapsed"?r+="[]":i==="full"&&(r+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+r}];const u=n.all(a),o=u[0];o&&o.type==="text"?o.value="["+o.value:u.unshift({type:"text",value:"["});const c=u[u.length-1];return c&&c.type==="text"?c.value+=r:u.push({type:"text",value:r}),u}function WT(n,a){const i=String(a.identifier).toUpperCase(),r=n.definitionById.get(i);if(!r)return v1(n,a);const u={src:Ei(r.url||""),alt:a.alt};r.title!==null&&r.title!==void 0&&(u.title=r.title);const o={type:"element",tagName:"img",properties:u,children:[]};return n.patch(a,o),n.applyData(a,o)}function ek(n,a){const i={src:Ei(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const r={type:"element",tagName:"img",properties:i,children:[]};return n.patch(a,r),n.applyData(a,r)}function tk(n,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,i);const r={type:"element",tagName:"code",properties:{},children:[i]};return n.patch(a,r),n.applyData(a,r)}function nk(n,a){const i=String(a.identifier).toUpperCase(),r=n.definitionById.get(i);if(!r)return v1(n,a);const u={href:Ei(r.url||"")};r.title!==null&&r.title!==void 0&&(u.title=r.title);const o={type:"element",tagName:"a",properties:u,children:n.all(a)};return n.patch(a,o),n.applyData(a,o)}function ak(n,a){const i={href:Ei(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const r={type:"element",tagName:"a",properties:i,children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function lk(n,a,i){const r=n.all(a),u=i?ik(i):x1(a),o={},c=[];if(typeof a.checked=="boolean"){const _=r[0];let y;_&&_.type==="element"&&_.tagName==="p"?y=_:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let h=-1;for(;++h<r.length;){const _=r[h];(u||h!==0||_.type!=="element"||_.tagName!=="p")&&c.push({type:"text",value:`
230
+ `}),_.type==="element"&&_.tagName==="p"&&!u?c.push(..._.children):c.push(_)}const m=r[r.length-1];m&&(u||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
231
+ `});const p={type:"element",tagName:"li",properties:o,children:c};return n.patch(a,p),n.applyData(a,p)}function ik(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const i=n.children;let r=-1;for(;!a&&++r<i.length;)a=x1(i[r])}return a}function x1(n){const a=n.spread;return a??n.children.length>1}function rk(n,a){const i={},r=n.all(a);let u=-1;for(typeof a.start=="number"&&a.start!==1&&(i.start=a.start);++u<r.length;){const c=r[u];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const o={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:n.wrap(r,!0)};return n.patch(a,o),n.applyData(a,o)}function sk(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function uk(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function ok(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function ck(n,a){const i=n.all(a),r=i.shift(),u=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:n.wrap([r],!0)};n.patch(a.children[0],c),u.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:n.wrap(i,!0)},h=od(a.children[1]),m=Wy(a.children[a.children.length-1]);h&&m&&(c.position={start:h,end:m}),u.push(c)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(u,!0)};return n.patch(a,o),n.applyData(a,o)}function fk(n,a,i){const r=i?i.children:void 0,o=(r?r.indexOf(a):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,h=c?c.length:a.children.length;let m=-1;const p=[];for(;++m<h;){const y=a.children[m],x={},b=c?c[m]:void 0;b&&(x.align=b);let k={type:"element",tagName:o,properties:x,children:[]};y&&(k.children=n.all(y),n.patch(y,k),k=n.applyData(y,k)),p.push(k)}const _={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(a,_),n.applyData(a,_)}function dk(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const ny=9,ay=32;function hk(n){const a=String(n),i=/\r?\n|\r/g;let r=i.exec(a),u=0;const o=[];for(;r;)o.push(ly(a.slice(u,r.index),u>0,!0),r[0]),u=r.index+r[0].length,r=i.exec(a);return o.push(ly(a.slice(u),u>0,!1)),o.join("")}function ly(n,a,i){let r=0,u=n.length;if(a){let o=n.codePointAt(r);for(;o===ny||o===ay;)r++,o=n.codePointAt(r)}if(i){let o=n.codePointAt(u-1);for(;o===ny||o===ay;)u--,o=n.codePointAt(u-1)}return u>r?n.slice(r,u):""}function mk(n,a){const i={type:"text",value:hk(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function pk(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const gk={blockquote:YT,break:XT,code:$T,delete:QT,emphasis:FT,footnoteReference:KT,heading:JT,html:PT,imageReference:WT,image:ek,inlineCode:tk,linkReference:nk,link:ak,listItem:lk,list:rk,paragraph:sk,root:uk,strong:ok,table:ck,tableCell:dk,tableRow:fk,text:mk,thematicBreak:pk,toml:su,yaml:su,definition:su,footnoteDefinition:su};function su(){}const b1=-1,Lu=0,jr=1,_u=2,gd=3,yd=4,_d=5,vd=6,S1=7,T1=8,iy=typeof self=="object"?self:globalThis,yk=(n,a)=>{const i=(u,o)=>(n.set(o,u),u),r=u=>{if(n.has(u))return n.get(u);const[o,c]=a[u];switch(o){case Lu:case b1:return i(c,u);case jr:{const h=i([],u);for(const m of c)h.push(r(m));return h}case _u:{const h=i({},u);for(const[m,p]of c)h[r(m)]=r(p);return h}case gd:return i(new Date(c),u);case yd:{const{source:h,flags:m}=c;return i(new RegExp(h,m),u)}case _d:{const h=i(new Map,u);for(const[m,p]of c)h.set(r(m),r(p));return h}case vd:{const h=i(new Set,u);for(const m of c)h.add(r(m));return h}case S1:{const{name:h,message:m}=c;return i(new iy[h](m),u)}case T1:return i(BigInt(c),u);case"BigInt":return i(Object(BigInt(c)),u);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:h}=new Uint8Array(c);return i(new DataView(h),c)}}return i(new iy[o](c),u)};return r},ry=n=>yk(new Map,n)(0),mi="",{toString:_k}={},{keys:vk}=Object,Er=n=>{const a=typeof n;if(a!=="object"||!n)return[Lu,a];const i=_k.call(n).slice(8,-1);switch(i){case"Array":return[jr,mi];case"Object":return[_u,mi];case"Date":return[gd,mi];case"RegExp":return[yd,mi];case"Map":return[_d,mi];case"Set":return[vd,mi];case"DataView":return[jr,i]}return i.includes("Array")?[jr,i]:i.includes("Error")?[S1,i]:[_u,i]},uu=([n,a])=>n===Lu&&(a==="function"||a==="symbol"),xk=(n,a,i,r)=>{const u=(c,h)=>{const m=r.push(c)-1;return i.set(h,m),m},o=c=>{if(i.has(c))return i.get(c);let[h,m]=Er(c);switch(h){case Lu:{let _=c;switch(m){case"bigint":h=T1,_=c.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+m);_=null;break;case"undefined":return u([b1],c)}return u([h,_],c)}case jr:{if(m){let x=c;return m==="DataView"?x=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(x=new Uint8Array(c)),u([m,[...x]],c)}const _=[],y=u([h,_],c);for(const x of c)_.push(o(x));return y}case _u:{if(m)switch(m){case"BigInt":return u([m,c.toString()],c);case"Boolean":case"Number":case"String":return u([m,c.valueOf()],c)}if(a&&"toJSON"in c)return o(c.toJSON());const _=[],y=u([h,_],c);for(const x of vk(c))(n||!uu(Er(c[x])))&&_.push([o(x),o(c[x])]);return y}case gd:return u([h,c.toISOString()],c);case yd:{const{source:_,flags:y}=c;return u([h,{source:_,flags:y}],c)}case _d:{const _=[],y=u([h,_],c);for(const[x,b]of c)(n||!(uu(Er(x))||uu(Er(b))))&&_.push([o(x),o(b)]);return y}case vd:{const _=[],y=u([h,_],c);for(const x of c)(n||!uu(Er(x)))&&_.push(o(x));return y}}const{message:p}=c;return u([h,{name:m,message:p}],c)};return o},sy=(n,{json:a,lossy:i}={})=>{const r=[];return xk(!(a||i),!!a,new Map,r)(n),r},vu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?ry(sy(n,a)):structuredClone(n):(n,a)=>ry(sy(n,a));function bk(n,a){const i=[{type:"text",value:"↩"}];return a>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),i}function Sk(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function Tk(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||bk,r=n.options.footnoteBackLabel||Sk,u=n.options.footnoteLabel||"Footnotes",o=n.options.footnoteLabelTagName||"h2",c=n.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let m=-1;for(;++m<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[m]);if(!p)continue;const _=n.all(p),y=String(p.identifier).toUpperCase(),x=Ei(y.toLowerCase());let b=0;const k=[],w=n.footnoteCounts.get(y);for(;w!==void 0&&++b<=w;){k.length>0&&k.push({type:"text",value:" "});let M=typeof i=="string"?i:i(m,b);typeof M=="string"&&(M={type:"text",value:M}),k.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(m,b),className:["data-footnote-backref"]},children:Array.isArray(M)?M:[M]})}const R=_[_.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const M=R.children[R.children.length-1];M&&M.type==="text"?M.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...k)}else _.push(...k);const T={type:"element",tagName:"li",properties:{id:a+"fn-"+x},children:n.wrap(_,!0)};n.patch(p,T),h.push(T)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...vu(c),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
232
+ `},{type:"element",tagName:"ol",properties:{},children:n.wrap(h,!0)},{type:"text",value:`
233
+ `}]}}const Bu=(function(n){if(n==null)return Ck;if(typeof n=="function")return Uu(n);if(typeof n=="object")return Array.isArray(n)?kk(n):Ek(n);if(typeof n=="string")return Nk(n);throw new Error("Expected function, string, or object as test")});function kk(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=Bu(n[i]);return Uu(r);function r(...u){let o=-1;for(;++o<a.length;)if(a[o].apply(this,u))return!0;return!1}}function Ek(n){const a=n;return Uu(i);function i(r){const u=r;let o;for(o in n)if(u[o]!==a[o])return!1;return!0}}function Nk(n){return Uu(a);function a(i){return i&&i.type===n}}function Uu(n){return a;function a(i,r,u){return!!(Ak(i)&&n.call(this,i,typeof r=="number"?r:void 0,u||void 0))}}function Ck(){return!0}function Ak(n){return n!==null&&typeof n=="object"&&"type"in n}const k1=[],wk=!0,Gf=!1,jk="skip";function E1(n,a,i,r){let u;typeof a=="function"&&typeof i!="function"?(r=i,i=a):u=a;const o=Bu(u),c=r?-1:1;h(n,void 0,[])();function h(m,p,_){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const b=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(m.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=k1,k,w,R;if((!a||o(m,p,_[_.length-1]||void 0))&&(b=Mk(i(m,_)),b[0]===Gf))return b;if("children"in m&&m.children){const T=m;if(T.children&&b[0]!==jk)for(w=(r?T.children.length:-1)+c,R=_.concat(T);w>-1&&w<T.children.length;){const M=T.children[w];if(k=h(M,w,R)(),k[0]===Gf)return k;w=typeof k[1]=="number"?k[1]:w+c}}return b}}}function Mk(n){return Array.isArray(n)?n:typeof n=="number"?[wk,n]:n==null?k1:[n]}function xd(n,a,i,r){let u,o,c;typeof a=="function"&&typeof i!="function"?(o=void 0,c=a,u=i):(o=a,c=i,u=r),E1(n,o,h,u);function h(m,p){const _=p[p.length-1],y=_?_.children.indexOf(m):void 0;return c(m,y,_)}}const Zf={}.hasOwnProperty,zk={};function Rk(n,a){const i=a||zk,r=new Map,u=new Map,o=new Map,c={...gk,...i.handlers},h={all:p,applyData:Dk,definitionById:r,footnoteById:u,footnoteCounts:o,footnoteOrder:[],handlers:c,one:m,options:i,patch:Ok,wrap:Bk};return xd(n,function(_){if(_.type==="definition"||_.type==="footnoteDefinition"){const y=_.type==="definition"?r:u,x=String(_.identifier).toUpperCase();y.has(x)||y.set(x,_)}}),h;function m(_,y){const x=_.type,b=h.handlers[x];if(Zf.call(h.handlers,x)&&b)return b(h,_,y);if(h.options.passThrough&&h.options.passThrough.includes(x)){if("children"in _){const{children:w,...R}=_,T=vu(R);return T.children=h.all(_),T}return vu(_)}return(h.options.unknownHandler||Lk)(h,_,y)}function p(_){const y=[];if("children"in _){const x=_.children;let b=-1;for(;++b<x.length;){const k=h.one(x[b],_);if(k){if(b&&x[b-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=uy(k.value)),!Array.isArray(k)&&k.type==="element")){const w=k.children[0];w&&w.type==="text"&&(w.value=uy(w.value))}Array.isArray(k)?y.push(...k):y.push(k)}}}return y}}function Ok(n,a){n.position&&(a.position=SS(n))}function Dk(n,a){let i=a;if(n&&n.data){const r=n.data.hName,u=n.data.hChildren,o=n.data.hProperties;if(typeof r=="string")if(i.type==="element")i.tagName=r;else{const c="children"in i?i.children:[i];i={type:"element",tagName:r,properties:{},children:c}}i.type==="element"&&o&&Object.assign(i.properties,vu(o)),"children"in i&&i.children&&u!==null&&u!==void 0&&(i.children=u)}return i}function Lk(n,a){const i=a.data||{},r="value"in a&&!(Zf.call(i,"hProperties")||Zf.call(i,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Bk(n,a){const i=[];let r=-1;for(a&&i.push({type:"text",value:`
234
+ `});++r<n.length;)r&&i.push({type:"text",value:`
235
+ `}),i.push(n[r]);return a&&n.length>0&&i.push({type:"text",value:`
236
+ `}),i}function uy(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function oy(n,a){const i=Rk(n,a),r=i.one(n,void 0),u=Tk(i),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return u&&o.children.push({type:"text",value:`
237
+ `},u),o}function Uk(n,a){return n&&"run"in n?async function(i,r){const u=oy(i,{file:r,...a});await n.run(u,r)}:function(i,r){return oy(i,{file:r,...n||a})}}function cy(n){if(n)throw n}var vf,fy;function Hk(){if(fy)return vf;fy=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,u=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},o=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var _=n.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!_&&!y)return!1;var x;for(x in p);return typeof x>"u"||n.call(p,x)},c=function(p,_){i&&_.name==="__proto__"?i(p,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):p[_.name]=_.newValue},h=function(p,_){if(_==="__proto__")if(n.call(p,_)){if(r)return r(p,_).value}else return;return p[_]};return vf=function m(){var p,_,y,x,b,k,w=arguments[0],R=1,T=arguments.length,M=!1;for(typeof w=="boolean"&&(M=w,w=arguments[1]||{},R=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});R<T;++R)if(p=arguments[R],p!=null)for(_ in p)y=h(w,_),x=h(p,_),w!==x&&(M&&x&&(o(x)||(b=u(x)))?(b?(b=!1,k=y&&u(y)?y:[]):k=y&&o(y)?y:{},c(w,{name:_,newValue:m(M,k,x)})):typeof x<"u"&&c(w,{name:_,newValue:x}));return w},vf}var qk=Hk();const xf=zu(qk);function Yf(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Ik(){const n=[],a={run:i,use:r};return a;function i(...u){let o=-1;const c=u.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);h(null,...u);function h(m,...p){const _=n[++o];let y=-1;if(m){c(m);return}for(;++y<u.length;)(p[y]===null||p[y]===void 0)&&(p[y]=u[y]);u=p,_?Vk(_,h)(...p):c(null,...p)}}function r(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return n.push(u),a}}function Vk(n,a){let i;return r;function r(...c){const h=n.length>c.length;let m;h&&c.push(u);try{m=n.apply(this,c)}catch(p){const _=p;if(h&&i)throw _;return u(_)}h||(m&&m.then&&typeof m.then=="function"?m.then(o,u):m instanceof Error?u(m):o(m))}function u(c,...h){i||(i=!0,a(c,...h))}function o(c){u(null,c)}}const Xn={basename:Gk,dirname:Zk,extname:Yk,join:Xk,sep:"/"};function Gk(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Ur(n);let i=0,r=-1,u=n.length,o;if(a===void 0||a.length===0||a.length>n.length){for(;u--;)if(n.codePointAt(u)===47){if(o){i=u+1;break}}else r<0&&(o=!0,r=u+1);return r<0?"":n.slice(i,r)}if(a===n)return"";let c=-1,h=a.length-1;for(;u--;)if(n.codePointAt(u)===47){if(o){i=u+1;break}}else c<0&&(o=!0,c=u+1),h>-1&&(n.codePointAt(u)===a.codePointAt(h--)?h<0&&(r=u):(h=-1,r=c));return i===r?r=c:r<0&&(r=n.length),n.slice(i,r)}function Zk(n){if(Ur(n),n.length===0)return".";let a=-1,i=n.length,r;for(;--i;)if(n.codePointAt(i)===47){if(r){a=i;break}}else r||(r=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function Yk(n){Ur(n);let a=n.length,i=-1,r=0,u=-1,o=0,c;for(;a--;){const h=n.codePointAt(a);if(h===47){if(c){r=a+1;break}continue}i<0&&(c=!0,i=a+1),h===46?u<0?u=a:o!==1&&(o=1):u>-1&&(o=-1)}return u<0||i<0||o===0||o===1&&u===i-1&&u===r+1?"":n.slice(u,i)}function Xk(...n){let a=-1,i;for(;++a<n.length;)Ur(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":$k(i)}function $k(n){Ur(n);const a=n.codePointAt(0)===47;let i=Qk(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function Qk(n,a){let i="",r=0,u=-1,o=0,c=-1,h,m;for(;++c<=n.length;){if(c<n.length)h=n.codePointAt(c);else{if(h===47)break;h=47}if(h===47){if(!(u===c-1||o===1))if(u!==c-1&&o===2){if(i.length<2||r!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",r=0):(i=i.slice(0,m),r=i.length-1-i.lastIndexOf("/")),u=c,o=0;continue}}else if(i.length>0){i="",r=0,u=c,o=0;continue}}a&&(i=i.length>0?i+"/..":"..",r=2)}else i.length>0?i+="/"+n.slice(u+1,c):i=n.slice(u+1,c),r=c-u-1;u=c,o=0}else h===46&&o>-1?o++:o=-1}return i}function Ur(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Fk={cwd:Kk};function Kk(){return"/"}function Xf(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Jk(n){if(typeof n=="string")n=new URL(n);else if(!Xf(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return Pk(n)}function Pk(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const a=n.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const r=a.codePointAt(i+2);if(r===70||r===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(a)}const bf=["history","path","basename","stem","extname","dirname"];class N1{constructor(a){let i;a?Xf(a)?i={path:a}:typeof a=="string"||Wk(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":Fk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<bf.length;){const o=bf[r];o in i&&i[o]!==void 0&&i[o]!==null&&(this[o]=o==="history"?[...i[o]]:i[o])}let u;for(u in i)bf.includes(u)||(this[u]=i[u])}get basename(){return typeof this.path=="string"?Xn.basename(this.path):void 0}set basename(a){Tf(a,"basename"),Sf(a,"basename"),this.path=Xn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?Xn.dirname(this.path):void 0}set dirname(a){dy(this.basename,"dirname"),this.path=Xn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?Xn.extname(this.path):void 0}set extname(a){if(Sf(a,"extname"),dy(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Xf(a)&&(a=Jk(a)),Tf(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?Xn.basename(this.path,this.extname):void 0}set stem(a){Tf(a,"stem"),Sf(a,"stem"),this.path=Xn.join(this.dirname||"",a+(this.extname||""))}fail(a,i,r){const u=this.message(a,i,r);throw u.fatal=!0,u}info(a,i,r){const u=this.message(a,i,r);return u.fatal=void 0,u}message(a,i,r){const u=new Vt(a,i,r);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Sf(n,a){if(n&&n.includes(Xn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+Xn.sep+"`")}function Tf(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function dy(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function Wk(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const eE=(function(n){const r=this.constructor.prototype,u=r[n],o=function(){return u.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),tE={}.hasOwnProperty;class bd extends eE{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=Ik()}copy(){const a=new bd;let i=-1;for(;++i<this.attachers.length;){const r=this.attachers[i];a.use(...r)}return a.data(xf(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(Nf("data",this.frozen),this.namespace[a]=i,this):tE.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Nf("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const u=i.call(a,...r);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const i=ou(a),r=this.parser||this.Parser;return kf("parse",r),r(String(i),i)}process(a,i){const r=this;return this.freeze(),kf("process",this.parser||this.Parser),Ef("process",this.compiler||this.Compiler),i?u(void 0,i):new Promise(u);function u(o,c){const h=ou(a),m=r.parse(h);r.run(m,h,function(_,y,x){if(_||!y||!x)return p(_);const b=y,k=r.stringify(b,x);lE(k)?x.value=k:x.result=k,p(_,x)});function p(_,y){_||!y?c(_):o?o(y):i(void 0,y)}}}processSync(a){let i=!1,r;return this.freeze(),kf("processSync",this.parser||this.Parser),Ef("processSync",this.compiler||this.Compiler),this.process(a,u),my("processSync","process",i),r;function u(o,c){i=!0,cy(o),r=c}}run(a,i,r){hy(a),this.freeze();const u=this.transformers;return!r&&typeof i=="function"&&(r=i,i=void 0),r?o(void 0,r):new Promise(o);function o(c,h){const m=ou(i);u.run(a,m,p);function p(_,y,x){const b=y||a;_?h(_):c?c(b):r(void 0,b,x)}}}runSync(a,i){let r=!1,u;return this.run(a,i,o),my("runSync","run",r),u;function o(c,h){cy(c),u=h,r=!0}}stringify(a,i){this.freeze();const r=ou(i),u=this.compiler||this.Compiler;return Ef("stringify",u),hy(a),u(a,r)}use(a,...i){const r=this.attachers,u=this.namespace;if(Nf("use",this.frozen),a!=null)if(typeof a=="function")m(a,i);else if(typeof a=="object")Array.isArray(a)?h(a):c(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function o(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[_,...y]=p;m(_,y)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(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");h(p.plugins),p.settings&&(u.settings=xf(!0,u.settings,p.settings))}function h(p){let _=-1;if(p!=null)if(Array.isArray(p))for(;++_<p.length;){const y=p[_];o(y)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,_){let y=-1,x=-1;for(;++y<r.length;)if(r[y][0]===p){x=y;break}if(x===-1)r.push([p,..._]);else if(_.length>0){let[b,...k]=_;const w=r[x][1];Yf(w)&&Yf(b)&&(b=xf(!0,w,b)),r[x]=[p,b,...k]}}}}const nE=new bd().freeze();function kf(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Ef(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Nf(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hy(n){if(!Yf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function my(n,a,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function ou(n){return aE(n)?n:new N1(n)}function aE(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function lE(n){return typeof n=="string"||iE(n)}function iE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const rE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",py=[],gy={allowDangerousHtml:!0},sE=/^(https?|ircs?|mailto|xmpp)$/i,uE=[{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 oE(n){const a=cE(n),i=fE(n);return dE(a.runSync(a.parse(i),i),n)}function cE(n){const a=n.rehypePlugins||py,i=n.remarkPlugins||py,r=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...gy}:gy;return nE().use(ZT).use(i).use(Uk,r).use(a)}function fE(n){const a=n.children||"",i=new N1;return typeof a=="string"&&(i.value=a),i}function dE(n,a){const i=a.allowedElements,r=a.allowElement,u=a.components,o=a.disallowedElements,c=a.skipHtml,h=a.unwrapDisallowed,m=a.urlTransform||hE;for(const _ of uE)Object.hasOwn(a,_.from)&&(""+_.from+(_.to?"use `"+_.to+"` instead":"remove it")+rE+_.id,void 0);return xd(n,p),CS(n,{Fragment:g.Fragment,components:u,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function p(_,y,x){if(_.type==="raw"&&x&&typeof y=="number")return c?x.children.splice(y,1):x.children[y]={type:"text",value:_.value},y;if(_.type==="element"){let b;for(b in gf)if(Object.hasOwn(gf,b)&&Object.hasOwn(_.properties,b)){const k=_.properties[b],w=gf[b];(w===null||w.includes(_.tagName))&&(_.properties[b]=m(String(k||""),b,_))}}if(_.type==="element"){let b=i?!i.includes(_.tagName):o?o.includes(_.tagName):!1;if(!b&&r&&typeof y=="number"&&(b=!r(_,y,x)),b&&x&&typeof y=="number")return h&&_.children?x.children.splice(y,1,..._.children):x.children.splice(y,1),y}}}function hE(n){const a=n.indexOf(":"),i=n.indexOf("?"),r=n.indexOf("#"),u=n.indexOf("/");return a===-1||u!==-1&&a>u||i!==-1&&a>i||r!==-1&&a>r||sE.test(n.slice(0,a))?n:""}function yy(n,a){const i=String(n);if(typeof a!="string")throw new TypeError("Expected character");let r=0,u=i.indexOf(a);for(;u!==-1;)r++,u=i.indexOf(a,u+a.length);return r}function mE(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function pE(n,a,i){const u=Bu((i||{}).ignore||[]),o=gE(a);let c=-1;for(;++c<o.length;)E1(n,"text",h);function h(p,_){let y=-1,x;for(;++y<_.length;){const b=_[y],k=x?x.children:void 0;if(u(b,k?k.indexOf(b):void 0,x))return;x=b}if(x)return m(p,_)}function m(p,_){const y=_[_.length-1],x=o[c][0],b=o[c][1];let k=0;const R=y.children.indexOf(p);let T=!1,M=[];x.lastIndex=0;let O=x.exec(p.value);for(;O;){const K=O.index,te={index:O.index,input:O.input,stack:[..._,p]};let D=b(...O,te);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?x.lastIndex=K+1:(k!==K&&M.push({type:"text",value:p.value.slice(k,K)}),Array.isArray(D)?M.push(...D):D&&M.push(D),k=K+O[0].length,T=!0),!x.global)break;O=x.exec(p.value)}return T?(k<p.value.length&&M.push({type:"text",value:p.value.slice(k)}),y.children.splice(R,1,...M)):M=[p],R+M.length}}function gE(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!n[0]||Array.isArray(n[0])?n:[n];let r=-1;for(;++r<i.length;){const u=i[r];a.push([yE(u[0]),_E(u[1])])}return a}function yE(n){return typeof n=="string"?new RegExp(mE(n),"g"):n}function _E(n){return typeof n=="function"?n:function(){return n}}const Cf="phrasing",Af=["autolink","link","image","label"];function vE(){return{transforms:[NE],enter:{literalAutolink:bE,literalAutolinkEmail:wf,literalAutolinkHttp:wf,literalAutolinkWww:wf},exit:{literalAutolink:EE,literalAutolinkEmail:kE,literalAutolinkHttp:SE,literalAutolinkWww:TE}}}function xE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Cf,notInConstruct:Af},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Cf,notInConstruct:Af},{character:":",before:"[ps]",after:"\\/",inConstruct:Cf,notInConstruct:Af}]}}function bE(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function wf(n){this.config.enter.autolinkProtocol.call(this,n)}function SE(n){this.config.exit.autolinkProtocol.call(this,n)}function TE(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function kE(n){this.config.exit.autolinkEmail.call(this,n)}function EE(n){this.exit(n)}function NE(n){pE(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,CE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),AE]],{ignore:["link","linkReference"]})}function CE(n,a,i,r,u){let o="";if(!C1(u)||(/^w/i.test(a)&&(i=a+i,a="",o="http://"),!wE(i)))return!1;const c=jE(i+r);if(!c[0])return!1;const h={type:"link",title:null,url:o+a+c[0],children:[{type:"text",value:a+c[0]}]};return c[1]?[h,{type:"text",value:c[1]}]:h}function AE(n,a,i,r){return!C1(r,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function wE(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function jE(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let i=a[0],r=i.indexOf(")");const u=yy(n,"(");let o=yy(n,")");for(;r!==-1&&u>o;)n+=i.slice(0,r+1),i=i.slice(r+1),r=i.indexOf(")"),o++;return[n,i]}function C1(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||_l(i)||Ou(i))&&(!a||i!==47)}A1.peek=HE;function ME(){this.buffer()}function zE(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function RE(){this.buffer()}function OE(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function DE(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Hn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function LE(n){this.exit(n)}function BE(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Hn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function UE(n){this.exit(n)}function HE(){return"["}function A1(n,a,i,r){const u=i.createTracker(r);let o=u.move("[^");const c=i.enter("footnoteReference"),h=i.enter("reference");return o+=u.move(i.safe(i.associationId(n),{after:"]",before:o})),h(),c(),o+=u.move("]"),o}function qE(){return{enter:{gfmFootnoteCallString:ME,gfmFootnoteCall:zE,gfmFootnoteDefinitionLabelString:RE,gfmFootnoteDefinition:OE},exit:{gfmFootnoteCallString:DE,gfmFootnoteCall:LE,gfmFootnoteDefinitionLabelString:BE,gfmFootnoteDefinition:UE}}}function IE(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:A1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(r,u,o,c){const h=o.createTracker(c);let m=h.move("[^");const p=o.enter("footnoteDefinition"),_=o.enter("label");return m+=h.move(o.safe(o.associationId(r),{before:m,after:"]"})),_(),m+=h.move("]:"),r.children&&r.children.length>0&&(h.shift(4),m+=h.move((a?`
238
+ `:" ")+o.indentLines(o.containerFlow(r,h.current()),a?w1:VE))),p(),m}}function VE(n,a,i){return a===0?n:w1(n,a,i)}function w1(n,a,i){return(i?"":" ")+n}const GE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];j1.peek=QE;function ZE(){return{canContainEols:["delete"],enter:{strikethrough:XE},exit:{strikethrough:$E}}}function YE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:GE}],handlers:{delete:j1}}}function XE(n){this.enter({type:"delete",children:[]},n)}function $E(n){this.exit(n)}function j1(n,a,i,r){const u=i.createTracker(r),o=i.enter("strikethrough");let c=u.move("~~");return c+=i.containerPhrasing(n,{...u.current(),before:c,after:"~"}),c+=u.move("~~"),o(),c}function QE(){return"~"}function FE(n){return n.length}function KE(n,a){const i=a||{},r=(i.align||[]).concat(),u=i.stringLength||FE,o=[],c=[],h=[],m=[];let p=0,_=-1;for(;++_<n.length;){const w=[],R=[];let T=-1;for(n[_].length>p&&(p=n[_].length);++T<n[_].length;){const M=JE(n[_][T]);if(i.alignDelimiters!==!1){const O=u(M);R[T]=O,(m[T]===void 0||O>m[T])&&(m[T]=O)}w.push(M)}c[_]=w,h[_]=R}let y=-1;if(typeof r=="object"&&"length"in r)for(;++y<p;)o[y]=_y(r[y]);else{const w=_y(r);for(;++y<p;)o[y]=w}y=-1;const x=[],b=[];for(;++y<p;){const w=o[y];let R="",T="";w===99?(R=":",T=":"):w===108?R=":":w===114&&(T=":");let M=i.alignDelimiters===!1?1:Math.max(1,m[y]-R.length-T.length);const O=R+"-".repeat(M)+T;i.alignDelimiters!==!1&&(M=R.length+M+T.length,M>m[y]&&(m[y]=M),b[y]=M),x[y]=O}c.splice(1,0,x),h.splice(1,0,b),_=-1;const k=[];for(;++_<c.length;){const w=c[_],R=h[_];y=-1;const T=[];for(;++y<p;){const M=w[y]||"";let O="",K="";if(i.alignDelimiters!==!1){const te=m[y]-(R[y]||0),D=o[y];D===114?O=" ".repeat(te):D===99?te%2?(O=" ".repeat(te/2+.5),K=" ".repeat(te/2-.5)):(O=" ".repeat(te/2),K=O):K=" ".repeat(te)}i.delimiterStart!==!1&&!y&&T.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&M==="")&&(i.delimiterStart!==!1||y)&&T.push(" "),i.alignDelimiters!==!1&&T.push(O),T.push(M),i.alignDelimiters!==!1&&T.push(K),i.padding!==!1&&T.push(" "),(i.delimiterEnd!==!1||y!==p-1)&&T.push("|")}k.push(i.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return k.join(`
239
+ `)}function JE(n){return n==null?"":String(n)}function _y(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function PE(n,a,i,r){const u=i.enter("blockquote"),o=i.createTracker(r);o.move("> "),o.shift(2);const c=i.indentLines(i.containerFlow(n,o.current()),WE);return u(),c}function WE(n,a,i){return">"+(i?"":" ")+n}function eN(n,a){return vy(n,a.inConstruct,!0)&&!vy(n,a.notInConstruct,!1)}function vy(n,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let r=-1;for(;++r<a.length;)if(n.includes(a[r]))return!0;return!1}function xy(n,a,i,r){let u=-1;for(;++u<i.unsafe.length;)if(i.unsafe[u].character===`
240
+ `&&eN(i.stack,i.unsafe[u]))return/[ \t]/.test(r.before)?"":" ";return`\\
241
+ `}function tN(n,a){const i=String(n);let r=i.indexOf(a),u=r,o=0,c=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===u?++o>c&&(c=o):o=1,u=r+a.length,r=i.indexOf(a,u);return c}function nN(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function aN(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function lN(n,a,i,r){const u=aN(i),o=n.value||"",c=u==="`"?"GraveAccent":"Tilde";if(nN(n,i)){const y=i.enter("codeIndented"),x=i.indentLines(o,iN);return y(),x}const h=i.createTracker(r),m=u.repeat(Math.max(tN(o,u)+1,3)),p=i.enter("codeFenced");let _=h.move(m);if(n.lang){const y=i.enter(`codeFencedLang${c}`);_+=h.move(i.safe(n.lang,{before:_,after:" ",encode:["`"],...h.current()})),y()}if(n.lang&&n.meta){const y=i.enter(`codeFencedMeta${c}`);_+=h.move(" "),_+=h.move(i.safe(n.meta,{before:_,after:`
242
+ `,encode:["`"],...h.current()})),y()}return _+=h.move(`
243
+ `),o&&(_+=h.move(o+`
244
+ `)),_+=h.move(m),p(),_}function iN(n,a,i){return(i?"":" ")+n}function Sd(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function rN(n,a,i,r){const u=Sd(i),o=u==='"'?"Quote":"Apostrophe",c=i.enter("definition");let h=i.enter("label");const m=i.createTracker(r);let p=m.move("[");return p+=m.move(i.safe(i.associationId(n),{before:p,after:"]",...m.current()})),p+=m.move("]: "),h(),!n.url||/[\0- \u007F]/.test(n.url)?(h=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(h=i.enter("destinationRaw"),p+=m.move(i.safe(n.url,{before:p,after:n.title?" ":`
245
+ `,...m.current()}))),h(),n.title&&(h=i.enter(`title${o}`),p+=m.move(" "+u),p+=m.move(i.safe(n.title,{before:p,after:u,...m.current()})),p+=m.move(u),h()),c(),p}function sN(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Rr(n){return"&#x"+n.toString(16).toUpperCase()+";"}function xu(n,a,i){const r=xi(n),u=xi(a);return r===void 0?u===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}M1.peek=uN;function M1(n,a,i,r){const u=sN(i),o=i.enter("emphasis"),c=i.createTracker(r),h=c.move(u);let m=c.move(i.containerPhrasing(n,{after:u,before:h,...c.current()}));const p=m.charCodeAt(0),_=xu(r.before.charCodeAt(r.before.length-1),p,u);_.inside&&(m=Rr(p)+m.slice(1));const y=m.charCodeAt(m.length-1),x=xu(r.after.charCodeAt(0),y,u);x.inside&&(m=m.slice(0,-1)+Rr(y));const b=c.move(u);return o(),i.attentionEncodeSurroundingInfo={after:x.outside,before:_.outside},h+m+b}function uN(n,a,i){return i.options.emphasis||"*"}function oN(n,a){let i=!1;return xd(n,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return i=!0,Gf}),!!((!n.depth||n.depth<3)&&hd(n)&&(a.options.setext||i))}function cN(n,a,i,r){const u=Math.max(Math.min(6,n.depth||1),1),o=i.createTracker(r);if(oN(n,i)){const _=i.enter("headingSetext"),y=i.enter("phrasing"),x=i.containerPhrasing(n,{...o.current(),before:`
246
+ `,after:`
247
+ `});return y(),_(),x+`
248
+ `+(u===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
249
+ `))+1))}const c="#".repeat(u),h=i.enter("headingAtx"),m=i.enter("phrasing");o.move(c+" ");let p=i.containerPhrasing(n,{before:"# ",after:`
250
+ `,...o.current()});return/^[\t ]/.test(p)&&(p=Rr(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,i.options.closeAtx&&(p+=" "+c),m(),h(),p}z1.peek=fN;function z1(n){return n.value||""}function fN(){return"<"}R1.peek=dN;function R1(n,a,i,r){const u=Sd(i),o=u==='"'?"Quote":"Apostrophe",c=i.enter("image");let h=i.enter("label");const m=i.createTracker(r);let p=m.move("![");return p+=m.move(i.safe(n.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(h=i.enter("destinationRaw"),p+=m.move(i.safe(n.url,{before:p,after:n.title?" ":")",...m.current()}))),h(),n.title&&(h=i.enter(`title${o}`),p+=m.move(" "+u),p+=m.move(i.safe(n.title,{before:p,after:u,...m.current()})),p+=m.move(u),h()),p+=m.move(")"),c(),p}function dN(){return"!"}O1.peek=hN;function O1(n,a,i,r){const u=n.referenceType,o=i.enter("imageReference");let c=i.enter("label");const h=i.createTracker(r);let m=h.move("![");const p=i.safe(n.alt,{before:m,after:"]",...h.current()});m+=h.move(p+"]["),c();const _=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(n),{before:m,after:"]",...h.current()});return c(),i.stack=_,o(),u==="full"||!p||p!==y?m+=h.move(y+"]"):u==="shortcut"?m=m.slice(0,-1):m+=h.move("]"),m}function hN(){return"!"}D1.peek=mN;function D1(n,a,i){let r=n.value||"",u="`",o=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(r);)u+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<i.unsafe.length;){const c=i.unsafe[o],h=i.compilePattern(c);let m;if(c.atBreak)for(;m=h.exec(r);){let p=m.index;r.charCodeAt(p)===10&&r.charCodeAt(p-1)===13&&p--,r=r.slice(0,p)+" "+r.slice(m.index+1)}}return u+r+u}function mN(){return"`"}function L1(n,a){const i=hd(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(i===n.url||"mailto:"+i===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}B1.peek=pN;function B1(n,a,i,r){const u=Sd(i),o=u==='"'?"Quote":"Apostrophe",c=i.createTracker(r);let h,m;if(L1(n,i)){const _=i.stack;i.stack=[],h=i.enter("autolink");let y=c.move("<");return y+=c.move(i.containerPhrasing(n,{before:y,after:">",...c.current()})),y+=c.move(">"),h(),i.stack=_,y}h=i.enter("link"),m=i.enter("label");let p=c.move("[");return p+=c.move(i.containerPhrasing(n,{before:p,after:"](",...c.current()})),p+=c.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=i.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(i.safe(n.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(m=i.enter("destinationRaw"),p+=c.move(i.safe(n.url,{before:p,after:n.title?" ":")",...c.current()}))),m(),n.title&&(m=i.enter(`title${o}`),p+=c.move(" "+u),p+=c.move(i.safe(n.title,{before:p,after:u,...c.current()})),p+=c.move(u),m()),p+=c.move(")"),h(),p}function pN(n,a,i){return L1(n,i)?"<":"["}U1.peek=gN;function U1(n,a,i,r){const u=n.referenceType,o=i.enter("linkReference");let c=i.enter("label");const h=i.createTracker(r);let m=h.move("[");const p=i.containerPhrasing(n,{before:m,after:"]",...h.current()});m+=h.move(p+"]["),c();const _=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(n),{before:m,after:"]",...h.current()});return c(),i.stack=_,o(),u==="full"||!p||p!==y?m+=h.move(y+"]"):u==="shortcut"?m=m.slice(0,-1):m+=h.move("]"),m}function gN(){return"["}function Td(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function yN(n){const a=Td(n),i=n.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function _N(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function H1(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function vN(n,a,i,r){const u=i.enter("list"),o=i.bulletCurrent;let c=n.ordered?_N(i):Td(i);const h=n.ordered?c==="."?")":".":yN(i);let m=a&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!n.ordered){const _=n.children?n.children[0]:void 0;if((c==="*"||c==="-")&&_&&(!_.children||!_.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(m=!0),H1(i)===c&&_){let y=-1;for(;++y<n.children.length;){const x=n.children[y];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=h),i.bulletCurrent=c;const p=i.containerFlow(n,r);return i.bulletLastUsed=c,i.bulletCurrent=o,u(),p}function xN(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function bN(n,a,i,r){const u=xN(i);let o=i.bulletCurrent||Td(i);a&&a.type==="list"&&a.ordered&&(o=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(n))+o);let c=o.length+1;(u==="tab"||u==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(c=Math.ceil(c/4)*4);const h=i.createTracker(r);h.move(o+" ".repeat(c-o.length)),h.shift(c);const m=i.enter("listItem"),p=i.indentLines(i.containerFlow(n,h.current()),_);return m(),p;function _(y,x,b){return x?(b?"":" ".repeat(c))+y:(b?o:o+" ".repeat(c-o.length))+y}}function SN(n,a,i,r){const u=i.enter("paragraph"),o=i.enter("phrasing"),c=i.containerPhrasing(n,r);return o(),u(),c}const TN=Bu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kN(n,a,i,r){return(n.children.some(function(c){return TN(c)})?i.containerPhrasing:i.containerFlow).call(i,n,r)}function EN(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}q1.peek=NN;function q1(n,a,i,r){const u=EN(i),o=i.enter("strong"),c=i.createTracker(r),h=c.move(u+u);let m=c.move(i.containerPhrasing(n,{after:u,before:h,...c.current()}));const p=m.charCodeAt(0),_=xu(r.before.charCodeAt(r.before.length-1),p,u);_.inside&&(m=Rr(p)+m.slice(1));const y=m.charCodeAt(m.length-1),x=xu(r.after.charCodeAt(0),y,u);x.inside&&(m=m.slice(0,-1)+Rr(y));const b=c.move(u+u);return o(),i.attentionEncodeSurroundingInfo={after:x.outside,before:_.outside},h+m+b}function NN(n,a,i){return i.options.strong||"*"}function CN(n,a,i,r){return i.safe(n.value,r)}function AN(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function wN(n,a,i){const r=(H1(i)+(i.options.ruleSpaces?" ":"")).repeat(AN(i));return i.options.ruleSpaces?r.slice(0,-1):r}const I1={blockquote:PE,break:xy,code:lN,definition:rN,emphasis:M1,hardBreak:xy,heading:cN,html:z1,image:R1,imageReference:O1,inlineCode:D1,link:B1,linkReference:U1,list:vN,listItem:bN,paragraph:SN,root:kN,strong:q1,text:CN,thematicBreak:wN};function jN(){return{enter:{table:MN,tableData:by,tableHeader:by,tableRow:RN},exit:{codeText:ON,table:zN,tableData:jf,tableHeader:jf,tableRow:jf}}}function MN(n){const a=n._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},n),this.data.inTable=!0}function zN(n){this.exit(n),this.data.inTable=void 0}function RN(n){this.enter({type:"tableRow",children:[]},n)}function jf(n){this.exit(n)}function by(n){this.enter({type:"tableCell",children:[]},n)}function ON(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,DN));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function DN(n,a){return a==="|"?a:n}function LN(n){const a=n||{},i=a.tableCellPadding,r=a.tablePipeAlign,u=a.stringLength,o=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
251
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:m,tableRow:h}};function c(b,k,w,R){return p(_(b,w,R),b.align)}function h(b,k,w,R){const T=y(b,w,R),M=p([T]);return M.slice(0,M.indexOf(`
252
+ `))}function m(b,k,w,R){const T=w.enter("tableCell"),M=w.enter("phrasing"),O=w.containerPhrasing(b,{...R,before:o,after:o});return M(),T(),O}function p(b,k){return KE(b,{align:k,alignDelimiters:r,padding:i,stringLength:u})}function _(b,k,w){const R=b.children;let T=-1;const M=[],O=k.enter("table");for(;++T<R.length;)M[T]=y(R[T],k,w);return O(),M}function y(b,k,w){const R=b.children;let T=-1;const M=[],O=k.enter("tableRow");for(;++T<R.length;)M[T]=m(R[T],b,k,w);return O(),M}function x(b,k,w){let R=I1.inlineCode(b,k,w);return w.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function BN(){return{exit:{taskListCheckValueChecked:Sy,taskListCheckValueUnchecked:Sy,paragraph:HN}}}function UN(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qN}}}function Sy(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function HN(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const r=i.children[0];if(r&&r.type==="text"){const u=a.children;let o=-1,c;for(;++o<u.length;){const h=u[o];if(h.type==="paragraph"){c=h;break}}c===i&&(r.value=r.value.slice(1),r.value.length===0?i.children.shift():i.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,i.position.start=Object.assign({},r.position.start)))}}this.exit(n)}function qN(n,a,i,r){const u=n.children[0],o=typeof n.checked=="boolean"&&u&&u.type==="paragraph",c="["+(n.checked?"x":" ")+"] ",h=i.createTracker(r);o&&h.move(c);let m=I1.listItem(n,a,i,{...r,...h.current()});return o&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(_){return _+c}}function IN(){return[vE(),qE(),ZE(),jN(),BN()]}function VN(n){return{extensions:[xE(),IE(n),YE(),LN(n),UN()]}}const GN={tokenize:FN,partial:!0},V1={tokenize:KN,partial:!0},G1={tokenize:JN,partial:!0},Z1={tokenize:PN,partial:!0},ZN={tokenize:WN,partial:!0},Y1={name:"wwwAutolink",tokenize:$N,previous:$1},X1={name:"protocolAutolink",tokenize:QN,previous:Q1},Sa={name:"emailAutolink",tokenize:XN,previous:F1},Fn={};function YN(){return{text:Fn}}let yl=48;for(;yl<123;)Fn[yl]=Sa,yl++,yl===58?yl=65:yl===91&&(yl=97);Fn[43]=Sa;Fn[45]=Sa;Fn[46]=Sa;Fn[95]=Sa;Fn[72]=[Sa,X1];Fn[104]=[Sa,X1];Fn[87]=[Sa,Y1];Fn[119]=[Sa,Y1];function XN(n,a,i){const r=this;let u,o;return c;function c(y){return!$f(y)||!F1.call(r,r.previous)||kd(r.events)?i(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),h(y))}function h(y){return $f(y)?(n.consume(y),h):y===64?(n.consume(y),m):i(y)}function m(y){return y===46?n.check(ZN,_,p)(y):y===45||y===95||It(y)?(o=!0,n.consume(y),m):_(y)}function p(y){return n.consume(y),u=!0,m}function _(y){return o&&u&&Xt(r.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(y)):i(y)}}function $N(n,a,i){const r=this;return u;function u(c){return c!==87&&c!==119||!$1.call(r,r.previous)||kd(r.events)?i(c):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(GN,n.attempt(V1,n.attempt(G1,o),i),i)(c))}function o(c){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(c)}}function QN(n,a,i){const r=this;let u="",o=!1;return c;function c(y){return(y===72||y===104)&&Q1.call(r,r.previous)&&!kd(r.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),u+=String.fromCodePoint(y),n.consume(y),h):i(y)}function h(y){if(Xt(y)&&u.length<5)return u+=String.fromCodePoint(y),n.consume(y),h;if(y===58){const x=u.toLowerCase();if(x==="http"||x==="https")return n.consume(y),m}return i(y)}function m(y){return y===47?(n.consume(y),o?p:(o=!0,m)):i(y)}function p(y){return y===null||yu(y)||ct(y)||_l(y)||Ou(y)?i(y):n.attempt(V1,n.attempt(G1,_),i)(y)}function _(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(y)}}function FN(n,a,i){let r=0;return u;function u(c){return(c===87||c===119)&&r<3?(r++,n.consume(c),u):c===46&&r===3?(n.consume(c),o):i(c)}function o(c){return c===null?i(c):a(c)}}function KN(n,a,i){let r,u,o;return c;function c(p){return p===46||p===95?n.check(Z1,m,h)(p):p===null||ct(p)||_l(p)||p!==45&&Ou(p)?m(p):(o=!0,n.consume(p),c)}function h(p){return p===95?r=!0:(u=r,r=void 0),n.consume(p),c}function m(p){return u||r||!o?i(p):a(p)}}function JN(n,a){let i=0,r=0;return u;function u(c){return c===40?(i++,n.consume(c),u):c===41&&r<i?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?n.check(Z1,a,o)(c):c===null||ct(c)||_l(c)?a(c):(n.consume(c),u)}function o(c){return c===41&&r++,n.consume(c),u}}function PN(n,a,i){return r;function r(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(n.consume(h),r):h===38?(n.consume(h),o):h===93?(n.consume(h),u):h===60||h===null||ct(h)||_l(h)?a(h):i(h)}function u(h){return h===null||h===40||h===91||ct(h)||_l(h)?a(h):r(h)}function o(h){return Xt(h)?c(h):i(h)}function c(h){return h===59?(n.consume(h),r):Xt(h)?(n.consume(h),c):i(h)}}function WN(n,a,i){return r;function r(o){return n.consume(o),u}function u(o){return It(o)?i(o):a(o)}}function $1(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||ct(n)}function Q1(n){return!Xt(n)}function F1(n){return!(n===47||$f(n))}function $f(n){return n===43||n===45||n===46||n===95||It(n)}function kd(n){let a=n.length,i=!1;for(;a--;){const r=n[a][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){i=!0;break}if(r._gfmAutolinkLiteralWalkedInto){i=!1;break}}return n.length>0&&!i&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const eC={tokenize:uC,partial:!0};function tC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:iC,continuation:{tokenize:rC},exit:sC}},text:{91:{name:"gfmFootnoteCall",tokenize:lC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nC,resolveTo:aC}}}}function nC(n,a,i){const r=this;let u=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let c;for(;u--;){const m=r.events[u][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return h;function h(m){if(!c||!c._balanced)return i(m);const p=Hn(r.sliceSerialize({start:c.end,end:r.now()}));return p.codePointAt(0)!==94||!o.includes(p.slice(1))?i(m):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(m),n.exit("gfmFootnoteCallLabelMarker"),a(m))}}function aC(n,a){let i=n.length;for(;i--;)if(n[i][1].type==="labelImage"&&n[i][0]==="enter"){n[i][1];break}n[i+1][1].type="data",n[i+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},n[i+3][1].start),end:Object.assign({},n[n.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},n[i+3][1].end),end:Object.assign({},n[i+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},n[n.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},h=[n[i+1],n[i+2],["enter",r,a],n[i+3],n[i+4],["enter",u,a],["exit",u,a],["enter",o,a],["enter",c,a],["exit",c,a],["exit",o,a],n[n.length-2],n[n.length-1],["exit",r,a]];return n.splice(i,n.length-i+1,...h),n}function lC(n,a,i){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,c;return h;function h(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),m}function m(y){return y!==94?i(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(y){if(o>999||y===93&&!c||y===null||y===91||ct(y))return i(y);if(y===93){n.exit("chunkString");const x=n.exit("gfmFootnoteCallString");return u.includes(Hn(r.sliceSerialize(x)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(y)}return ct(y)||(c=!0),o++,n.consume(y),y===92?_:p}function _(y){return y===91||y===92||y===93?(n.consume(y),o++,p):p(y)}}function iC(n,a,i){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,c=0,h;return m;function m(k){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(k),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(k){return k===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(k),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",_):i(k)}function _(k){if(c>999||k===93&&!h||k===null||k===91||ct(k))return i(k);if(k===93){n.exit("chunkString");const w=n.exit("gfmFootnoteDefinitionLabelString");return o=Hn(r.sliceSerialize(w)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(k),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),x}return ct(k)||(h=!0),c++,n.consume(k),k===92?y:_}function y(k){return k===91||k===92||k===93?(n.consume(k),c++,_):_(k)}function x(k){return k===58?(n.enter("definitionMarker"),n.consume(k),n.exit("definitionMarker"),u.includes(o)||u.push(o),Xe(n,b,"gfmFootnoteDefinitionWhitespace")):i(k)}function b(k){return a(k)}}function rC(n,a,i){return n.check(Br,a,n.attempt(eC,a,i))}function sC(n){n.exit("gfmFootnoteDefinition")}function uC(n,a,i){const r=this;return Xe(n,u,"gfmFootnoteDefinitionIndent",5);function u(o){const c=r.events[r.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?a(o):i(o)}}function oC(n){let i=(n||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:u};return i==null&&(i=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function u(c,h){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const _={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},y={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},x=[["enter",_,h],["enter",c[p][1],h],["exit",c[p][1],h],["enter",y,h]],b=h.parser.constructs.insideSpan.null;b&&pn(x,x.length,0,Du(b,c.slice(p+1,m),h)),pn(x,x.length,0,[["exit",y,h],["enter",c[m][1],h],["exit",c[m][1],h],["exit",_,h]]),pn(c,p-1,m-p+3,x),m=p+x.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function o(c,h,m){const p=this.previous,_=this.events;let y=0;return x;function x(k){return p===126&&_[_.length-1][1].type!=="characterEscape"?m(k):(c.enter("strikethroughSequenceTemporary"),b(k))}function b(k){const w=xi(p);if(k===126)return y>1?m(k):(c.consume(k),y++,b);if(y<2&&!i)return m(k);const R=c.exit("strikethroughSequenceTemporary"),T=xi(k);return R._open=!T||T===2&&!!w,R._close=!w||w===2&&!!T,h(k)}}}class cC{constructor(){this.map=[]}add(a,i,r){fC(this,a,i,r)}consume(a){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const r=[];for(;i>0;)i-=1,r.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];r.push(a.slice()),a.length=0;let u=r.pop();for(;u;){for(const o of u)a.push(o);u=r.pop()}this.map.length=0}}function fC(n,a,i,r){let u=0;if(!(i===0&&r.length===0)){for(;u<n.map.length;){if(n.map[u][0]===a){n.map[u][1]+=i,n.map[u][2].push(...r);return}u+=1}n.map.push([a,i,r])}}function dC(n,a){let i=!1;const r=[];for(;a<n.length;){const u=n[a];if(i){if(u[0]==="enter")u[1].type==="tableContent"&&r.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return r}function hC(){return{flow:{null:{name:"table",tokenize:mC,resolveAll:pC}}}}function mC(n,a,i){const r=this;let u=0,o=0,c;return h;function h(L){let W=r.events.length-1;for(;W>-1;){const ce=r.events[W][1].type;if(ce==="lineEnding"||ce==="linePrefix")W--;else break}const F=W>-1?r.events[W][1].type:null,Se=F==="tableHead"||F==="tableRow"?D:m;return Se===D&&r.parser.lazy[r.now().line]?i(L):Se(L)}function m(L){return n.enter("tableHead"),n.enter("tableRow"),p(L)}function p(L){return L===124||(c=!0,o+=1),_(L)}function _(L){return L===null?i(L):Te(L)?o>1?(o=0,r.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(L),n.exit("lineEnding"),b):i(L):qe(L)?Xe(n,_,"whitespace")(L):(o+=1,c&&(c=!1,u+=1),L===124?(n.enter("tableCellDivider"),n.consume(L),n.exit("tableCellDivider"),c=!0,_):(n.enter("data"),y(L)))}function y(L){return L===null||L===124||ct(L)?(n.exit("data"),_(L)):(n.consume(L),L===92?x:y)}function x(L){return L===92||L===124?(n.consume(L),y):y(L)}function b(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?i(L):(n.enter("tableDelimiterRow"),c=!1,qe(L)?Xe(n,k,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):k(L))}function k(L){return L===45||L===58?R(L):L===124?(c=!0,n.enter("tableCellDivider"),n.consume(L),n.exit("tableCellDivider"),w):te(L)}function w(L){return qe(L)?Xe(n,R,"whitespace")(L):R(L)}function R(L){return L===58?(o+=1,c=!0,n.enter("tableDelimiterMarker"),n.consume(L),n.exit("tableDelimiterMarker"),T):L===45?(o+=1,T(L)):L===null||Te(L)?K(L):te(L)}function T(L){return L===45?(n.enter("tableDelimiterFiller"),M(L)):te(L)}function M(L){return L===45?(n.consume(L),M):L===58?(c=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(L),n.exit("tableDelimiterMarker"),O):(n.exit("tableDelimiterFiller"),O(L))}function O(L){return qe(L)?Xe(n,K,"whitespace")(L):K(L)}function K(L){return L===124?k(L):L===null||Te(L)?!c||u!==o?te(L):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(L)):te(L)}function te(L){return i(L)}function D(L){return n.enter("tableRow"),P(L)}function P(L){return L===124?(n.enter("tableCellDivider"),n.consume(L),n.exit("tableCellDivider"),P):L===null||Te(L)?(n.exit("tableRow"),a(L)):qe(L)?Xe(n,P,"whitespace")(L):(n.enter("data"),ve(L))}function ve(L){return L===null||L===124||ct(L)?(n.exit("data"),P(L)):(n.consume(L),L===92?ge:ve)}function ge(L){return L===92||L===124?(n.consume(L),ve):ve(L)}}function pC(n,a){let i=-1,r=!0,u=0,o=[0,0,0,0],c=[0,0,0,0],h=!1,m=0,p,_,y;const x=new cC;for(;++i<n.length;){const b=n[i],k=b[1];b[0]==="enter"?k.type==="tableHead"?(h=!1,m!==0&&(Ty(x,a,m,p,_),_=void 0,m=0),p={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},x.add(i,0,[["enter",p,a]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(r=!0,y=void 0,o=[0,0,0,0],c=[0,i+1,0,0],h&&(h=!1,_={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},x.add(i,0,[["enter",_,a]])),u=k.type==="tableDelimiterRow"?2:_?3:1):u&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(r=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],y=cu(x,a,o,u,void 0,y),o=[0,0,0,0]),c[2]=i)):k.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(c[0]=c[1],y=cu(x,a,o,u,void 0,y)),o=c,c=[o[1],i,0,0])):k.type==="tableHead"?(h=!0,m=i):k.type==="tableRow"||k.type==="tableDelimiterRow"?(m=i,o[1]!==0?(c[0]=c[1],y=cu(x,a,o,u,i,y)):c[1]!==0&&(y=cu(x,a,c,u,i,y)),u=0):u&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(c[3]=i)}for(m!==0&&Ty(x,a,m,p,_),x.consume(a.events),i=-1;++i<a.events.length;){const b=a.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=dC(a.events,i))}return n}function cu(n,a,i,r,u,o){const c=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",h="tableContent";i[0]!==0&&(o.end=Object.assign({},pi(a.events,i[0])),n.add(i[0],0,[["exit",o,a]]));const m=pi(a.events,i[1]);if(o={type:c,start:Object.assign({},m),end:Object.assign({},m)},n.add(i[1],0,[["enter",o,a]]),i[2]!==0){const p=pi(a.events,i[2]),_=pi(a.events,i[3]),y={type:h,start:Object.assign({},p),end:Object.assign({},_)};if(n.add(i[2],0,[["enter",y,a]]),r!==2){const x=a.events[i[2]],b=a.events[i[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",i[3]>i[2]+1){const k=i[2]+1,w=i[3]-i[2]-1;n.add(k,w,[])}}n.add(i[3]+1,0,[["exit",y,a]])}return u!==void 0&&(o.end=Object.assign({},pi(a.events,u)),n.add(u,0,[["exit",o,a]]),o=void 0),o}function Ty(n,a,i,r,u){const o=[],c=pi(a.events,i);u&&(u.end=Object.assign({},c),o.push(["exit",u,a])),r.end=Object.assign({},c),o.push(["exit",r,a]),n.add(i+1,0,o)}function pi(n,a){const i=n[a],r=i[0]==="enter"?"start":"end";return i[1][r]}const gC={name:"tasklistCheck",tokenize:_C};function yC(){return{text:{91:gC}}}function _C(n,a,i){const r=this;return u;function u(m){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?i(m):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),o)}function o(m){return ct(m)?(n.enter("taskListCheckValueUnchecked"),n.consume(m),n.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(n.enter("taskListCheckValueChecked"),n.consume(m),n.exit("taskListCheckValueChecked"),c):i(m)}function c(m){return m===93?(n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),h):i(m)}function h(m){return Te(m)?a(m):qe(m)?n.check({tokenize:vC},a,i)(m):i(m)}}function vC(n,a,i){return Xe(n,r,"whitespace");function r(u){return u===null?i(u):a(u)}}function xC(n){return r1([YN(),tC(),oC(n),hC(),yC()])}const bC={};function SC(n){const a=this,i=n||bC,r=a.data(),u=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),c=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);u.push(xC(i)),o.push(IN()),c.push(VN(i))}const TC="_root_1pdrb_1",kC="_codeBlockWrapper_1pdrb_49",EC="_codeBlockHeader_1pdrb_70",NC="_codeBlockLang_1pdrb_80",CC="_copyBtn_1pdrb_86",Nr={root:TC,codeBlockWrapper:kC,codeBlockHeader:EC,codeBlockLang:NC,copyBtn:CC};function AC({children:n,className:a,...i}){var c;if(!(/language-(\w+)/.test(a||"")||typeof n=="string"&&n.includes(`
253
+ `)))return g.jsx("code",{className:a,...i,children:n});const u=String(n).replace(/\n$/,""),o=(c=a==null?void 0:a.match(/language-(\w+)/))==null?void 0:c[1];return g.jsx(wC,{code:u,lang:o})}function wC({code:n,lang:a}){const[i,r]=I.useState(!1),u=I.useCallback(()=>{navigator.clipboard.writeText(n).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)}).catch(()=>{})},[n]);return g.jsxs("div",{className:Nr.codeBlockWrapper,children:[g.jsxs("div",{className:Nr.codeBlockHeader,children:[a&&g.jsx("span",{className:Nr.codeBlockLang,children:a}),g.jsx("button",{className:Nr.copyBtn,onClick:u,"aria-label":"Copy code",children:i?g.jsx(Vy,{size:13}):g.jsx(Gy,{size:13})})]}),g.jsx("pre",{children:g.jsx("code",{children:n})})]})}const jC={code:AC};function MC({content:n}){return g.jsx("div",{className:Nr.root,children:g.jsx(oE,{remarkPlugins:[SC],components:jC,children:n})})}const zC="_root_11p18_1",RC="_pill_11p18_8",OC="_icon_11p18_22",DC="_separator_11p18_27",LC="_dim_11p18_31",BC="_cache_11p18_36",Fa={root:zC,pill:RC,icon:OC,separator:DC,dim:LC,cache:BC};function Mf(n){return n>=1e3?`${(n/1e3).toFixed(1)}k`:String(n)}function UC({usage:n}){return g.jsx("div",{className:Fa.root,children:g.jsxs("span",{className:Fa.pill,children:[g.jsx(Yy,{size:10,className:Fa.icon}),Mf(n.inputTokens)," ",g.jsx("span",{className:Fa.dim,children:"in"}),g.jsx("span",{className:Fa.separator,children:"/"}),Mf(n.outputTokens)," ",g.jsx("span",{className:Fa.dim,children:"out"}),n.cacheReadInputTokens!==void 0&&n.cacheReadInputTokens>0&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:Fa.separator,children:"/"}),g.jsxs("span",{className:Fa.cache,children:[Mf(n.cacheReadInputTokens)," cached"]})]})]})})}function mn(n){if(!n)return 0;try{return Number(BigInt(n)/1000000n)}catch{return Math.floor(Number(n)/1e6)}}function K1(n,a){const i=[];if(n)for(const r of n)for(const u of r.scopeSpans??[])for(const o of u.spans??[])i.push({type:"span",traceId:o.traceId,spanId:o.spanId,parentSpanId:o.parentSpanId,name:o.name,kind:o.kind,startTimeUnixNano:o.startTimeUnixNano,endTimeUnixNano:o.endTimeUnixNano,attributes:o.attributes,events:o.events,status:o.status,resource:r.resource,scope:u.scope,timestampMs:mn(o.startTimeUnixNano)||Date.now()});if(a)for(const r of a)for(const u of r.scopeLogs??[])for(const o of u.logRecords??[])i.push({type:"log",traceId:o.traceId,spanId:o.spanId,severityNumber:o.severityNumber,severityText:o.severityText,body:o.body,attributes:o.attributes,timeUnixNano:o.timeUnixNano,observedTimeUnixNano:o.observedTimeUnixNano,resource:r.resource,scope:u.scope,timestampMs:mn(o.timeUnixNano)||mn(o.observedTimeUnixNano)||Date.now()});return i.sort((r,u)=>r.timestampMs-u.timestampMs),i}function HC(n){const a=n.filter(o=>o.type==="span"&&o.spanId),i=new Map;for(const o of a)i.set(o.spanId,{span:o,children:[],depth:0,durationMs:mn(o.endTimeUnixNano)-mn(o.startTimeUnixNano)});const r=[];for(const o of i.values()){const c=o.span.parentSpanId,h=c?i.get(c):void 0;h?h.children.push(o):r.push(o)}const u=(o,c)=>{o.depth=c,o.children.sort((h,m)=>h.span.timestampMs-m.span.timestampMs);for(const h of o.children)u(h,c+1)};r.sort((o,c)=>o.span.timestampMs-c.span.timestampMs);for(const o of r)u(o,0);return r}function qC(n){const a=[],i=r=>{a.push(r);for(const u of r.children)i(u)};for(const r of n)i(r);return a}function IC(n){const a=qC(n);if(a.length===0)return[];let i=1/0,r=0;for(const o of a){const c=mn(o.span.startTimeUnixNano),h=mn(o.span.endTimeUnixNano);c>0&&c<i&&(i=c),h>r&&(r=h)}const u=r-i;return u<=0?a.map(o=>({node:o,offsetPercent:0,widthPercent:100})):a.map(o=>{const c=mn(o.span.startTimeUnixNano),h=mn(o.span.endTimeUnixNano),m=(c-i)/u*100,p=Math.max((h-c)/u*100,.5);return{node:o,offsetPercent:Math.max(0,m),widthPercent:Math.min(p,100-m)}})}function J1(n){return n<0?"—":n<1?"<1ms":n<1e3?`${Math.round(n)}ms`:n<6e4?`${(n/1e3).toFixed(2)}s`:`${(n/6e4).toFixed(1)}m`}function VC(n){const a=(n.name??"").toLowerCase(),i=n.attributes??{};return a==="tool_use"||a==="tool_call"||a.startsWith("execute_tool")||i["tool.name"]||i["gen_ai.tool.name"]?"tool":n.parentSpanId?a.includes("invoke")||a.includes("agent")?"agent":Object.keys(i).some(r=>r.startsWith("gen_ai."))?"llm":"other":"invocation"}const GC="_root_ryrat_1",ZC="_pill_ryrat_5",YC="_cards_ryrat_24",XC="_card_ryrat_24",$C="_cardHeader_ryrat_39",QC="_toolIcon_ryrat_45",FC="_toolName_ryrat_50",KC="_duration_ryrat_57",JC="_toggle_ryrat_64",PC="_json_ryrat_80",An={root:GC,pill:ZC,cards:YC,card:XC,cardHeader:$C,toolIcon:QC,toolName:FC,duration:KC,toggle:JC,json:PC};function ky(n){if(!n)return null;try{return JSON.stringify(JSON.parse(n),null,2)}catch{return n}}function WC({tool:n}){const[a,i]=I.useState(!0),[r,u]=I.useState(!0),o=ky(n.input),c=ky(n.output);return g.jsxs("div",{className:An.card,children:[g.jsxs("div",{className:An.cardHeader,children:[g.jsx(Tl,{size:12,className:An.toolIcon}),g.jsx("span",{className:An.toolName,children:n.name}),n.durationMs!==void 0&&g.jsx("span",{className:An.duration,children:J1(n.durationMs)})]}),o&&g.jsxs("button",{className:An.toggle,onClick:()=>i(h=>!h),children:[a?g.jsx(vi,{size:12}):g.jsx(Mr,{size:12}),"Input"]}),a&&o&&g.jsx("pre",{className:An.json,children:o}),c&&g.jsxs("button",{className:An.toggle,onClick:()=>u(h=>!h),children:[r?g.jsx(vi,{size:12}):g.jsx(Mr,{size:12}),"Output"]}),r&&c&&g.jsx("pre",{className:An.json,children:c})]})}function eA({toolCalls:n}){const[a,i]=I.useState(!1);return n.length===0?null:g.jsxs("div",{className:An.root,children:[g.jsxs("button",{className:An.pill,onClick:()=>i(r=>!r),children:[g.jsx(Tl,{size:12}),n.length," tool",n.length===1?"":"s"," used",a?g.jsx(vi,{size:14}):g.jsx(Mr,{size:14})]}),a&&g.jsx("div",{className:An.cards,children:n.map((r,u)=>g.jsx(WC,{tool:r},`${r.spanId}-${u}`))})]})}const tA="_messages_nks4r_1",nA="_emptyState_nks4r_10",aA="_emptyStateIcon_nks4r_20",lA="_emptyStateAgent_nks4r_26",iA="_emptyStateDetails_nks4r_32",rA="_emptyStateText_nks4r_37",sA="_msg_nks4r_42",uA="_msgUser_nks4r_48",oA="_bodyUser_nks4r_74 _body_nks4r_66",cA="_bodyAssistant_nks4r_81 _body_nks4r_66",fA="_bodyError_nks4r_87 _body_nks4r_66",dA="_thinking_nks4r_94",hA="_thinkingDot_nks4r_104",mA="_spinner_nks4r_127",pA="_startingText_nks4r_136",yt={messages:tA,emptyState:nA,emptyStateIcon:aA,emptyStateAgent:lA,emptyStateDetails:iA,emptyStateText:rA,msg:sA,msgUser:uA,bodyUser:oA,bodyAssistant:cA,bodyError:fA,thinking:dA,thinkingDot:hA,spinner:mA,startingText:pA};function gA(n){return n.isError?yt.bodyError:n.role==="user"?yt.bodyUser:yt.bodyAssistant}const yA=I.forwardRef(({messages:n,isStreaming:a,isStarting:i,agentName:r,agentBuildType:u,agentProtocol:o},c)=>{if(i)return g.jsx("div",{className:yt.messages,ref:c,children:g.jsxs("div",{className:yt.emptyState,children:[g.jsx("div",{className:yt.spinner}),g.jsxs("div",{className:yt.startingText,children:["Setting up ",r||"agent",g.jsx("span",{className:yt.thinkingDot,children:"."}),g.jsx("span",{className:yt.thinkingDot,children:"."}),g.jsx("span",{className:yt.thinkingDot,children:"."})]})]})});if(n.length===0){const m=[u==="CodeZip"?"Direct code deploy":u,o??"HTTP"].filter(Boolean).join(" · ");return g.jsx("div",{className:yt.messages,ref:c,children:g.jsxs("div",{className:yt.emptyState,children:[g.jsx("div",{className:yt.emptyStateIcon,children:g.jsx(Iy,{size:40,strokeWidth:1.5,color:"#6366f1"})}),g.jsx("div",{className:yt.emptyStateAgent,children:r||"Agent"}),m&&g.jsx("div",{className:yt.emptyStateDetails,children:m}),g.jsx("div",{className:yt.emptyStateText,children:"Send a prompt to test this agent"})]})})}return g.jsx("div",{className:yt.messages,ref:c,children:n.map((h,m)=>a&&h.role==="assistant"&&h.content===""&&m===n.length-1?g.jsx("div",{className:yt.msg,children:g.jsxs("div",{className:yt.thinking,children:["Thinking",g.jsx("span",{className:yt.thinkingDot,children:"."}),g.jsx("span",{className:yt.thinkingDot,children:"."}),g.jsx("span",{className:yt.thinkingDot,children:"."})]})},m):g.jsxs("div",{className:h.role==="user"?yt.msgUser:yt.msg,children:[g.jsx("div",{className:gA(h),children:h.isError?g.jsx(Lf,{content:h.content}):h.role==="assistant"?g.jsx(MC,{content:h.content}):h.content}),h.toolCalls&&h.toolCalls.length>0&&g.jsx(eA,{toolCalls:h.toolCalls}),h.tokenUsage&&g.jsx(UC,{usage:h.tokenUsage})]},m))})});function _A(){const a=new URLSearchParams(window.location.search).get("port");return a&&/^\d+$/.test(a)?`http://localhost:${a}`:""}const Un=_A();function jn(n,a){if((a==null?void 0:a.method)==="POST"){const i=new Headers(a.headers);return i.set("X-Agentcore-Local","1"),fetch(n,{...a,headers:i})}return fetch(n,a)}function vA(){const[n,a]=I.useState([]),[i,r]=I.useState(!1),[u,o]=I.useState(null),[c,h]=I.useState(null),m=I.useCallback(async()=>{try{return(await jn(`${Un}/api/memory?memoryName=__probe__&namespace=__probe__`)).status===404?(h(!1),!1):(h(!0),!0)}catch{return h(!1),!1}},[]),p=I.useCallback(async(x,b)=>{r(!0),o(null),a([]);try{const k=new URLSearchParams({memoryName:x,namespace:b}),w=await jn(`${Un}/api/memory?${k.toString()}`);if(w.status===404){o("Memory browsing is only available in invoke mode."),h(!1);return}const R=await w.json();R.success&&R.records?a(R.records):o(R.error||"Failed to load memory records")}catch(k){o(k instanceof Error?k.message:"Failed to load memory records")}finally{r(!1)}},[]),_=I.useCallback(async(x,b,k)=>{r(!0),o(null),a([]);try{const w={memoryName:x,namespace:b,searchQuery:k},R=await jn(`${Un}/api/memory/search`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)});if(R.status===404){o("Memory browsing is only available in invoke mode."),h(!1);return}const T=await R.json();T.success&&T.records?a(T.records):o(T.error||"Failed to search memory records")}catch(w){o(w instanceof Error?w.message:"Failed to search memory records")}finally{r(!1)}},[]),y=I.useCallback(()=>{a([]),o(null)},[]);return{records:n,isLoading:i,error:u,isAvailable:c,checkAvailability:m,listRecords:p,searchRecords:_,clear:y}}function Hu(n){try{const a=Number(n),i=Number.isFinite(a)&&a>1e12?new Date(a):new Date(n);return isNaN(i.getTime())?n:i.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return n}}const xA="_notice_1isal_1",bA="_warning_1isal_12",SA="_retryBtn_1isal_16",zf={notice:xA,warning:bA,retryBtn:SA};function Ey({children:n,variant:a="error",onRetry:i}){return g.jsxs("div",{className:`${zf.notice} ${a==="warning"?zf.warning:""}`,children:[n,i&&g.jsx("button",{className:zf.retryBtn,onClick:i,children:"Retry"})]})}const TA="_container_tidr9_1",kA="_content_tidr9_47",EA="_status_tidr9_55",NA="_error_tidr9_62",CA="_detail_tidr9_73",AA="_detailHeader_tidr9_80",wA="_detailTitle_tidr9_89",jA="_closeBtn_tidr9_95",MA="_cmd_tidr9_114",zA="_controls_tidr9_127",RA="_field_tidr9_133",OA="_fieldLabel_tidr9_139",DA="_input_tidr9_147",LA="_select_tidr9_167",BA="_actions_tidr9_184",UA="_actionBtn_tidr9_189",HA="_searchBtn_tidr9_211",qA="_resultCount_tidr9_222",IA="_recordList_tidr9_228",VA="_recordRow_tidr9_237",GA="_recordRowSelected_tidr9_257",ZA="_recordMain_tidr9_263",YA="_recordContent_tidr9_270",XA="_scoreBadge_tidr9_280",$A="_recordMeta_tidr9_290",QA="_strategyTag_tidr9_297",FA="_recordTime_tidr9_305",KA="_detailBody_tidr9_311",JA="_detailSection_tidr9_318",PA="_detailLabel_tidr9_324",WA="_detailContent_tidr9_331",e4="_metadataGrid_tidr9_344",t4="_metadataRow_tidr9_350",n4="_metadataKey_tidr9_363",a4="_metadataValue_tidr9_370",l4="_detailId_tidr9_379",i4="_namespacesValue_tidr9_386",r4="_noMetadata_tidr9_392",de={container:TA,content:kA,status:EA,error:NA,detail:CA,detailHeader:AA,detailTitle:wA,closeBtn:jA,cmd:MA,controls:zA,field:RA,fieldLabel:OA,input:DA,select:LA,actions:BA,actionBtn:UA,searchBtn:HA,resultCount:qA,recordList:IA,recordRow:VA,recordRowSelected:GA,recordMain:ZA,recordContent:YA,scoreBadge:XA,recordMeta:$A,strategyTag:QA,recordTime:FA,detailBody:KA,detailSection:JA,detailLabel:PA,detailContent:WA,metadataGrid:e4,metadataRow:t4,metadataKey:n4,metadataValue:a4,detailId:l4,namespacesValue:i4,noMetadata:r4};function s4({memories:n,sessionId:a,userId:i,isActive:r}){var E;const{records:u,isLoading:o,error:c,isAvailable:h,checkAvailability:m,listRecords:p,searchRecords:_,clear:y}=vA(),[x,b]=I.useState(((E=n[0])==null?void 0:E.name)??""),[k,w]=I.useState(""),[R,T]=I.useState({}),[M,O]=I.useState(""),[K,te]=I.useState(null),[D,P]=I.useState(!1),[ve,ge]=I.useState(!1);I.useEffect(()=>{!x&&n.length>0&&b(n[0].name)},[n,x]);const L=n.find(G=>G.name===x),W=(L==null?void 0:L.strategies)??[],F=W.find(G=>G.type===k),Se=I.useMemo(()=>F?[...new Set(F.namespaces.flatMap(G=>(G.match(/\{(\w+)\}/g)||[]).map(oe=>oe.slice(1,-1))))]:[],[F]);I.useEffect(()=>{r&&h===null&&m()},[r,h,m]),I.useEffect(()=>{if(!F){T({});return}const G={};for(const ae of Se)ae==="actorId"?G[ae]=i||"default-user":ae==="sessionId"&&a?G[ae]=a:G[ae]="";T(G)},[F,Se,a,i]);const ce=G=>{b(G),w(""),te(null),ge(!1),y()},ie=G=>{w(G),te(null),ge(!1),y()},U=(G,ae)=>{T(oe=>({...oe,[G]:ae}))},J=()=>F?F.namespaces.map(G=>G.replace(/\{(\w+)\}/g,(ae,oe)=>{var je;return((je=R[oe])==null?void 0:je.trim())||""})).join(","):"",fe=F!=null&&Se.every(G=>{var ae;return(ae=R[G])==null?void 0:ae.trim()}),re=()=>{fe&&(P(!1),te(null),ge(!0),p(x,J()))},N=()=>{!fe||!M.trim()||(P(!0),te(null),ge(!0),_(x,J(),M.trim()))},A=G=>{G.key==="Enter"&&(M.trim()?N():re())},Z=G=>{te(ae=>(ae==null?void 0:ae.memoryRecordId)===G.memoryRecordId?null:G)};return n.length===0?g.jsxs("div",{className:de.status,children:[g.jsx("div",{children:"No AgentCore Memory found."}),g.jsxs("div",{children:["Run ",g.jsx("code",{className:de.cmd,children:"agentcore add"})," to add Memory, then"," ",g.jsx("code",{className:de.cmd,children:"agentcore deploy"})," to deploy it."]})]}):g.jsx("div",{className:de.container,children:g.jsxs("div",{className:de.content,children:[n.some(G=>G.deploymentStatus!=="deployed")&&g.jsxs(Ey,{variant:"warning",children:[g.jsx("span",{children:"AgentCore Memory must be deployed before it can be used."}),g.jsxs("span",{children:["To test memory, run ",g.jsx("code",{className:de.cmd,children:"agentcore deploy"})," and restart dev."]})]}),n.some(G=>G.deploymentStatus==="deployed")&&g.jsx(Ey,{variant:"warning",children:"Memories may take 1-2 minutes to update after an invocation."}),h!==!1&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:de.controls,children:[g.jsxs("div",{className:de.field,children:[g.jsx("label",{className:de.fieldLabel,htmlFor:"memory-selector",children:"Memory"}),g.jsx("select",{id:"memory-selector",className:de.select,value:x,onChange:G=>ce(G.target.value),children:n.map(G=>g.jsx("option",{value:G.name,children:G.name},G.name))})]}),g.jsxs("div",{className:de.field,children:[g.jsx("label",{className:de.fieldLabel,htmlFor:`strat-${x}`,children:"Strategy"}),g.jsxs("select",{id:`strat-${x}`,className:de.select,value:k,onChange:G=>ie(G.target.value),children:[g.jsx("option",{value:"",disabled:!0,children:"Select a strategy…"}),W.map(G=>g.jsx("option",{value:G.type,children:G.type},G.type))]})]}),Se.map(G=>g.jsxs("div",{className:de.field,children:[g.jsx("label",{className:de.fieldLabel,htmlFor:`ns-${x}-${G}`,children:G}),g.jsx("input",{id:`ns-${x}-${G}`,className:de.input,type:"text",placeholder:`Enter ${G}…`,value:R[G]||"",onChange:ae=>U(G,ae.target.value),onKeyDown:A})]},G)),F&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:de.field,children:[g.jsx("label",{className:de.fieldLabel,htmlFor:`search-${x}`,children:"Search (optional)"}),g.jsx("input",{id:`search-${x}`,className:de.input,type:"text",placeholder:"Semantic search query…",value:M,onChange:G=>O(G.target.value),onKeyDown:A})]}),g.jsxs("div",{className:de.actions,children:[g.jsx("button",{className:de.actionBtn,onClick:re,disabled:!fe||o,children:"List"}),g.jsx("button",{className:`${de.actionBtn} ${de.searchBtn}`,onClick:N,disabled:!fe||!M.trim()||o,children:"Search"})]})]})]}),o&&g.jsx("div",{className:de.status,children:"Loading records…"}),c&&g.jsx("div",{className:de.error,children:g.jsxs("span",{children:[g.jsx(id,{size:12})," ",c]})}),!o&&!c&&ve&&u.length===0&&g.jsx("div",{className:de.status,children:"No memory records found for this namespace."}),!o&&u.length>0&&g.jsxs("div",{className:de.recordList,children:[g.jsxs("div",{className:de.resultCount,children:[u.length," record",u.length!==1?"s":"",D?" (search results)":""]}),u.map(G=>g.jsx(u4,{record:G,isSelected:(K==null?void 0:K.memoryRecordId)===G.memoryRecordId,showScore:D,onClick:()=>Z(G)},G.memoryRecordId))]}),K&&g.jsx(o4,{record:K,onClose:()=>te(null)})]})]})})}function u4({record:n,isSelected:a,showScore:i,onClick:r}){const u=n.content?n.content.length>120?n.content.slice(0,120)+"…":n.content:"(no content)";return g.jsxs("button",{className:`${de.recordRow} ${a?de.recordRowSelected:""}`,onClick:r,"aria-label":`Memory record ${n.memoryRecordId}`,children:[g.jsxs("div",{className:de.recordMain,children:[g.jsx("span",{className:de.recordContent,children:u}),i&&n.score!==null&&n.score!==void 0&&g.jsx("span",{className:de.scoreBadge,children:n.score.toFixed(3)})]}),g.jsxs("div",{className:de.recordMeta,children:[g.jsx("span",{className:de.strategyTag,children:n.memoryStrategyId}),g.jsx("span",{className:de.recordTime,children:Hu(n.createdAt)})]})]})}function o4({record:n,onClose:a}){const i=Object.entries(n.metadata||{});return g.jsxs("div",{className:de.detail,children:[g.jsxs("div",{className:de.detailHeader,children:[g.jsx("span",{className:de.detailTitle,children:"Record Detail"}),g.jsx("button",{className:de.closeBtn,onClick:a,"aria-label":"Close record detail",children:g.jsx(Ru,{size:12})})]}),g.jsxs("div",{className:de.detailBody,children:[g.jsxs("div",{className:de.detailSection,children:[g.jsx("span",{className:de.detailLabel,children:"ID"}),g.jsx("span",{className:de.detailId,children:n.memoryRecordId})]}),g.jsxs("div",{className:de.detailSection,children:[g.jsx("span",{className:de.detailLabel,children:"Content"}),g.jsx("div",{className:de.detailContent,children:n.content||"(no content)"})]}),g.jsxs("div",{className:de.detailSection,children:[g.jsx("span",{className:de.detailLabel,children:"Strategy"}),g.jsx("span",{className:de.strategyTag,children:n.memoryStrategyId})]}),g.jsxs("div",{className:de.detailSection,children:[g.jsx("span",{className:de.detailLabel,children:"Created"}),g.jsx("span",{className:de.recordTime,children:Hu(n.createdAt)})]}),n.score!==null&&n.score!==void 0&&g.jsxs("div",{className:de.detailSection,children:[g.jsx("span",{className:de.detailLabel,children:"Relevance Score"}),g.jsx("span",{className:de.scoreBadge,children:n.score.toFixed(4)})]}),n.namespaces.length>0&&g.jsxs("div",{className:de.detailSection,children:[g.jsx("span",{className:de.detailLabel,children:"Namespaces"}),g.jsx("span",{className:de.namespacesValue,children:n.namespaces.join(", ")})]}),i.length>0&&g.jsxs("div",{className:de.detailSection,children:[g.jsx("span",{className:de.detailLabel,children:"Metadata"}),g.jsx("div",{className:de.metadataGrid,children:i.map(([r,u])=>g.jsxs("div",{className:de.metadataRow,children:[g.jsx("span",{className:de.metadataKey,children:r}),g.jsx("span",{className:de.metadataValue,children:u})]},r))})]}),i.length===0&&g.jsxs("div",{className:de.detailSection,children:[g.jsx("span",{className:de.detailLabel,children:"Metadata"}),g.jsx("span",{className:de.noMetadata,children:"No metadata"})]})]})]})}const c4="_panel_nuq4r_1",f4="_resizeHandle_nuq4r_13",d4="_header_nuq4r_30",h4="_projectName_nuq4r_39",m4="_headerActions_nuq4r_45",p4="_iconBtn_nuq4r_50",g4="_tabBar_nuq4r_70",y4="_tab_nuq4r_70",_4="_tabActive_nuq4r_93",v4="_body_nuq4r_98",x4="_tabContent_nuq4r_104",b4="_status_nuq4r_114",S4="_error_nuq4r_121",T4="_retryBtn_nuq4r_132",k4="_graph_nuq4r_146",E4="_section_nuq4r_152",N4="_sectionTitle_nuq4r_158",C4="_childNode_nuq4r_167",A4="_node_nuq4r_183",w4="_nodeSelected_nuq4r_201",j4="_nodeIcon_nuq4r_206",M4="_agent_nuq4r_216",z4="_memory_nuq4r_220",R4="_credential_nuq4r_224",O4="_gateway_nuq4r_228",D4="_gatewayTarget_nuq4r_232",L4="_mcpTool_nuq4r_236",B4="_evaluator_nuq4r_240",U4="_onlineEval_nuq4r_244",H4="_policyEngine_nuq4r_248",q4="_policy_nuq4r_248",I4="_unassignedTarget_nuq4r_256",V4="_nodeContent_nuq4r_260",G4="_nodeName_nuq4r_268",Z4="_nodeNameRow_nuq4r_277",Y4="_deployBadge_nuq4r_284",X4="_deploy_deployed_nuq4r_294",$4="_nodeSubtitle_nuq4r_309",Q4="_nodeConnections_nuq4r_317",F4="_connectionTag_nuq4r_324",K4="_infoCard_nuq4r_378",J4="_infoHeader_nuq4r_385",P4="_kindBadge_nuq4r_394",W4="_infoName_nuq4r_449",ew="_infoBody_nuq4r_455",tw="_infoSectionHeader_nuq4r_459",nw="_infoRow_nuq4r_469",aw="_infoKey_nuq4r_482",lw="_infoValue_nuq4r_487",Ce={panel:c4,resizeHandle:f4,header:d4,projectName:h4,headerActions:m4,iconBtn:p4,tabBar:g4,tab:y4,tabActive:_4,body:v4,tabContent:x4,status:b4,error:S4,retryBtn:T4,graph:k4,section:E4,sectionTitle:N4,childNode:C4,node:A4,nodeSelected:w4,nodeIcon:j4,agent:M4,memory:z4,credential:R4,gateway:O4,gatewayTarget:D4,mcpTool:L4,evaluator:B4,onlineEval:U4,policyEngine:H4,policy:q4,unassignedTarget:I4,nodeContent:V4,nodeName:G4,nodeNameRow:Z4,deployBadge:Y4,deploy_deployed:X4,"deploy_local-only":"_deploy_local-only_nuq4r_299","deploy_pending-removal":"_deploy_pending-removal_nuq4r_304",nodeSubtitle:$4,nodeConnections:Q4,connectionTag:F4,infoCard:K4,infoHeader:J4,kindBadge:P4,infoName:W4,infoBody:ew,infoSectionHeader:tw,infoRow:nw,infoKey:aw,infoValue:lw},iw={agent:Iy,memory:G0,credential:fx,gateway:sx,gatewayTarget:tx,mcpTool:Tl,evaluator:P0,onlineEval:q0,policyEngine:_x,policy:ix,unassignedTarget:Zy},rw={deployed:"Deployed","local-only":"Not deployed","pending-removal":"Removed locally"};function Bn({kind:n,name:a,subtitle:i,isSelected:r,onClick:u,connections:o,deploymentStatus:c}){const h=iw[n];return g.jsxs("button",{className:`${Ce.node} ${Ce[n]} ${r?Ce.nodeSelected:""}`,onClick:u,"aria-label":`${n}: ${a}`,children:[g.jsx("span",{className:Ce.nodeIcon,children:g.jsx(h,{size:14})}),g.jsxs("div",{className:Ce.nodeContent,children:[g.jsxs("div",{className:Ce.nodeNameRow,children:[g.jsx("span",{className:Ce.nodeName,children:a}),c&&g.jsx("span",{className:`${Ce.deployBadge} ${Ce[`deploy_${c}`]}`,children:rw[c]})]}),i&&g.jsx("span",{className:Ce.nodeSubtitle,children:i}),o&&o.length>0&&g.jsx("div",{className:Ce.nodeConnections,children:o.map(m=>g.jsx("span",{className:Ce.connectionTag,children:m},m))})]})]})}function sw(){const n=Un,[a,i]=I.useState([]),[r,u]=I.useState([]),[o,c]=I.useState(!1),[h,m]=I.useState(!1),[p,_]=I.useState(null),[y,x]=I.useState(null),b=I.useCallback(async(R,T)=>{c(!0),_(null),u([]);try{const M=new URLSearchParams;R&&M.set("agentName",R),(T==null?void 0:T.startTime)!==void 0&&M.set("startTime",String(T.startTime)),(T==null?void 0:T.endTime)!==void 0&&M.set("endTime",String(T.endTime));const O=await jn(`${n}/api/traces?${M.toString()}`);if(O.status===404){x(!1),i([]);return}x(!0);const K=await O.json();K.success?i(K.traces):(_(K.error),i([]))}catch(M){_(M instanceof Error?M.message:"Failed to load traces"),i([])}finally{c(!1)}},[n]),k=I.useCallback(async(R,T,M)=>{m(!0),_(null);try{const O=new URLSearchParams;T&&O.set("agentName",T),(M==null?void 0:M.startTime)!==void 0&&O.set("startTime",String(M.startTime)),(M==null?void 0:M.endTime)!==void 0&&O.set("endTime",String(M.endTime));const te=await(await jn(`${n}/api/traces/${encodeURIComponent(R)}?${O.toString()}`)).json();te.success?u(K1(te.resourceSpans,te.resourceLogs)):(_(te.error),u([]))}catch(O){_(O instanceof Error?O.message:"Failed to load trace detail"),u([])}finally{m(!1)}},[n]),w=I.useCallback(()=>{u([]),_(null)},[]);return{traces:a,spans:r,isLoadingTraces:o,isLoadingSpans:h,error:p,isAvailable:y,fetchTraces:b,fetchTraceDetail:k,clearSpans:w}}function bi(n){if(!n)return{};const a={};for(const i of n){if(!i.key||!i.value)continue;const r=i.value;r.stringValue!==void 0?a[i.key]=r.stringValue:r.intValue!==void 0?a[i.key]=r.intValue:r.doubleValue!==void 0?a[i.key]=r.doubleValue:r.boolValue!==void 0&&(a[i.key]=r.boolValue)}return a}function qt(n){if(n!=null){if(typeof n!="string")return n;try{return JSON.parse(n)}catch{return n}}}function uw(n){if(!n||!n.startsWith("["))return null;try{const a=JSON.parse(n);if(Array.isArray(a)&&a.length>0&&typeof a[0]=="object")return a}catch{}return null}function Ny(n){if(!n||!n.startsWith("{")&&!n.startsWith("["))return null;try{return JSON.parse(n)}catch{return null}}const ow="_dimText_1vmqq_1",cw="_assistantMsg_1vmqq_5",fw="_toolCalls_1vmqq_9",dw="_toolCall_1vmqq_9",hw="_toolIcon_1vmqq_22",mw="_toolName_1vmqq_26",pw="_toolArgs_1vmqq_32",gw="_toolResult_1vmqq_45",yw="_toolResultStatus_1vmqq_51",_w="_finishReason_1vmqq_58",vw="_genAiContent_1vmqq_64",xw="_contentText_1vmqq_70",bw="_strandsEvent_1vmqq_74",Sw="_strandsSection_1vmqq_80",Tw="_strandsLabel_1vmqq_86",kw="_messageList_1vmqq_93",Ew="_msgRow_1vmqq_99",Nw="_roleBadge_1vmqq_105",Cw="_role_user_1vmqq_116",Aw="_role_assistant_1vmqq_121",ww="_role_system_1vmqq_126",jw="_role_tool_1vmqq_131",Mw="_msgText_1vmqq_136",zw="_msgContent_1vmqq_142",Rw="_parsedContent_1vmqq_147",Ow="_spanScope_1vmqq_153",Dw="_spanRaw_1vmqq_159",Ee={dimText:ow,assistantMsg:cw,toolCalls:fw,toolCall:dw,toolIcon:hw,toolName:mw,toolArgs:pw,toolResult:gw,toolResultStatus:yw,finishReason:_w,genAiContent:vw,contentText:xw,strandsEvent:bw,strandsSection:Sw,strandsLabel:Tw,messageList:kw,msgRow:Ew,roleBadge:Nw,role_user:Cw,role_assistant:Aw,role_system:ww,role_tool:jw,msgText:Mw,msgContent:zw,parsedContent:Rw,spanScope:Ow,spanRaw:Dw};function Lw({span:n}){const a=n.events,i=n.attributes;if(a&&a.length>0)return g.jsx("div",{className:Ee.strandsEvent,children:a.map((r,u)=>g.jsx(Bw,{event:r},u))});if(i){const r=Object.entries(i).filter(([u,o])=>o!=null&&(u.startsWith("gen_ai.")||u.startsWith("rpc.")||u==="tool.name"));if(r.length>0)return g.jsx("div",{className:Ee.strandsEvent,children:r.map(([u,o])=>g.jsxs("span",{className:Ee.spanScope,children:[u,": ",typeof o=="object"?JSON.stringify(o):String(o)]},u))})}return g.jsx("span",{className:Ee.dimText,children:"—"})}function Bw({event:n}){const a=n.name,i=bi(n.attributes);if(a==="gen_ai.user.message"||a==="gen_ai.system.message"){const r=qt(i.content);if(Array.isArray(r))return g.jsx(_i,{content:r});if(r)return g.jsx("span",{children:String(r)})}if(a==="gen_ai.choice"){const r=qt(i.message);if(Array.isArray(r))return g.jsx(_i,{content:r});if(r)return g.jsx(qu,{body:{message:r,finish_reason:i.finish_reason}})}if(a==="gen_ai.tool.message"){const r=qt(i.content);if(Array.isArray(r))return g.jsx(_i,{content:r});if(r)return g.jsx("span",{children:String(r)})}return g.jsxs("span",{className:Ee.spanScope,children:[a||"event",i.content?`: ${String(i.content).slice(0,200)}`:""]})}function qu({body:n}){if(n==null)return g.jsx("span",{className:Ee.dimText,children:"—"});if(typeof n=="string")return g.jsx("span",{children:n});if(typeof n!="object")return g.jsx("span",{children:String(n)});const a=n;if(typeof a.message=="string"&&!a.content&&!a.input&&!a.output)return g.jsx("span",{children:a.message});if(Array.isArray(a.content))return g.jsx(_i,{content:a.content});if(a.message&&typeof a.message=="object"){const i=a.message;if(i.role==="assistant"&&Array.isArray(i.content)){const r=i.content.map(u=>u.text).filter(Boolean).join("");if(r)return g.jsx("div",{className:Ee.assistantMsg,children:r})}if(Array.isArray(i.tool_calls))return g.jsxs("div",{className:Ee.toolCalls,children:[i.tool_calls.map((r,u)=>{const o=r.function;return g.jsxs("div",{className:Ee.toolCall,children:[g.jsx("span",{className:Ee.toolIcon,children:g.jsx(Tl,{size:12})}),g.jsx("span",{className:Ee.toolName,children:String((o==null?void 0:o.name)??"unknown")}),g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(o==null?void 0:o.arguments,null,2)})]},u)}),a.finish_reason!==null&&a.finish_reason!==void 0&&g.jsx("span",{className:Ee.finishReason,children:String(a.finish_reason)})]});if(i.role==="assistant"&&typeof i.content=="string")return g.jsx("div",{className:Ee.assistantMsg,children:i.content})}return a.input||a.output?g.jsx(Uw,{input:a.input,output:a.output}):g.jsx("pre",{className:Ee.spanRaw,children:JSON.stringify(a,null,2)})}function _i({content:n}){return g.jsx("div",{className:Ee.genAiContent,children:n.map((a,i)=>{const r=a;if(r.text)return g.jsx("div",{className:Ee.contentText,children:String(r.text)},i);if(r.toolUse){const u=r.toolUse;return g.jsxs("div",{className:Ee.toolCall,children:[g.jsx("span",{className:Ee.toolIcon,children:g.jsx(Tl,{size:12})}),g.jsx("span",{className:Ee.toolName,children:String(u.name)}),g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(u.input,null,2)})]},i)}if(r.toolResult){const u=r.toolResult;return g.jsxs("div",{className:Ee.toolResult,children:[g.jsx("span",{className:Ee.toolResultStatus,children:String(u.status||"result")}),Array.isArray(u.content)&&u.content.map((o,c)=>g.jsx("pre",{className:Ee.toolArgs,children:String(o.text??JSON.stringify(o))},c))]},i)}return g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(r,null,2)},i)})})}function Cy(n){if(n&&typeof n=="object"&&!Array.isArray(n)){const a=n.messages;if(Array.isArray(a))return a}}function Uw({input:n,output:a}){const i=Cy(n),r=Cy(a);return g.jsxs("div",{className:Ee.strandsEvent,children:[n!=null&&g.jsxs("div",{className:Ee.strandsSection,children:[g.jsx("span",{className:Ee.strandsLabel,children:"Input"}),i?g.jsx(Ay,{messages:i}):g.jsx("pre",{className:Ee.spanRaw,children:JSON.stringify(n,null,2)})]}),a!=null&&g.jsxs("div",{className:Ee.strandsSection,children:[g.jsx("span",{className:Ee.strandsLabel,children:"Output"}),r?g.jsx(Ay,{messages:r}):g.jsx("pre",{className:Ee.spanRaw,children:JSON.stringify(a,null,2)})]})]})}function Ay({messages:n}){return!n||!Array.isArray(n)?null:g.jsx("div",{className:Ee.messageList,children:n.map((a,i)=>{const r=a,u=String(r.role||""),o=r.content;let c="";typeof o=="string"?c=o:o&&typeof o=="object"&&(c=o.message||o.content||"");const h=uw(c);return g.jsxs("div",{className:Ee.msgRow,children:[g.jsx("span",{className:`${Ee.roleBadge} ${Ee[`role_${u}`]||""}`,children:u}),g.jsx("div",{className:Ee.msgContent,children:h?g.jsx(Hw,{items:h}):g.jsx("span",{className:Ee.msgText,children:c||JSON.stringify(o)})})]},i)})})}function Hw({items:n}){return g.jsx("div",{className:Ee.parsedContent,children:n.map((a,i)=>{if(a.text){const r=String(a.text),u=Ny(r);return u?g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(u,null,2)},i):g.jsx("div",{className:Ee.contentText,children:r},i)}if(a.toolUse){const r=a.toolUse;return g.jsxs("div",{className:Ee.toolCall,children:[g.jsx("span",{className:Ee.toolIcon,children:g.jsx(Tl,{size:12})}),g.jsx("span",{className:Ee.toolName,children:String(r.name)}),r.input!==null&&r.input!==void 0&&Object.keys(r.input).length>0&&g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(r.input,null,2)})]},i)}if(a.toolResult){const r=a.toolResult,u=String(r.status||"result");return g.jsxs("div",{className:Ee.toolResult,children:[g.jsx("span",{className:Ee.toolResultStatus,children:u}),Array.isArray(r.content)&&r.content.map((o,c)=>{const h=String(o.text??""),m=Ny(h);return m?g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(m,null,2)},c):g.jsx("pre",{className:Ee.toolArgs,children:h},c)})]},i)}return g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(a,null,2)},i)})})}const qw="_container_1hcbv_1",Iw="_toggleRow_1hcbv_6",Vw="_toggle_1hcbv_6",Gw="_chevron_1hcbv_32",Zw="_icon_1hcbv_38",Yw="_label_1hcbv_43",Xw="_content_1hcbv_47",$w="_status_1hcbv_55",Qw="_error_1hcbv_62",Fw="_detail_1hcbv_73",Kw="_traceDetail_1hcbv_73",Jw="_detailHeader_1hcbv_80",Pw="_detailTitle_1hcbv_89",Ww="_closeBtn_1hcbv_95",ej="_controls_1hcbv_111",tj="_controlRow_1hcbv_118",nj="_refreshBtn_1hcbv_124",aj="_retryBtn_1hcbv_144",lj="_timeFilter_1hcbv_158",ij="_timeModeToggle_1hcbv_164",rj="_timeModeBtn_1hcbv_173",sj="_timeModeBtnActive_1hcbv_188",uj="_dateRange_1hcbv_193",oj="_dateField_1hcbv_200",cj="_dateLabel_1hcbv_208",fj="_dateInput_1hcbv_216",dj="_traceList_1hcbv_238",hj="_traceRow_1hcbv_247",mj="_traceRowSelected_1hcbv_267",pj="_traceMain_1hcbv_273",gj="_traceId_1hcbv_279",yj="_spanCount_1hcbv_286",_j="_traceMeta_1hcbv_294",vj="_traceTime_1hcbv_300",xj="_sessionId_1hcbv_305",bj="_spanList_1hcbv_319",Sj="_spanRow_1hcbv_326",Tj="_spanHeader_1hcbv_339",kj="_spanTimestamp_1hcbv_346",Ej="_severityBadge_1hcbv_351",Nj="_sevINFO_1hcbv_361",Cj="_sevWARN_1hcbv_366",Aj="_sevERROR_1hcbv_371",wj="_spanIdTag_1hcbv_376",jj="_spanScope_1hcbv_385",Mj="_spanBody_1hcbv_391",zj="_rawToggle_1hcbv_397",Rj="_spanRaw_1hcbv_412",xe={container:qw,toggleRow:Iw,toggle:Vw,chevron:Gw,icon:Zw,label:Yw,content:Xw,status:$w,error:Qw,detail:Fw,traceDetail:Kw,detailHeader:Jw,detailTitle:Pw,closeBtn:Ww,controls:ej,controlRow:tj,refreshBtn:nj,retryBtn:aj,timeFilter:lj,timeModeToggle:ij,timeModeBtn:rj,timeModeBtnActive:sj,dateRange:uj,dateField:oj,dateLabel:cj,dateInput:fj,traceList:dj,traceRow:hj,traceRowSelected:mj,traceMain:pj,traceId:gj,spanCount:yj,traceMeta:_j,traceTime:vj,sessionId:xj,spanList:bj,spanRow:Sj,spanHeader:Tj,spanTimestamp:kj,severityBadge:Ej,sevINFO:Nj,sevWARN:Cj,sevERROR:Aj,spanIdTag:wj,spanScope:jj,spanBody:Mj,rawToggle:zj,spanRaw:Rj},Oj=[{label:"Last 1 hour",ms:3600*1e3},{label:"Last 6 hours",ms:360*60*1e3},{label:"Last 12 hours",ms:720*60*1e3},{label:"Last 24 hours",ms:1440*60*1e3},{label:"Last 3 days",ms:4320*60*1e3},{label:"Last 7 days",ms:10080*60*1e3}],Dj=720*60*1e3;function fu(n,a){const i=n?new Date(n).getTime():void 0,r=a?new Date(a).getTime():void 0;if(!(i===void 0&&r===void 0))return{startTime:i,endTime:r}}function du(n){const a=Date.now();return{startTime:a-n,endTime:a}}function Rf(n){return n||void 0}function Lj({agents:n,isActive:a}){const{traces:i,spans:r,isLoadingTraces:u,isLoadingSpans:o,error:c,isAvailable:h,fetchTraces:m,fetchTraceDetail:p,clearSpans:_}=sw(),y=n.map(re=>re.name),x="",[b,k]=I.useState(x),[w,R]=I.useState(null),[T,M]=I.useState("relative"),[O,K]=I.useState(Dj),[te,D]=I.useState(""),[P,ve]=I.useState(""),ge=I.useCallback(()=>T==="relative"?du(O):fu(te,P),[T,O,te,P]),L=I.useCallback((re,N)=>{R(null),_(),m(Rf(re),N)},[_,m]),W=I.useRef(!1);I.useEffect(()=>{a&&!W.current&&L(b,du(O)),W.current=!!a},[a,L,b,O]);const F=re=>{k(re),L(re,ge())},Se=re=>{w===re.traceId?(R(null),_()):(R(re.traceId),p(re.traceId,Rf(b),ge()))},ce=()=>{L(b,ge())},ie=re=>{if(M(re),re==="relative")L(b,du(O));else{const N=new Date,A=new Date(N.getTime()-O);D(hu(A)),ve(hu(N)),L(b,fu(hu(A),hu(N)))}},U=re=>{K(re),L(b,du(re))},J=re=>{D(re),L(b,fu(re,P))},fe=re=>{ve(re),L(b,fu(te,re))};return y.length===0?g.jsx("div",{className:xe.status,children:"No agents available."}):g.jsxs("div",{className:xe.container,children:[g.jsx("div",{className:xe.controls,children:g.jsxs("div",{className:xe.controlRow,children:[g.jsxs("div",{className:xe.dateField,children:[g.jsx("label",{className:xe.dateLabel,htmlFor:"traces-agent",children:"Agent"}),g.jsxs("select",{id:"traces-agent",className:xe.dateInput,value:b,onChange:re=>F(re.target.value),children:[g.jsx("option",{value:"",children:"All agents"}),y.map(re=>g.jsx("option",{value:re,children:re},re))]})]}),g.jsx("button",{className:xe.refreshBtn,onClick:ce,title:"Refresh traces","aria-label":"Refresh traces",children:g.jsx(ld,{size:12})})]})}),g.jsxs("div",{className:xe.content,children:[h!==!1&&g.jsxs("div",{className:xe.timeFilter,children:[g.jsxs("div",{className:xe.timeModeToggle,children:[g.jsx("button",{className:`${xe.timeModeBtn} ${T==="relative"?xe.timeModeBtnActive:""}`,onClick:()=>ie("relative"),children:"Relative"}),g.jsx("button",{className:`${xe.timeModeBtn} ${T==="absolute"?xe.timeModeBtnActive:""}`,onClick:()=>ie("absolute"),children:"Absolute"})]}),T==="relative"?g.jsx("div",{className:xe.dateField,children:g.jsx("select",{className:xe.dateInput,value:O,onChange:re=>U(Number(re.target.value)),children:Oj.map(re=>g.jsx("option",{value:re.ms,children:re.label},re.ms))})}):g.jsxs("div",{className:xe.dateRange,children:[g.jsxs("div",{className:xe.dateField,children:[g.jsx("label",{className:xe.dateLabel,htmlFor:"traces-start",children:"Start"}),g.jsx("input",{id:"traces-start",className:xe.dateInput,type:"datetime-local",value:te,onChange:re=>J(re.target.value)})]}),g.jsxs("div",{className:xe.dateField,children:[g.jsx("label",{className:xe.dateLabel,htmlFor:"traces-end",children:"End"}),g.jsx("input",{id:"traces-end",className:xe.dateInput,type:"datetime-local",value:P,onChange:re=>fe(re.target.value)})]})]})]}),u&&g.jsx("div",{className:xe.status,children:"Loading traces…"}),c&&g.jsxs("div",{className:xe.error,children:[g.jsxs("span",{children:[g.jsx(id,{size:12})," ",c]}),g.jsx("button",{className:xe.retryBtn,onClick:()=>m(Rf(b),ge()),children:"Retry"})]}),!u&&!c&&h!==!1&&i.length===0&&g.jsx("div",{className:xe.status,children:"No traces found."}),!u&&i.length>0&&g.jsx("div",{className:xe.traceList,children:i.map(re=>g.jsx(Bj,{trace:re,isSelected:w===re.traceId,onClick:()=>Se(re)},re.traceId))}),w&&g.jsxs("div",{className:xe.traceDetail,children:[g.jsxs("div",{className:xe.detailHeader,children:[g.jsx("span",{className:xe.detailTitle,children:"Spans"}),g.jsx("button",{className:xe.closeBtn,onClick:()=>{R(null),_()},"aria-label":"Close span detail",children:g.jsx(Ru,{size:12})})]}),o&&g.jsx("div",{className:xe.status,children:"Loading spans…"}),!o&&r.length===0&&!c&&g.jsx("div",{className:xe.status,children:"No spans found."}),!o&&r.length>0&&g.jsx("div",{className:xe.spanList,children:r.map((re,N)=>g.jsx(Uj,{span:re},N))})]})]})]})}function Bj({trace:n,isSelected:a,onClick:i}){return g.jsxs("button",{className:`${xe.traceRow} ${a?xe.traceRowSelected:""}`,onClick:i,"aria-label":`Trace ${n.traceId}`,children:[g.jsxs("div",{className:xe.traceMain,children:[g.jsxs("span",{className:xe.traceId,children:[n.traceId.slice(0,12),"…"]}),g.jsxs("span",{className:xe.spanCount,children:[n.spanCount," spans"]})]}),g.jsxs("div",{className:xe.traceMeta,children:[g.jsx("span",{className:xe.traceTime,children:Hu(n.timestamp)}),n.sessionId&&g.jsxs("span",{className:xe.sessionId,children:["session: ",n.sessionId.slice(0,10),"…"]})]})]})}function Uj({span:n}){var y;const a=n.severityText||"",i=(y=n.scope)==null?void 0:y.name,r=n.spanId||"",u=n.body,o=n.name||"",c=n.type==="span",[h,m]=I.useState(!1),p=n.timestampMs>0?new Date(n.timestampMs).toISOString():"",_=c?Hj(n.kind):"";return g.jsxs("div",{className:xe.spanRow,children:[g.jsxs("div",{className:xe.spanHeader,children:[g.jsx("span",{className:xe.spanTimestamp,children:p}),a&&g.jsx("span",{className:`${xe.severityBadge} ${xe[`sev${a.toUpperCase()}`]||""}`,children:a}),c&&_&&g.jsx("span",{className:xe.severityBadge,children:_}),r&&g.jsx("span",{className:xe.spanIdTag,children:r.slice(0,8)})]}),i&&g.jsx("div",{className:xe.spanScope,children:i}),c&&o&&g.jsx("div",{className:xe.spanScope,children:o}),g.jsx("div",{className:xe.spanBody,children:c?g.jsx(Lw,{span:n}):g.jsx(qu,{body:u})}),g.jsx("button",{className:xe.rawToggle,onClick:()=>m(x=>!x),children:h?g.jsxs(g.Fragment,{children:[g.jsx(vi,{size:10})," Hide raw"]}):g.jsxs(g.Fragment,{children:[g.jsx(Mr,{size:10})," Raw JSON"]})}),h&&g.jsx("pre",{className:xe.spanRaw,children:JSON.stringify(n,null,2)})]})}function Hj(n){switch(n){case 1:return"SERVER";case 2:return"CLIENT";case 3:return"PRODUCER";case 4:return"CONSUMER";default:return"INTERNAL"}}function hu(n){const a=i=>String(i).padStart(2,"0");return`${n.getFullYear()}-${a(n.getMonth()+1)}-${a(n.getDate())}T${a(n.getHours())}:${a(n.getMinutes())}`}function qj({resources:n,sessionId:a,userId:i,onClose:r}){const{data:u,isLoading:o,error:c,fetch:h}=n,[m,p]=I.useState(null),[_,y]=I.useState("resources"),[x,b]=I.useState(620),k=I.useRef(null),w=I.useCallback(T=>{T.preventDefault();const M=K=>{const te=window.innerWidth-K.clientX;b(Math.max(320,Math.min(te,window.innerWidth*.8)))},O=()=>{k.current=null,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",O),document.body.style.cursor="",document.body.style.userSelect=""};k.current={move:M,up:O},document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",M),document.addEventListener("mouseup",O)},[]);I.useEffect(()=>()=>{k.current&&(document.removeEventListener("mousemove",k.current.move),document.removeEventListener("mouseup",k.current.up),document.body.style.cursor="",document.body.style.userSelect="")},[]);const R=(T,M)=>{p(O=>(O==null?void 0:O.kind)===T&&O.resource.name===M.name?null:{kind:T,resource:M})};return g.jsxs("div",{className:Ce.panel,style:{width:x},children:[g.jsx("div",{className:Ce.resizeHandle,onMouseDown:w,role:"separator","aria-label":"Resize panel"}),g.jsxs("div",{className:Ce.header,children:[g.jsx("span",{className:Ce.projectName,children:(u==null?void 0:u.project)||"Resources"}),g.jsxs("div",{className:Ce.headerActions,children:[g.jsx("button",{className:Ce.iconBtn,onClick:h,title:"Refresh","aria-label":"Refresh resources",children:g.jsx(ld,{size:12})}),g.jsx("button",{className:Ce.iconBtn,onClick:r,title:"Close","aria-label":"Close resource panel",children:g.jsx(Ru,{size:12})})]})]}),g.jsx("div",{className:Ce.tabBar,role:"tablist",children:["resources","traces","memories"].map(T=>g.jsx("button",{role:"tab","aria-selected":_===T,className:`${Ce.tab} ${_===T?Ce.tabActive:""}`,onClick:()=>y(T),children:T.charAt(0).toUpperCase()+T.slice(1)},T))}),g.jsxs("div",{className:Ce.body,children:[g.jsxs("div",{className:Ce.tabContent,hidden:_!=="resources",children:[o&&g.jsx("div",{className:Ce.status,children:"Loading resources…"}),c&&g.jsxs("div",{className:Ce.error,children:[g.jsxs("span",{children:[g.jsx(id,{size:12})," ",c]}),g.jsx("button",{className:Ce.retryBtn,onClick:h,children:"Retry"})]}),u&&!o&&g.jsxs("div",{className:Ce.graph,children:[u.agents.length>0&&g.jsx(ya,{title:"Agents",children:u.agents.map(T=>g.jsx(Bn,{kind:"agent",name:T.name,subtitle:T.build,isSelected:(m==null?void 0:m.kind)==="agent"&&m.resource.name===T.name,onClick:()=>R("agent",T),connections:Ij(T,u.mcpRuntimeTools),deploymentStatus:T.deploymentStatus},T.name))}),u.memories.length>0&&g.jsx(ya,{title:"Memories",children:u.memories.map(T=>g.jsx(Bn,{kind:"memory",name:T.name,subtitle:T.strategies.map(M=>M.type).join(", "),isSelected:(m==null?void 0:m.kind)==="memory"&&m.resource.name===T.name,onClick:()=>R("memory",T),deploymentStatus:T.deploymentStatus},T.name))}),u.credentials.length>0&&g.jsx(ya,{title:"Credentials",children:u.credentials.map(T=>g.jsx(Bn,{kind:"credential",name:T.name,subtitle:T.type,isSelected:(m==null?void 0:m.kind)==="credential"&&m.resource.name===T.name,onClick:()=>R("credential",T),deploymentStatus:T.deploymentStatus},T.name))}),u.gateways.length>0&&g.jsx(ya,{title:"Gateways",children:u.gateways.map(T=>g.jsxs("div",{children:[g.jsx(Bn,{kind:"gateway",name:T.name,subtitle:`${T.targets.length} target(s)`,isSelected:(m==null?void 0:m.kind)==="gateway"&&m.resource.name===T.name,onClick:()=>R("gateway",T),deploymentStatus:T.deploymentStatus}),T.targets.map(M=>g.jsx("div",{className:Ce.childNode,children:g.jsx(Bn,{kind:"gatewayTarget",name:M.name,subtitle:M.targetType,isSelected:(m==null?void 0:m.kind)==="gatewayTarget"&&m.resource.name===M.name,onClick:()=>R("gatewayTarget",M)})},M.name))]},T.name))}),u.mcpRuntimeTools.length>0&&g.jsx(ya,{title:"MCP Runtime Tools",children:u.mcpRuntimeTools.map(T=>g.jsx(Bn,{kind:"mcpTool",name:T.name,subtitle:T.bindings.map(M=>M.runtimeName).join(", "),isSelected:(m==null?void 0:m.kind)==="mcpTool"&&m.resource.name===T.name,onClick:()=>R("mcpTool",T),connections:T.bindings.map(M=>`→ ${M.runtimeName}`),deploymentStatus:T.deploymentStatus},T.name))}),u.evaluators.length>0&&g.jsx(ya,{title:"Evaluators",children:u.evaluators.map(T=>g.jsx(Bn,{kind:"evaluator",name:T.name,subtitle:`${T.level} — ${T.configType}`,isSelected:(m==null?void 0:m.kind)==="evaluator"&&m.resource.name===T.name,onClick:()=>R("evaluator",T),deploymentStatus:T.deploymentStatus},T.name))}),u.onlineEvalConfigs.length>0&&g.jsx(ya,{title:"Online Eval Configs",children:u.onlineEvalConfigs.map(T=>g.jsx(Bn,{kind:"onlineEval",name:T.name,subtitle:`${T.evaluators.length} evaluator(s), ${T.samplingRate}% sampling`,isSelected:(m==null?void 0:m.kind)==="onlineEval"&&m.resource.name===T.name,onClick:()=>R("onlineEval",T),connections:[`→ ${T.agent}`],deploymentStatus:T.deploymentStatus},T.name))}),u.policyEngines.length>0&&g.jsx(ya,{title:"Policy Engines",children:u.policyEngines.map(T=>g.jsxs("div",{children:[g.jsx(Bn,{kind:"policyEngine",name:T.name,subtitle:`${T.policies.length} polic${T.policies.length!==1?"ies":"y"}`,isSelected:(m==null?void 0:m.kind)==="policyEngine"&&m.resource.name===T.name,onClick:()=>R("policyEngine",T),deploymentStatus:T.deploymentStatus}),T.policies.map(M=>g.jsx("div",{className:Ce.childNode,children:g.jsx(Bn,{kind:"policy",name:M.name,subtitle:M.description,isSelected:(m==null?void 0:m.kind)==="policy"&&m.resource.name===M.name,onClick:()=>R("policy",M),deploymentStatus:M.deploymentStatus})},M.name))]},T.name))}),u.unassignedTargets.length>0&&g.jsx(ya,{title:"Unassigned Targets",children:u.unassignedTargets.map(T=>g.jsx(Bn,{kind:"unassignedTarget",name:T.name,subtitle:T.targetType,isSelected:(m==null?void 0:m.kind)==="unassignedTarget"&&m.resource.name===T.name,onClick:()=>R("unassignedTarget",T)},T.name))})]}),m&&g.jsxs("div",{className:Ce.infoCard,children:[g.jsxs("div",{className:Ce.infoHeader,children:[g.jsx("span",{className:`${Ce.kindBadge} ${Ce[m.kind]}`,children:Gj(m.kind)}),g.jsx("span",{className:Ce.infoName,children:m.resource.name})]}),g.jsxs("div",{className:Ce.infoBody,children:[Object.entries(m.resource).filter(([T,M])=>T!=="deployed"&&!Vj(M)).map(([T,M])=>g.jsxs("div",{className:Ce.infoRow,children:[g.jsx("span",{className:Ce.infoKey,children:T}),g.jsx("span",{className:Ce.infoValue,children:wy(M)})]},T)),"deployed"in m.resource&&m.resource.deployed!==null&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:Ce.infoSectionHeader,children:"Deployed State"}),Object.entries(m.resource.deployed).map(([T,M])=>g.jsxs("div",{className:Ce.infoRow,children:[g.jsx("span",{className:Ce.infoKey,children:T}),g.jsx("span",{className:Ce.infoValue,children:wy(M)})]},T))]})]})]})]}),g.jsx("div",{className:Ce.tabContent,hidden:_!=="traces",children:g.jsx(Lj,{agents:(u==null?void 0:u.agents)??[],isActive:_==="traces"})}),g.jsx("div",{className:Ce.tabContent,hidden:_!=="memories",children:g.jsx(s4,{memories:(u==null?void 0:u.memories)??[],sessionId:a,userId:i,isActive:_==="memories"})})]})]})}function ya({title:n,children:a}){return g.jsxs("div",{className:Ce.section,children:[g.jsx("div",{className:Ce.sectionTitle,children:n}),a]})}function Ij(n,a){const i=[];for(const r of a)r.bindings.some(u=>u.runtimeName===n.name)&&i.push(`← ${r.name}`);return i}function Vj(n){return!!(n===null||n===""||n===void 0||Array.isArray(n)&&n.length===0)}function wy(n){if(n==null)return"—";if(Array.isArray(n))return n.map(i=>typeof i=="object"?JSON.stringify(i):i).join(", ")||"—";const a=String(n);return a===""?"—":a}function Gj(n){return{agent:"Agent",memory:"Memory",credential:"Credential",gateway:"Gateway",gatewayTarget:"Target",mcpTool:"MCP Tool",evaluator:"Evaluator",onlineEval:"Online Eval",policyEngine:"Policy Engine",policy:"Policy",unassignedTarget:"Unassigned Target"}[n]}const Zj="_body_sadpk_1",Yj="_interactionsList_sadpk_9",Xj="_interactionItem_sadpk_17",$j="_interactionItemSelected_sadpk_36",Qj="_interactionPrompt_sadpk_41",Fj="_interactionMeta_sadpk_49",Kj="_interactionTraceId_sadpk_55",Jj="_interactionTime_sadpk_61",Pj="_interactionSpanCount_sadpk_66",Wj="_rightArea_sadpk_75",e3="_waterfall_sadpk_84",t3="_userPromptRow_sadpk_90",n3="_userPromptText_sadpk_101",a3="_waterfallRow_sadpk_108",l3="_waterfallRowSelected_sadpk_122",i3="_spanIcon_sadpk_128",r3="_spanLabel_sadpk_135",s3="_barContainer_sadpk_145",u3="_bar_sadpk_145",o3="_barInvocation_sadpk_160",c3="_barAgent_sadpk_164",f3="_barLlm_sadpk_168",d3="_barTool_sadpk_172",h3="_barOther_sadpk_176",m3="_duration_sadpk_180",p3="_detailPane_sadpk_190",g3="_detailHeader_sadpk_197",y3="_iconBtn_sadpk_209",_3="_tabBar_sadpk_224",v3="_tab_sadpk_224",x3="_tabActive_sadpk_244",b3="_detailBody_sadpk_249",S3="_attrTable_sadpk_254",T3="_attrKey_sadpk_265",k3="_attrValue_sadpk_273",E3="_emptyState_sadpk_280",Re={body:Zj,interactionsList:Yj,interactionItem:Xj,interactionItemSelected:$j,interactionPrompt:Qj,interactionMeta:Fj,interactionTraceId:Kj,interactionTime:Jj,interactionSpanCount:Pj,rightArea:Wj,waterfall:e3,userPromptRow:t3,userPromptText:n3,waterfallRow:a3,waterfallRowSelected:l3,spanIcon:i3,spanLabel:r3,barContainer:s3,bar:u3,barInvocation:o3,barAgent:c3,barLlm:f3,barTool:d3,barOther:h3,duration:m3,detailPane:p3,detailHeader:g3,iconBtn:y3,tabBar:_3,tab:v3,tabActive:x3,detailBody:b3,attrTable:S3,attrKey:T3,attrValue:k3,emptyState:E3};function N3({invocations:n,selectedTraceId:a,onSelect:i}){return n.length===0?g.jsx("div",{className:Re.emptyState,children:"No interactions yet"}):g.jsx("div",{className:Re.interactionsList,children:n.map(r=>g.jsxs("button",{className:`${Re.interactionItem} ${a===r.traceId?Re.interactionItemSelected:""}`,onClick:()=>i(r.traceId),"aria-label":`Trace ${r.traceId}`,children:[r.userPrompt&&g.jsx("span",{className:Re.interactionPrompt,title:r.userPrompt,children:r.userPrompt}),g.jsxs("div",{className:Re.interactionMeta,children:[g.jsxs("span",{className:Re.interactionTraceId,children:[r.traceId.slice(0,12),"..."]}),g.jsx("span",{className:Re.interactionSpanCount,children:r.spanCount})]}),g.jsx("span",{className:Re.interactionTime,children:Hu(r.timestamp)})]},r.traceId))})}function gu(n){if(typeof n=="string"){const a=qt(n);return typeof a!="string"?gu(a)??n:n}if(Array.isArray(n)){const a=n.filter(i=>i.text).map(i=>String(i.text));if(a.length>0)return a.join(" ")}return null}function C3(n){var i;for(const r of n){if(!((i=r.name)!=null&&i.startsWith("invoke_agent")))continue;const u=r.events;if(u)for(const o of u){if(o.name!=="gen_ai.user.message")continue;const c=bi(o.attributes),h=gu(c.content);if(h)return h}}let a=null;for(const r of n){const u=r.events;if(u)for(const o of u){if(o.name!=="gen_ai.user.message")continue;const c=bi(o.attributes),h=gu(c.content);h&&(a=h)}}if(a)return a;for(const r of n){const u=r.attributes??{};if(u["gen_ai.content.prompt"]){const o=gu(u["gen_ai.content.prompt"]);if(o)return o}}for(const r of n){const u=r.attributes??{};if(u["gen_ai.input.messages"]){const o=u["gen_ai.input.messages"],c=typeof o=="string"?qt(o):o;if(Array.isArray(c)){const h=c.find(m=>m.role==="user");if(h!=null&&h.parts&&Array.isArray(h.parts)){const m=h.parts.filter(p=>p.type==="text"&&p.content).map(p=>String(p.content));if(m.length>0)return m.join(" ")}}}}return null}function A3(n){switch(n){case 1:return"SERVER";case 2:return"CLIENT";case 3:return"PRODUCER";case 4:return"CONSUMER";default:return"INTERNAL"}}function w3(n){var o;const a={...n.attributes??{}},i=mn(n.startTimeUnixNano),u=mn(n.endTimeUnixNano)-i;return{attributes:a,status:n.status,kind:n.type==="span"?A3(n.kind):void 0,scope:(o=n.scope)==null?void 0:o.name,duration:u>0?`${u}ms`:void 0}}function j3(n){const a=n.events;if(a){let r=null;for(const u of a){const o=u.name,c=bi(u.attributes);o==="gen_ai.user.message"&&(r={type:"genai",content:qt(c.content)??c.content})}if(r)return r}const i=n.attributes??{};return i["gen_ai.content.prompt"]?{type:"genai",content:qt(i["gen_ai.content.prompt"])}:i["gen_ai.tool.call.arguments"]?{type:"tool",content:qt(i["gen_ai.tool.call.arguments"])}:i["gen_ai.input.messages"]?{type:"genai",content:qt(i["gen_ai.input.messages"])}:i["gen_ai.task.input"]?{type:"raw",content:qt(i["gen_ai.task.input"])}:n.type==="log"&&n.body?{type:"raw",content:n.body}:null}function M3(n){const a=n.events;if(a){let r=null;for(const u of a){const o=u.name,c=bi(u.attributes);o==="gen_ai.choice"&&(r={type:"genai",content:qt(c.message)??c})}if(r)return r}const i=n.attributes??{};if(i["tool.name"]&&a){for(const r of a)if(r.name==="gen_ai.tool.message"){const o=bi(r.attributes);return{type:"tool",content:qt(o.content)??o.content}}}return i["gen_ai.content.completion"]?{type:"genai",content:qt(i["gen_ai.content.completion"])}:i["gen_ai.tool.call.result"]?{type:"tool",content:qt(i["gen_ai.tool.call.result"])}:i["gen_ai.output.messages"]?{type:"genai",content:qt(i["gen_ai.output.messages"])}:i["gen_ai.task.output"]?{type:"raw",content:qt(i["gen_ai.task.output"])}:null}function z3({span:n,onClose:a}){const[i,r]=I.useState("event");return g.jsxs("div",{className:Re.detailPane,children:[g.jsxs("div",{className:Re.detailHeader,children:[g.jsx("div",{className:Re.tabBar,children:["event","request","response"].map(u=>g.jsx("button",{className:`${Re.tab} ${i===u?Re.tabActive:""}`,onClick:()=>r(u),children:u.charAt(0).toUpperCase()+u.slice(1)},u))}),g.jsx("button",{className:Re.iconBtn,onClick:a,"aria-label":"Close detail",children:g.jsx(Ru,{size:14})})]}),g.jsxs("div",{className:Re.detailBody,children:[i==="event"&&g.jsx(R3,{span:n}),i==="request"&&g.jsx(O3,{span:n}),i==="response"&&g.jsx(D3,{span:n})]})]})}function R3({span:n}){const a=w3(n),i=[];n.name&&i.push(["name",n.name]),a.kind&&i.push(["kind",a.kind]),a.scope&&i.push(["scope",a.scope]),a.duration&&i.push(["duration",a.duration]),a.status&&(i.push(["status.code",String(a.status.code??"OK")]),a.status.message&&i.push(["status.message",a.status.message]));const r=new Set(i.map(([u])=>u));for(const[u,o]of Object.entries(a.attributes))o!=null&&!r.has(u)&&i.push([u,typeof o=="object"?JSON.stringify(o):String(o)]);return i.length===0?g.jsx("div",{className:Re.emptyState,children:"No event data"}):g.jsx("table",{className:Re.attrTable,children:g.jsx("tbody",{children:i.map(([u,o])=>g.jsxs("tr",{children:[g.jsx("td",{className:Re.attrKey,children:u}),g.jsx("td",{className:Re.attrValue,children:o})]},u))})})}function O3({span:n}){const a=j3(n);return a?a.type==="genai"&&Array.isArray(a.content)?g.jsx(_i,{content:a.content}):g.jsx(qu,{body:a.content}):g.jsx("div",{className:Re.emptyState,children:"No request data"})}function D3({span:n}){const a=M3(n);return a?a.type==="genai"&&Array.isArray(a.content)?g.jsx(_i,{content:a.content}):g.jsx(qu,{body:a.content}):g.jsx("div",{className:Re.emptyState,children:"No response data"})}const L3=16,B3={invocation:g.jsx(Yy,{size:12}),agent:g.jsx(ax,{size:12}),llm:g.jsx(px,{size:12}),tool:g.jsx(Tl,{size:12}),other:g.jsx(K0,{size:10})},U3={invocation:Re.barInvocation,agent:Re.barAgent,llm:Re.barLlm,tool:Re.barTool,other:Re.barOther};function H3({tree:n,selectedSpanId:a,onSelectSpan:i,userPrompt:r}){const u=IC(n);return u.length===0?g.jsx("div",{className:Re.emptyState,children:"No spans"}):g.jsxs("div",{className:Re.waterfall,children:[r&&g.jsxs("div",{className:Re.userPromptRow,children:[g.jsx("span",{className:Re.spanIcon,children:g.jsx(kx,{size:12})}),g.jsx("span",{className:Re.userPromptText,title:r,children:r})]}),u.map((o,c)=>g.jsx(q3,{entry:o,isSelected:a===o.node.span.spanId,onSelect:()=>i(o.node.span)},o.node.span.spanId??c))]})}function q3({entry:n,isSelected:a,onSelect:i}){var _;const{node:r,offsetPercent:u,widthPercent:o}=n,c=VC(r.span),h=B3[c],m=U3[c],p=r.span.name||((_=r.span.scope)==null?void 0:_.name)||"span";return g.jsxs("div",{className:`${Re.waterfallRow} ${a?Re.waterfallRowSelected:""}`,style:{paddingLeft:`${10+r.depth*L3}px`},onClick:i,role:"button",tabIndex:0,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&i()},children:[g.jsx("span",{className:Re.spanIcon,children:h}),g.jsx("span",{className:Re.spanLabel,title:p,children:p}),g.jsx("div",{className:Re.barContainer,children:g.jsx("div",{className:`${Re.bar} ${m}`,style:{left:`${u}%`,width:`${o}%`}})}),g.jsx("span",{className:Re.duration,children:J1(r.durationMs)})]})}function I3({traces:n}){const{invocations:a,selectedInvocation:i,isLoading:r,selectTrace:u,refresh:o}=n,[c,h]=I.useState(null);return I.useEffect(()=>{h(null)},[i==null?void 0:i.traceId]),g.jsx(rd,{title:"Timeline view",status:r?"Loading...":void 0,onRefresh:o,children:g.jsxs("div",{className:Re.body,children:[g.jsx(N3,{invocations:a,selectedTraceId:(i==null?void 0:i.traceId)??null,onSelect:u}),g.jsxs("div",{className:Re.rightArea,children:[!i&&g.jsx("div",{className:Re.emptyState,children:"Select an interaction to view"}),i&&g.jsxs(g.Fragment,{children:[g.jsx(H3,{tree:i.tree,selectedSpanId:(c==null?void 0:c.spanId)??null,onSelectSpan:h,userPrompt:i.userPrompt}),c&&g.jsx(z3,{span:c,onClose:()=>h(null)})]})]})]})})}const V3="_error_1vxci_1",G3="_toolListItems_1vxci_7",Z3="_toolItem_1vxci_14",Y3="_toolItemSelected_1vxci_34",X3="_toolName_1vxci_39",$3="_toolDesc_1vxci_45",Q3="_toolForm_1vxci_53",F3="_toolFormHeader_1vxci_58",K3="_toolFormDesc_1vxci_66",J3="_noParams_1vxci_72",P3="_field_1vxci_78",W3="_fieldLabel_1vxci_82",eM="_fieldType_1vxci_92",tM="_fieldInput_1vxci_98",nM="_fieldTextarea_1vxci_115",aM="_fieldHint_1vxci_122",lM="_callBtn_1vxci_128",iM="_spinning_1vxci_153",St={error:V3,toolListItems:G3,toolItem:Z3,toolItemSelected:Y3,toolName:X3,toolDesc:$3,toolForm:Q3,toolFormHeader:F3,toolFormDesc:K3,noParams:J3,field:P3,fieldLabel:W3,fieldType:eM,fieldInput:tM,fieldTextarea:nM,fieldHint:aM,callBtn:lM,spinning:iM};function rM(n,a){if(a.type==="integer"){const i=parseInt(n,10);return Number.isNaN(i)?0:i}if(a.type==="number"){const i=parseFloat(n);return Number.isNaN(i)?0:i}if(a.type==="boolean")return n==="true";if(a.type==="object"||a.type==="array")try{return JSON.parse(n)}catch{return n}return n}function sM(n){return n.type==="integer"||n.type==="number"?"number":"text"}function uM({tool:n,isCalling:a,onCall:i}){var p,_;const r=((p=n.inputSchema)==null?void 0:p.properties)??{},u=new Set(((_=n.inputSchema)==null?void 0:_.required)??[]),o=Object.keys(r),[c,h]=I.useState(()=>{const y={};for(const x of o){const b=r[x];y[x]=b.default!==void 0?String(b.default):""}return y}),m=y=>{y.preventDefault();const x={};for(const b of o){const k=c[b];k===""&&!u.has(b)||(x[b]=rM(k,r[b]))}i(n.name,x)};return g.jsxs("form",{className:St.toolForm,onSubmit:m,children:[g.jsx("div",{className:St.toolFormHeader,children:n.name}),n.description&&g.jsx("div",{className:St.toolFormDesc,children:n.description}),o.length===0&&g.jsx("div",{className:St.noParams,children:"No parameters"}),o.map(y=>{const x=r[y],b=u.has(y);return g.jsxs("div",{className:St.field,children:[g.jsxs("label",{className:St.fieldLabel,children:[y,g.jsxs("span",{className:St.fieldType,children:[x.type,b?", required":""]})]}),x.enum?g.jsxs("select",{className:St.fieldInput,value:c[y],onChange:k=>h(w=>({...w,[y]:k.target.value})),children:[g.jsx("option",{value:"",children:"Select..."}),x.enum.map(k=>g.jsx("option",{value:k,children:k},k))]}):x.type==="boolean"?g.jsxs("select",{className:St.fieldInput,value:c[y],onChange:k=>h(w=>({...w,[y]:k.target.value})),children:[g.jsx("option",{value:"",children:"Select..."}),g.jsx("option",{value:"true",children:"true"}),g.jsx("option",{value:"false",children:"false"})]}):x.type==="object"||x.type==="array"?g.jsx("textarea",{className:`${St.fieldInput} ${St.fieldTextarea}`,value:c[y],onChange:k=>h(w=>({...w,[y]:k.target.value})),placeholder:"JSON",rows:3}):g.jsx("input",{className:St.fieldInput,type:sM(x),value:c[y],onChange:k=>h(w=>({...w,[y]:k.target.value})),placeholder:x.description??""}),x.description&&g.jsx("div",{className:St.fieldHint,children:x.description})]},y)}),g.jsx("button",{type:"submit",className:St.callBtn,disabled:a,children:a?g.jsxs(g.Fragment,{children:[g.jsx(hx,{size:14,className:St.spinning}),"Calling..."]}):"Call Tool"})]})}function oM({tools:n,isLoading:a,error:i,onRefresh:r,onCallTool:u,onToolCallMessage:o}){const[c,h]=I.useState(null),[m,p]=I.useState(!1),_=n.find(x=>x.name===c),y=async(x,b)=>{var R;p(!0);const k=Object.keys(b).length>0?`(${JSON.stringify(b)})`:"()",w=`Called ${x}${k}`;try{const T=await u(x,b),M=((R=T.content)==null?void 0:R.filter(K=>K.text!==void 0).map(K=>K.text))??[],O=M.length>0?M.join(`
254
+ `):JSON.stringify(T,null,2);o(w,O,T.isError)}catch(T){o(w,T.message,!0)}finally{p(!1)}};return g.jsxs(rd,{title:`Tools (${n.length})`,onRefresh:r,isRefreshing:a,children:[i&&g.jsx("div",{className:St.error,children:i}),g.jsx("div",{className:St.toolListItems,children:n.map(x=>g.jsxs("button",{className:`${St.toolItem} ${c===x.name?St.toolItemSelected:""}`,onClick:()=>h(c===x.name?null:x.name),children:[g.jsx("span",{className:St.toolName,children:x.name}),g.jsx("span",{className:St.toolDesc,children:x.description??""})]},x.name))}),_&&g.jsx(uM,{tool:_,isCalling:m,onCall:y},_.name)]})}function cM(n,a,i,r){const[u,o]=I.useState(null),[c,h]=I.useState(!1),[m,p]=I.useState(null);I.useEffect(()=>{o(null),p(null)},[a]);const _=I.useCallback(async()=>{if(!(!a||i!=="A2A")){h(!0),p(null);try{const y=await jn(`${n}/api/a2a/agent-card?agentName=${encodeURIComponent(a)}`);if(!y.ok){const b=await y.text();throw new Error(`Failed to fetch agent card (${y.status}): ${b}`)}const x=await y.json();if(!x.success||!x.card)throw new Error(x.error??"Agent card not available");o(x.card)}catch(y){p(y.message)}finally{h(!1)}}},[n,a,i]);return I.useEffect(()=>{a&&i==="A2A"&&r&&_()},[a,i,r,_]),{card:u,isLoading:c,error:m,fetchCard:_}}function fM(n){const[a,i]=I.useState([]),[r,u]=I.useState([]),[o,c]=I.useState(void 0),[h,m]=I.useState(!1),[p,_]=I.useState(!1);return I.useEffect(()=>{let y,x=!1;async function b(){try{const w=await(await jn(`${n}/api/status`)).json();if(x)return;i(w.agents),u(w.errors??[]),c(R=>R??w.selectedAgent),m(!0),_(!0)}catch{if(x)return;m(!1)}x||(y=setTimeout(b,5e3))}return b(),()=>{x=!0,clearTimeout(y)}},[n]),{agents:a,errors:r,selectedAgent:o,isConnected:h,hasConnected:p}}const dM=60;function hM(n,a){const i=I.useRef(null),r=I.useRef(!1),u=()=>{const h=i.current;return h?h.scrollHeight-h.scrollTop-h.clientHeight<=dM:!0},o=I.useCallback(()=>{const h=i.current;h&&(r.current=!1,h.scrollTop=h.scrollHeight)},[]),c=I.useCallback(()=>{const h=i.current;!h||r.current||(a?h.scrollTop=h.scrollHeight:h.scrollTo({top:h.scrollHeight,behavior:"smooth"}))},[a]);return I.useLayoutEffect(()=>{const h=i.current;if(!h)return;const m=()=>{requestAnimationFrame(()=>{i.current&&(r.current=!u())})},p=()=>{u()&&r.current&&(r.current=!1)};return h.addEventListener("wheel",m,{passive:!0}),h.addEventListener("touchmove",m,{passive:!0}),h.addEventListener("scroll",p,{passive:!0}),()=>{h.removeEventListener("wheel",m),h.removeEventListener("touchmove",m),h.removeEventListener("scroll",p)}},[]),I.useEffect(()=>{c()},[n,c]),{containerRef:i,forceScrollToBottom:o}}function mM(n){const a=K1(n.resourceSpans,n.resourceLogs),i=HC(a),r=C3(a);return{traceId:n.traceId,timestamp:n.timestamp,sessionId:n.sessionId,spanCount:n.spanCount,spans:a,tree:i,userPrompt:r}}function pM(n){const a=Un,[i,r]=I.useState([]),[u,o]=I.useState(null),[c,h]=I.useState(!1),[m,p]=I.useState(null),[_,y]=I.useState(null),x=I.useRef(n);x.current=n;const b=I.useCallback(async()=>{h(!0),p(null);try{const K=new URLSearchParams;x.current&&K.set("agentName",x.current);const te=Date.now();K.set("startTime",String(te-720*60*1e3)),K.set("endTime",String(te));const D=await jn(`${a}/api/traces?${K.toString()}`);if(D.status===404){y(!1),r([]);return}y(!0);const P=await D.json();P.success?r(P.traces.map(mM)):(p(P.error),r([]))}catch(K){p(K instanceof Error?K.message:"Failed to load traces"),r([])}finally{h(!1)}},[a]),k=i.find(K=>K.traceId===u)??null,w=I.useCallback(K=>{o(te=>te===K?te:K)},[]),R=I.useCallback(()=>{o(null)},[]),T=I.useCallback(()=>{b()},[b]),M=I.useCallback(()=>{setTimeout(()=>b(),1500),setTimeout(()=>b(),5e3)},[b]),O=I.useRef(n);return I.useEffect(()=>{O.current!==n&&(O.current=n,r([]),o(null),p(null)),b()},[n,b]),{invocations:i,selectedInvocation:k,isLoading:c,error:m,isAvailable:_,selectTrace:w,deselectTrace:R,refresh:T,onInvocationComplete:M}}let Of=1;function jy(n){if(typeof n=="string"){const a=n.match(/^data:\s*(.+)$/m);if(a)try{return JSON.parse(a[1])}catch{throw new Error(`Failed to parse SSE data: ${a[1].slice(0,200)}`)}try{return JSON.parse(n)}catch{throw new Error(`Unexpected MCP result format: ${n.slice(0,200)}`)}}if(n&&typeof n=="object")return n;throw new Error("Empty MCP result")}async function mu(n,a,i,r){const u=await jn(`${n}/api/mcp`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentName:a,body:i,sessionId:r})});if(!u.ok){const o=await u.text();throw new Error(`MCP proxy error (${u.status}): ${o}`)}return u.json()}function gM(n,a,i,r){const[u,o]=I.useState([]),[c,h]=I.useState(!1),[m,p]=I.useState(null),_=I.useRef(void 0),y=I.useRef(null);I.useEffect(()=>{o([]),p(null),_.current=void 0,y.current=null},[a]);const x=I.useCallback(w=>{if(y.current)return y.current;const R=(async()=>{const T=await mu(n,w,{jsonrpc:"2.0",id:Of++,method:"initialize",params:{protocolVersion:"2025-03-26",capabilities:{},clientInfo:{name:"agentcore-inspector",version:"1.0.0"}}});if(!T.success)throw new Error(T.error??"Failed to initialize MCP session");_.current=T.sessionId,await mu(n,w,{jsonrpc:"2.0",method:"notifications/initialized"},_.current)})().catch(T=>{throw y.current=null,T});return y.current=R,R},[n]),b=I.useCallback(async()=>{if(!(!a||i!=="MCP")){h(!0),p(null);try{await x(a);const w=await mu(n,a,{jsonrpc:"2.0",id:Of++,method:"tools/list",params:{}},_.current);if(!w.success)throw new Error(w.error??"Failed to list tools");const T=jy(w.result).result;o((T==null?void 0:T.tools)??[])}catch(w){p(w.message)}finally{h(!1)}}},[n,a,i,x]),k=I.useCallback(async(w,R)=>{if(!a)throw new Error("No agent selected");await x(a);const T=await mu(n,a,{jsonrpc:"2.0",id:Of++,method:"tools/call",params:{name:w,arguments:R}},_.current);if(!T.success)throw new Error(T.error??"Tool call failed");const M=jy(T.result),O=M.result,K=M.error;if(K)throw new Error(K.message);return O??{content:[{type:"text",text:JSON.stringify(M)}]}},[n,a,x]);return I.useEffect(()=>{a&&i==="MCP"&&r&&b()},[a,i,r,b]),{tools:u,isLoading:c,error:m,fetchTools:b,callTool:k}}const yM=15e3;function _M(n){const[a,i]=I.useState(null),[r,u]=I.useState(!1),[o,c]=I.useState(null),h=I.useRef(void 0),m=I.useCallback(async()=>{u(!0),c(null);try{const _=await(await jn(`${n}/api/resources`)).json();_.success?i(_):c(_.error||"Failed to load resources")}catch(p){c(p instanceof Error?p.message:"Failed to load resources")}finally{u(!1)}},[n]);return I.useEffect(()=>(m(),h.current=setInterval(m,yM),()=>clearInterval(h.current)),[m]),{data:a,isLoading:r,error:o,fetch:m}}function vM(n){const[a,i]=I.useState(!1),[r,u]=I.useState(!1),[o,c]=I.useState(null),h=I.useCallback(async m=>{i(!0),u(!1),c(null);try{const _=await(await jn(`${n}/api/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentName:m})})).json();return _.success?(u(!0),!0):(c(_.error||"Failed to start agent"),!1)}catch(p){return c(p instanceof Error?p.message:"Failed to start agent"),!1}finally{i(!1)}},[n]);return{isStarting:a,isReady:r,error:o,startAgent:h}}var $e;(function(n){n.assertEqual=u=>{};function a(u){}n.assertIs=a;function i(u){throw new Error}n.assertNever=i,n.arrayToEnum=u=>{const o={};for(const c of u)o[c]=c;return o},n.getValidEnumValues=u=>{const o=n.objectKeys(u).filter(h=>typeof u[u[h]]!="number"),c={};for(const h of o)c[h]=u[h];return n.objectValues(c)},n.objectValues=u=>n.objectKeys(u).map(function(o){return u[o]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const o=[];for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&o.push(c);return o},n.find=(u,o)=>{for(const c of u)if(o(c))return c},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function r(u,o=" | "){return u.map(c=>typeof c=="string"?`'${c}'`:c).join(o)}n.joinValues=r,n.jsonStringifyReplacer=(u,o)=>typeof o=="bigint"?o.toString():o})($e||($e={}));var My;(function(n){n.mergeShapes=(a,i)=>({...a,...i})})(My||(My={}));const he=$e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ka=n=>{switch(typeof n){case"undefined":return he.undefined;case"string":return he.string;case"number":return Number.isNaN(n)?he.nan:he.number;case"boolean":return he.boolean;case"function":return he.function;case"bigint":return he.bigint;case"symbol":return he.symbol;case"object":return Array.isArray(n)?he.array:n===null?he.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?he.promise:typeof Map<"u"&&n instanceof Map?he.map:typeof Set<"u"&&n instanceof Set?he.set:typeof Date<"u"&&n instanceof Date?he.date:he.object;default:return he.unknown}},ne=$e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ba extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=a}format(a){const i=a||function(o){return o.message},r={_errors:[]},u=o=>{for(const c of o.issues)if(c.code==="invalid_union")c.unionErrors.map(u);else if(c.code==="invalid_return_type")u(c.returnTypeError);else if(c.code==="invalid_arguments")u(c.argumentsError);else if(c.path.length===0)r._errors.push(i(c));else{let h=r,m=0;for(;m<c.path.length;){const p=c.path[m];m===c.path.length-1?(h[p]=h[p]||{_errors:[]},h[p]._errors.push(i(c))):h[p]=h[p]||{_errors:[]},h=h[p],m++}}};return u(this),r}static assert(a){if(!(a instanceof ba))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=i=>i.message){const i={},r=[];for(const u of this.issues)if(u.path.length>0){const o=u.path[0];i[o]=i[o]||[],i[o].push(a(u))}else r.push(a(u));return{formErrors:r,fieldErrors:i}}get formErrors(){return this.flatten()}}ba.create=n=>new ba(n);const Qf=(n,a)=>{let i;switch(n.code){case ne.invalid_type:n.received===he.undefined?i="Required":i=`Expected ${n.expected}, received ${n.received}`;break;case ne.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(n.expected,$e.jsonStringifyReplacer)}`;break;case ne.unrecognized_keys:i=`Unrecognized key(s) in object: ${$e.joinValues(n.keys,", ")}`;break;case ne.invalid_union:i="Invalid input";break;case ne.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${$e.joinValues(n.options)}`;break;case ne.invalid_enum_value:i=`Invalid enum value. Expected ${$e.joinValues(n.options)}, received '${n.received}'`;break;case ne.invalid_arguments:i="Invalid function arguments";break;case ne.invalid_return_type:i="Invalid function return type";break;case ne.invalid_date:i="Invalid date";break;case ne.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(i=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?i=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?i=`Invalid input: must end with "${n.validation.endsWith}"`:$e.assertNever(n.validation):n.validation!=="regex"?i=`Invalid ${n.validation}`:i="Invalid";break;case ne.too_small:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:i="Invalid input";break;case ne.too_big:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?i=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:i="Invalid input";break;case ne.custom:i="Invalid input";break;case ne.invalid_intersection_types:i="Intersection results could not be merged";break;case ne.not_multiple_of:i=`Number must be a multiple of ${n.multipleOf}`;break;case ne.not_finite:i="Number must be finite";break;default:i=a.defaultError,$e.assertNever(n)}return{message:i}};let xM=Qf;function bM(){return xM}const SM=n=>{const{data:a,path:i,errorMaps:r,issueData:u}=n,o=[...i,...u.path||[]],c={...u,path:o};if(u.message!==void 0)return{...u,path:o,message:u.message};let h="";const m=r.filter(p=>!!p).slice().reverse();for(const p of m)h=p(c,{data:a,defaultError:h}).message;return{...u,path:o,message:h}};function ue(n,a){const i=bM(),r=SM({issueData:a,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,i,i===Qf?void 0:Qf].filter(u=>!!u)});n.common.issues.push(r)}class $t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,i){const r=[];for(const u of i){if(u.status==="aborted")return Ae;u.status==="dirty"&&a.dirty(),r.push(u.value)}return{status:a.value,value:r}}static async mergeObjectAsync(a,i){const r=[];for(const u of i){const o=await u.key,c=await u.value;r.push({key:o,value:c})}return $t.mergeObjectSync(a,r)}static mergeObjectSync(a,i){const r={};for(const u of i){const{key:o,value:c}=u;if(o.status==="aborted"||c.status==="aborted")return Ae;o.status==="dirty"&&a.dirty(),c.status==="dirty"&&a.dirty(),o.value!=="__proto__"&&(typeof c.value<"u"||u.alwaysSet)&&(r[o.value]=c.value)}return{status:a.value,value:r}}}const Ae=Object.freeze({status:"aborted"}),Cr=n=>({status:"dirty",value:n}),Mn=n=>({status:"valid",value:n}),zy=n=>n.status==="aborted",Ry=n=>n.status==="dirty",Si=n=>n.status==="valid",bu=n=>typeof Promise<"u"&&n instanceof Promise;var _e;(function(n){n.errToObj=a=>typeof a=="string"?{message:a}:a||{},n.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(_e||(_e={}));class Qn{constructor(a,i,r,u){this._cachedPath=[],this.parent=a,this.data=i,this._path=r,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Oy=(n,a)=>{if(Si(a))return{success:!0,data:a.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new ba(n.common.issues);return this._error=i,this._error}}};function Le(n){if(!n)return{};const{errorMap:a,invalid_type_error:i,required_error:r,description:u}=n;if(a&&(i||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:u}:{errorMap:(c,h)=>{const{message:m}=n;return c.code==="invalid_enum_value"?{message:m??h.defaultError}:typeof h.data>"u"?{message:m??r??h.defaultError}:c.code!=="invalid_type"?{message:h.defaultError}:{message:m??i??h.defaultError}},description:u}}class Ze{get description(){return this._def.description}_getType(a){return Ka(a.data)}_getOrReturnCtx(a,i){return i||{common:a.parent.common,data:a.data,parsedType:Ka(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new $t,ctx:{common:a.parent.common,data:a.data,parsedType:Ka(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const i=this._parse(a);if(bu(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(a){const i=this._parse(a);return Promise.resolve(i)}parse(a,i){const r=this.safeParse(a,i);if(r.success)return r.data;throw r.error}safeParse(a,i){const r={common:{issues:[],async:(i==null?void 0:i.async)??!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:Ka(a)},u=this._parseSync({data:a,path:r.path,parent:r});return Oy(r,u)}"~validate"(a){var r,u;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:Ka(a)};if(!this["~standard"].async)try{const o=this._parseSync({data:a,path:[],parent:i});return Si(o)?{value:o.value}:{issues:i.common.issues}}catch(o){(u=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(o=>Si(o)?{value:o.value}:{issues:i.common.issues})}async parseAsync(a,i){const r=await this.safeParseAsync(a,i);if(r.success)return r.data;throw r.error}async safeParseAsync(a,i){const r={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:Ka(a)},u=this._parse({data:a,path:r.path,parent:r}),o=await(bu(u)?u:Promise.resolve(u));return Oy(r,o)}refine(a,i){const r=u=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(u):i;return this._refinement((u,o)=>{const c=a(u),h=()=>o.addIssue({code:ne.custom,...r(u)});return typeof Promise<"u"&&c instanceof Promise?c.then(m=>m?!0:(h(),!1)):c?!0:(h(),!1)})}refinement(a,i){return this._refinement((r,u)=>a(r)?!0:(u.addIssue(typeof i=="function"?i(r,u):i),!1))}_refinement(a){return new bl({schema:this,typeName:we.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return xa.create(this,this._def)}nullable(){return Sl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $n.create(this)}promise(){return Au.create(this,this._def)}or(a){return Tu.create([this,a],this._def)}and(a){return ku.create(this,a,this._def)}transform(a){return new bl({...Le(this._def),schema:this,typeName:we.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const i=typeof a=="function"?a:()=>a;return new wu({...Le(this._def),innerType:this,defaultValue:i,typeName:we.ZodDefault})}brand(){return new t_({typeName:we.ZodBranded,type:this,...Le(this._def)})}catch(a){const i=typeof a=="function"?a:()=>a;return new ju({...Le(this._def),innerType:this,catchValue:i,typeName:we.ZodCatch})}describe(a){const i=this.constructor;return new i({...this._def,description:a})}pipe(a){return Nd.create(this,a)}readonly(){return Mu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const TM=/^c[^\s-]{8,}$/i,kM=/^[0-9a-z]+$/,EM=/^[0-9A-HJKMNP-TV-Z]{26}$/i,NM=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,CM=/^[a-z0-9_-]{21}$/i,AM=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,wM=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,jM=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,MM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Df;const zM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,RM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,OM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,DM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,LM=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,BM=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,P1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",UM=new RegExp(`^${P1}$`);function W1(n){let a="[0-5]\\d";n.precision?a=`${a}\\.\\d{${n.precision}}`:n.precision==null&&(a=`${a}(\\.\\d+)?`);const i=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${i}`}function HM(n){return new RegExp(`^${W1(n)}$`)}function qM(n){let a=`${P1}T${W1(n)}`;const i=[];return i.push(n.local?"Z?":"Z"),n.offset&&i.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${i.join("|")})`,new RegExp(`^${a}$`)}function IM(n,a){return!!((a==="v4"||!a)&&zM.test(n)||(a==="v6"||!a)&&OM.test(n))}function VM(n,a){if(!AM.test(n))return!1;try{const[i]=n.split(".");if(!i)return!1;const r=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),u=JSON.parse(atob(r));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||a&&u.alg!==a)}catch{return!1}}function GM(n,a){return!!((a==="v4"||!a)&&RM.test(n)||(a==="v6"||!a)&&DM.test(n))}class va extends Ze{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==he.string){const o=this._getOrReturnCtx(a);return ue(o,{code:ne.invalid_type,expected:he.string,received:o.parsedType}),Ae}const r=new $t;let u;for(const o of this._def.checks)if(o.kind==="min")a.data.length<o.value&&(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")a.data.length>o.value&&(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const c=a.data.length>o.value,h=a.data.length<o.value;(c||h)&&(u=this._getOrReturnCtx(a,u),c?ue(u,{code:ne.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):h&&ue(u,{code:ne.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")jM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"email",code:ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Df||(Df=new RegExp(MM,"u")),Df.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"emoji",code:ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")NM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"uuid",code:ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")CM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"nanoid",code:ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")TM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"cuid",code:ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")kM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"cuid2",code:ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")EM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"ulid",code:ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(a.data)}catch{u=this._getOrReturnCtx(a,u),ue(u,{validation:"url",code:ne.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"regex",code:ne.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?a.data=a.data.trim():o.kind==="includes"?a.data.includes(o.value,o.position)||(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?a.data=a.data.toLowerCase():o.kind==="toUpperCase"?a.data=a.data.toUpperCase():o.kind==="startsWith"?a.data.startsWith(o.value)||(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?a.data.endsWith(o.value)||(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?qM(o).test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?UM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?HM(o).test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?wM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"duration",code:ne.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?IM(a.data,o.version)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"ip",code:ne.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?VM(a.data,o.alg)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"jwt",code:ne.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?GM(a.data,o.version)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"cidr",code:ne.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?LM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"base64",code:ne.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?BM.test(a.data)||(u=this._getOrReturnCtx(a,u),ue(u,{validation:"base64url",code:ne.invalid_string,message:o.message}),r.dirty()):$e.assertNever(o);return{status:r.value,value:a.data}}_regex(a,i,r){return this.refinement(u=>a.test(u),{validation:i,code:ne.invalid_string,..._e.errToObj(r)})}_addCheck(a){return new va({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",..._e.errToObj(a)})}url(a){return this._addCheck({kind:"url",..._e.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",..._e.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",..._e.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",..._e.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",..._e.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",..._e.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",..._e.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",..._e.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",..._e.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",..._e.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",..._e.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",..._e.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(a==null?void 0:a.offset)??!1,local:(a==null?void 0:a.local)??!1,..._e.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,..._e.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",..._e.errToObj(a)})}regex(a,i){return this._addCheck({kind:"regex",regex:a,..._e.errToObj(i)})}includes(a,i){return this._addCheck({kind:"includes",value:a,position:i==null?void 0:i.position,..._e.errToObj(i==null?void 0:i.message)})}startsWith(a,i){return this._addCheck({kind:"startsWith",value:a,..._e.errToObj(i)})}endsWith(a,i){return this._addCheck({kind:"endsWith",value:a,..._e.errToObj(i)})}min(a,i){return this._addCheck({kind:"min",value:a,..._e.errToObj(i)})}max(a,i){return this._addCheck({kind:"max",value:a,..._e.errToObj(i)})}length(a,i){return this._addCheck({kind:"length",value:a,..._e.errToObj(i)})}nonempty(a){return this.min(1,_e.errToObj(a))}trim(){return new va({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new va({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new va({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxLength(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}}va.create=n=>new va({checks:[],typeName:we.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...Le(n)});function ZM(n,a){const i=(n.toString().split(".")[1]||"").length,r=(a.toString().split(".")[1]||"").length,u=i>r?i:r,o=Number.parseInt(n.toFixed(u).replace(".","")),c=Number.parseInt(a.toFixed(u).replace(".",""));return o%c/10**u}class Ti extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==he.number){const o=this._getOrReturnCtx(a);return ue(o,{code:ne.invalid_type,expected:he.number,received:o.parsedType}),Ae}let r;const u=new $t;for(const o of this._def.checks)o.kind==="int"?$e.isInteger(a.data)||(r=this._getOrReturnCtx(a,r),ue(r,{code:ne.invalid_type,expected:"integer",received:"float",message:o.message}),u.dirty()):o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(r=this._getOrReturnCtx(a,r),ue(r,{code:ne.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(r=this._getOrReturnCtx(a,r),ue(r,{code:ne.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="multipleOf"?ZM(a.data,o.value)!==0&&(r=this._getOrReturnCtx(a,r),ue(r,{code:ne.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):o.kind==="finite"?Number.isFinite(a.data)||(r=this._getOrReturnCtx(a,r),ue(r,{code:ne.not_finite,message:o.message}),u.dirty()):$e.assertNever(o);return{status:u.value,value:a.data}}gte(a,i){return this.setLimit("min",a,!0,_e.toString(i))}gt(a,i){return this.setLimit("min",a,!1,_e.toString(i))}lte(a,i){return this.setLimit("max",a,!0,_e.toString(i))}lt(a,i){return this.setLimit("max",a,!1,_e.toString(i))}setLimit(a,i,r,u){return new Ti({...this._def,checks:[...this._def.checks,{kind:a,value:i,inclusive:r,message:_e.toString(u)}]})}_addCheck(a){return new Ti({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:_e.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_e.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_e.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_e.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_e.toString(a)})}multipleOf(a,i){return this._addCheck({kind:"multipleOf",value:a,message:_e.toString(i)})}finite(a){return this._addCheck({kind:"finite",message:_e.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_e.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_e.toString(a)})}get minValue(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxValue(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&$e.isInteger(a.value))}get isFinite(){let a=null,i=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(i===null||r.value>i)&&(i=r.value):r.kind==="max"&&(a===null||r.value<a)&&(a=r.value)}return Number.isFinite(i)&&Number.isFinite(a)}}Ti.create=n=>new Ti({checks:[],typeName:we.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...Le(n)});class Or extends Ze{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==he.bigint)return this._getInvalidInput(a);let r;const u=new $t;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(r=this._getOrReturnCtx(a,r),ue(r,{code:ne.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(r=this._getOrReturnCtx(a,r),ue(r,{code:ne.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="multipleOf"?a.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(a,r),ue(r,{code:ne.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):$e.assertNever(o);return{status:u.value,value:a.data}}_getInvalidInput(a){const i=this._getOrReturnCtx(a);return ue(i,{code:ne.invalid_type,expected:he.bigint,received:i.parsedType}),Ae}gte(a,i){return this.setLimit("min",a,!0,_e.toString(i))}gt(a,i){return this.setLimit("min",a,!1,_e.toString(i))}lte(a,i){return this.setLimit("max",a,!0,_e.toString(i))}lt(a,i){return this.setLimit("max",a,!1,_e.toString(i))}setLimit(a,i,r,u){return new Or({...this._def,checks:[...this._def.checks,{kind:a,value:i,inclusive:r,message:_e.toString(u)}]})}_addCheck(a){return new Or({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_e.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_e.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_e.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_e.toString(a)})}multipleOf(a,i){return this._addCheck({kind:"multipleOf",value:a,message:_e.toString(i)})}get minValue(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxValue(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}}Or.create=n=>new Or({checks:[],typeName:we.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...Le(n)});class Ff extends Ze{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==he.boolean){const r=this._getOrReturnCtx(a);return ue(r,{code:ne.invalid_type,expected:he.boolean,received:r.parsedType}),Ae}return Mn(a.data)}}Ff.create=n=>new Ff({typeName:we.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...Le(n)});class Su extends Ze{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==he.date){const o=this._getOrReturnCtx(a);return ue(o,{code:ne.invalid_type,expected:he.date,received:o.parsedType}),Ae}if(Number.isNaN(a.data.getTime())){const o=this._getOrReturnCtx(a);return ue(o,{code:ne.invalid_date}),Ae}const r=new $t;let u;for(const o of this._def.checks)o.kind==="min"?a.data.getTime()<o.value&&(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?a.data.getTime()>o.value&&(u=this._getOrReturnCtx(a,u),ue(u,{code:ne.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):$e.assertNever(o);return{status:r.value,value:new Date(a.data.getTime())}}_addCheck(a){return new Su({...this._def,checks:[...this._def.checks,a]})}min(a,i){return this._addCheck({kind:"min",value:a.getTime(),message:_e.toString(i)})}max(a,i){return this._addCheck({kind:"max",value:a.getTime(),message:_e.toString(i)})}get minDate(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a!=null?new Date(a):null}}Su.create=n=>new Su({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:we.ZodDate,...Le(n)});class Dy extends Ze{_parse(a){if(this._getType(a)!==he.symbol){const r=this._getOrReturnCtx(a);return ue(r,{code:ne.invalid_type,expected:he.symbol,received:r.parsedType}),Ae}return Mn(a.data)}}Dy.create=n=>new Dy({typeName:we.ZodSymbol,...Le(n)});class Kf extends Ze{_parse(a){if(this._getType(a)!==he.undefined){const r=this._getOrReturnCtx(a);return ue(r,{code:ne.invalid_type,expected:he.undefined,received:r.parsedType}),Ae}return Mn(a.data)}}Kf.create=n=>new Kf({typeName:we.ZodUndefined,...Le(n)});class Jf extends Ze{_parse(a){if(this._getType(a)!==he.null){const r=this._getOrReturnCtx(a);return ue(r,{code:ne.invalid_type,expected:he.null,received:r.parsedType}),Ae}return Mn(a.data)}}Jf.create=n=>new Jf({typeName:we.ZodNull,...Le(n)});class Pf extends Ze{constructor(){super(...arguments),this._any=!0}_parse(a){return Mn(a.data)}}Pf.create=n=>new Pf({typeName:we.ZodAny,...Le(n)});class Wf extends Ze{constructor(){super(...arguments),this._unknown=!0}_parse(a){return Mn(a.data)}}Wf.create=n=>new Wf({typeName:we.ZodUnknown,...Le(n)});class Ja extends Ze{_parse(a){const i=this._getOrReturnCtx(a);return ue(i,{code:ne.invalid_type,expected:he.never,received:i.parsedType}),Ae}}Ja.create=n=>new Ja({typeName:we.ZodNever,...Le(n)});class Ly extends Ze{_parse(a){if(this._getType(a)!==he.undefined){const r=this._getOrReturnCtx(a);return ue(r,{code:ne.invalid_type,expected:he.void,received:r.parsedType}),Ae}return Mn(a.data)}}Ly.create=n=>new Ly({typeName:we.ZodVoid,...Le(n)});class $n extends Ze{_parse(a){const{ctx:i,status:r}=this._processInputParams(a),u=this._def;if(i.parsedType!==he.array)return ue(i,{code:ne.invalid_type,expected:he.array,received:i.parsedType}),Ae;if(u.exactLength!==null){const c=i.data.length>u.exactLength.value,h=i.data.length<u.exactLength.value;(c||h)&&(ue(i,{code:c?ne.too_big:ne.too_small,minimum:h?u.exactLength.value:void 0,maximum:c?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),r.dirty())}if(u.minLength!==null&&i.data.length<u.minLength.value&&(ue(i,{code:ne.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),r.dirty()),u.maxLength!==null&&i.data.length>u.maxLength.value&&(ue(i,{code:ne.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),r.dirty()),i.common.async)return Promise.all([...i.data].map((c,h)=>u.type._parseAsync(new Qn(i,c,i.path,h)))).then(c=>$t.mergeArray(r,c));const o=[...i.data].map((c,h)=>u.type._parseSync(new Qn(i,c,i.path,h)));return $t.mergeArray(r,o)}get element(){return this._def.type}min(a,i){return new $n({...this._def,minLength:{value:a,message:_e.toString(i)}})}max(a,i){return new $n({...this._def,maxLength:{value:a,message:_e.toString(i)}})}length(a,i){return new $n({...this._def,exactLength:{value:a,message:_e.toString(i)}})}nonempty(a){return this.min(1,a)}}$n.create=(n,a)=>new $n({type:n,minLength:null,maxLength:null,exactLength:null,typeName:we.ZodArray,...Le(a)});function gi(n){if(n instanceof At){const a={};for(const i in n.shape){const r=n.shape[i];a[i]=xa.create(gi(r))}return new At({...n._def,shape:()=>a})}else return n instanceof $n?new $n({...n._def,type:gi(n.element)}):n instanceof xa?xa.create(gi(n.unwrap())):n instanceof Sl?Sl.create(gi(n.unwrap())):n instanceof vl?vl.create(n.items.map(a=>gi(a))):n}class At extends Ze{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),i=$e.objectKeys(a);return this._cached={shape:a,keys:i},this._cached}_parse(a){if(this._getType(a)!==he.object){const p=this._getOrReturnCtx(a);return ue(p,{code:ne.invalid_type,expected:he.object,received:p.parsedType}),Ae}const{status:r,ctx:u}=this._processInputParams(a),{shape:o,keys:c}=this._getCached(),h=[];if(!(this._def.catchall instanceof Ja&&this._def.unknownKeys==="strip"))for(const p in u.data)c.includes(p)||h.push(p);const m=[];for(const p of c){const _=o[p],y=u.data[p];m.push({key:{status:"valid",value:p},value:_._parse(new Qn(u,y,u.path,p)),alwaysSet:p in u.data})}if(this._def.catchall instanceof Ja){const p=this._def.unknownKeys;if(p==="passthrough")for(const _ of h)m.push({key:{status:"valid",value:_},value:{status:"valid",value:u.data[_]}});else if(p==="strict")h.length>0&&(ue(u,{code:ne.unrecognized_keys,keys:h}),r.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const _ of h){const y=u.data[_];m.push({key:{status:"valid",value:_},value:p._parse(new Qn(u,y,u.path,_)),alwaysSet:_ in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const p=[];for(const _ of m){const y=await _.key,x=await _.value;p.push({key:y,value:x,alwaysSet:_.alwaysSet})}return p}).then(p=>$t.mergeObjectSync(r,p)):$t.mergeObjectSync(r,m)}get shape(){return this._def.shape()}strict(a){return _e.errToObj,new At({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(i,r)=>{var o,c;const u=((c=(o=this._def).errorMap)==null?void 0:c.call(o,i,r).message)??r.defaultError;return i.code==="unrecognized_keys"?{message:_e.errToObj(a).message??u}:{message:u}}}:{}})}strip(){return new At({...this._def,unknownKeys:"strip"})}passthrough(){return new At({...this._def,unknownKeys:"passthrough"})}extend(a){return new At({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new At({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:we.ZodObject})}setKey(a,i){return this.augment({[a]:i})}catchall(a){return new At({...this._def,catchall:a})}pick(a){const i={};for(const r of $e.objectKeys(a))a[r]&&this.shape[r]&&(i[r]=this.shape[r]);return new At({...this._def,shape:()=>i})}omit(a){const i={};for(const r of $e.objectKeys(this.shape))a[r]||(i[r]=this.shape[r]);return new At({...this._def,shape:()=>i})}deepPartial(){return gi(this)}partial(a){const i={};for(const r of $e.objectKeys(this.shape)){const u=this.shape[r];a&&!a[r]?i[r]=u:i[r]=u.optional()}return new At({...this._def,shape:()=>i})}required(a){const i={};for(const r of $e.objectKeys(this.shape))if(a&&!a[r])i[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof xa;)o=o._def.innerType;i[r]=o}return new At({...this._def,shape:()=>i})}keyof(){return e_($e.objectKeys(this.shape))}}At.create=(n,a)=>new At({shape:()=>n,unknownKeys:"strip",catchall:Ja.create(),typeName:we.ZodObject,...Le(a)});At.strictCreate=(n,a)=>new At({shape:()=>n,unknownKeys:"strict",catchall:Ja.create(),typeName:we.ZodObject,...Le(a)});At.lazycreate=(n,a)=>new At({shape:n,unknownKeys:"strip",catchall:Ja.create(),typeName:we.ZodObject,...Le(a)});class Tu extends Ze{_parse(a){const{ctx:i}=this._processInputParams(a),r=this._def.options;function u(o){for(const h of o)if(h.result.status==="valid")return h.result;for(const h of o)if(h.result.status==="dirty")return i.common.issues.push(...h.ctx.common.issues),h.result;const c=o.map(h=>new ba(h.ctx.common.issues));return ue(i,{code:ne.invalid_union,unionErrors:c}),Ae}if(i.common.async)return Promise.all(r.map(async o=>{const c={...i,common:{...i.common,issues:[]},parent:null};return{result:await o._parseAsync({data:i.data,path:i.path,parent:c}),ctx:c}})).then(u);{let o;const c=[];for(const m of r){const p={...i,common:{...i.common,issues:[]},parent:null},_=m._parseSync({data:i.data,path:i.path,parent:p});if(_.status==="valid")return _;_.status==="dirty"&&!o&&(o={result:_,ctx:p}),p.common.issues.length&&c.push(p.common.issues)}if(o)return i.common.issues.push(...o.ctx.common.issues),o.result;const h=c.map(m=>new ba(m));return ue(i,{code:ne.invalid_union,unionErrors:h}),Ae}}get options(){return this._def.options}}Tu.create=(n,a)=>new Tu({options:n,typeName:we.ZodUnion,...Le(a)});const _a=n=>n instanceof td?_a(n.schema):n instanceof bl?_a(n.innerType()):n instanceof Nu?[n.value]:n instanceof xl?n.options:n instanceof Cu?$e.objectValues(n.enum):n instanceof wu?_a(n._def.innerType):n instanceof Kf?[void 0]:n instanceof Jf?[null]:n instanceof xa?[void 0,..._a(n.unwrap())]:n instanceof Sl?[null,..._a(n.unwrap())]:n instanceof t_||n instanceof Mu?_a(n.unwrap()):n instanceof ju?_a(n._def.innerType):[];class Ed extends Ze{_parse(a){const{ctx:i}=this._processInputParams(a);if(i.parsedType!==he.object)return ue(i,{code:ne.invalid_type,expected:he.object,received:i.parsedType}),Ae;const r=this.discriminator,u=i.data[r],o=this.optionsMap.get(u);return o?i.common.async?o._parseAsync({data:i.data,path:i.path,parent:i}):o._parseSync({data:i.data,path:i.path,parent:i}):(ue(i,{code:ne.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ae)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,i,r){const u=new Map;for(const o of i){const c=_a(o.shape[a]);if(!c.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const h of c){if(u.has(h))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(h)}`);u.set(h,o)}}return new Ed({typeName:we.ZodDiscriminatedUnion,discriminator:a,options:i,optionsMap:u,...Le(r)})}}function ed(n,a){const i=Ka(n),r=Ka(a);if(n===a)return{valid:!0,data:n};if(i===he.object&&r===he.object){const u=$e.objectKeys(a),o=$e.objectKeys(n).filter(h=>u.indexOf(h)!==-1),c={...n,...a};for(const h of o){const m=ed(n[h],a[h]);if(!m.valid)return{valid:!1};c[h]=m.data}return{valid:!0,data:c}}else if(i===he.array&&r===he.array){if(n.length!==a.length)return{valid:!1};const u=[];for(let o=0;o<n.length;o++){const c=n[o],h=a[o],m=ed(c,h);if(!m.valid)return{valid:!1};u.push(m.data)}return{valid:!0,data:u}}else return i===he.date&&r===he.date&&+n==+a?{valid:!0,data:n}:{valid:!1}}class ku extends Ze{_parse(a){const{status:i,ctx:r}=this._processInputParams(a),u=(o,c)=>{if(zy(o)||zy(c))return Ae;const h=ed(o.value,c.value);return h.valid?((Ry(o)||Ry(c))&&i.dirty(),{status:i.value,value:h.data}):(ue(r,{code:ne.invalid_intersection_types}),Ae)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,c])=>u(o,c)):u(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ku.create=(n,a,i)=>new ku({left:n,right:a,typeName:we.ZodIntersection,...Le(i)});class vl extends Ze{_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==he.array)return ue(r,{code:ne.invalid_type,expected:he.array,received:r.parsedType}),Ae;if(r.data.length<this._def.items.length)return ue(r,{code:ne.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ae;!this._def.rest&&r.data.length>this._def.items.length&&(ue(r,{code:ne.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const o=[...r.data].map((c,h)=>{const m=this._def.items[h]||this._def.rest;return m?m._parse(new Qn(r,c,r.path,h)):null}).filter(c=>!!c);return r.common.async?Promise.all(o).then(c=>$t.mergeArray(i,c)):$t.mergeArray(i,o)}get items(){return this._def.items}rest(a){return new vl({...this._def,rest:a})}}vl.create=(n,a)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new vl({items:n,typeName:we.ZodTuple,rest:null,...Le(a)})};class Eu extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==he.object)return ue(r,{code:ne.invalid_type,expected:he.object,received:r.parsedType}),Ae;const u=[],o=this._def.keyType,c=this._def.valueType;for(const h in r.data)u.push({key:o._parse(new Qn(r,h,r.path,h)),value:c._parse(new Qn(r,r.data[h],r.path,h)),alwaysSet:h in r.data});return r.common.async?$t.mergeObjectAsync(i,u):$t.mergeObjectSync(i,u)}get element(){return this._def.valueType}static create(a,i,r){return i instanceof Ze?new Eu({keyType:a,valueType:i,typeName:we.ZodRecord,...Le(r)}):new Eu({keyType:va.create(),valueType:a,typeName:we.ZodRecord,...Le(i)})}}class By extends Ze{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==he.map)return ue(r,{code:ne.invalid_type,expected:he.map,received:r.parsedType}),Ae;const u=this._def.keyType,o=this._def.valueType,c=[...r.data.entries()].map(([h,m],p)=>({key:u._parse(new Qn(r,h,r.path,[p,"key"])),value:o._parse(new Qn(r,m,r.path,[p,"value"]))}));if(r.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const m of c){const p=await m.key,_=await m.value;if(p.status==="aborted"||_.status==="aborted")return Ae;(p.status==="dirty"||_.status==="dirty")&&i.dirty(),h.set(p.value,_.value)}return{status:i.value,value:h}})}else{const h=new Map;for(const m of c){const p=m.key,_=m.value;if(p.status==="aborted"||_.status==="aborted")return Ae;(p.status==="dirty"||_.status==="dirty")&&i.dirty(),h.set(p.value,_.value)}return{status:i.value,value:h}}}}By.create=(n,a,i)=>new By({valueType:a,keyType:n,typeName:we.ZodMap,...Le(i)});class Dr extends Ze{_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==he.set)return ue(r,{code:ne.invalid_type,expected:he.set,received:r.parsedType}),Ae;const u=this._def;u.minSize!==null&&r.data.size<u.minSize.value&&(ue(r,{code:ne.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),i.dirty()),u.maxSize!==null&&r.data.size>u.maxSize.value&&(ue(r,{code:ne.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),i.dirty());const o=this._def.valueType;function c(m){const p=new Set;for(const _ of m){if(_.status==="aborted")return Ae;_.status==="dirty"&&i.dirty(),p.add(_.value)}return{status:i.value,value:p}}const h=[...r.data.values()].map((m,p)=>o._parse(new Qn(r,m,r.path,p)));return r.common.async?Promise.all(h).then(m=>c(m)):c(h)}min(a,i){return new Dr({...this._def,minSize:{value:a,message:_e.toString(i)}})}max(a,i){return new Dr({...this._def,maxSize:{value:a,message:_e.toString(i)}})}size(a,i){return this.min(a,i).max(a,i)}nonempty(a){return this.min(1,a)}}Dr.create=(n,a)=>new Dr({valueType:n,minSize:null,maxSize:null,typeName:we.ZodSet,...Le(a)});class td extends Ze{get schema(){return this._def.getter()}_parse(a){const{ctx:i}=this._processInputParams(a);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}td.create=(n,a)=>new td({getter:n,typeName:we.ZodLazy,...Le(a)});class Nu extends Ze{_parse(a){if(a.data!==this._def.value){const i=this._getOrReturnCtx(a);return ue(i,{received:i.data,code:ne.invalid_literal,expected:this._def.value}),Ae}return{status:"valid",value:a.data}}get value(){return this._def.value}}Nu.create=(n,a)=>new Nu({value:n,typeName:we.ZodLiteral,...Le(a)});function e_(n,a){return new xl({values:n,typeName:we.ZodEnum,...Le(a)})}class xl extends Ze{_parse(a){if(typeof a.data!="string"){const i=this._getOrReturnCtx(a),r=this._def.values;return ue(i,{expected:$e.joinValues(r),received:i.parsedType,code:ne.invalid_type}),Ae}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const i=this._getOrReturnCtx(a),r=this._def.values;return ue(i,{received:i.data,code:ne.invalid_enum_value,options:r}),Ae}return Mn(a.data)}get options(){return this._def.values}get enum(){const a={};for(const i of this._def.values)a[i]=i;return a}get Values(){const a={};for(const i of this._def.values)a[i]=i;return a}get Enum(){const a={};for(const i of this._def.values)a[i]=i;return a}extract(a,i=this._def){return xl.create(a,{...this._def,...i})}exclude(a,i=this._def){return xl.create(this.options.filter(r=>!a.includes(r)),{...this._def,...i})}}xl.create=e_;class Cu extends Ze{_parse(a){const i=$e.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(a);if(r.parsedType!==he.string&&r.parsedType!==he.number){const u=$e.objectValues(i);return ue(r,{expected:$e.joinValues(u),received:r.parsedType,code:ne.invalid_type}),Ae}if(this._cache||(this._cache=new Set($e.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const u=$e.objectValues(i);return ue(r,{received:r.data,code:ne.invalid_enum_value,options:u}),Ae}return Mn(a.data)}get enum(){return this._def.values}}Cu.create=(n,a)=>new Cu({values:n,typeName:we.ZodNativeEnum,...Le(a)});class Au extends Ze{unwrap(){return this._def.type}_parse(a){const{ctx:i}=this._processInputParams(a);if(i.parsedType!==he.promise&&i.common.async===!1)return ue(i,{code:ne.invalid_type,expected:he.promise,received:i.parsedType}),Ae;const r=i.parsedType===he.promise?i.data:Promise.resolve(i.data);return Mn(r.then(u=>this._def.type.parseAsync(u,{path:i.path,errorMap:i.common.contextualErrorMap})))}}Au.create=(n,a)=>new Au({type:n,typeName:we.ZodPromise,...Le(a)});class bl extends Ze{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===we.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:i,ctx:r}=this._processInputParams(a),u=this._def.effect||null,o={addIssue:c=>{ue(r,c),c.fatal?i.abort():i.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),u.type==="preprocess"){const c=u.transform(r.data,o);if(r.common.async)return Promise.resolve(c).then(async h=>{if(i.value==="aborted")return Ae;const m=await this._def.schema._parseAsync({data:h,path:r.path,parent:r});return m.status==="aborted"?Ae:m.status==="dirty"||i.value==="dirty"?Cr(m.value):m});{if(i.value==="aborted")return Ae;const h=this._def.schema._parseSync({data:c,path:r.path,parent:r});return h.status==="aborted"?Ae:h.status==="dirty"||i.value==="dirty"?Cr(h.value):h}}if(u.type==="refinement"){const c=h=>{const m=u.refinement(h,o);if(r.common.async)return Promise.resolve(m);if(m instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(r.common.async===!1){const h=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return h.status==="aborted"?Ae:(h.status==="dirty"&&i.dirty(),c(h.value),{status:i.value,value:h.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(h=>h.status==="aborted"?Ae:(h.status==="dirty"&&i.dirty(),c(h.value).then(()=>({status:i.value,value:h.value}))))}if(u.type==="transform")if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Si(c))return Ae;const h=u.transform(c.value,o);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:h}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>Si(c)?Promise.resolve(u.transform(c.value,o)).then(h=>({status:i.value,value:h})):Ae);$e.assertNever(u)}}bl.create=(n,a,i)=>new bl({schema:n,typeName:we.ZodEffects,effect:a,...Le(i)});bl.createWithPreprocess=(n,a,i)=>new bl({schema:a,effect:{type:"preprocess",transform:n},typeName:we.ZodEffects,...Le(i)});class xa extends Ze{_parse(a){return this._getType(a)===he.undefined?Mn(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}xa.create=(n,a)=>new xa({innerType:n,typeName:we.ZodOptional,...Le(a)});class Sl extends Ze{_parse(a){return this._getType(a)===he.null?Mn(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Sl.create=(n,a)=>new Sl({innerType:n,typeName:we.ZodNullable,...Le(a)});class wu extends Ze{_parse(a){const{ctx:i}=this._processInputParams(a);let r=i.data;return i.parsedType===he.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}wu.create=(n,a)=>new wu({innerType:n,typeName:we.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Le(a)});class ju extends Ze{_parse(a){const{ctx:i}=this._processInputParams(a),r={...i,common:{...i.common,issues:[]}},u=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return bu(u)?u.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ba(r.common.issues)},input:r.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new ba(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ju.create=(n,a)=>new ju({innerType:n,typeName:we.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Le(a)});class Uy extends Ze{_parse(a){if(this._getType(a)!==he.nan){const r=this._getOrReturnCtx(a);return ue(r,{code:ne.invalid_type,expected:he.nan,received:r.parsedType}),Ae}return{status:"valid",value:a.data}}}Uy.create=n=>new Uy({typeName:we.ZodNaN,...Le(n)});class t_ extends Ze{_parse(a){const{ctx:i}=this._processInputParams(a),r=i.data;return this._def.type._parse({data:r,path:i.path,parent:i})}unwrap(){return this._def.type}}class Nd extends Ze{_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ae:o.status==="dirty"?(i.dirty(),Cr(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const u=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Ae:u.status==="dirty"?(i.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:r.path,parent:r})}}static create(a,i){return new Nd({in:a,out:i,typeName:we.ZodPipeline})}}class Mu extends Ze{_parse(a){const i=this._def.innerType._parse(a),r=u=>(Si(u)&&(u.value=Object.freeze(u.value)),u);return bu(i)?i.then(u=>r(u)):r(i)}unwrap(){return this._def.innerType}}Mu.create=(n,a)=>new Mu({innerType:n,typeName:we.ZodReadonly,...Le(a)});var we;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(we||(we={}));const ee=va.create,nd=Ti.create,Qe=Ff.create,gn=Pf.create,Ni=Wf.create;Ja.create;const qn=$n.create,Je=At.create,Iu=Tu.create,Vu=Ed.create;ku.create;vl.create;const Hr=Eu.create,pe=Nu.create;xl.create;const YM=Cu.create;Au.create;xa.create;Sl.create;const XM=Je({name:ee(),arguments:ee()}),$M=Je({id:ee(),type:pe("function"),function:XM,encryptedValue:ee().optional()}),Gu=Je({id:ee(),role:ee(),content:ee().optional(),name:ee().optional(),encryptedValue:ee().optional()}),QM=Je({type:pe("text"),text:ee()}),FM=Je({type:pe("data"),value:ee(),mimeType:ee()}),KM=Je({type:pe("url"),value:ee(),mimeType:ee().optional()}),Zu=Vu("type",[FM,KM]),JM=Je({type:pe("image"),source:Zu,metadata:Ni().optional()}),PM=Je({type:pe("audio"),source:Zu,metadata:Ni().optional()}),WM=Je({type:pe("video"),source:Zu,metadata:Ni().optional()}),ez=Je({type:pe("document"),source:Zu,metadata:Ni().optional()}),n_=Je({type:pe("binary"),mimeType:ee(),id:ee().optional(),url:ee().optional(),data:ee().optional(),filename:ee().optional()}),a_=(n,a)=>{!n.id&&!n.url&&!n.data&&a.addIssue({code:ne.custom,message:"BinaryInputContent requires at least one of id, url, or data.",path:["id"]})};n_.superRefine((n,a)=>{a_(n,a)});const tz=Vu("type",[QM,JM,PM,WM,ez,n_]),nz=tz.superRefine((n,a)=>{n.type==="binary"&&a_(n,a)}),az=Gu.extend({role:pe("developer"),content:ee()}),lz=Gu.extend({role:pe("system"),content:ee()}),iz=Gu.extend({role:pe("assistant"),content:ee().optional(),toolCalls:qn($M).optional()}),rz=Gu.extend({role:pe("user"),content:Iu([ee(),qn(nz)])}),sz=Je({id:ee(),content:ee(),role:pe("tool"),toolCallId:ee(),error:ee().optional(),encryptedValue:ee().optional()}),uz=Je({id:ee(),role:pe("activity"),activityType:ee(),content:Hr(gn())}),oz=Je({id:ee(),role:pe("reasoning"),content:ee(),encryptedValue:ee().optional()}),l_=Vu("role",[az,lz,iz,rz,sz,uz,oz]);Iu([pe("developer"),pe("system"),pe("assistant"),pe("user"),pe("tool"),pe("activity"),pe("reasoning")]);const cz=Je({description:ee(),value:ee()}),i_=Je({name:ee(),description:ee(),parameters:gn(),metadata:Hr(gn()).optional()}),fz=Je({threadId:ee(),runId:ee(),parentRunId:ee().optional(),state:gn(),messages:qn(l_),tools:qn(i_),context:qn(cz),forwardedProps:gn()}),dz=gn(),hz=Je({name:ee(),description:ee().optional()}),mz=Je({name:ee().optional(),type:ee().optional(),description:ee().optional(),version:ee().optional(),provider:ee().optional(),documentationUrl:ee().optional(),metadata:Hr(Ni()).optional()}),pz=Je({streaming:Qe().optional(),websocket:Qe().optional(),httpBinary:Qe().optional(),pushNotifications:Qe().optional(),resumable:Qe().optional()}),gz=Je({supported:Qe().optional(),items:qn(i_).optional(),parallelCalls:Qe().optional(),clientProvided:Qe().optional()}),yz=Je({structuredOutput:Qe().optional(),supportedMimeTypes:qn(ee()).optional()}),_z=Je({snapshots:Qe().optional(),deltas:Qe().optional(),memory:Qe().optional(),persistentState:Qe().optional()}),vz=Je({supported:Qe().optional(),delegation:Qe().optional(),handoffs:Qe().optional(),subAgents:qn(hz).optional()}),xz=Je({supported:Qe().optional(),streaming:Qe().optional(),encrypted:Qe().optional()}),bz=Je({image:Qe().optional(),audio:Qe().optional(),video:Qe().optional(),pdf:Qe().optional(),file:Qe().optional()}),Sz=Je({image:Qe().optional(),audio:Qe().optional()}),Tz=Je({input:bz.optional(),output:Sz.optional()}),kz=Je({codeExecution:Qe().optional(),sandboxed:Qe().optional(),maxIterations:nd().optional(),maxExecutionTime:nd().optional()}),Ez=Je({supported:Qe().optional(),approvals:Qe().optional(),interventions:Qe().optional(),feedback:Qe().optional()});Je({identity:mz.optional(),transport:pz.optional(),tools:gz.optional(),output:yz.optional(),state:_z.optional(),multiAgent:vz.optional(),reasoning:xz.optional(),multimodal:Tz.optional(),execution:kz.optional(),humanInTheLoop:Ez.optional(),custom:Hr(Ni()).optional()});const r_=Iu([pe("developer"),pe("system"),pe("assistant"),pe("user")]);let Ie=(function(n){return n.TEXT_MESSAGE_START="TEXT_MESSAGE_START",n.TEXT_MESSAGE_CONTENT="TEXT_MESSAGE_CONTENT",n.TEXT_MESSAGE_END="TEXT_MESSAGE_END",n.TEXT_MESSAGE_CHUNK="TEXT_MESSAGE_CHUNK",n.TOOL_CALL_START="TOOL_CALL_START",n.TOOL_CALL_ARGS="TOOL_CALL_ARGS",n.TOOL_CALL_END="TOOL_CALL_END",n.TOOL_CALL_CHUNK="TOOL_CALL_CHUNK",n.TOOL_CALL_RESULT="TOOL_CALL_RESULT",n.THINKING_START="THINKING_START",n.THINKING_END="THINKING_END",n.THINKING_TEXT_MESSAGE_START="THINKING_TEXT_MESSAGE_START",n.THINKING_TEXT_MESSAGE_CONTENT="THINKING_TEXT_MESSAGE_CONTENT",n.THINKING_TEXT_MESSAGE_END="THINKING_TEXT_MESSAGE_END",n.STATE_SNAPSHOT="STATE_SNAPSHOT",n.STATE_DELTA="STATE_DELTA",n.MESSAGES_SNAPSHOT="MESSAGES_SNAPSHOT",n.ACTIVITY_SNAPSHOT="ACTIVITY_SNAPSHOT",n.ACTIVITY_DELTA="ACTIVITY_DELTA",n.RAW="RAW",n.CUSTOM="CUSTOM",n.RUN_STARTED="RUN_STARTED",n.RUN_FINISHED="RUN_FINISHED",n.RUN_ERROR="RUN_ERROR",n.STEP_STARTED="STEP_STARTED",n.STEP_FINISHED="STEP_FINISHED",n.REASONING_START="REASONING_START",n.REASONING_MESSAGE_START="REASONING_MESSAGE_START",n.REASONING_MESSAGE_CONTENT="REASONING_MESSAGE_CONTENT",n.REASONING_MESSAGE_END="REASONING_MESSAGE_END",n.REASONING_MESSAGE_CHUNK="REASONING_MESSAGE_CHUNK",n.REASONING_END="REASONING_END",n.REASONING_ENCRYPTED_VALUE="REASONING_ENCRYPTED_VALUE",n})({});const Pe=Je({type:YM(Ie),timestamp:nd().optional(),rawEvent:gn().optional()}).passthrough(),Nz=Pe.extend({type:pe(Ie.TEXT_MESSAGE_START),messageId:ee(),role:r_.default("assistant"),name:ee().optional()}),s_=Pe.extend({type:pe(Ie.TEXT_MESSAGE_CONTENT),messageId:ee(),delta:ee()}),Cz=Pe.extend({type:pe(Ie.TEXT_MESSAGE_END),messageId:ee()}),Az=Pe.extend({type:pe(Ie.TEXT_MESSAGE_CHUNK),messageId:ee().optional(),role:r_.optional(),delta:ee().optional(),name:ee().optional()}),wz=Pe.extend({type:pe(Ie.THINKING_TEXT_MESSAGE_START)}),jz=s_.omit({messageId:!0,type:!0}).extend({type:pe(Ie.THINKING_TEXT_MESSAGE_CONTENT)}),Mz=Pe.extend({type:pe(Ie.THINKING_TEXT_MESSAGE_END)}),zz=Pe.extend({type:pe(Ie.TOOL_CALL_START),toolCallId:ee(),toolCallName:ee(),parentMessageId:ee().optional()}),Rz=Pe.extend({type:pe(Ie.TOOL_CALL_ARGS),toolCallId:ee(),delta:ee()}),Oz=Pe.extend({type:pe(Ie.TOOL_CALL_END),toolCallId:ee()}),Dz=Pe.extend({messageId:ee(),type:pe(Ie.TOOL_CALL_RESULT),toolCallId:ee(),content:ee(),role:pe("tool").optional()}),Lz=Pe.extend({type:pe(Ie.TOOL_CALL_CHUNK),toolCallId:ee().optional(),toolCallName:ee().optional(),parentMessageId:ee().optional(),delta:ee().optional()}),Bz=Pe.extend({type:pe(Ie.THINKING_START),title:ee().optional()}),Uz=Pe.extend({type:pe(Ie.THINKING_END)}),Hz=Pe.extend({type:pe(Ie.STATE_SNAPSHOT),snapshot:dz}),qz=Pe.extend({type:pe(Ie.STATE_DELTA),delta:qn(gn())}),Iz=Pe.extend({type:pe(Ie.MESSAGES_SNAPSHOT),messages:qn(l_)}),Vz=Pe.extend({type:pe(Ie.ACTIVITY_SNAPSHOT),messageId:ee(),activityType:ee(),content:Hr(gn()),replace:Qe().optional().default(!0)}),Gz=Pe.extend({type:pe(Ie.ACTIVITY_DELTA),messageId:ee(),activityType:ee(),patch:qn(gn())}),Zz=Pe.extend({type:pe(Ie.RAW),event:gn(),source:ee().optional()}),Yz=Pe.extend({type:pe(Ie.CUSTOM),name:ee(),value:gn()}),Xz=Pe.extend({type:pe(Ie.RUN_STARTED),threadId:ee(),runId:ee(),parentRunId:ee().optional(),input:fz.optional()}),$z=Pe.extend({type:pe(Ie.RUN_FINISHED),threadId:ee(),runId:ee(),result:gn().optional()}),Qz=Pe.extend({type:pe(Ie.RUN_ERROR),message:ee(),code:ee().optional()}),Fz=Pe.extend({type:pe(Ie.STEP_STARTED),stepName:ee()}),Kz=Pe.extend({type:pe(Ie.STEP_FINISHED),stepName:ee()}),Jz=Iu([pe("tool-call"),pe("message")]),Pz=Pe.extend({type:pe(Ie.REASONING_START),messageId:ee()}),Wz=Pe.extend({type:pe(Ie.REASONING_MESSAGE_START),messageId:ee(),role:pe("reasoning")}),eR=Pe.extend({type:pe(Ie.REASONING_MESSAGE_CONTENT),messageId:ee(),delta:ee()}),tR=Pe.extend({type:pe(Ie.REASONING_MESSAGE_END),messageId:ee()}),nR=Pe.extend({type:pe(Ie.REASONING_MESSAGE_CHUNK),messageId:ee().optional(),delta:ee().optional()}),aR=Pe.extend({type:pe(Ie.REASONING_END),messageId:ee()}),lR=Pe.extend({type:pe(Ie.REASONING_ENCRYPTED_VALUE),subtype:Jz,entityId:ee(),encryptedValue:ee()}),iR=Vu("type",[Nz,s_,Cz,Az,Bz,Uz,wz,jz,Mz,zz,Rz,Oz,Lz,Dz,Hz,qz,Iz,Vz,Gz,Zz,Yz,Xz,$z,Qz,Fz,Kz,Pz,Wz,eR,tR,nR,aR,lR]);function rR(n){let a;try{a=JSON.parse(n)}catch{return"not-agui"}if(typeof a!="object"||a===null||!("type"in a))return"not-agui";const i=iR.safeParse(a);if(!i.success)return"not-agui";switch(i.data.type){case Ie.TEXT_MESSAGE_CONTENT:case Ie.TEXT_MESSAGE_CHUNK:return{type:"data",content:i.data.delta??""};case Ie.RUN_ERROR:return{type:"data",content:`Error: ${i.data.message??"Unknown error"}`};default:return null}}function sR(n){try{const a=JSON.parse(n);if(typeof a=="string")return{type:"data",content:a};if(a&&typeof a=="object"&&"error"in a)return{type:"data",content:`Error: ${a.error}`}}catch{}return{type:"data",content:n}}function uR(n,a){if(!n.startsWith("data: "))return null;const i=n.slice(6);if(a==="metadata")return{type:"metadata",content:i};const r=rR(i);return r!=="not-agui"?r:sR(i)}function oR(n,a,i){const[r,u]=I.useState([]),[o,c]=I.useState(!1),[h,m]=I.useState(null),p=I.useRef(null),_=async k=>{if(!(!k||o)){c(!0),u(w=>[...w,{role:"user",content:k},{role:"assistant",content:""}]);try{const w=await jn(`${n}/invocations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:k,...a?{agentName:a}:{},...p.current?{sessionId:p.current}:{},...i?{userId:i}:{}})});if(!w.ok){const W=await w.text();u(F=>{const Se=[...F];return Se[Se.length-1]={role:"assistant",content:W||`Error: ${w.status}`,isError:!0},Se});return}const R=w.headers.get("x-session-id");if(R&&(p.current=R,m(R)),!w.body){u(W=>{const F=[...W];return F[F.length-1]={role:"assistant",content:"(empty response)"},F});return}const T=w.body.getReader(),M=new TextDecoder;let O="",K="",te=!1,D="",P=null;const ve=()=>{P=null,u(W=>{const F=[...W];return F[F.length-1]={role:"assistant",content:K},F})},ge=()=>{P===null&&(P=requestAnimationFrame(ve))},L=W=>{if(W.startsWith("event: ")||W.startsWith("event:")){D=W.slice(W.indexOf(":")+1).trim();return}if(W===""){D="";return}const F=uR(W,D);F!==null&&(F.type==="metadata"||(te=!0,K+=F.content))};for(;;){const{done:W,value:F}=await T.read();if(W)break;O+=M.decode(F,{stream:!0});const Se=O.split(`
255
+ `);O=Se.pop()||"";for(const ce of Se)L(ce);te&&ge()}if(P!==null&&cancelAnimationFrame(P),O&&L(O),!te){const W=K||O||M.decode();try{const F=JSON.parse(W);K=F.result!==null&&F.result!==void 0?typeof F.result=="string"?F.result:JSON.stringify(F.result,null,2):JSON.stringify(F,null,2)}catch{K=W}}u(W=>{const F=[...W];return F[F.length-1]={role:"assistant",content:K||"(empty response)"},F})}catch(w){const R=w instanceof Error&&w.message.includes("Failed to fetch")?"Connection failed — is the agent server running?":w instanceof Error?w.message:"Unknown error";u(T=>{const M=[...T];return M[M.length-1]={role:"assistant",content:R,isError:!0},M})}finally{c(!1)}}},y=I.useCallback((...k)=>{u(w=>[...w,...k])},[]),x=I.useCallback((k,w,R)=>{u(T=>{const M=[...T];for(let O=M.length-1;O>=0;O--)if(M[O].role==="assistant"&&!M[O].toolCalls){M[O]={...M[O],toolCalls:k,traceId:w,...R?{tokenUsage:R}:{}};break}return M})},[]);return{messages:r,isStreaming:o,sessionId:h,sendMessage:_,resetChat:()=>{u([]),m(null),p.current=null},addMessages:y,enrichLastAssistantMessage:x}}function cR(n){const a=n.filter(y=>{if(y.type!=="span")return!1;const x=y.attributes??{};return x["gen_ai.usage.input_tokens"]!==void 0||x["gen_ai.usage.output_tokens"]!==void 0});if(a.length===0)return null;const i=new Set(a.map(y=>y.spanId).filter(Boolean));let r=a.filter(y=>!y.parentSpanId||!i.has(y.parentSpanId));r.some(y=>(y.attributes??{})["gen_ai.operation.name"]!=="invoke_agent")&&(r=r.filter(y=>(y.attributes??{})["gen_ai.operation.name"]!=="invoke_agent"));let o=0,c=0,h=0,m=0,p=!1,_;for(const y of r){const x=y.attributes??{};o+=Number(x["gen_ai.usage.input_tokens"]??0),c+=Number(x["gen_ai.usage.output_tokens"]??0),h+=Number(x["gen_ai.usage.total_tokens"]??0),x["gen_ai.usage.cache_read.input_tokens"]!==void 0&&(p=!0,m+=Number(x["gen_ai.usage.cache_read.input_tokens"])),_||(_=x["gen_ai.response.model"]??x["gen_ai.request.model"])}return h===0&&(h=o+c),{inputTokens:o,outputTokens:c,totalTokens:h,...p?{cacheReadInputTokens:m}:{},model:_}}function Hy(n,a){var u;const i=n.attributes;if(!Array.isArray(i))return;const r=i.find(o=>o.key===a);return(u=r==null?void 0:r.value)==null?void 0:u.stringValue}function fR(n){if(!n||!Array.isArray(n))return{};let a,i;for(const r of n){const u=r,o=u.name;o==="gen_ai.tool.message"?a=a??Hy(u,"content"):o==="gen_ai.choice"&&(i=i??Hy(u,"message"))}return{input:a,output:i}}function dR(n){if(n.type!=="span")return!1;const a=(n.name??"").toLowerCase(),i=n.attributes??{};return a==="tool_use"||a==="tool_call"||a.startsWith("execute_tool")||!!i["tool.name"]||!!i["gen_ai.tool.name"]}function hR(n){const a=n.filter(dR),i=new Set(a.map(r=>r.spanId).filter(Boolean));return a.filter(r=>!r.parentSpanId||!i.has(r.parentSpanId)).map(r=>{const u=r.attributes??{},o=mn(r.startTimeUnixNano),c=mn(r.endTimeUnixNano);let h=u["gen_ai.tool.call.arguments"],m=u["gen_ai.tool.call.result"];if(!h||!m){const p=fR(r.events);h=h??p.input,m=m??p.output}return{name:u["gen_ai.tool.name"]??u["tool.name"]??r.name??"unknown",input:h,output:m,durationMs:o&&c?c-o:void 0,spanId:r.spanId??"",traceId:r.traceId??""}})}function mR(){const{agents:n,errors:a,selectedAgent:i,isConnected:r,hasConnected:u}=fM(Un),[o,c]=I.useState(void 0),{isStarting:h,isReady:m,error:p,startAgent:_}=vM(Un),y=_M(Un),[x,b]=I.useState(!0),k=n.find(ae=>ae.name===o)??n[0],w=a.find(ae=>ae.name===(k==null?void 0:k.name)),R=h||!m&&!p&&!w,T=async ae=>{const oe=o;c(ae),P(),await _(ae)||c(oe)};I.useEffect(()=>{if(n.length>0&&!o&&!m&&!h&&!p&&!w){const ae=n.find(oe=>oe.name===i)??n[0];_(ae.name).then(oe=>{oe&&c(ae.name)})}},[n,o,m,h,p,_,w,i]);const[M]=I.useState("default-user"),{messages:O,isStreaming:K,sessionId:te,sendMessage:D,resetChat:P,addMessages:ve,enrichLastAssistantMessage:ge}=oR(Un,k==null?void 0:k.name,M),{tools:L,isLoading:W,error:F,fetchTools:Se,callTool:ce}=gM(Un,k==null?void 0:k.name,k==null?void 0:k.protocol,m),{card:ie,isLoading:U,error:J,fetchCard:fe}=cM(Un,k==null?void 0:k.name,k==null?void 0:k.protocol,m),re=I.useCallback((ae,oe,je)=>{ve({role:"user",content:ae},{role:"assistant",content:oe,isError:je})},[ve]),{containerRef:N,forceScrollToBottom:A}=hM(O,K),Z=pM(k==null?void 0:k.name),E=I.useRef(!1);I.useEffect(()=>{E.current&&!K&&Z.onInvocationComplete(),E.current=K},[K,Z.onInvocationComplete]);const G=I.useRef(new Set);return I.useEffect(()=>{G.current.clear()},[o]),I.useEffect(()=>{if(Z.invocations.length===0)return;const ae=Z.invocations[0];if(G.current.has(ae.traceId))return;const oe=hR(ae.spans),je=cR(ae.spans);(oe.length>0||je)&&(G.current.add(ae.traceId),ge(oe,ae.traceId,je??void 0))},[Z.invocations,ge]),g.jsxs("div",{className:"appLayout",children:[g.jsxs("div",{className:"app",children:[g.jsx(Qb,{isConnected:r,hasConnected:u,hasError:!!w||!!p,onToggleResources:()=>b(ae=>!ae),isResourcesOpen:x}),w&&g.jsx("div",{className:"startError",children:g.jsx(Lf,{content:w.message})}),p&&!w&&g.jsx("div",{className:"startError",children:g.jsx(Lf,{content:p})}),u&&!r?g.jsxs("div",{className:"disconnectedView",children:[g.jsx("div",{className:"disconnectedIcon",children:g.jsx(Zy,{size:36})}),g.jsx("div",{className:"disconnectedTitle",children:"Server disconnected"}),g.jsx("p",{className:"disconnectedText",children:"Start the dev server to reconnect:"}),g.jsx("code",{className:"disconnectedCmd",children:"agentcore dev"})]}):g.jsxs(g.Fragment,{children:[g.jsx(Hb,{agents:n,errors:a,selectedAgentName:k==null?void 0:k.name,isStarting:h,isReady:m,startError:p,sessionId:te,onSelectAgent:T,onResetChat:P}),g.jsx(yA,{ref:N,messages:O,isStreaming:K,isStarting:R,agentName:k==null?void 0:k.name,agentBuildType:k==null?void 0:k.buildType,agentProtocol:k==null?void 0:k.protocol}),(k==null?void 0:k.protocol)==="MCP"&&(L.length>0||F)&&g.jsx(oM,{tools:L,isLoading:W,error:F,onRefresh:Se,onCallTool:ce,onToolCallMessage:re}),(k==null?void 0:k.protocol)==="A2A"&&(ie||J||U)&&g.jsx(tb,{card:ie,isLoading:U,error:J,onRefresh:fe}),k&&k.protocol!=="MCP"&&g.jsx(rb,{isStreaming:K||R,isStarting:R,onSend:ae=>{A(),D(ae)}}),(k==null?void 0:k.protocol)!=="MCP"&&g.jsx(I3,{traces:Z})]})]}),x&&g.jsx(qj,{resources:y,sessionId:te,userId:M,onClose:()=>b(!1)})]})}R0.createRoot(document.getElementById("root")).render(g.jsx(E0.StrictMode,{children:g.jsx(mR,{})}));
256
+ //# sourceMappingURL=index.js.map