@rsktash/beads-ui 0.1.16 → 0.1.18
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var
|
|
2
|
+
var wv=Object.defineProperty;var Mv=(i,l,r)=>l in i?wv(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r;var w=(i,l,r)=>Mv(i,typeof l!="symbol"?l+"":l,r);(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();var Cc={exports:{}},$i={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@ var kv=Object.defineProperty;var wv=(i,l,r)=>l in i?kv(i,l,{enumerable:!0,config
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var vp;function
|
|
10
|
+
*/var vp;function zv(){if(vp)return $i;vp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var g in u)g!=="key"&&(f[g]=u[g])}else f=u;return u=f.ref,{$$typeof:i,type:s,key:d,ref:u!==void 0?u:null,props:f}}return $i.Fragment=l,$i.jsx=r,$i.jsxs=r,$i}var bp;function jv(){return bp||(bp=1,Cc.exports=zv()),Cc.exports}var v=jv(),Dc={exports:{}},oe={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react.production.js
|
|
13
13
|
*
|
|
@@ -15,7 +15,7 @@ var kv=Object.defineProperty;var wv=(i,l,r)=>l in i?kv(i,l,{enumerable:!0,config
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Sp;function
|
|
18
|
+
*/var Sp;function Uv(){if(Sp)return oe;Sp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),E=Symbol.iterator;function A(T){return T===null||typeof T!="object"?null:(T=E&&T[E]||T["@@iterator"],typeof T=="function"?T:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,P={};function U(T,G,X){this.props=T,this.context=G,this.refs=P,this.updater=X||C}U.prototype.isReactComponent={},U.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,G,"setState")},U.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function I(){}I.prototype=U.prototype;function Y(T,G,X){this.props=T,this.context=G,this.refs=P,this.updater=X||C}var Z=Y.prototype=new I;Z.constructor=Y,B(Z,U.prototype),Z.isPureReactComponent=!0;var ae=Array.isArray;function fe(){}var te={H:null,A:null,T:null,S:null},Ue=Object.prototype.hasOwnProperty;function pt(T,G,X){var W=X.ref;return{$$typeof:i,type:T,key:G,ref:W!==void 0?W:null,props:X}}function Lt(T,G){return pt(T.type,G,T.props)}function Re(T){return typeof T=="object"&&T!==null&&T.$$typeof===i}function Ke(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(X){return G[X]})}var kt=/\/+/g;function Ye(T,G){return typeof T=="object"&&T!==null&&T.key!=null?Ke(""+T.key):G.toString(36)}function Fe(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(fe,fe):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function z(T,G,X,W,ee){var ue=typeof T;(ue==="undefined"||ue==="boolean")&&(T=null);var be=!1;if(T===null)be=!0;else switch(ue){case"bigint":case"string":case"number":be=!0;break;case"object":switch(T.$$typeof){case i:case l:be=!0;break;case y:return be=T._init,z(be(T._payload),G,X,W,ee)}}if(be)return ee=ee(T),be=W===""?"."+Ye(T,0):W,ae(ee)?(X="",be!=null&&(X=be.replace(kt,"$&/")+"/"),z(ee,G,X,"",function(Ln){return Ln})):ee!=null&&(Re(ee)&&(ee=Lt(ee,X+(ee.key==null||T&&T.key===ee.key?"":(""+ee.key).replace(kt,"$&/")+"/")+be)),G.push(ee)),1;be=0;var Ge=W===""?".":W+":";if(ae(T))for(var Ie=0;Ie<T.length;Ie++)W=T[Ie],ue=Ge+Ye(W,Ie),be+=z(W,G,X,ue,ee);else if(Ie=A(T),typeof Ie=="function")for(T=Ie.call(T),Ie=0;!(W=T.next()).done;)W=W.value,ue=Ge+Ye(W,Ie++),be+=z(W,G,X,ue,ee);else if(ue==="object"){if(typeof T.then=="function")return z(Fe(T),G,X,W,ee);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return be}function K(T,G,X){if(T==null)return T;var W=[],ee=0;return z(T,W,"","",function(ue){return G.call(X,ue,ee++)}),W}function re(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(X){(T._status===0||T._status===-1)&&(T._status=1,T._result=X)},function(X){(T._status===0||T._status===-1)&&(T._status=2,T._result=X)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var Oe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Ce={map:K,forEach:function(T,G,X){K(T,function(){G.apply(this,arguments)},X)},count:function(T){var G=0;return K(T,function(){G++}),G},toArray:function(T){return K(T,function(G){return G})||[]},only:function(T){if(!Re(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return oe.Activity=S,oe.Children=Ce,oe.Component=U,oe.Fragment=r,oe.Profiler=u,oe.PureComponent=Y,oe.StrictMode=s,oe.Suspense=p,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,oe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return te.H.useMemoCache(T)}},oe.cache=function(T){return function(){return T.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(T,G,X){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var W=B({},T.props),ee=T.key;if(G!=null)for(ue in G.key!==void 0&&(ee=""+G.key),G)!Ue.call(G,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&G.ref===void 0||(W[ue]=G[ue]);var ue=arguments.length-2;if(ue===1)W.children=X;else if(1<ue){for(var be=Array(ue),Ge=0;Ge<ue;Ge++)be[Ge]=arguments[Ge+2];W.children=be}return pt(T.type,ee,W)},oe.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},oe.createElement=function(T,G,X){var W,ee={},ue=null;if(G!=null)for(W in G.key!==void 0&&(ue=""+G.key),G)Ue.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ee[W]=G[W]);var be=arguments.length-2;if(be===1)ee.children=X;else if(1<be){for(var Ge=Array(be),Ie=0;Ie<be;Ie++)Ge[Ie]=arguments[Ie+2];ee.children=Ge}if(T&&T.defaultProps)for(W in be=T.defaultProps,be)ee[W]===void 0&&(ee[W]=be[W]);return pt(T,ue,ee)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(T){return{$$typeof:g,render:T}},oe.isValidElement=Re,oe.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:re}},oe.memo=function(T,G){return{$$typeof:m,type:T,compare:G===void 0?null:G}},oe.startTransition=function(T){var G=te.T,X={};te.T=X;try{var W=T(),ee=te.S;ee!==null&&ee(X,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(fe,Oe)}catch(ue){Oe(ue)}finally{G!==null&&X.types!==null&&(G.types=X.types),te.T=G}},oe.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},oe.use=function(T){return te.H.use(T)},oe.useActionState=function(T,G,X){return te.H.useActionState(T,G,X)},oe.useCallback=function(T,G){return te.H.useCallback(T,G)},oe.useContext=function(T){return te.H.useContext(T)},oe.useDebugValue=function(){},oe.useDeferredValue=function(T,G){return te.H.useDeferredValue(T,G)},oe.useEffect=function(T,G){return te.H.useEffect(T,G)},oe.useEffectEvent=function(T){return te.H.useEffectEvent(T)},oe.useId=function(){return te.H.useId()},oe.useImperativeHandle=function(T,G,X){return te.H.useImperativeHandle(T,G,X)},oe.useInsertionEffect=function(T,G){return te.H.useInsertionEffect(T,G)},oe.useLayoutEffect=function(T,G){return te.H.useLayoutEffect(T,G)},oe.useMemo=function(T,G){return te.H.useMemo(T,G)},oe.useOptimistic=function(T,G){return te.H.useOptimistic(T,G)},oe.useReducer=function(T,G,X){return te.H.useReducer(T,G,X)},oe.useRef=function(T){return te.H.useRef(T)},oe.useState=function(T){return te.H.useState(T)},oe.useSyncExternalStore=function(T,G,X){return te.H.useSyncExternalStore(T,G,X)},oe.useTransition=function(){return te.H.useTransition()},oe.version="19.2.4",oe}var Ep;function ff(){return Ep||(Ep=1,Dc.exports=Uv()),Dc.exports}var $=ff(),Lc={exports:{}},Ji={},kc={exports:{}},Nc={};/**
|
|
19
19
|
* @license React
|
|
20
20
|
* scheduler.production.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ var kv=Object.defineProperty;var wv=(i,l,r)=>l in i?kv(i,l,{enumerable:!0,config
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var xp;function
|
|
26
|
+
*/var xp;function Bv(){return xp||(xp=1,(function(i){function l(z,K){var re=z.length;z.push(K);e:for(;0<re;){var Oe=re-1>>>1,Ce=z[Oe];if(0<u(Ce,K))z[Oe]=K,z[re]=Ce,re=Oe;else break e}}function r(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var K=z[0],re=z.pop();if(re!==K){z[0]=re;e:for(var Oe=0,Ce=z.length,T=Ce>>>1;Oe<T;){var G=2*(Oe+1)-1,X=z[G],W=G+1,ee=z[W];if(0>u(X,re))W<Ce&&0>u(ee,X)?(z[Oe]=ee,z[W]=re,Oe=W):(z[Oe]=X,z[G]=re,Oe=G);else if(W<Ce&&0>u(ee,re))z[Oe]=ee,z[W]=re,Oe=W;else break e}}return K}function u(z,K){var re=z.sortIndex-K.sortIndex;return re!==0?re:z.id-K.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();i.unstable_now=function(){return d.now()-g}}var p=[],m=[],y=1,S=null,E=3,A=!1,C=!1,B=!1,P=!1,U=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function Z(z){for(var K=r(m);K!==null;){if(K.callback===null)s(m);else if(K.startTime<=z)s(m),K.sortIndex=K.expirationTime,l(p,K);else break;K=r(m)}}function ae(z){if(B=!1,Z(z),!C)if(r(p)!==null)C=!0,fe||(fe=!0,Ke());else{var K=r(m);K!==null&&Fe(ae,K.startTime-z)}}var fe=!1,te=-1,Ue=5,pt=-1;function Lt(){return P?!0:!(i.unstable_now()-pt<Ue)}function Re(){if(P=!1,fe){var z=i.unstable_now();pt=z;var K=!0;try{e:{C=!1,B&&(B=!1,I(te),te=-1),A=!0;var re=E;try{t:{for(Z(z),S=r(p);S!==null&&!(S.expirationTime>z&&Lt());){var Oe=S.callback;if(typeof Oe=="function"){S.callback=null,E=S.priorityLevel;var Ce=Oe(S.expirationTime<=z);if(z=i.unstable_now(),typeof Ce=="function"){S.callback=Ce,Z(z),K=!0;break t}S===r(p)&&s(p),Z(z)}else s(p);S=r(p)}if(S!==null)K=!0;else{var T=r(m);T!==null&&Fe(ae,T.startTime-z),K=!1}}break e}finally{S=null,E=re,A=!1}K=void 0}}finally{K?Ke():fe=!1}}}var Ke;if(typeof Y=="function")Ke=function(){Y(Re)};else if(typeof MessageChannel<"u"){var kt=new MessageChannel,Ye=kt.port2;kt.port1.onmessage=Re,Ke=function(){Ye.postMessage(null)}}else Ke=function(){U(Re,0)};function Fe(z,K){te=U(function(){z(i.unstable_now())},K)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(z){z.callback=null},i.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ue=0<z?Math.floor(1e3/z):5},i.unstable_getCurrentPriorityLevel=function(){return E},i.unstable_next=function(z){switch(E){case 1:case 2:case 3:var K=3;break;default:K=E}var re=E;E=K;try{return z()}finally{E=re}},i.unstable_requestPaint=function(){P=!0},i.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var re=E;E=z;try{return K()}finally{E=re}},i.unstable_scheduleCallback=function(z,K,re){var Oe=i.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Oe+re:Oe):re=Oe,z){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=re+Ce,z={id:y++,callback:K,priorityLevel:z,startTime:re,expirationTime:Ce,sortIndex:-1},re>Oe?(z.sortIndex=re,l(m,z),r(p)===null&&z===r(m)&&(B?(I(te),te=-1):B=!0,Fe(ae,re-Oe))):(z.sortIndex=Ce,l(p,z),C||A||(C=!0,fe||(fe=!0,Ke()))),z},i.unstable_shouldYield=Lt,i.unstable_wrapCallback=function(z){var K=E;return function(){var re=E;E=K;try{return z.apply(this,arguments)}finally{E=re}}}})(Nc)),Nc}var Tp;function Hv(){return Tp||(Tp=1,kc.exports=Bv()),kc.exports}var wc={exports:{}},Et={};/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-dom.production.js
|
|
29
29
|
*
|
|
@@ -31,7 +31,7 @@ var kv=Object.defineProperty;var wv=(i,l,r)=>l in i?kv(i,l,{enumerable:!0,config
|
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Ap;function
|
|
34
|
+
*/var Ap;function Vv(){if(Ap)return Et;Ap=1;var i=ff();function l(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(p,m,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:p,containerInfo:m,implementation:y}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Et.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return f(p,m,null,y)},Et.flushSync=function(p){var m=d.T,y=s.p;try{if(d.T=null,s.p=2,p)return p()}finally{d.T=m,s.p=y,s.d.f()}},Et.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(p,m))},Et.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Et.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,S=g(y,m.crossOrigin),E=typeof m.integrity=="string"?m.integrity:void 0,A=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?s.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:S,integrity:E,fetchPriority:A}):y==="script"&&s.d.X(p,{crossOrigin:S,integrity:E,fetchPriority:A,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Et.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=g(m.as,m.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(p)},Et.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,S=g(y,m.crossOrigin);s.d.L(p,y,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Et.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=g(m.as,m.crossOrigin);s.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(p)},Et.requestFormReset=function(p){s.d.r(p)},Et.unstable_batchedUpdates=function(p,m){return p(m)},Et.useFormState=function(p,m,y){return d.H.useFormState(p,m,y)},Et.useFormStatus=function(){return d.H.useHostTransitionStatus()},Et.version="19.2.4",Et}var Rp;function Gv(){if(Rp)return wc.exports;Rp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),wc.exports=Vv(),wc.exports}/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-dom-client.production.js
|
|
37
37
|
*
|
|
@@ -39,50 +39,50 @@ var kv=Object.defineProperty;var wv=(i,l,r)=>l in i?kv(i,l,{enumerable:!0,config
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var Op;function
|
|
42
|
+
*/var Op;function Iv(){if(Op)return Ji;Op=1;var i=Hv(),l=ff(),r=Gv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(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 g(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 p(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return p(o),e;if(c===a)return p(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==a.return)n=o,a=c;else{for(var h=!1,_=o.child;_;){if(_===n){h=!0,n=o,a=c;break}if(_===a){h=!0,a=o,n=c;break}_=_.sibling}if(!h){for(_=c.child;_;){if(_===n){h=!0,n=c,a=o;break}if(_===a){h=!0,a=c,n=o;break}_=_.sibling}if(!h)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,E=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),pt=Symbol.for("react.activity"),Lt=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=Re&&e[Re]||e["@@iterator"],typeof e=="function"?e:null)}var kt=Symbol.for("react.client.reference");function Ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===kt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case U:return"Profiler";case P:return"StrictMode";case ae:return"Suspense";case fe:return"SuspenseList";case pt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case Y:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:Ye(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return Ye(e(t))}catch{}}return null}var Fe=Array.isArray,z=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Oe=[],Ce=-1;function T(e){return{current:e}}function G(e){0>Ce||(e.current=Oe[Ce],Oe[Ce]=null,Ce--)}function X(e,t){Ce++,Oe[Ce]=e.current,e.current=t}var W=T(null),ee=T(null),ue=T(null),be=T(null);function Ge(e,t){switch(X(ue,t),X(ee,e),X(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Im(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Im(t),e=qm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),X(W,e)}function Ie(){G(W),G(ee),G(ue)}function Ln(e){e.memoizedState!==null&&X(be,e);var t=W.current,n=qm(t,e.type);t!==n&&(X(ee,e),X(W,n))}function zl(e){ee.current===e&&(G(W),G(ee)),be.current===e&&(G(be),Xi._currentValue=re)}var ra,kn;function Wt(e){if(ra===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ra=t&&t[1]||"",kn=-1<n.stack.indexOf(`
|
|
43
43
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+ra+e+
|
|
45
|
-
`),
|
|
46
|
-
`);for(o=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;o<
|
|
47
|
-
`+x[a].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=a&&0<=o);break}}}finally{pn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Wt(n):""}function $a(e,t){switch(e.tag){case 26:case 27:case 5:return Wt(e.type);case 16:return Wt("Lazy");case 13:return e.child!==t&&t!==null?Wt("Suspense Fallback"):Wt("Suspense");case 19:return Wt("SuspenseList");case 0:case 15:return jl(e.type,!1);case 11:return jl(e.type.render,!1);case 1:return jl(e.type,!0);case 31:return Wt("Activity");default:return""}}function
|
|
44
|
+
`+ra+e+kn}var pn=!1;function jl(e,t){if(!e||pn)return"";pn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(M){var N=M}Reflect.construct(e,[],V)}else{try{V.call()}catch(M){N=M}e.call(V.prototype)}}else{try{throw Error()}catch(M){N=M}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(M){if(M&&N&&typeof M.stack=="string")return[M.stack,N.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),h=c[0],_=c[1];if(h&&_){var x=h.split(`
|
|
45
|
+
`),k=_.split(`
|
|
46
|
+
`);for(o=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;o<k.length&&!k[o].includes("DetermineComponentFrameRoot");)o++;if(a===x.length||o===k.length)for(a=x.length-1,o=k.length-1;1<=a&&0<=o&&x[a]!==k[o];)o--;for(;1<=a&&0<=o;a--,o--)if(x[a]!==k[o]){if(a!==1||o!==1)do if(a--,o--,0>o||x[a]!==k[o]){var j=`
|
|
47
|
+
`+x[a].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=a&&0<=o);break}}}finally{pn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Wt(n):""}function $a(e,t){switch(e.tag){case 26:case 27:case 5:return Wt(e.type);case 16:return Wt("Lazy");case 13:return e.child!==t&&t!==null?Wt("Suspense Fallback"):Wt("Suspense");case 19:return Wt("SuspenseList");case 0:case 15:return jl(e.type,!1);case 11:return jl(e.type.render,!1);case 1:return jl(e.type,!0);case 31:return Wt("Activity");default:return""}}function Nn(e){try{var t="",n=null;do t+=$a(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
48
48
|
Error generating stack: `+a.message+`
|
|
49
|
-
`+a.stack}}var ol=Object.prototype.hasOwnProperty,ul=i.unstable_scheduleCallback,sa=i.unstable_cancelCallback,vr=i.unstable_shouldYield,yo=i.unstable_requestPaint,gt=i.unstable_now,Ul=i.unstable_getCurrentPriorityLevel,wn=i.unstable_ImmediatePriority,Gt=i.unstable_UserBlockingPriority,cl=i.unstable_NormalPriority,br=i.unstable_LowPriority,Ja=i.unstable_IdlePriority,Wa=i.log,Sr=i.unstable_setDisableYieldValue,bn=null,ft=null;function dt(e){if(typeof Wa=="function"&&Sr(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(bn,e)}catch{}}var et=Math.clz32?Math.clz32:vo,Fa=Math.log,ei=Math.LN2;function vo(e){return e>>>=0,e===0?32:31-(Fa(e)/ei|0)|0}var Mn=256,zn=262144,oa=4194304;function It(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 ua(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var _=a&134217727;return _!==0?(a=_&~c,a!==0?o=It(a):(h&=_,h!==0?o=It(h):n||(n=_&~e,n!==0&&(o=It(n))))):(_=a&~c,_!==0?o=It(_):h!==0?o=It(h):n||(n=a&~e,n!==0&&(o=It(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(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 jn(){var e=oa;return oa<<=1,(oa&62914560)===0&&(oa=4194304),e}function ti(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ni(e,t,n,a,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var _=e.entanglements,x=e.expirationTimes,N=e.hiddenUpdates;for(n=h&~n;0<n;){var j=31-et(n),H=1<<j;_[j]=0,x[j]=-1;var k=N[j];if(k!==null)for(N[j]=null,j=0;j<k.length;j++){var M=k[j];M!==null&&(M.lane&=-536870913)}n&=~H}a!==0&&li(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function li(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-et(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ai(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-et(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Er(e,t){var n=t&-t;return n=(n&42)!==0?1:kt(n),(n&(e.suspendedLanes|t))!==0?0:n}function kt(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 gn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ii(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:dp(e.type))}function ri(e,t){var n=K.p;try{return K.p=e,t()}finally{K.p=n}}var Ft=Math.random().toString(36).slice(2),tt="__reactFiber$"+Ft,qe="__reactProps$"+Ft,Un="__reactContainer$"+Ft,ca="__reactEvents$"+Ft,xr="__reactListeners$"+Ft,Tr="__reactHandles$"+Ft,Ar="__reactResources$"+Ft,ne="__reactMarker$"+Ft;function R(e){delete e[tt],delete e[qe],delete e[ca],delete e[xr],delete e[Tr]}function q(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Un]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$m(e);e!==null;){if(n=e[tt])return n;e=$m(e)}return t}e=n,n=e.parentNode}return null}function $(e){if(e=e[tt]||e[Un]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function De(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Xe(e){var t=e[Ar];return t||(t=e[Ar]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function me(e){e[ne]=!0}var _t=new Set,en={};function wt(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(en[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var st=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]*$"),si={},oi={};function T_(e){return ol.call(oi,e)?!0:ol.call(si,e)?!1:st.test(e)?oi[e]=!0:(si[e]=!0,!1)}function Rr(e,t,n){if(T_(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Or(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Bn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function A_(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bo(e){if(!e._valueTracker){var t=Mf(e)?"checked":"value";e._valueTracker=A_(e,t,""+e[t])}}function zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Mf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Cr(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 R_=/[\n"\\]/g;function nn(e){return e.replace(R_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function So(e,t,n,a,o,c,h,_){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Eo(e,h,tn(t)):n!=null?Eo(e,h,tn(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+tn(_):e.removeAttribute("name")}function jf(e,t,n,a,o,c,h,_){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){bo(e);return}n=n!=null?""+tn(n):"",t=t!=null?""+tn(t):n,_||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=_?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),bo(e)}function Eo(e,t,n){t==="number"&&Cr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function fa(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Uf(e,t,n){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+tn(n):""}function Bf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Fe(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=tn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),bo(e)}function da(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var O_=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 Hf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||O_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Vf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&Hf(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&Hf(e,c,t[c])}function xo(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 C_=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"]]),D_=/^[\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 Dr(e){return D_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Hn(){}var To=null;function Ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,ma=null;function Gf(e){var t=$(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(So(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+nn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[qe]||null;if(!o)throw Error(s(90));So(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&zf(a)}break e;case"textarea":Uf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&fa(e,!!n.multiple,t,!1)}}}var Ro=!1;function If(e,t,n){if(Ro)return e(t,n);Ro=!0;try{var a=e(t);return a}finally{if(Ro=!1,(ha!==null||ma!==null)&&(gs(),ha&&(t=ha,e=ma,ma=ha=null,Gf(t),e)))for(t=0;t<e.length;t++)Gf(e[t])}}function ui(e,t){var n=e.stateNode;if(n===null)return null;var a=n[qe]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=!1;if(Vn)try{var ci={};Object.defineProperty(ci,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",ci,ci),window.removeEventListener("test",ci,ci)}catch{Oo=!1}var dl=null,Co=null,Lr=null;function qf(){if(Lr)return Lr;var e,t=Co,n=t.length,a,o="value"in dl?dl.value:dl.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===o[c-a];a++);return Lr=o.slice(e,1<a?1-a:void 0)}function Nr(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 kr(){return!0}function Pf(){return!1}function Mt(e){function t(n,a,o,c,h){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(n=e[_],this[_]=n?n(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?kr:Pf,this.isPropagationStopped=Pf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=kr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=kr)},persist:function(){},isPersistent:kr}),t}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wr=Mt(Hl),fi=b({},Hl,{view:0,detail:0}),L_=Mt(fi),Do,Lo,di,Mr=b({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ko,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!==di&&(di&&e.type==="mousemove"?(Do=e.screenX-di.screenX,Lo=e.screenY-di.screenY):Lo=Do=0,di=e),Do)},movementY:function(e){return"movementY"in e?e.movementY:Lo}}),Yf=Mt(Mr),N_=b({},Mr,{dataTransfer:0}),k_=Mt(N_),w_=b({},fi,{relatedTarget:0}),No=Mt(w_),M_=b({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),z_=Mt(M_),j_=b({},Hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U_=Mt(j_),B_=b({},Hl,{data:0}),Xf=Mt(B_),H_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V_={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"},G_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=G_[e])?!!t[e]:!1}function ko(){return I_}var q_=b({},fi,{key:function(e){if(e.key){var t=H_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ko,charCode:function(e){return e.type==="keypress"?Nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),P_=Mt(q_),Y_=b({},Mr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qf=Mt(Y_),X_=b({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ko}),Q_=Mt(X_),Z_=b({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),K_=Mt(Z_),$_=b({},Mr,{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}),J_=Mt($_),W_=b({},Hl,{newState:0,oldState:0}),F_=Mt(W_),ey=[9,13,27,32],wo=Vn&&"CompositionEvent"in window,hi=null;Vn&&"documentMode"in document&&(hi=document.documentMode);var ty=Vn&&"TextEvent"in window&&!hi,Zf=Vn&&(!wo||hi&&8<hi&&11>=hi),Kf=" ",$f=!1;function Jf(e,t){switch(e){case"keyup":return ey.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function ny(e,t){switch(e){case"compositionend":return Wf(t);case"keypress":return t.which!==32?null:($f=!0,Kf);case"textInput":return e=t.data,e===Kf&&$f?null:e;default:return null}}function ly(e,t){if(pa)return e==="compositionend"||!wo&&Jf(e,t)?(e=qf(),Lr=Co=dl=null,pa=!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 Zf&&t.locale!=="ko"?null:t.data;default:return null}}var ay={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 Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ay[e.type]:t==="textarea"}function ed(e,t,n,a){ha?ma?ma.push(a):ma=[a]:ha=a,t=xs(t,"onChange"),0<t.length&&(n=new wr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var mi=null,pi=null;function iy(e){jm(e,0)}function zr(e){var t=De(e);if(zf(t))return e}function td(e,t){if(e==="change")return t}var nd=!1;if(Vn){var Mo;if(Vn){var zo="oninput"in document;if(!zo){var ld=document.createElement("div");ld.setAttribute("oninput","return;"),zo=typeof ld.oninput=="function"}Mo=zo}else Mo=!1;nd=Mo&&(!document.documentMode||9<document.documentMode)}function ad(){mi&&(mi.detachEvent("onpropertychange",id),pi=mi=null)}function id(e){if(e.propertyName==="value"&&zr(pi)){var t=[];ed(t,pi,e,Ao(e)),If(iy,t)}}function ry(e,t,n){e==="focusin"?(ad(),mi=t,pi=n,mi.attachEvent("onpropertychange",id)):e==="focusout"&&ad()}function sy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zr(pi)}function oy(e,t){if(e==="click")return zr(t)}function uy(e,t){if(e==="input"||e==="change")return zr(t)}function cy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:cy;function gi(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!ol.call(t,o)||!qt(e[o],t[o]))return!1}return!0}function rd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sd(e,t){var n=rd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rd(n)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ud(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Cr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cr(e.document)}return t}function jo(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 fy=Vn&&"documentMode"in document&&11>=document.documentMode,ga=null,Uo=null,_i=null,Bo=!1;function cd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bo||ga==null||ga!==Cr(a)||(a=ga,"selectionStart"in a&&jo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),_i&&gi(_i,a)||(_i=a,a=xs(Uo,"onSelect"),0<a.length&&(t=new wr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ga)))}function Vl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _a={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Ho={},fd={};Vn&&(fd=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);function Gl(e){if(Ho[e])return Ho[e];if(!_a[e])return e;var t=_a[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in fd)return Ho[e]=t[n];return e}var dd=Gl("animationend"),hd=Gl("animationiteration"),md=Gl("animationstart"),dy=Gl("transitionrun"),hy=Gl("transitionstart"),my=Gl("transitioncancel"),pd=Gl("transitionend"),gd=new Map,Vo="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(" ");Vo.push("scrollEnd");function _n(e,t){gd.set(e,t),wt(t,[e])}var jr=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)},ln=[],ya=0,Go=0;function Ur(){for(var e=ya,t=Go=ya=0;t<e;){var n=ln[t];ln[t++]=null;var a=ln[t];ln[t++]=null;var o=ln[t];ln[t++]=null;var c=ln[t];if(ln[t++]=null,a!==null&&o!==null){var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}c!==0&&_d(n,o,c)}}function Br(e,t,n,a){ln[ya++]=e,ln[ya++]=t,ln[ya++]=n,ln[ya++]=a,Go|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Io(e,t,n,a){return Br(e,t,n,a),Hr(e)}function Il(e,t){return Br(e,null,null,t),Hr(e)}function _d(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-et(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function Hr(e){if(50<Hi)throw Hi=0,Ju=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var va={};function py(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,a){return new py(e,t,n,a)}function qo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gn(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function yd(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vr(e,t,n,a,o,c){var h=0;if(a=e,typeof e=="function")qo(e)&&(h=1);else if(typeof e=="string")h=bv(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pt:return e=Pt(31,n,t,o),e.elementType=pt,e.lanes=c,e;case B:return ql(n.children,o,c,t);case P:h=8,o|=24;break;case V:return e=Pt(12,n,t,o|2),e.elementType=V,e.lanes=c,e;case ae:return e=Pt(13,n,t,o),e.elementType=ae,e.lanes=c,e;case fe:return e=Pt(19,n,t,o),e.elementType=fe,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:h=10;break e;case I:h=9;break e;case Z:h=11;break e;case te:h=14;break e;case Ue:h=16,a=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Pt(h,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function ql(e,t,n,a){return e=Pt(7,e,a,t),e.lanes=n,e}function Po(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function vd(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Yo(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bd=new WeakMap;function an(e,t){if(typeof e=="object"&&e!==null){var n=bd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:kn(t)},bd.set(e,t),t)}return{value:e,source:t,stack:kn(t)}}var ba=[],Sa=0,Gr=null,yi=0,rn=[],sn=0,hl=null,En=1,xn="";function In(e,t){ba[Sa++]=yi,ba[Sa++]=Gr,Gr=e,yi=t}function Sd(e,t,n){rn[sn++]=En,rn[sn++]=xn,rn[sn++]=hl,hl=e;var a=En;e=xn;var o=32-et(a)-1;a&=~(1<<o),n+=1;var c=32-et(t)+o;if(30<c){var h=o-o%5;c=(a&(1<<h)-1).toString(32),a>>=h,o-=h,En=1<<32-et(t)+o|n<<o|a,xn=c+e}else En=1<<c|n<<o|a,xn=e}function Xo(e){e.return!==null&&(In(e,1),Sd(e,1,0))}function Qo(e){for(;e===Gr;)Gr=ba[--Sa],ba[Sa]=null,yi=ba[--Sa],ba[Sa]=null;for(;e===hl;)hl=rn[--sn],rn[sn]=null,xn=rn[--sn],rn[sn]=null,En=rn[--sn],rn[sn]=null}function Ed(e,t){rn[sn++]=En,rn[sn++]=xn,rn[sn++]=hl,En=t.id,xn=t.overflow,hl=e}var yt=null,He=null,Se=!1,ml=null,on=!1,Zo=Error(s(519));function pl(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vi(an(t,e)),Zo}function xd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[tt]=e,t[qe]=a,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<Gi.length;n++)_e(Gi[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),jf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),Bf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Vm(t.textContent,n)?(a.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),a.onScroll!=null&&_e("scroll",t),a.onScrollEnd!=null&&_e("scrollend",t),a.onClick!=null&&(t.onclick=Hn),t=!0):t=!1,t||pl(e,!0)}function Td(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:yt=yt.return}}function Ea(e){if(e!==yt)return!1;if(!Se)return Td(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||dc(e.type,e.memoizedProps)),n=!n),n&&He&&pl(e),Td(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=Km(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=Km(e)}else t===27?(t=He,Dl(e.type)?(e=_c,_c=null,He=e):He=t):He=yt?cn(e.stateNode.nextSibling):null;return!0}function Pl(){He=yt=null,Se=!1}function Ko(){var e=ml;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),ml=null),e}function vi(e){ml===null?ml=[e]:ml.push(e)}var $o=T(null),Yl=null,qn=null;function gl(e,t,n){X($o,t._currentValue),t._currentValue=n}function Pn(e){e._currentValue=$o.current,G($o)}function Jo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Wo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var _=c;c=o;for(var x=0;x<t.length;x++)if(_.context===t[x]){c.lanes|=n,_=c.alternate,_!==null&&(_.lanes|=n),Jo(c.return,n,e),a||(h=null);break e}c=_.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Jo(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function xa(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var _=o.type;qt(o.pendingProps.value,h.value)||(e!==null?e.push(_):e=[_])}}else if(o===be.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Xi):e=[Xi])}o=o.return}e!==null&&Wo(t,e,n,a),t.flags|=262144}function Ir(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){Yl=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Ad(Yl,e)}function qr(e,t){return Yl===null&&Xl(e),Ad(e,t)}function Ad(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qn===null){if(e===null)throw Error(s(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return n}var gy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},_y=i.unstable_scheduleCallback,yy=i.unstable_NormalPriority,nt={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fo(){return{controller:new gy,data:new Map,refCount:0}}function bi(e){e.refCount--,e.refCount===0&&_y(yy,function(){e.controller.abort()})}var Si=null,eu=0,Ta=0,Aa=null;function vy(e,t){if(Si===null){var n=Si=[];eu=0,Ta=lc(),Aa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return eu++,t.then(Rd,Rd),t}function Rd(){if(--eu===0&&Si!==null){Aa!==null&&(Aa.status="fulfilled");var e=Si;Si=null,Ta=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function by(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Od=z.S;z.S=function(e,t){cm=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&vy(e,t),Od!==null&&Od(e,t)};var Ql=T(null);function tu(){var e=Ql.current;return e!==null?e:je.pooledCache}function Pr(e,t){t===null?X(Ql,Ql.current):X(Ql,t.pool)}function Cd(){var e=tu();return e===null?null:{parent:nt._currentValue,pool:e}}var Ra=Error(s(460)),nu=Error(s(474)),Yr=Error(s(542)),Xr={then:function(){}};function Dd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ld(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Hn,Hn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kd(e),e;default:if(typeof t.status=="string")t.then(Hn,Hn);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kd(e),e}throw Kl=t,Ra}}function Zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Kl=n,Ra):n}}var Kl=null;function Nd(){if(Kl===null)throw Error(s(459));var e=Kl;return Kl=null,e}function kd(e){if(e===Ra||e===Yr)throw Error(s(483))}var Oa=null,Ei=0;function Qr(e){var t=Ei;return Ei+=1,Oa===null&&(Oa=[]),Ld(Oa,e,t)}function xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zr(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wd(e){function t(C,O){if(e){var L=C.deletions;L===null?(C.deletions=[O],C.flags|=16):L.push(O)}}function n(C,O){if(!e)return null;for(;O!==null;)t(C,O),O=O.sibling;return null}function a(C){for(var O=new Map;C!==null;)C.key!==null?O.set(C.key,C):O.set(C.index,C),C=C.sibling;return O}function o(C,O){return C=Gn(C,O),C.index=0,C.sibling=null,C}function c(C,O,L){return C.index=L,e?(L=C.alternate,L!==null?(L=L.index,L<O?(C.flags|=67108866,O):L):(C.flags|=67108866,O)):(C.flags|=1048576,O)}function h(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function _(C,O,L,U){return O===null||O.tag!==6?(O=Po(L,C.mode,U),O.return=C,O):(O=o(O,L),O.return=C,O)}function x(C,O,L,U){var ie=L.type;return ie===B?j(C,O,L.props.children,U,L.key):O!==null&&(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Zl(ie)===O.type)?(O=o(O,L.props),xi(O,L),O.return=C,O):(O=Vr(L.type,L.key,L.props,null,C.mode,U),xi(O,L),O.return=C,O)}function N(C,O,L,U){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=Yo(L,C.mode,U),O.return=C,O):(O=o(O,L.children||[]),O.return=C,O)}function j(C,O,L,U,ie){return O===null||O.tag!==7?(O=ql(L,C.mode,U,ie),O.return=C,O):(O=o(O,L),O.return=C,O)}function H(C,O,L){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Po(""+O,C.mode,L),O.return=C,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case A:return L=Vr(O.type,O.key,O.props,null,C.mode,L),xi(L,O),L.return=C,L;case D:return O=Yo(O,C.mode,L),O.return=C,O;case Ue:return O=Zl(O),H(C,O,L)}if(Fe(O)||Ke(O))return O=ql(O,C.mode,L,null),O.return=C,O;if(typeof O.then=="function")return H(C,Qr(O),L);if(O.$$typeof===Y)return H(C,qr(C,O),L);Zr(C,O)}return null}function k(C,O,L,U){var ie=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ie!==null?null:_(C,O,""+L,U);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case A:return L.key===ie?x(C,O,L,U):null;case D:return L.key===ie?N(C,O,L,U):null;case Ue:return L=Zl(L),k(C,O,L,U)}if(Fe(L)||Ke(L))return ie!==null?null:j(C,O,L,U,null);if(typeof L.then=="function")return k(C,O,Qr(L),U);if(L.$$typeof===Y)return k(C,O,qr(C,L),U);Zr(C,L)}return null}function M(C,O,L,U,ie){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return C=C.get(L)||null,_(O,C,""+U,ie);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case A:return C=C.get(U.key===null?L:U.key)||null,x(O,C,U,ie);case D:return C=C.get(U.key===null?L:U.key)||null,N(O,C,U,ie);case Ue:return U=Zl(U),M(C,O,L,U,ie)}if(Fe(U)||Ke(U))return C=C.get(L)||null,j(O,C,U,ie,null);if(typeof U.then=="function")return M(C,O,L,Qr(U),ie);if(U.$$typeof===Y)return M(C,O,L,qr(O,U),ie);Zr(O,U)}return null}function W(C,O,L,U){for(var ie=null,Ee=null,le=O,de=O=0,ve=null;le!==null&&de<L.length;de++){le.index>de?(ve=le,le=null):ve=le.sibling;var xe=k(C,le,L[de],U);if(xe===null){le===null&&(le=ve);break}e&&le&&xe.alternate===null&&t(C,le),O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe,le=ve}if(de===L.length)return n(C,le),Se&&In(C,de),ie;if(le===null){for(;de<L.length;de++)le=H(C,L[de],U),le!==null&&(O=c(le,O,de),Ee===null?ie=le:Ee.sibling=le,Ee=le);return Se&&In(C,de),ie}for(le=a(le);de<L.length;de++)ve=M(le,C,de,L[de],U),ve!==null&&(e&&ve.alternate!==null&&le.delete(ve.key===null?de:ve.key),O=c(ve,O,de),Ee===null?ie=ve:Ee.sibling=ve,Ee=ve);return e&&le.forEach(function(Ml){return t(C,Ml)}),Se&&In(C,de),ie}function se(C,O,L,U){if(L==null)throw Error(s(151));for(var ie=null,Ee=null,le=O,de=O=0,ve=null,xe=L.next();le!==null&&!xe.done;de++,xe=L.next()){le.index>de?(ve=le,le=null):ve=le.sibling;var Ml=k(C,le,xe.value,U);if(Ml===null){le===null&&(le=ve);break}e&&le&&Ml.alternate===null&&t(C,le),O=c(Ml,O,de),Ee===null?ie=Ml:Ee.sibling=Ml,Ee=Ml,le=ve}if(xe.done)return n(C,le),Se&&In(C,de),ie;if(le===null){for(;!xe.done;de++,xe=L.next())xe=H(C,xe.value,U),xe!==null&&(O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe);return Se&&In(C,de),ie}for(le=a(le);!xe.done;de++,xe=L.next())xe=M(le,C,de,xe.value,U),xe!==null&&(e&&xe.alternate!==null&&le.delete(xe.key===null?de:xe.key),O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe);return e&&le.forEach(function(Nv){return t(C,Nv)}),Se&&In(C,de),ie}function ze(C,O,L,U){if(typeof L=="object"&&L!==null&&L.type===B&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case A:e:{for(var ie=L.key;O!==null;){if(O.key===ie){if(ie=L.type,ie===B){if(O.tag===7){n(C,O.sibling),U=o(O,L.props.children),U.return=C,C=U;break e}}else if(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Zl(ie)===O.type){n(C,O.sibling),U=o(O,L.props),xi(U,L),U.return=C,C=U;break e}n(C,O);break}else t(C,O);O=O.sibling}L.type===B?(U=ql(L.props.children,C.mode,U,L.key),U.return=C,C=U):(U=Vr(L.type,L.key,L.props,null,C.mode,U),xi(U,L),U.return=C,C=U)}return h(C);case D:e:{for(ie=L.key;O!==null;){if(O.key===ie)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){n(C,O.sibling),U=o(O,L.children||[]),U.return=C,C=U;break e}else{n(C,O);break}else t(C,O);O=O.sibling}U=Yo(L,C.mode,U),U.return=C,C=U}return h(C);case Ue:return L=Zl(L),ze(C,O,L,U)}if(Fe(L))return W(C,O,L,U);if(Ke(L)){if(ie=Ke(L),typeof ie!="function")throw Error(s(150));return L=ie.call(L),se(C,O,L,U)}if(typeof L.then=="function")return ze(C,O,Qr(L),U);if(L.$$typeof===Y)return ze(C,O,qr(C,L),U);Zr(C,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(n(C,O.sibling),U=o(O,L),U.return=C,C=U):(n(C,O),U=Po(L,C.mode,U),U.return=C,C=U),h(C)):n(C,O)}return function(C,O,L,U){try{Ei=0;var ie=ze(C,O,L,U);return Oa=null,ie}catch(le){if(le===Ra||le===Yr)throw le;var Ee=Pt(29,le,null,C.mode);return Ee.lanes=U,Ee.return=C,Ee}finally{}}}var $l=wd(!0),Md=wd(!1),_l=!1;function lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function au(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Hr(e),_d(e,null,n),t}return Br(e,a,t,n),Hr(e)}function Ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ai(e,n)}}function iu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ru=!1;function Ai(){if(ru){var e=Aa;if(e!==null)throw e}}function Ri(e,t,n,a){ru=!1;var o=e.updateQueue;_l=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var x=_,N=x.next;x.next=null,h===null?c=N:h.next=N,h=x;var j=e.alternate;j!==null&&(j=j.updateQueue,_=j.lastBaseUpdate,_!==h&&(_===null?j.firstBaseUpdate=N:_.next=N,j.lastBaseUpdate=x))}if(c!==null){var H=o.baseState;h=0,j=N=x=null,_=c;do{var k=_.lane&-536870913,M=k!==_.lane;if(M?(ye&k)===k:(a&k)===k){k!==0&&k===Ta&&(ru=!0),j!==null&&(j=j.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var W=e,se=_;k=t;var ze=n;switch(se.tag){case 1:if(W=se.payload,typeof W=="function"){H=W.call(ze,H,k);break e}H=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=se.payload,k=typeof W=="function"?W.call(ze,H,k):W,k==null)break e;H=b({},H,k);break e;case 2:_l=!0}}k=_.callback,k!==null&&(e.flags|=64,M&&(e.flags|=8192),M=o.callbacks,M===null?o.callbacks=[k]:M.push(k))}else M={lane:k,tag:_.tag,payload:_.payload,callback:_.callback,next:null},j===null?(N=j=M,x=H):j=j.next=M,h|=k;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;M=_,_=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(!0);j===null&&(x=H),o.baseState=x,o.firstBaseUpdate=N,o.lastBaseUpdate=j,c===null&&(o.shared.lanes=0),Tl|=h,e.lanes=h,e.memoizedState=H}}function zd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function jd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)zd(n[e],t)}var Ca=T(null),Kr=T(0);function Ud(e,t){e=Fn,X(Kr,e),X(Ca,t),Fn=e|t.baseLanes}function su(){X(Kr,Fn),X(Ca,Ca.current)}function ou(){Fn=Kr.current,G(Ca),G(Kr)}var Yt=T(null),un=null;function bl(e){var t=e.alternate;X(Je,Je.current&1),X(Yt,e),un===null&&(t===null||Ca.current!==null||t.memoizedState!==null)&&(un=e)}function uu(e){X(Je,Je.current),X(Yt,e),un===null&&(un=e)}function Bd(e){e.tag===22?(X(Je,Je.current),X(Yt,e),un===null&&(un=e)):Sl()}function Sl(){X(Je,Je.current),X(Yt,Yt.current)}function Xt(e){G(Yt),un===e&&(un=null),G(Je)}var Je=T(0);function $r(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pc(n)||gc(n)))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 Yn=0,ce=null,we=null,lt=null,Jr=!1,Da=!1,Jl=!1,Wr=0,Oi=0,La=null,Sy=0;function Qe(){throw Error(s(321))}function cu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function fu(e,t,n,a,o,c){return Yn=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Sh:Ru,Jl=!1,c=n(a,o),Jl=!1,Da&&(c=Vd(t,n,a,o)),Hd(e),c}function Hd(e){z.H=Li;var t=we!==null&&we.next!==null;if(Yn=0,lt=we=ce=null,Jr=!1,Oi=0,La=null,t)throw Error(s(300));e===null||at||(e=e.dependencies,e!==null&&Ir(e)&&(at=!0))}function Vd(e,t,n,a){ce=e;var o=0;do{if(Da&&(La=null),Oi=0,Da=!1,25<=o)throw Error(s(301));if(o+=1,lt=we=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=Eh,c=t(n,a)}while(Da);return c}function Ey(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Ci(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(ce.flags|=1024),t}function du(){var e=Wr!==0;return Wr=0,e}function hu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function mu(e){if(Jr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jr=!1}Yn=0,lt=we=ce=null,Da=!1,Oi=Wr=0,La=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?ce.memoizedState=lt=e:lt=lt.next=e,lt}function We(){if(we===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=lt===null?ce.memoizedState:lt.next;if(t!==null)lt=t,we=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},lt===null?ce.memoizedState=lt=e:lt=lt.next=e}return lt}function Fr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ci(e){var t=Oi;return Oi+=1,La===null&&(La=[]),e=Ld(La,e,t),t=ce,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Sh:Ru),e}function es(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ci(e);if(e.$$typeof===Y)return vt(e)}throw Error(s(438,String(e)))}function pu(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Fr(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Lt;return t.index++,n}function Xn(e,t){return typeof t=="function"?t(e):t}function ts(e){var t=We();return gu(t,we,e)}function gu(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var _=h=null,x=null,N=t,j=!1;do{var H=N.lane&-536870913;if(H!==N.lane?(ye&H)===H:(Yn&H)===H){var k=N.revertLane;if(k===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),H===Ta&&(j=!0);else if((Yn&k)===k){N=N.next,k===Ta&&(j=!0);continue}else H={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},x===null?(_=x=H,h=c):x=x.next=H,ce.lanes|=k,Tl|=k;H=N.action,Jl&&n(c,H),c=N.hasEagerState?N.eagerState:n(c,H)}else k={lane:H,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},x===null?(_=x=k,h=c):x=x.next=k,ce.lanes|=H,Tl|=H;N=N.next}while(N!==null&&N!==t);if(x===null?h=c:x.next=_,!qt(c,e.memoizedState)&&(at=!0,j&&(n=Aa,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=x,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function _u(e){var t=We(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);qt(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Gd(e,t,n){var a=ce,o=We(),c=Se;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!qt((we||o).memoizedState,n);if(h&&(o.memoizedState=n,at=!0),o=o.queue,bu(Pd.bind(null,a,o,e),[e]),o.getSnapshot!==t||h||lt!==null&<.memoizedState.tag&1){if(a.flags|=2048,Na(9,{destroy:void 0},qd.bind(null,a,o,n,t),null),je===null)throw Error(s(349));c||(Yn&127)!==0||Id(a,t,n)}return n}function Id(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=Fr(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qd(e,t,n,a){t.value=n,t.getSnapshot=a,Yd(t)&&Xd(e)}function Pd(e,t,n){return n(function(){Yd(t)&&Xd(e)})}function Yd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function Xd(e){var t=Il(e,2);t!==null&&Ht(t,e,2)}function yu(e){var t=Tt();if(typeof e=="function"){var n=e;if(e=n(),Jl){dt(!0);try{n()}finally{dt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},t}function Qd(e,t,n,a){return e.baseState=n,gu(e,we,typeof a=="function"?a:Xn)}function xy(e,t,n,a,o){if(as(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};z.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Zd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Zd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=z.T,h={};z.T=h;try{var _=n(o,a),x=z.S;x!==null&&x(h,_),Kd(e,t,_)}catch(N){vu(e,t,N)}finally{c!==null&&h.types!==null&&(c.types=h.types),z.T=c}}else try{c=n(o,a),Kd(e,t,c)}catch(N){vu(e,t,N)}}function Kd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){$d(e,t,a)},function(a){return vu(e,t,a)}):$d(e,t,n)}function $d(e,t,n){t.status="fulfilled",t.value=n,Jd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zd(e,n)))}function vu(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Jd(t),t=t.next;while(t!==a)}e.action=null}function Jd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wd(e,t){return t}function Fd(e,t){if(Se){var n=je.formState;if(n!==null){e:{var a=ce;if(Se){if(He){t:{for(var o=He,c=on;o.nodeType!==8;){if(!c){o=null;break t}if(o=cn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){He=cn(o.nextSibling),a=o.data==="F!";break e}}pl(a)}a=!1}a&&(t=n[0])}}return n=Tt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wd,lastRenderedState:t},n.queue=a,n=yh.bind(null,ce,a),a.dispatch=n,a=yu(!1),c=Au.bind(null,ce,!1,a.queue),a=Tt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=xy.bind(null,ce,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function eh(e){var t=We();return th(t,we,e)}function th(e,t,n){if(t=gu(e,t,Wd)[0],e=ts(Xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ci(t)}catch(h){throw h===Ra?Yr:h}else a=t;t=We();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,Na(9,{destroy:void 0},Ty.bind(null,o,n),null)),[a,c,e]}function Ty(e,t){e.action=t}function nh(e){var t=We(),n=we;if(n!==null)return th(t,n,e);We(),t=t.memoizedState,n=We();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Na(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Fr(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function lh(){return We().memoizedState}function ns(e,t,n,a){var o=Tt();ce.flags|=e,o.memoizedState=Na(1|t,{destroy:void 0},n,a===void 0?null:a)}function ls(e,t,n,a){var o=We();a=a===void 0?null:a;var c=o.memoizedState.inst;we!==null&&a!==null&&cu(a,we.memoizedState.deps)?o.memoizedState=Na(t,c,n,a):(ce.flags|=e,o.memoizedState=Na(1|t,c,n,a))}function ah(e,t){ns(8390656,8,e,t)}function bu(e,t){ls(2048,8,e,t)}function Ay(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Fr(),ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ih(e){var t=We().memoizedState;return Ay({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function rh(e,t){return ls(4,2,e,t)}function sh(e,t){return ls(4,4,e,t)}function oh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uh(e,t,n){n=n!=null?n.concat([e]):null,ls(4,4,oh.bind(null,t,e),n)}function Su(){}function ch(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&cu(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function fh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&cu(t,a[1]))return a[0];if(a=e(),Jl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a}function Eu(e,t,n){return n===void 0||(Yn&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=dm(),ce.lanes|=e,Tl|=e,n)}function dh(e,t,n,a){return qt(n,t)?n:Ca.current!==null?(e=Eu(e,n,a),qt(e,t)||(at=!0),e):(Yn&42)===0||(Yn&1073741824)!==0&&(ye&261930)===0?(at=!0,e.memoizedState=n):(e=dm(),ce.lanes|=e,Tl|=e,t)}function hh(e,t,n,a,o){var c=K.p;K.p=c!==0&&8>c?c:8;var h=z.T,_={};z.T=_,Au(e,!1,t,n);try{var x=o(),N=z.S;if(N!==null&&N(_,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var j=by(x,a);Di(e,t,j,Kt(e))}else Di(e,t,a,Kt(e))}catch(H){Di(e,t,{then:function(){},status:"rejected",reason:H},Kt())}finally{K.p=c,h!==null&&_.types!==null&&(h.types=_.types),z.T=h}}function Ry(){}function xu(e,t,n,a){if(e.tag!==5)throw Error(s(476));var o=mh(e).queue;hh(e,o,t,re,n===null?Ry:function(){return ph(e),n(a)})}function mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ph(e){var t=mh(e);t.next===null&&(t=e.alternate.memoizedState),Di(e,t.next.queue,{},Kt())}function Tu(){return vt(Xi)}function gh(){return We().memoizedState}function _h(){return We().memoizedState}function Oy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=yl(n);var a=vl(t,e,n);a!==null&&(Ht(a,t,n),Ti(a,t,n)),t={cache:Fo()},e.payload=t;return}t=t.return}}function Cy(e,t,n){var a=Kt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},as(e)?vh(t,n):(n=Io(e,t,n,a),n!==null&&(Ht(n,e,a),bh(n,t,a)))}function yh(e,t,n){var a=Kt();Di(e,t,n,a)}function Di(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(as(e))vh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,_=c(h,n);if(o.hasEagerState=!0,o.eagerState=_,qt(_,h))return Br(e,t,o,0),je===null&&Ur(),!1}catch{}finally{}if(n=Io(e,t,o,a),n!==null)return Ht(n,e,a),bh(n,t,a),!0}return!1}function Au(e,t,n,a){if(a={lane:2,revertLane:lc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},as(e)){if(t)throw Error(s(479))}else t=Io(e,n,a,2),t!==null&&Ht(t,e,2)}function as(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function vh(e,t){Da=Jr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ai(e,n)}}var Li={readContext:vt,use:es,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};Li.useEffectEvent=Qe;var Sh={readContext:vt,use:es,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:ah,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ns(4194308,4,oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=Tt();t=t===void 0?null:t;var a=e();if(Jl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Tt();if(n!==void 0){var o=n(t);if(Jl){dt(!0);try{n(t)}finally{dt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=Cy.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=yu(e);var t=e.queue,n=yh.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Su,useDeferredValue:function(e,t){var n=Tt();return Eu(n,e,t)},useTransition:function(){var e=yu(!1);return e=hh.bind(null,ce,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ce,o=Tt();if(Se){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),je===null)throw Error(s(349));(ye&127)!==0||Id(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,ah(Pd.bind(null,a,c,e),[e]),a.flags|=2048,Na(9,{destroy:void 0},qd.bind(null,a,c,n,t),null),n},useId:function(){var e=Tt(),t=je.identifierPrefix;if(Se){var n=xn,a=En;n=(a&~(1<<32-et(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Wr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Sy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tu,useFormState:Fd,useActionState:Fd,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Au.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:pu,useCacheRefresh:function(){return Tt().memoizedState=Oy.bind(null,ce)},useEffectEvent:function(e){var t=Tt(),n={impl:e};return t.memoizedState=n,function(){if((Ae&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Ru={readContext:vt,use:es,useCallback:ch,useContext:vt,useEffect:bu,useImperativeHandle:uh,useInsertionEffect:rh,useLayoutEffect:sh,useMemo:fh,useReducer:ts,useRef:lh,useState:function(){return ts(Xn)},useDebugValue:Su,useDeferredValue:function(e,t){var n=We();return dh(n,we.memoizedState,e,t)},useTransition:function(){var e=ts(Xn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ci(e),t]},useSyncExternalStore:Gd,useId:gh,useHostTransitionStatus:Tu,useFormState:eh,useActionState:eh,useOptimistic:function(e,t){var n=We();return Qd(n,we,e,t)},useMemoCache:pu,useCacheRefresh:_h};Ru.useEffectEvent=ih;var Eh={readContext:vt,use:es,useCallback:ch,useContext:vt,useEffect:bu,useImperativeHandle:uh,useInsertionEffect:rh,useLayoutEffect:sh,useMemo:fh,useReducer:_u,useRef:lh,useState:function(){return _u(Xn)},useDebugValue:Su,useDeferredValue:function(e,t){var n=We();return we===null?Eu(n,e,t):dh(n,we.memoizedState,e,t)},useTransition:function(){var e=_u(Xn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ci(e),t]},useSyncExternalStore:Gd,useId:gh,useHostTransitionStatus:Tu,useFormState:nh,useActionState:nh,useOptimistic:function(e,t){var n=We();return we!==null?Qd(n,we,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:pu,useCacheRefresh:_h};Eh.useEffectEvent=ih;function Ou(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cu={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ti(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ti(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),a=yl(n);a.tag=2,t!=null&&(a.callback=t),t=vl(e,a,n),t!==null&&(Ht(t,e,n),Ti(t,e,n))}};function xh(e,t,n,a,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,h):t.prototype&&t.prototype.isPureReactComponent?!gi(n,a)||!gi(o,c):!0}function Th(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Cu.enqueueReplaceState(t,t.state,null)}function Wl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Ah(e){jr(e)}function Rh(e){console.error(e)}function Oh(e){jr(e)}function is(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ch(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Du(e,t,n){return n=yl(n),n.tag=3,n.payload={element:null},n.callback=function(){is(e,t)},n}function Dh(e){return e=yl(e),e.tag=3,e}function Lh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Ch(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Ch(t,n,a),typeof o!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var _=a.stack;this.componentDidCatch(a.value,{componentStack:_!==null?_:""})})}function Dy(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&xa(t,n,o,!0),n=Yt.current,n!==null){switch(n.tag){case 31:case 13:return un===null?_s():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Xr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),ec(e,a,o)),!1;case 22:return n.flags|=65536,a===Xr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),ec(e,a,o)),!1}throw Error(s(435,n.tag))}return ec(e,a,o),_s(),!1}if(Se)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Zo&&(e=Error(s(422),{cause:a}),vi(an(e,n)))):(a!==Zo&&(t=Error(s(423),{cause:a}),vi(an(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=an(a,n),o=Du(e.stateNode,a,o),iu(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(s(520),{cause:a});if(c=an(c,n),Bi===null?Bi=[c]:Bi.push(c),Ze!==4&&(Ze=2),t===null)return!0;a=an(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Du(n.stateNode,a,e),iu(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Al===null||!Al.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Dh(o),Lh(o,e,n,a),iu(n,o),!1}n=n.return}while(n!==null);return!1}var Lu=Error(s(461)),at=!1;function bt(e,t,n,a){t.child=e===null?Md(t,null,n,a):$l(t,e.child,n,a)}function Nh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var h={};for(var _ in a)_!=="ref"&&(h[_]=a[_])}else h=a;return Xl(t),a=fu(e,t,n,h,c,o),_=du(),e!==null&&!at?(hu(e,t,o),Qn(e,t,o)):(Se&&_&&Xo(t),t.flags|=1,bt(e,t,a,o),t.child)}function kh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!qo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,wh(e,t,c,a,o)):(e=Vr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Bu(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:gi,n(h,a)&&e.ref===t.ref)return Qn(e,t,o)}return t.flags|=1,e=Gn(c,a),e.ref=t.ref,e.return=t,t.child=e}function wh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(gi(c,a)&&e.ref===t.ref)if(at=!1,t.pendingProps=a=c,Bu(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Qn(e,t,o)}return Nu(e,t,n,a,o)}function Mh(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return zh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pr(t,c!==null?c.cachePool:null),c!==null?Ud(t,c):su(),Bd(t);else return a=t.lanes=536870912,zh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Pr(t,c.cachePool),Ud(t,c),Sl(),t.memoizedState=null):(e!==null&&Pr(t,null),su(),Sl());return bt(e,t,o,n),t.child}function Ni(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zh(e,t,n,a,o){var c=tu();return c=c===null?null:{parent:nt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Pr(t,null),su(),Bd(t),e!==null&&xa(e,t,a,!0),t.childLanes=o,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jh(e,t,n){return $l(t,e.child,null,n),e=rs(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function Ly(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=rs(t,a),t.lanes=536870912,Ni(null,e);if(uu(t),(e=He)?(e=Zm(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=vd(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return rs(t,a)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(uu(t),o)if(t.flags&256)t.flags&=-257,t=jh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(at||xa(e,t,n,!1),o=(n&e.childLanes)!==0,at||o){if(a=je,a!==null&&(h=Er(a,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Il(e,h),Ht(a,e,h),Lu;_s(),t=jh(e,t,n)}else e=c.treeContext,He=cn(h.nextSibling),yt=t,Se=!0,ml=null,on=!1,e!==null&&Ed(t,e),t=rs(t,a),t.flags|=4096;return t}return e=Gn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ss(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Nu(e,t,n,a,o){return Xl(t),n=fu(e,t,n,a,void 0,o),a=du(),e!==null&&!at?(hu(e,t,o),Qn(e,t,o)):(Se&&a&&Xo(t),t.flags|=1,bt(e,t,n,o),t.child)}function Uh(e,t,n,a,o,c){return Xl(t),t.updateQueue=null,n=Vd(t,a,n,o),Hd(e),a=du(),e!==null&&!at?(hu(e,t,c),Qn(e,t,c)):(Se&&a&&Xo(t),t.flags|=1,bt(e,t,n,c),t.child)}function Bh(e,t,n,a,o){if(Xl(t),t.stateNode===null){var c=va,h=n.contextType;typeof h=="object"&&h!==null&&(c=vt(h)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Cu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},lu(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?vt(h):va,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Ou(t,n,h,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Cu.enqueueReplaceState(c,c.state,null),Ri(t,a,c,o),Ai(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var _=t.memoizedProps,x=Wl(n,_);c.props=x;var N=c.context,j=n.contextType;h=va,typeof j=="object"&&j!==null&&(h=vt(j));var H=n.getDerivedStateFromProps;j=typeof H=="function"||typeof c.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,j||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(_||N!==h)&&Th(t,c,a,h),_l=!1;var k=t.memoizedState;c.state=k,Ri(t,a,c,o),Ai(),N=t.memoizedState,_||k!==N||_l?(typeof H=="function"&&(Ou(t,n,H,a),N=t.memoizedState),(x=_l||xh(t,n,x,a,k,N,h))?(j||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=N),c.props=a,c.state=N,c.context=h,a=x):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,au(e,t),h=t.memoizedProps,j=Wl(n,h),c.props=j,H=t.pendingProps,k=c.context,N=n.contextType,x=va,typeof N=="object"&&N!==null&&(x=vt(N)),_=n.getDerivedStateFromProps,(N=typeof _=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==H||k!==x)&&Th(t,c,a,x),_l=!1,k=t.memoizedState,c.state=k,Ri(t,a,c,o),Ai();var M=t.memoizedState;h!==H||k!==M||_l||e!==null&&e.dependencies!==null&&Ir(e.dependencies)?(typeof _=="function"&&(Ou(t,n,_,a),M=t.memoizedState),(j=_l||xh(t,n,j,a,k,M,x)||e!==null&&e.dependencies!==null&&Ir(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,M,x),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,M,x)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),c.props=a,c.state=M,c.context=x,a=j):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,ss(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=$l(t,e.child,null,o),t.child=$l(t,null,n,o)):bt(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Qn(e,t,o),e}function Hh(e,t,n,a){return Pl(),t.flags|=256,bt(e,t,n,a),t.child}var ku={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wu(e){return{baseLanes:e,cachePool:Cd()}}function Mu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function Vh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(o?bl(t):Sl(),(e=He)?(e=Zm(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=vd(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw pl(t);return gc(e)?t.lanes=32:t.lanes=536870912,null}var _=a.children;return a=a.fallback,o?(Sl(),o=t.mode,_=os({mode:"hidden",children:_},o),a=ql(a,o,n,null),_.return=t,a.return=t,_.sibling=a,t.child=_,a=t.child,a.memoizedState=wu(n),a.childLanes=Mu(e,h,n),t.memoizedState=ku,Ni(null,a)):(bl(t),zu(t,_))}var x=e.memoizedState;if(x!==null&&(_=x.dehydrated,_!==null)){if(c)t.flags&256?(bl(t),t.flags&=-257,t=ju(e,t,n)):t.memoizedState!==null?(Sl(),t.child=e.child,t.flags|=128,t=null):(Sl(),_=a.fallback,o=t.mode,a=os({mode:"visible",children:a.children},o),_=ql(_,o,n,null),_.flags|=2,a.return=t,_.return=t,a.sibling=_,t.child=a,$l(t,e.child,null,n),a=t.child,a.memoizedState=wu(n),a.childLanes=Mu(e,h,n),t.memoizedState=ku,t=Ni(null,a));else if(bl(t),gc(_)){if(h=_.nextSibling&&_.nextSibling.dataset,h)var N=h.dgst;h=N,a=Error(s(419)),a.stack="",a.digest=h,vi({value:a,source:null,stack:null}),t=ju(e,t,n)}else if(at||xa(e,t,n,!1),h=(n&e.childLanes)!==0,at||h){if(h=je,h!==null&&(a=Er(h,n),a!==0&&a!==x.retryLane))throw x.retryLane=a,Il(e,a),Ht(h,e,a),Lu;pc(_)||_s(),t=ju(e,t,n)}else pc(_)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,He=cn(_.nextSibling),yt=t,Se=!0,ml=null,on=!1,e!==null&&Ed(t,e),t=zu(t,a.children),t.flags|=4096);return t}return o?(Sl(),_=a.fallback,o=t.mode,x=e.child,N=x.sibling,a=Gn(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,N!==null?_=Gn(N,_):(_=ql(_,o,n,null),_.flags|=2),_.return=t,a.return=t,a.sibling=_,t.child=a,Ni(null,a),a=t.child,_=e.child.memoizedState,_===null?_=wu(n):(o=_.cachePool,o!==null?(x=nt._currentValue,o=o.parent!==x?{parent:x,pool:x}:o):o=Cd(),_={baseLanes:_.baseLanes|n,cachePool:o}),a.memoizedState=_,a.childLanes=Mu(e,h,n),t.memoizedState=ku,Ni(e.child,a)):(bl(t),n=e.child,e=n.sibling,n=Gn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function zu(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function ju(e,t,n){return $l(t,e.child,null,n),e=zu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Jo(e.return,t,n)}function Uu(e,t,n,a,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function Ih(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var h=Je.current,_=(h&2)!==0;if(_?(h=h&1|2,t.flags|=128):h&=1,X(Je,h),bt(e,t,a,n),a=Se?yi:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gh(e,n,t);else if(e.tag===19)Gh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&$r(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Uu(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&$r(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Uu(t,!0,n,null,c,a);break;case"together":Uu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(xa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ir(e)))}function Ny(e,t,n){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),gl(t,nt,e.memoizedState.cache),Pl();break;case 27:case 5:Ln(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(bl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Vh(e,t,n):(bl(t),e=Qn(e,t,n),e!==null?e.sibling:null);bl(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(xa(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return Ih(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),X(Je,Je.current),a)break;return null;case 22:return t.lanes=0,Mh(e,t,n,t.pendingProps);case 24:gl(t,nt,e.memoizedState.cache)}return Qn(e,t,n)}function qh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Bu(e,n)&&(t.flags&128)===0)return at=!1,Ny(e,t,n);at=(e.flags&131072)!==0}else at=!1,Se&&(t.flags&1048576)!==0&&Sd(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Zl(t.elementType),t.type=e,typeof e=="function")qo(e)?(a=Wl(e,a),t.tag=1,t=Bh(null,t,e,a,n)):(t.tag=0,t=Nu(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===Z){t.tag=11,t=Nh(null,t,e,a,n);break e}else if(o===te){t.tag=14,t=kh(null,t,e,a,n);break e}}throw t=Ye(e)||e,Error(s(306,t,""))}}return t;case 0:return Nu(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Wl(a,t.pendingProps),Bh(e,t,a,o,n);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,au(e,t),Ri(t,a,null,n);var h=t.memoizedState;if(a=h.cache,gl(t,nt,a),a!==c.cache&&Wo(t,[nt],n,!0),Ai(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Hh(e,t,a,n);break e}else if(a!==o){o=an(Error(s(424)),t),vi(o),t=Hh(e,t,a,n);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(He=cn(e.firstChild),yt=t,Se=!0,ml=null,on=!0,n=Md(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pl(),a===o){t=Qn(e,t,n);break e}bt(e,t,a,n)}t=t.child}return t;case 26:return ss(e,t),e===null?(n=ep(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,a=Ts(ue.current).createElement(n),a[tt]=t,a[qe]=e,St(a,n,e),me(a),t.stateNode=a):t.memoizedState=ep(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ln(t),e===null&&Se&&(a=t.stateNode=Jm(t.type,t.pendingProps,ue.current),yt=t,on=!0,o=He,Dl(t.type)?(_c=o,He=cn(a.firstChild)):He=o),bt(e,t,t.pendingProps.children,n),ss(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((o=a=He)&&(a=sv(a,t.type,t.pendingProps,on),a!==null?(t.stateNode=a,yt=t,He=cn(a.firstChild),on=!1,o=!0):o=!1),o||pl(t)),Ln(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,dc(o,c)?a=null:h!==null&&dc(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=fu(e,t,Ey,null,null,n),Xi._currentValue=o),ss(e,t),bt(e,t,a,n),t.child;case 6:return e===null&&Se&&((e=n=He)&&(n=ov(n,t.pendingProps,on),n!==null?(t.stateNode=n,yt=t,He=null,e=!0):e=!1),e||pl(t)),null;case 13:return Vh(e,t,n);case 4:return Ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$l(t,null,a,n):bt(e,t,a,n),t.child;case 11:return Nh(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),bt(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Xl(t),o=vt(o),a=a(o),t.flags|=1,bt(e,t,a,n),t.child;case 14:return kh(e,t,t.type,t.pendingProps,n);case 15:return wh(e,t,t.type,t.pendingProps,n);case 19:return Ih(e,t,n);case 31:return Ly(e,t,n);case 22:return Mh(e,t,n,t.pendingProps);case 24:return Xl(t),a=vt(nt),e===null?(o=tu(),o===null&&(o=je,c=Fo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},lu(t),gl(t,nt,o)):((e.lanes&n)!==0&&(au(e,t),Ri(t,null,null,n),Ai()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),gl(t,nt,a)):(a=c.cache,gl(t,nt,a),a!==o.cache&&Wo(t,[nt],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Zn(e){e.flags|=4}function Hu(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(gm())e.flags|=8192;else throw Kl=Xr,nu}else e.flags&=-16777217}function Ph(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t))if(gm())e.flags|=8192;else throw Kl=Xr,nu}function us(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jn():536870912,e.lanes|=t,za|=t)}function ki(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function ky(e,t,n){var a=t.pendingProps;switch(Qo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(nt),Ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ea(t)?Zn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ko())),Ve(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Zn(t),c!==null?(Ve(t),Ph(t,c)):(Ve(t),Hu(t,o,null,a,n))):c?c!==e.memoizedState?(Zn(t),Ve(t),Ph(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Zn(t),Ve(t),Hu(t,o,e,a,n)),null;case 27:if(zl(t),n=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}e=J.current,Ea(t)?xd(t):(e=Jm(o,a,n),t.stateNode=e,Zn(t))}return Ve(t),null;case 5:if(zl(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}if(c=J.current,Ea(t))xd(t);else{var h=Ts(ue.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(o,{is:a.is}):h.createElement(o)}}c[tt]=t,c[qe]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(St(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Zn(t)}}return Ve(t),Hu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Ea(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=yt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Vm(e.nodeValue,n)),e||pl(t,!0)}else e=Ts(e).createTextNode(a),e[tt]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ea(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=Ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ve(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ea(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=Ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),us(t,t.updateQueue),Ve(t),null);case 4:return Ie(),e===null&&sc(t.stateNode.containerInfo),Ve(t),null;case 10:return Pn(t.type),Ve(t),null;case 19:if(G(Je),a=t.memoizedState,a===null)return Ve(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)ki(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=$r(e),c!==null){for(t.flags|=128,ki(a,!1),e=c.updateQueue,t.updateQueue=e,us(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yd(n,e),n=n.sibling;return X(Je,Je.current&1|2),Se&&In(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&>()>ms&&(t.flags|=128,o=!0,ki(a,!1),t.lanes=4194304)}else{if(!o)if(e=$r(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,us(t,e),ki(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Se)return Ve(t),null}else 2*gt()-a.renderingStartTime>ms&&n!==536870912&&(t.flags|=128,o=!0,ki(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gt(),e.sibling=null,n=Je.current,X(Je,o?n&1|2:n&1),Se&&In(t,a.treeForkCount),e):(Ve(t),null);case 22:case 23:return Xt(t),ou(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&us(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&G(Ql),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Pn(nt),Ve(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function wy(e,t){switch(Qo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(nt),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zl(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(s(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Je),null;case 4:return Ie(),null;case 10:return Pn(t.type),null;case 22:case 23:return Xt(t),ou(),e!==null&&G(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(nt),null;case 25:return null;default:return null}}function Yh(e,t){switch(Qo(t),t.tag){case 3:Pn(nt),Ie();break;case 26:case 27:case 5:zl(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:G(Je);break;case 10:Pn(t.type);break;case 22:case 23:Xt(t),ou(),e!==null&&G(Ql);break;case 24:Pn(nt)}}function wi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,h=n.inst;a=c(),h.destroy=a}n=n.next}while(n!==o)}}catch(_){ke(t,t.return,_)}}function El(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var h=a.inst,_=h.destroy;if(_!==void 0){h.destroy=void 0,o=t;var x=n,N=_;try{N()}catch(j){ke(o,x,j)}}}a=a.next}while(a!==c)}}catch(j){ke(t,t.return,j)}}function Xh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{jd(t,n)}catch(a){ke(e,e.return,a)}}}function Qh(e,t,n){n.props=Wl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ke(e,t,a)}}function Mi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){ke(e,t,o)}}function Tn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){ke(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){ke(e,t,o)}else n.current=null}function Zh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){ke(e,e.return,o)}}function Vu(e,t,n){try{var a=e.stateNode;tv(a,e.type,n,t),a[qe]=t}catch(o){ke(e,e.return,o)}}function Kh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function Gu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kh(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&&Dl(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 Iu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hn));else if(a!==4&&(a===27&&Dl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}function cs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(cs(e,t,n),e=e.sibling;e!==null;)cs(e,t,n),e=e.sibling}function $h(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);St(t,a,n),t[tt]=e,t[qe]=n}catch(c){ke(e,e.return,c)}}var Kn=!1,it=!1,qu=!1,Jh=typeof WeakSet=="function"?WeakSet:Set,ht=null;function My(e,t){if(e=e.containerInfo,cc=Ns,e=ud(e),jo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,_=-1,x=-1,N=0,j=0,H=e,k=null;t:for(;;){for(var M;H!==n||o!==0&&H.nodeType!==3||(_=h+o),H!==c||a!==0&&H.nodeType!==3||(x=h+a),H.nodeType===3&&(h+=H.nodeValue.length),(M=H.firstChild)!==null;)k=H,H=M;for(;;){if(H===e)break t;if(k===n&&++N===o&&(_=h),k===c&&++j===a&&(x=h),(M=H.nextSibling)!==null)break;H=k,k=H.parentNode}H=M}n=_===-1||x===-1?null:{start:_,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(fc={focusedElem:e,selectionRange:n},Ns=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,c=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(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var W=Wl(n.type,o);e=a.getSnapshotBeforeUpdate(W,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){ke(n,n.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)mc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":mc(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,ht=e;break}ht=t.return}}function Wh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Jn(e,n),a&4&&wi(5,n);break;case 1:if(Jn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){ke(n,n.return,h)}else{var o=Wl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){ke(n,n.return,h)}}a&64&&Xh(n),a&512&&Mi(n,n.return);break;case 3:if(Jn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{jd(e,t)}catch(h){ke(n,n.return,h)}}break;case 27:t===null&&a&4&&$h(n);case 26:case 5:Jn(e,n),t===null&&a&4&&Zh(n),a&512&&Mi(n,n.return);break;case 12:Jn(e,n);break;case 31:Jn(e,n),a&4&&tm(e,n);break;case 13:Jn(e,n),a&4&&nm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qy.bind(null,n),uv(e,n))));break;case 22:if(a=n.memoizedState!==null||Kn,!a){t=t!==null&&t.memoizedState!==null||it,o=Kn;var c=it;Kn=a,(it=t)&&!c?Wn(e,n,(n.subtreeFlags&8772)!==0):Jn(e,n),Kn=o,it=c}break;case 30:break;default:Jn(e,n)}}function Fh(e){var t=e.alternate;t!==null&&(e.alternate=null,Fh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&R(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 Pe=null,zt=!1;function $n(e,t,n){for(n=n.child;n!==null;)em(e,t,n),n=n.sibling}function em(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(bn,n)}catch{}switch(n.tag){case 26:it||Tn(n,t),$n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:it||Tn(n,t);var a=Pe,o=zt;Dl(n.type)&&(Pe=n.stateNode,zt=!1),$n(e,t,n),qi(n.stateNode),Pe=a,zt=o;break;case 5:it||Tn(n,t);case 6:if(a=Pe,o=zt,Pe=null,$n(e,t,n),Pe=a,zt=o,Pe!==null)if(zt)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode)}catch(c){ke(n,t,c)}else try{Pe.removeChild(n.stateNode)}catch(c){ke(n,t,c)}break;case 18:Pe!==null&&(zt?(e=Pe,Xm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),qa(e)):Xm(Pe,n.stateNode));break;case 4:a=Pe,o=zt,Pe=n.stateNode.containerInfo,zt=!0,$n(e,t,n),Pe=a,zt=o;break;case 0:case 11:case 14:case 15:El(2,n,t),it||El(4,n,t),$n(e,t,n);break;case 1:it||(Tn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Qh(n,t,a)),$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:it=(a=it)||n.memoizedState!==null,$n(e,t,n),it=a;break;default:$n(e,t,n)}}function tm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qa(e)}catch(n){ke(t,t.return,n)}}}function nm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qa(e)}catch(n){ke(t,t.return,n)}}function zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jh),t;default:throw Error(s(435,e.tag))}}function fs(e,t){var n=zy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=Py.bind(null,e,a);a.then(o,o)}})}function jt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,h=t,_=h;e:for(;_!==null;){switch(_.tag){case 27:if(Dl(_.type)){Pe=_.stateNode,zt=!1;break e}break;case 5:Pe=_.stateNode,zt=!1;break e;case 3:case 4:Pe=_.stateNode.containerInfo,zt=!0;break e}_=_.return}if(Pe===null)throw Error(s(160));em(c,h,o),Pe=null,zt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)lm(t,e),t=t.sibling}var yn=null;function lm(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),Ut(e),a&4&&(El(3,e,e.return),wi(3,e),El(5,e,e.return));break;case 1:jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&64&&Kn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=yn;if(jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ne]||c[tt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),St(c,a,n),c[tt]=e,me(c),a=c;break e;case"link":var h=lp("link","href",o).get(a+(n.href||""));if(h){for(var _=0;_<h.length;_++)if(c=h[_],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(_,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;case"meta":if(h=lp("meta","content",o).get(a+(n.content||""))){for(_=0;_<h.length;_++)if(c=h[_],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(_,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;default:throw Error(s(468,a))}c[tt]=e,me(c),a=c}e.stateNode=a}else ap(o,e.type,e.stateNode);else e.stateNode=np(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?ap(o,e.type,e.stateNode):np(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Vu(e,e.memoizedProps,n.memoizedProps)}break;case 27:jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),n!==null&&a&4&&Vu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),e.flags&32){o=e.stateNode;try{da(o,"")}catch(W){ke(e,e.return,W)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Vu(e,o,n!==null?n.memoizedProps:o)),a&1024&&(qu=!0);break;case 6:if(jt(t,e),Ut(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(W){ke(e,e.return,W)}}break;case 3:if(Os=null,o=yn,yn=As(t.containerInfo),jt(t,e),yn=o,Ut(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{qa(t.containerInfo)}catch(W){ke(e,e.return,W)}qu&&(qu=!1,am(e));break;case 4:a=yn,yn=As(e.stateNode.containerInfo),jt(t,e),Ut(e),yn=a;break;case 12:jt(t,e),Ut(e);break;case 31:jt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,fs(e,a)));break;case 13:jt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(hs=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,fs(e,a)));break;case 22:o=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,N=Kn,j=it;if(Kn=N||o,it=j||x,jt(t,e),it=j,Kn=N,Ut(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||x||Kn||it||Fl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){x=n=t;try{if(c=x.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{_=x.stateNode;var H=x.memoizedProps.style,k=H!=null&&H.hasOwnProperty("display")?H.display:null;_.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(W){ke(x,x.return,W)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=o?"":x.memoizedProps}catch(W){ke(x,x.return,W)}}}else if(t.tag===18){if(n===null){x=t;try{var M=x.stateNode;o?Qm(M,!0):Qm(x.stateNode,!1)}catch(W){ke(x,x.return,W)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,fs(e,n))));break;case 19:jt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,fs(e,a)));break;case 30:break;case 21:break;default:jt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Kh(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Gu(e);cs(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(da(h,""),n.flags&=-33);var _=Gu(e);cs(e,_,h);break;case 3:case 4:var x=n.stateNode.containerInfo,N=Gu(e);Iu(e,N,x);break;default:throw Error(s(161))}}catch(j){ke(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function am(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;am(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wh(e,t.alternate,t),t=t.sibling}function Fl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:El(4,t,t.return),Fl(t);break;case 1:Tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Qh(t,t.return,n),Fl(t);break;case 27:qi(t.stateNode);case 26:case 5:Tn(t,t.return),Fl(t);break;case 22:t.memoizedState===null&&Fl(t);break;case 30:Fl(t);break;default:Fl(t)}e=e.sibling}}function Wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Wn(o,c,n),wi(4,c);break;case 1:if(Wn(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){ke(a,a.return,N)}if(a=c,o=a.updateQueue,o!==null){var _=a.stateNode;try{var x=o.shared.hiddenCallbacks;if(x!==null)for(o.shared.hiddenCallbacks=null,o=0;o<x.length;o++)zd(x[o],_)}catch(N){ke(a,a.return,N)}}n&&h&64&&Xh(c),Mi(c,c.return);break;case 27:$h(c);case 26:case 5:Wn(o,c,n),n&&a===null&&h&4&&Zh(c),Mi(c,c.return);break;case 12:Wn(o,c,n);break;case 31:Wn(o,c,n),n&&h&4&&tm(o,c);break;case 13:Wn(o,c,n),n&&h&4&&nm(o,c);break;case 22:c.memoizedState===null&&Wn(o,c,n),Mi(c,c.return);break;case 30:break;default:Wn(o,c,n)}t=t.sibling}}function Pu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&bi(n))}function Yu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e))}function vn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)im(e,t,n,a),t=t.sibling}function im(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:vn(e,t,n,a),o&2048&&wi(9,t);break;case 1:vn(e,t,n,a);break;case 3:vn(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e)));break;case 12:if(o&2048){vn(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,_=c.onPostCommit;typeof _=="function"&&_(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){ke(t,t.return,x)}}else vn(e,t,n,a);break;case 31:vn(e,t,n,a);break;case 13:vn(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?vn(e,t,n,a):zi(e,t):c._visibility&2?vn(e,t,n,a):(c._visibility|=2,ka(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Pu(h,t);break;case 24:vn(e,t,n,a),o&2048&&Yu(t.alternate,t);break;default:vn(e,t,n,a)}}function ka(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,_=n,x=a,N=h.flags;switch(h.tag){case 0:case 11:case 15:ka(c,h,_,x,o),wi(8,h);break;case 23:break;case 22:var j=h.stateNode;h.memoizedState!==null?j._visibility&2?ka(c,h,_,x,o):zi(c,h):(j._visibility|=2,ka(c,h,_,x,o)),o&&N&2048&&Pu(h.alternate,h);break;case 24:ka(c,h,_,x,o),o&&N&2048&&Yu(h.alternate,h);break;default:ka(c,h,_,x,o)}t=t.sibling}}function zi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:zi(n,a),o&2048&&Pu(a.alternate,a);break;case 24:zi(n,a),o&2048&&Yu(a.alternate,a);break;default:zi(n,a)}t=t.sibling}}var ji=8192;function wa(e,t,n){if(e.subtreeFlags&ji)for(e=e.child;e!==null;)rm(e,t,n),e=e.sibling}function rm(e,t,n){switch(e.tag){case 26:wa(e,t,n),e.flags&ji&&e.memoizedState!==null&&Sv(n,yn,e.memoizedState,e.memoizedProps);break;case 5:wa(e,t,n);break;case 3:case 4:var a=yn;yn=As(e.stateNode.containerInfo),wa(e,t,n),yn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ji,ji=16777216,wa(e,t,n),ji=a):wa(e,t,n));break;default:wa(e,t,n)}}function sm(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 Ui(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,um(a,e)}sm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)om(e),e=e.sibling}function om(e){switch(e.tag){case 0:case 11:case 15:Ui(e),e.flags&2048&&El(9,e,e.return);break;case 3:Ui(e);break;case 12:Ui(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ds(e)):Ui(e);break;default:Ui(e)}}function ds(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,um(a,e)}sm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),ds(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ds(t));break;default:ds(t)}e=e.sibling}}function um(e,t){for(;ht!==null;){var n=ht;switch(n.tag){case 0:case 11:case 15:El(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:bi(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ht=a;else e:for(n=e;ht!==null;){a=ht;var o=a.sibling,c=a.return;if(Fh(a),a===n){ht=null;break e}if(o!==null){o.return=c,ht=o;break e}ht=c}}}var jy={getCacheForType:function(e){var t=vt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return vt(nt).controller.signal}},Uy=typeof WeakMap=="function"?WeakMap:Map,Ae=0,je=null,ge=null,ye=0,Ne=0,Qt=null,xl=!1,Ma=!1,Xu=!1,Fn=0,Ze=0,Tl=0,ea=0,Qu=0,Zt=0,za=0,Bi=null,Bt=null,Zu=!1,hs=0,cm=0,ms=1/0,ps=null,Al=null,ot=0,Rl=null,ja=null,el=0,Ku=0,$u=null,fm=null,Hi=0,Ju=null;function Kt(){return(Ae&2)!==0&&ye!==0?ye&-ye:z.T!==null?lc():ii()}function dm(){if(Zt===0)if((ye&536870912)===0||Se){var e=zn;zn<<=1,(zn&3932160)===0&&(zn=262144),Zt=e}else Zt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Zt}function Ht(e,t,n){(e===je&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(Ua(e,0),Ol(e,ye,Zt,!1)),fl(e,n),((Ae&2)===0||e!==je)&&(e===je&&((Ae&2)===0&&(ea|=n),Ze===4&&Ol(e,ye,Zt,!1)),An(e))}function hm(e,t,n){if((Ae&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Bl(e,t),o=a?Vy(e,t):Fu(e,t,!0),c=a;do{if(o===0){Ma&&!a&&Ol(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!By(n)){o=Fu(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var _=e;o=Bi;var x=_.current.memoizedState.isDehydrated;if(x&&(Ua(_,h).flags|=256),h=Fu(_,h,!1),h!==2){if(Xu&&!x){_.errorRecoveryDisabledLanes|=c,ea|=c,o=4;break e}c=Bt,Bt=o,c!==null&&(Bt===null?Bt=c:Bt.push.apply(Bt,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){Ua(e,0),Ol(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ol(a,t,Zt,!xl);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=hs+300-gt(),10<o)){if(Ol(a,t,Zt,!xl),ua(a,0,!0)!==0)break e;el=t,a.timeoutHandle=Pm(mm.bind(null,a,n,Bt,ps,Zu,t,Zt,ea,za,xl,c,"Throttled",-0,0),o);break e}mm(a,n,Bt,ps,Zu,t,Zt,ea,za,xl,c,null,-0,0)}}break}while(!0);An(e)}function mm(e,t,n,a,o,c,h,_,x,N,j,H,k,M){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hn},rm(t,c,H);var W=(c&62914560)===c?hs-gt():(c&4194048)===c?cm-gt():0;if(W=Ev(H,W),W!==null){el=c,e.cancelPendingCommit=W(Em.bind(null,e,t,c,n,a,o,h,_,x,j,H,null,k,M)),Ol(e,c,h,!N);return}}Em(e,t,c,n,a,o,h,_,x)}function By(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!qt(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ol(e,t,n,a){t&=~Qu,t&=~ea,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-et(o),h=1<<c;a[c]=-1,o&=~h}n!==0&&li(e,n,t)}function gs(){return(Ae&6)===0?(Vi(0),!1):!0}function Wu(){if(ge!==null){if(Ne===0)var e=ge.return;else e=ge,qn=Yl=null,mu(e),Oa=null,Ei=0,e=ge;for(;e!==null;)Yh(e.alternate,e),e=e.return;ge=null}}function Ua(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,av(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),el=0,Wu(),je=e,ge=n=Gn(e.current,null),ye=t,Ne=0,Qt=null,xl=!1,Ma=Bl(e,t),Xu=!1,za=Zt=Qu=ea=Tl=Ze=0,Bt=Bi=null,Zu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-et(a),c=1<<o;t|=e[o],a&=~c}return Fn=t,Ur(),n}function pm(e,t){ce=null,z.H=Li,t===Ra||t===Yr?(t=Nd(),Ne=3):t===nu?(t=Nd(),Ne=4):Ne=t===Lu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,ge===null&&(Ze=1,is(e,an(t,e.current)))}function gm(){var e=Yt.current;return e===null?!0:(ye&4194048)===ye?un===null:(ye&62914560)===ye||(ye&536870912)!==0?e===un:!1}function _m(){var e=z.H;return z.H=Li,e===null?Li:e}function ym(){var e=z.A;return z.A=jy,e}function _s(){Ze=4,xl||(ye&4194048)!==ye&&Yt.current!==null||(Ma=!0),(Tl&134217727)===0&&(ea&134217727)===0||je===null||Ol(je,ye,Zt,!1)}function Fu(e,t,n){var a=Ae;Ae|=2;var o=_m(),c=ym();(je!==e||ye!==t)&&(ps=null,Ua(e,t)),t=!1;var h=Ze;e:do try{if(Ne!==0&&ge!==null){var _=ge,x=Qt;switch(Ne){case 8:Wu(),h=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var N=Ne;if(Ne=0,Qt=null,Ba(e,_,x,N),n&&Ma){h=0;break e}break;default:N=Ne,Ne=0,Qt=null,Ba(e,_,x,N)}}Hy(),h=Ze;break}catch(j){pm(e,j)}while(!0);return t&&e.shellSuspendCounter++,qn=Yl=null,Ae=a,z.H=o,z.A=c,ge===null&&(je=null,ye=0,Ur()),h}function Hy(){for(;ge!==null;)vm(ge)}function Vy(e,t){var n=Ae;Ae|=2;var a=_m(),o=ym();je!==e||ye!==t?(ps=null,ms=gt()+500,Ua(e,t)):Ma=Bl(e,t);e:do try{if(Ne!==0&&ge!==null){t=ge;var c=Qt;t:switch(Ne){case 1:Ne=0,Qt=null,Ba(e,t,c,1);break;case 2:case 9:if(Dd(c)){Ne=0,Qt=null,bm(t);break}t=function(){Ne!==2&&Ne!==9||je!==e||(Ne=7),An(e)},c.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Dd(c)?(Ne=0,Qt=null,bm(t)):(Ne=0,Qt=null,Ba(e,t,c,7));break;case 5:var h=null;switch(ge.tag){case 26:h=ge.memoizedState;case 5:case 27:var _=ge;if(h?ip(h):_.stateNode.complete){Ne=0,Qt=null;var x=_.sibling;if(x!==null)ge=x;else{var N=_.return;N!==null?(ge=N,ys(N)):ge=null}break t}}Ne=0,Qt=null,Ba(e,t,c,5);break;case 6:Ne=0,Qt=null,Ba(e,t,c,6);break;case 8:Wu(),Ze=6;break e;default:throw Error(s(462))}}Gy();break}catch(j){pm(e,j)}while(!0);return qn=Yl=null,z.H=a,z.A=o,Ae=n,ge!==null?0:(je=null,ye=0,Ur(),Ze)}function Gy(){for(;ge!==null&&!vr();)vm(ge)}function vm(e){var t=qh(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?ys(e):ge=t}function bm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Uh(n,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=Uh(n,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:mu(t);default:Yh(n,t),t=ge=yd(t,Fn),t=qh(n,t,Fn)}e.memoizedProps=e.pendingProps,t===null?ys(e):ge=t}function Ba(e,t,n,a){qn=Yl=null,mu(t),Oa=null,Ei=0;var o=t.return;try{if(Dy(e,o,t,n,ye)){Ze=1,is(e,an(n,e.current)),ge=null;return}}catch(c){if(o!==null)throw ge=o,c;Ze=1,is(e,an(n,e.current)),ge=null;return}t.flags&32768?(Se||a===1?e=!0:Ma||(ye&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Sm(t,e)):ys(t)}function ys(e){var t=e;do{if((t.flags&32768)!==0){Sm(t,xl);return}e=t.return;var n=ky(t.alternate,t,Fn);if(n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ze===0&&(Ze=5)}function Sm(e,t){do{var n=wy(e.alternate,e);if(n!==null){n.flags&=32767,ge=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=n}while(e!==null);Ze=6,ge=null}function Em(e,t,n,a,o,c,h,_,x){e.cancelPendingCommit=null;do vs();while(ot!==0);if((Ae&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Go,ni(e,n,c,h,_,x),e===je&&(ge=je=null,ye=0),ja=t,Rl=e,el=n,Ku=c,$u=o,fm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Yy(cl,function(){return Om(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,o=K.p,K.p=2,h=Ae,Ae|=4;try{My(e,t,n)}finally{Ae=h,K.p=o,z.T=a}}ot=1,xm(),Tm(),Am()}}function xm(){if(ot===1){ot=0;var e=Rl,t=ja,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var a=K.p;K.p=2;var o=Ae;Ae|=4;try{lm(t,e);var c=fc,h=ud(e.containerInfo),_=c.focusedElem,x=c.selectionRange;if(h!==_&&_&&_.ownerDocument&&od(_.ownerDocument.documentElement,_)){if(x!==null&&jo(_)){var N=x.start,j=x.end;if(j===void 0&&(j=N),"selectionStart"in _)_.selectionStart=N,_.selectionEnd=Math.min(j,_.value.length);else{var H=_.ownerDocument||document,k=H&&H.defaultView||window;if(k.getSelection){var M=k.getSelection(),W=_.textContent.length,se=Math.min(x.start,W),ze=x.end===void 0?se:Math.min(x.end,W);!M.extend&&se>ze&&(h=ze,ze=se,se=h);var C=sd(_,se),O=sd(_,ze);if(C&&O&&(M.rangeCount!==1||M.anchorNode!==C.node||M.anchorOffset!==C.offset||M.focusNode!==O.node||M.focusOffset!==O.offset)){var L=H.createRange();L.setStart(C.node,C.offset),M.removeAllRanges(),se>ze?(M.addRange(L),M.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),M.addRange(L))}}}}for(H=[],M=_;M=M.parentNode;)M.nodeType===1&&H.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<H.length;_++){var U=H[_];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Ns=!!cc,fc=cc=null}finally{Ae=o,K.p=a,z.T=n}}e.current=t,ot=2}}function Tm(){if(ot===2){ot=0;var e=Rl,t=ja,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var a=K.p;K.p=2;var o=Ae;Ae|=4;try{Wh(e,t.alternate,t)}finally{Ae=o,K.p=a,z.T=n}}ot=3}}function Am(){if(ot===4||ot===3){ot=0,yo();var e=Rl,t=ja,n=el,a=fm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,ja=Rl=null,Rm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Al=null),gn(n),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(bn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=z.T,o=K.p,K.p=2,z.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var _=a[h];c(_.value,{componentStack:_.stack})}}finally{z.T=t,K.p=o}}(el&3)!==0&&vs(),An(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Ju?Hi++:(Hi=0,Ju=e):Hi=0,Vi(0)}}function Rm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bi(t)))}function vs(){return xm(),Tm(),Am(),Om()}function Om(){if(ot!==5)return!1;var e=Rl,t=Ku;Ku=0;var n=gn(el),a=z.T,o=K.p;try{K.p=32>n?32:n,z.T=null,n=$u,$u=null;var c=Rl,h=el;if(ot=0,ja=Rl=null,el=0,(Ae&6)!==0)throw Error(s(331));var _=Ae;if(Ae|=4,om(c.current),im(c,c.current,h,n),Ae=_,Vi(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(bn,c)}catch{}return!0}finally{K.p=o,z.T=a,Rm(e,t)}}function Cm(e,t,n){t=an(n,t),t=Du(e.stateNode,t,2),e=vl(e,t,2),e!==null&&(fl(e,2),An(e))}function ke(e,t,n){if(e.tag===3)Cm(e,e,n);else for(;t!==null;){if(t.tag===3){Cm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=an(n,e),n=Dh(2),a=vl(t,n,2),a!==null&&(Lh(n,a,t,e),fl(a,2),An(a));break}}t=t.return}}function ec(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Uy;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(Xu=!0,o.add(n),e=Iy.bind(null,e,t,n),t.then(e,e))}function Iy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,je===e&&(ye&n)===n&&(Ze===4||Ze===3&&(ye&62914560)===ye&&300>gt()-hs?(Ae&2)===0&&Ua(e,0):Qu|=n,za===ye&&(za=0)),An(e)}function Dm(e,t){t===0&&(t=jn()),e=Il(e,t),e!==null&&(fl(e,t),An(e))}function qy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dm(e,n)}function Py(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Dm(e,n)}function Yy(e,t){return ul(e,t)}var bs=null,Ha=null,tc=!1,Ss=!1,nc=!1,Cl=0;function An(e){e!==Ha&&e.next===null&&(Ha===null?bs=Ha=e:Ha=Ha.next=e),Ss=!0,tc||(tc=!0,Qy())}function Vi(e,t){if(!nc&&Ss){nc=!0;do for(var n=!1,a=bs;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var h=a.suspendedLanes,_=a.pingedLanes;c=(1<<31-et(42|e)+1)-1,c&=o&~(h&~_),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,wm(a,c))}else c=ye,c=ua(a,a===je?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(n=!0,wm(a,c));a=a.next}while(n);nc=!1}}function Xy(){Lm()}function Lm(){Ss=tc=!1;var e=0;Cl!==0&&lv()&&(e=Cl);for(var t=gt(),n=null,a=bs;a!==null;){var o=a.next,c=Nm(a,t);c===0?(a.next=null,n===null?bs=o:n.next=o,o===null&&(Ha=n)):(n=a,(e!==0||(c&3)!==0)&&(Ss=!0)),a=o}ot!==0&&ot!==5||Vi(e),Cl!==0&&(Cl=0)}function Nm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-et(c),_=1<<h,x=o[h];x===-1?((_&n)===0||(_&a)!==0)&&(o[h]=$e(_,t)):x<=t&&(e.expiredLanes|=_),c&=~_}if(t=je,n=ye,n=ua(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&sa(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Bl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&sa(a),gn(n)){case 2:case 8:n=Gt;break;case 32:n=cl;break;case 268435456:n=Ja;break;default:n=cl}return a=km.bind(null,e),n=ul(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&sa(a),e.callbackPriority=2,e.callbackNode=null,2}function km(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(vs()&&e.callbackNode!==n)return null;var a=ye;return a=ua(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(hm(e,a,t),Nm(e,gt()),e.callbackNode!=null&&e.callbackNode===n?km.bind(null,e):null)}function wm(e,t){if(vs())return null;hm(e,t,!0)}function Qy(){iv(function(){(Ae&6)!==0?ul(wn,Xy):Lm()})}function lc(){if(Cl===0){var e=Ta;e===0&&(e=Mn,Mn<<=1,(Mn&261888)===0&&(Mn=256)),Cl=e}return Cl}function Mm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Dr(""+e)}function zm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Zy(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Mm((o[qe]||null).action),h=a.submitter;h&&(t=(t=h[qe]||null)?Mm(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var _=new wr("action","action",null,a,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Cl!==0){var x=h?zm(o,h):new FormData(o);xu(n,{pending:!0,data:x,method:o.method,action:c},null,x)}}else typeof c=="function"&&(_.preventDefault(),x=h?zm(o,h):new FormData(o),xu(n,{pending:!0,data:x,method:o.method,action:c},c,x))},currentTarget:o}]})}}for(var ac=0;ac<Vo.length;ac++){var ic=Vo[ac],Ky=ic.toLowerCase(),$y=ic[0].toUpperCase()+ic.slice(1);_n(Ky,"on"+$y)}_n(dd,"onAnimationEnd"),_n(hd,"onAnimationIteration"),_n(md,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(dy,"onTransitionRun"),_n(hy,"onTransitionStart"),_n(my,"onTransitionCancel"),_n(pd,"onTransitionEnd"),Sn("onMouseEnter",["mouseout","mouseover"]),Sn("onMouseLeave",["mouseout","mouseover"]),Sn("onPointerEnter",["pointerout","pointerover"]),Sn("onPointerLeave",["pointerout","pointerover"]),wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gi="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(" "),Jy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gi));function jm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var h=a.length-1;0<=h;h--){var _=a[h],x=_.instance,N=_.currentTarget;if(_=_.listener,x!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=N;try{c(o)}catch(j){jr(j)}o.currentTarget=null,c=x}else for(h=0;h<a.length;h++){if(_=a[h],x=_.instance,N=_.currentTarget,_=_.listener,x!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=N;try{c(o)}catch(j){jr(j)}o.currentTarget=null,c=x}}}}function _e(e,t){var n=t[ca];n===void 0&&(n=t[ca]=new Set);var a=e+"__bubble";n.has(a)||(Um(t,e,2,!1),n.add(a))}function rc(e,t,n){var a=0;t&&(a|=4),Um(n,e,a,t)}var Es="_reactListening"+Math.random().toString(36).slice(2);function sc(e){if(!e[Es]){e[Es]=!0,_t.forEach(function(n){n!=="selectionchange"&&(Jy.has(n)||rc(n,!1,e),rc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Es]||(t[Es]=!0,rc("selectionchange",!1,t))}}function Um(e,t,n,a){switch(dp(t)){case 2:var o=Av;break;case 8:o=Rv;break;default:o=Ec}n=o.bind(null,t,n,e),o=void 0,!Oo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function oc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var _=a.stateNode.containerInfo;if(_===o)break;if(h===4)for(h=a.return;h!==null;){var x=h.tag;if((x===3||x===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;_!==null;){if(h=q(_),h===null)return;if(x=h.tag,x===5||x===6||x===26||x===27){a=c=h;continue e}_=_.parentNode}}a=a.return}If(function(){var N=c,j=Ao(n),H=[];e:{var k=gd.get(e);if(k!==void 0){var M=wr,W=e;switch(e){case"keypress":if(Nr(n)===0)break e;case"keydown":case"keyup":M=P_;break;case"focusin":W="focus",M=No;break;case"focusout":W="blur",M=No;break;case"beforeblur":case"afterblur":M=No;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=k_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Q_;break;case dd:case hd:case md:M=z_;break;case pd:M=K_;break;case"scroll":case"scrollend":M=L_;break;case"wheel":M=J_;break;case"copy":case"cut":case"paste":M=U_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Qf;break;case"toggle":case"beforetoggle":M=F_}var se=(t&4)!==0,ze=!se&&(e==="scroll"||e==="scrollend"),C=se?k!==null?k+"Capture":null:k;se=[];for(var O=N,L;O!==null;){var U=O;if(L=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||L===null||C===null||(U=ui(O,C),U!=null&&se.push(Ii(O,U,L))),ze)break;O=O.return}0<se.length&&(k=new M(k,W,null,n,j),H.push({event:k,listeners:se}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",k&&n!==To&&(W=n.relatedTarget||n.fromElement)&&(q(W)||W[Un]))break e;if((M||k)&&(k=j.window===j?j:(k=j.ownerDocument)?k.defaultView||k.parentWindow:window,M?(W=n.relatedTarget||n.toElement,M=N,W=W?q(W):null,W!==null&&(ze=f(W),se=W.tag,W!==ze||se!==5&&se!==27&&se!==6)&&(W=null)):(M=null,W=N),M!==W)){if(se=Yf,U="onMouseLeave",C="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(se=Qf,U="onPointerLeave",C="onPointerEnter",O="pointer"),ze=M==null?k:De(M),L=W==null?k:De(W),k=new se(U,O+"leave",M,n,j),k.target=ze,k.relatedTarget=L,U=null,q(j)===N&&(se=new se(C,O+"enter",W,n,j),se.target=L,se.relatedTarget=ze,U=se),ze=U,M&&W)t:{for(se=Wy,C=M,O=W,L=0,U=C;U;U=se(U))L++;U=0;for(var ie=O;ie;ie=se(ie))U++;for(;0<L-U;)C=se(C),L--;for(;0<U-L;)O=se(O),U--;for(;L--;){if(C===O||O!==null&&C===O.alternate){se=C;break t}C=se(C),O=se(O)}se=null}else se=null;M!==null&&Bm(H,k,M,se,!1),W!==null&&ze!==null&&Bm(H,ze,W,se,!0)}}e:{if(k=N?De(N):window,M=k.nodeName&&k.nodeName.toLowerCase(),M==="select"||M==="input"&&k.type==="file")var Ee=td;else if(Ff(k))if(nd)Ee=uy;else{Ee=sy;var le=ry}else M=k.nodeName,!M||M.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?N&&xo(N.elementType)&&(Ee=td):Ee=oy;if(Ee&&(Ee=Ee(e,N))){ed(H,Ee,n,j);break e}le&&le(e,k,N),e==="focusout"&&N&&k.type==="number"&&N.memoizedProps.value!=null&&Eo(k,"number",k.value)}switch(le=N?De(N):window,e){case"focusin":(Ff(le)||le.contentEditable==="true")&&(ga=le,Uo=N,_i=null);break;case"focusout":_i=Uo=ga=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,cd(H,n,j);break;case"selectionchange":if(fy)break;case"keydown":case"keyup":cd(H,n,j)}var de;if(wo)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else pa?Jf(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(Zf&&n.locale!=="ko"&&(pa||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&pa&&(de=qf()):(dl=j,Co="value"in dl?dl.value:dl.textContent,pa=!0)),le=xs(N,ve),0<le.length&&(ve=new Xf(ve,e,null,n,j),H.push({event:ve,listeners:le}),de?ve.data=de:(de=Wf(n),de!==null&&(ve.data=de)))),(de=ty?ny(e,n):ly(e,n))&&(ve=xs(N,"onBeforeInput"),0<ve.length&&(le=new Xf("onBeforeInput","beforeinput",null,n,j),H.push({event:le,listeners:ve}),le.data=de)),Zy(H,e,N,n,j)}jm(H,t)})}function Ii(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xs(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ui(e,n),o!=null&&a.unshift(Ii(e,o,c)),o=ui(e,t),o!=null&&a.push(Ii(e,o,c))),e.tag===3)return a;e=e.return}return[]}function Wy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bm(e,t,n,a,o){for(var c=t._reactName,h=[];n!==null&&n!==a;){var _=n,x=_.alternate,N=_.stateNode;if(_=_.tag,x!==null&&x===a)break;_!==5&&_!==26&&_!==27||N===null||(x=N,o?(N=ui(n,c),N!=null&&h.unshift(Ii(n,N,x))):o||(N=ui(n,c),N!=null&&h.push(Ii(n,N,x)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Fy=/\r\n?/g,ev=/\u0000|\uFFFD/g;function Hm(e){return(typeof e=="string"?e:""+e).replace(Fy,`
|
|
50
|
-
`).replace(ev,"")}function Vm(e,t){return t=Hm(t),Hm(e)===t}function Me(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||da(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&da(e,""+a);break;case"className":Or(e,"class",a);break;case"tabIndex":Or(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Or(e,n,a);break;case"style":Vf(e,a,c);break;case"data":if(t!=="object"){Or(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Dr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 c=="function"&&(n==="formAction"?(t!=="input"&&Me(e,t,"name",o.name,o,null),Me(e,t,"formEncType",o.formEncType,o,null),Me(e,t,"formMethod",o.formMethod,o,null),Me(e,t,"formTarget",o.formTarget,o,null)):(Me(e,t,"encType",o.encType,o,null),Me(e,t,"method",o.method,o,null),Me(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Dr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Hn);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Dr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Rr(e,"popover",a);break;case"xlinkActuate":Bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Rr(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=C_.get(n)||n,Rr(e,n,a))}}function uc(e,t,n,a,o,c){switch(n){case"style":Vf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?da(e,a):(typeof a=="number"||typeof a=="bigint")&&da(e,""+a);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!en.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[qe]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Rr(e,n,a)}}}function St(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,c,h,n,null)}}o&&Me(e,t,"srcSet",n.srcSet,n,null),a&&Me(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var _=c=h=o=null,x=null,N=null;for(a in n)if(n.hasOwnProperty(a)){var j=n[a];if(j!=null)switch(a){case"name":o=j;break;case"type":h=j;break;case"checked":x=j;break;case"defaultChecked":N=j;break;case"value":c=j;break;case"defaultValue":_=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:Me(e,t,a,j,n,null)}}jf(e,c,_,x,N,h,o,!1);return;case"select":_e("invalid",e),a=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(_=n[o],_!=null))switch(o){case"value":c=_;break;case"defaultValue":h=_;break;case"multiple":a=_;default:Me(e,t,o,_,n,null)}t=c,n=h,e.multiple=!!a,t!=null?fa(e,!!a,t,!1):n!=null&&fa(e,!!a,n,!0);return;case"textarea":_e("invalid",e),c=o=a=null;for(h in n)if(n.hasOwnProperty(h)&&(_=n[h],_!=null))switch(h){case"value":a=_;break;case"defaultValue":o=_;break;case"children":c=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:Me(e,t,h,_,n,null)}Bf(e,a,o,c);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,x,a,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(a=0;a<Gi.length;a++)_e(Gi[a],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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(N in n)if(n.hasOwnProperty(N)&&(a=n[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,N,a,n,null)}return;default:if(xo(t)){for(j in n)n.hasOwnProperty(j)&&(a=n[j],a!==void 0&&uc(e,t,j,a,n,void 0));return}}for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!=null&&Me(e,t,_,a,n,null))}function tv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,_=null,x=null,N=null,j=null;for(M in n){var H=n[M];if(n.hasOwnProperty(M)&&H!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":x=H;default:a.hasOwnProperty(M)||Me(e,t,M,null,a,H)}}for(var k in a){var M=a[k];if(H=n[k],a.hasOwnProperty(k)&&(M!=null||H!=null))switch(k){case"type":c=M;break;case"name":o=M;break;case"checked":N=M;break;case"defaultChecked":j=M;break;case"value":h=M;break;case"defaultValue":_=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:M!==H&&Me(e,t,k,M,a,H)}}So(e,h,_,x,N,j,c,o);return;case"select":M=h=_=k=null;for(c in n)if(x=n[c],n.hasOwnProperty(c)&&x!=null)switch(c){case"value":break;case"multiple":M=x;default:a.hasOwnProperty(c)||Me(e,t,c,null,a,x)}for(o in a)if(c=a[o],x=n[o],a.hasOwnProperty(o)&&(c!=null||x!=null))switch(o){case"value":k=c;break;case"defaultValue":_=c;break;case"multiple":h=c;default:c!==x&&Me(e,t,o,c,a,x)}t=_,n=h,a=M,k!=null?fa(e,!!n,k,!1):!!a!=!!n&&(t!=null?fa(e,!!n,t,!0):fa(e,!!n,n?[]:"",!1));return;case"textarea":M=k=null;for(_ in n)if(o=n[_],n.hasOwnProperty(_)&&o!=null&&!a.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Me(e,t,_,null,a,o)}for(h in a)if(o=a[h],c=n[h],a.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":k=o;break;case"defaultValue":M=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Me(e,t,h,o,a,c)}Uf(e,k,M);return;case"option":for(var W in n)if(k=n[W],n.hasOwnProperty(W)&&k!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Me(e,t,W,null,a,k)}for(x in a)if(k=a[x],M=n[x],a.hasOwnProperty(x)&&k!==M&&(k!=null||M!=null))switch(x){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Me(e,t,x,k,a,M)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var se in n)k=n[se],n.hasOwnProperty(se)&&k!=null&&!a.hasOwnProperty(se)&&Me(e,t,se,null,a,k);for(N in a)if(k=a[N],M=n[N],a.hasOwnProperty(N)&&k!==M&&(k!=null||M!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Me(e,t,N,k,a,M)}return;default:if(xo(t)){for(var ze in n)k=n[ze],n.hasOwnProperty(ze)&&k!==void 0&&!a.hasOwnProperty(ze)&&uc(e,t,ze,void 0,a,k);for(j in a)k=a[j],M=n[j],!a.hasOwnProperty(j)||k===M||k===void 0&&M===void 0||uc(e,t,j,k,a,M);return}}for(var C in n)k=n[C],n.hasOwnProperty(C)&&k!=null&&!a.hasOwnProperty(C)&&Me(e,t,C,null,a,k);for(H in a)k=a[H],M=n[H],!a.hasOwnProperty(H)||k===M||k==null&&M==null||Me(e,t,H,k,a,M)}function Gm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,h=o.initiatorType,_=o.duration;if(c&&_&&Gm(h)){for(h=0,_=o.responseEnd,a+=1;a<n.length;a++){var x=n[a],N=x.startTime;if(N>_)break;var j=x.transferSize,H=x.initiatorType;j&&Gm(H)&&(x=x.responseEnd,h+=j*(x<_?1:(_-N)/(x-N)))}if(--a,t+=8*(c+h)/(o.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 cc=null,fc=null;function Ts(e){return e.nodeType===9?e:e.ownerDocument}function Im(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 qm(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 dc(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 hc=null;function lv(){var e=window.event;return e&&e.type==="popstate"?e===hc?!1:(hc=e,!0):(hc=null,!1)}var Pm=typeof setTimeout=="function"?setTimeout:void 0,av=typeof clearTimeout=="function"?clearTimeout:void 0,Ym=typeof Promise=="function"?Promise:void 0,iv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ym<"u"?function(e){return Ym.resolve(null).then(e).catch(rv)}:Pm;function rv(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function Xm(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),qa(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")qi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,qi(n);for(var c=n.firstChild;c;){var h=c.nextSibling,_=c.nodeName;c[ne]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&qi(e.ownerDocument.body);n=o}while(n);qa(t)}function Qm(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function mc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":mc(n),R(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function sv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ne])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function ov(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function Zm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function pc(e){return e.data==="$?"||e.data==="$~"}function gc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function uv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function cn(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 _c=null;function Km(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function $m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Jm(e,t,n){switch(t=Ts(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function qi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);R(e)}var fn=new Map,Wm=new Set;function As(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var tl=K.d;K.d={f:cv,r:fv,D:dv,C:hv,L:mv,m:pv,X:_v,S:gv,M:yv};function cv(){var e=tl.f(),t=gs();return e||t}function fv(e){var t=$(e);t!==null&&t.tag===5&&t.type==="form"?ph(t):tl.r(e)}var Va=typeof document>"u"?null:document;function Fm(e,t,n){var a=Va;if(a&&typeof t=="string"&&t){var o=nn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Wm.has(o)||(Wm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),St(t,"link",e),me(t),a.head.appendChild(t)))}}function dv(e){tl.D(e),Fm("dns-prefetch",e,null)}function hv(e,t){tl.C(e,t),Fm("preconnect",e,t)}function mv(e,t,n){tl.L(e,t,n);var a=Va;if(a&&e&&t){var o='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+nn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+nn(n.imageSizes)+'"]')):o+='[href="'+nn(e)+'"]';var c=o;switch(t){case"style":c=Ga(e);break;case"script":c=Ia(e)}fn.has(c)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),fn.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Pi(c))||t==="script"&&a.querySelector(Yi(c))||(t=a.createElement("link"),St(t,"link",e),me(t),a.head.appendChild(t)))}}function pv(e,t){tl.m(e,t);var n=Va;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+nn(a)+'"][href="'+nn(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ia(e)}if(!fn.has(c)&&(e=b({rel:"modulepreload",href:e},t),fn.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Yi(c)))return}a=n.createElement("link"),St(a,"link",e),me(a),n.head.appendChild(a)}}}function gv(e,t,n){tl.S(e,t,n);var a=Va;if(a&&e){var o=Xe(a).hoistableStyles,c=Ga(e);t=t||"default";var h=o.get(c);if(!h){var _={loading:0,preload:null};if(h=a.querySelector(Pi(c)))_.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=fn.get(c))&&yc(e,n);var x=h=a.createElement("link");me(x),St(x,"link",e),x._p=new Promise(function(N,j){x.onload=N,x.onerror=j}),x.addEventListener("load",function(){_.loading|=1}),x.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Rs(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:_},o.set(c,h)}}}function _v(e,t){tl.X(e,t);var n=Va;if(n&&e){var a=Xe(n).hoistableScripts,o=Ia(e),c=a.get(o);c||(c=n.querySelector(Yi(o)),c||(e=b({src:e,async:!0},t),(t=fn.get(o))&&vc(e,t),c=n.createElement("script"),me(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function yv(e,t){tl.M(e,t);var n=Va;if(n&&e){var a=Xe(n).hoistableScripts,o=Ia(e),c=a.get(o);c||(c=n.querySelector(Yi(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=fn.get(o))&&vc(e,t),c=n.createElement("script"),me(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function ep(e,t,n,a){var o=(o=ue.current)?As(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ga(n.href),n=Xe(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ga(n.href);var c=Xe(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Pi(e)))&&!c._p&&(h.instance=c,h.state.loading=5),fn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},fn.set(e,n),c||vv(o,e,n,h.state))),t&&a===null)throw Error(s(528,""));return h}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ia(n),n=Xe(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ga(e){return'href="'+nn(e)+'"'}function Pi(e){return'link[rel="stylesheet"]['+e+"]"}function tp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function vv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),St(t,"link",n),me(t),e.head.appendChild(t))}function Ia(e){return'[src="'+nn(e)+'"]'}function Yi(e){return"script[async]"+e}function np(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+nn(n.href)+'"]');if(a)return t.instance=a,me(a),a;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),me(a),St(a,"style",o),Rs(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ga(n.href);var c=e.querySelector(Pi(o));if(c)return t.state.loading|=4,t.instance=c,me(c),c;a=tp(n),(o=fn.get(o))&&yc(a,o),c=(e.ownerDocument||e).createElement("link"),me(c);var h=c;return h._p=new Promise(function(_,x){h.onload=_,h.onerror=x}),St(c,"link",a),t.state.loading|=4,Rs(c,n.precedence,e),t.instance=c;case"script":return c=Ia(n.src),(o=e.querySelector(Yi(c)))?(t.instance=o,me(o),o):(a=n,(o=fn.get(c))&&(a=b({},n),vc(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),me(o),St(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Rs(a,n.precedence,e));return t.instance}function Rs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,h=0;h<a.length;h++){var _=a[h];if(_.dataset.precedence===t)c=_;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Os=null;function lp(e,t,n){if(Os===null){var a=new Map,o=Os=new Map;o.set(n,a)}else o=Os,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[ne]||c[tt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var _=a.get(h);_?_.push(c):a.set(h,[c])}}return a}function ap(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function bv(e,t,n){if(n===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 ip(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Sv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ga(a.href),c=t.querySelector(Pi(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,me(c);return}c=t.ownerDocument||t,a=tp(a),(o=fn.get(o))&&yc(a,o),c=c.createElement("link"),me(c);var h=c;h._p=new Promise(function(_,x){h.onload=_,h.onerror=x}),St(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Cs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var bc=0;function Ev(e,t){return e.stylesheets&&e.count===0&&Ls(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ls(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&bc===0&&(bc=62500*nv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ls(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>bc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Cs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ls(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ds=null;function Ls(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ds=new Map,t.forEach(xv,e),Ds=null,Cs.call(e))}function xv(e,t){if(!(t.state.loading&4)){var n=Ds.get(e);if(n)var a=n.get(null);else{n=new Map,Ds.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||a,c===a&&n.set(null,o),n.set(h,o),this.count++,a=Cs.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Xi={$$typeof:Y,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Tv(e,t,n,a,o,c,h,_,x){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=ti(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ti(0),this.hiddenUpdates=ti(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function rp(e,t,n,a,o,c,h,_,x,N,j,H){return e=new Tv(e,t,n,h,x,N,j,H,_),t=1,c===!0&&(t|=24),c=Pt(3,null,null,t),e.current=c,c.stateNode=e,t=Fo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},lu(c),e}function sp(e){return e?(e=va,e):va}function op(e,t,n,a,o,c){o=sp(o),a.context===null?a.context=o:a.pendingContext=o,a=yl(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=vl(e,a,t),n!==null&&(Ht(n,e,t),Ti(n,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sc(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=Il(e,67108864);t!==null&&Ht(t,e,67108864),Sc(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=Kt();t=kt(t);var n=Il(e,t);n!==null&&Ht(n,e,t),Sc(e,t)}}var Ns=!0;function Av(e,t,n,a){var o=z.T;z.T=null;var c=K.p;try{K.p=2,Ec(e,t,n,a)}finally{K.p=c,z.T=o}}function Rv(e,t,n,a){var o=z.T;z.T=null;var c=K.p;try{K.p=8,Ec(e,t,n,a)}finally{K.p=c,z.T=o}}function Ec(e,t,n,a){if(Ns){var o=xc(a);if(o===null)oc(e,t,a,ks,n),hp(e,a);else if(Cv(o,e,t,n,a))a.stopPropagation();else if(hp(e,a),t&4&&-1<Ov.indexOf(e)){for(;o!==null;){var c=$(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=It(c.pendingLanes);if(h!==0){var _=c;for(_.pendingLanes|=2,_.entangledLanes|=2;h;){var x=1<<31-et(h);_.entanglements[1]|=x,h&=~x}An(c),(Ae&6)===0&&(ms=gt()+500,Vi(0))}}break;case 31:case 13:_=Il(c,2),_!==null&&Ht(_,c,2),gs(),Sc(c,2)}if(c=xc(a),c===null&&oc(e,t,a,ks,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else oc(e,t,a,null,n)}}function xc(e){return e=Ao(e),Tc(e)}var ks=null;function Tc(e){if(ks=null,e=q(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ks=e,null}function dp(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(Ul()){case wn:return 2;case Gt:return 8;case cl:case br:return 32;case Ja:return 268435456;default:return 32}default:return 32}}var Ac=!1,Ll=null,Nl=null,kl=null,Qi=new Map,Zi=new Map,wl=[],Ov="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 hp(e,t){switch(e){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":Nl=null;break;case"mouseover":case"mouseout":kl=null;break;case"pointerover":case"pointerout":Qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zi.delete(t.pointerId)}}function Ki(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=$(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Cv(e,t,n,a,o){switch(t){case"focusin":return Ll=Ki(Ll,e,t,n,a,o),!0;case"dragenter":return Nl=Ki(Nl,e,t,n,a,o),!0;case"mouseover":return kl=Ki(kl,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return Qi.set(c,Ki(Qi.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Zi.set(c,Ki(Zi.get(c)||null,e,t,n,a,o)),!0}return!1}function mp(e){var t=q(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,ri(e.priority,function(){fp(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,ri(e.priority,function(){fp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ws(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);To=a,n.target.dispatchEvent(a),To=null}else return t=$(n),t!==null&&cp(t),e.blockedOn=n,!1;t.shift()}return!0}function pp(e,t,n){ws(e)&&n.delete(t)}function Dv(){Ac=!1,Ll!==null&&ws(Ll)&&(Ll=null),Nl!==null&&ws(Nl)&&(Nl=null),kl!==null&&ws(kl)&&(kl=null),Qi.forEach(pp),Zi.forEach(pp)}function Ms(e,t){e.blockedOn===t&&(e.blockedOn=null,Ac||(Ac=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Dv)))}var zs=null;function gp(e){zs!==e&&(zs=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){zs===e&&(zs=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Tc(a||n)===null)continue;break}var c=$(n);c!==null&&(e.splice(t,3),t-=3,xu(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function qa(e){function t(x){return Ms(x,e)}Ll!==null&&Ms(Ll,e),Nl!==null&&Ms(Nl,e),kl!==null&&Ms(kl,e),Qi.forEach(t),Zi.forEach(t);for(var n=0;n<wl.length;n++){var a=wl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wl.length&&(n=wl[0],n.blockedOn===null);)mp(n),n.blockedOn===null&&wl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],h=o[qe]||null;if(typeof c=="function")h||gp(n);else if(h){var _=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[qe]||null)_=h.formAction;else if(Tc(o)!==null)continue}else _=h.action;typeof _=="function"?n[a+1]=_:(n.splice(a,3),a-=3),gp(n)}}}function _p(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Rc(e){this._internalRoot=e}js.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Kt();op(n,a,e,t,null,null)},js.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),gs(),t[Un]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=ii();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wl.length&&t!==0&&t<wl[n].priority;n++);wl.splice(n,0,e),n===0&&mp(e)}};var yp=l.version;if(yp!=="19.2.4")throw Error(s(527,yp,"19.2.4"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Lv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Us.isDisabled&&Us.supportsFiber)try{bn=Us.inject(Lv),ft=Us}catch{}}return Ji.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,a="",o=Ah,c=Rh,h=Oh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=rp(e,1,!1,null,null,n,a,null,o,c,h,_p),e[Un]=t.current,sc(e),new Rc(t)},Ji.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var a=!1,o="",c=Ah,h=Rh,_=Oh,x=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(_=n.onRecoverableError),n.formState!==void 0&&(x=n.formState)),t=rp(e,1,!0,t,n??null,a,o,x,c,h,_,_p),t.context=sp(null),n=t.current,a=Kt(),a=kt(a),o=yl(a),o.callback=null,vl(n,o,a),n=a,t.current.lanes=n,fl(t,n),An(t),e[Un]=t.current,sc(e),new js(t)},Ji.version="19.2.4",Ji}var Cp;function Iv(){if(Cp)return Dc.exports;Cp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Dc.exports=Gv(),Dc.exports}var qv=Iv();let Pv=0;function Dp(){return`req-${Date.now()}-${++Pv}`}class Yv{constructor(){w(this,"ws",null);w(this,"pending",new Map);w(this,"sendQueue",[]);w(this,"pushHandlers",new Set);w(this,"connectionHandlers",new Set);w(this,"activeSubscriptions",new Map);w(this,"reconnectDelay",500);w(this,"url");w(this,"disposed",!1);const l=location.protocol==="https:"?"wss:":"ws:";this.url=`${l}//${location.host}/ws`}connect(){this.disposed||(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{var l;this.reconnectDelay=500;for(const r of this.sendQueue)(l=this.ws)==null||l.send(r);this.sendQueue=[];for(const[,r]of this.activeSubscriptions)this.rawSend("subscribe-list",r);for(const r of this.connectionHandlers)r(!0)},this.ws.onclose=()=>{for(const l of this.connectionHandlers)l(!1);this.scheduleReconnect()},this.ws.onmessage=l=>{this.handleMessage(JSON.parse(l.data))})}dispose(){var l;this.disposed=!0,(l=this.ws)==null||l.close(),this.ws=null;for(const[,r]of this.pending)r.reject(new Error("disposed"));this.pending.clear(),this.sendQueue=[]}scheduleReconnect(){if(!this.disposed){setTimeout(()=>this.connect(),this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*2,1e4);for(const[l,r]of this.pending)r.reject(new Error("disconnected")),this.pending.delete(l)}}handleMessage(l){var s;if(l.type==="snapshot"||l.type==="upsert"||l.type==="delete"){const u=l.payload;for(const f of this.pushHandlers)f(u);return}const r=this.pending.get(l.id);r&&(this.pending.delete(l.id),l.ok?r.resolve(l.payload):r.reject(new Error(((s=l.error)==null?void 0:s.message)||"unknown error")))}rawSend(l,r){var d;const u={id:Dp(),type:l,payload:r},f=JSON.stringify(u);((d=this.ws)==null?void 0:d.readyState)===WebSocket.OPEN?this.ws.send(f):this.sendQueue.push(f)}send(l,r){return new Promise((s,u)=>{var p;const f=Dp();this.pending.set(f,{resolve:s,reject:u});const g=JSON.stringify({id:f,type:l,payload:r});((p=this.ws)==null?void 0:p.readyState)===WebSocket.OPEN?this.ws.send(g):this.sendQueue.push(g)})}onConnection(l){return this.connectionHandlers.add(l),()=>this.connectionHandlers.delete(l)}onPush(l){return this.pushHandlers.add(l),()=>this.pushHandlers.delete(l)}subscribe(l){return this.activeSubscriptions.set(l.id,l),this.send("subscribe-list",l)}unsubscribe(l){return this.activeSubscriptions.delete(l),this.send("unsubscribe-list",{id:l})}updateStatus(l){return this.send("update-status",l)}editText(l){return this.send("edit-text",l)}createIssue(l){return this.send("create-issue",l)}updatePriority(l,r){return this.send("update-priority",{id:l,priority:r})}updateAssignee(l,r){return this.send("update-assignee",{id:l,assignee:r})}addLabel(l,r){return this.send("label-add",{id:l,label:r})}removeLabel(l,r){return this.send("label-remove",{id:l,label:r})}deleteIssue(l){return this.send("delete-issue",{id:l})}getComments(l){return this.send("get-comments",{id:l})}addComment(l,r){return this.send("add-comment",{id:l,text:r})}addDep(l,r){return this.send("dep-add",{a:l,b:r})}removeDep(l,r){return this.send("dep-remove",{a:l,b:r})}listWorkspaces(){return this.send("list-workspaces")}getWorkspace(){return this.send("get-workspace")}setWorkspace(l,r){return this.send("set-workspace",{path:l,database:r})}}const vg=F.createContext(null);function Xv({children:i}){const l=F.useRef(null);return l.current||(l.current=new Yv,l.current.connect()),S.jsx(vg.Provider,{value:l.current,children:i})}function ff(){const i=F.useContext(vg);if(!i)throw new Error("useWs must be inside WsProvider");return i}function Qv(){const[i,l]=F.useState(window.location.hash||"#/board");return F.useEffect(()=>{const r=()=>l(window.location.hash||"#/board");return window.addEventListener("hashchange",r),()=>window.removeEventListener("hashchange",r)},[]),i}function Lp({href:i,label:l,icon:r,active:s}){return S.jsxs("a",{href:i,className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",style:{background:s?"var(--bg-hover)":"transparent",color:s?"var(--text-primary)":"var(--text-secondary)",fontWeight:s?500:400},onMouseEnter:u=>{s||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{s||(u.currentTarget.style.background="transparent")},children:[r,l]})}const Zv=()=>S.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[S.jsx("rect",{x:"1",y:"1",width:"5",height:"6",rx:"1"}),S.jsx("rect",{x:"10",y:"1",width:"5",height:"9",rx:"1"}),S.jsx("rect",{x:"1",y:"9",width:"5",height:"6",rx:"1"}),S.jsx("rect",{x:"10",y:"12",width:"5",height:"3",rx:"1"})]}),Kv=()=>S.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[S.jsx("line",{x1:"5",y1:"4",x2:"14",y2:"4"}),S.jsx("line",{x1:"5",y1:"8",x2:"14",y2:"8"}),S.jsx("line",{x1:"5",y1:"12",x2:"14",y2:"12"}),S.jsx("circle",{cx:"2",cy:"4",r:"0.75",fill:"currentColor",stroke:"none"}),S.jsx("circle",{cx:"2",cy:"8",r:"0.75",fill:"currentColor",stroke:"none"}),S.jsx("circle",{cx:"2",cy:"12",r:"0.75",fill:"currentColor",stroke:"none"})]});function $v({children:i}){const l=Qv(),r=ff(),[s,u]=F.useState("");return F.useEffect(()=>{r.getWorkspace().then(f=>{if(f!=null&&f.db_path){const d=f.db_path.split("/").filter(Boolean),g=d.lastIndexOf(".beads");if(g>0){u(d[g-1]);return}}f!=null&&f.root_dir&&u(f.root_dir.split("/").pop()||"")}).catch(()=>{})},[r]),S.jsxs("div",{className:"flex h-screen",style:{background:"var(--bg-base)"},children:[S.jsxs("nav",{className:"flex flex-col",style:{width:"200px",borderRight:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[S.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-5",children:[S.jsx("div",{className:"flex items-center justify-center rounded-md",style:{width:"28px",height:"28px",background:"var(--accent)"},children:S.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"white",children:[S.jsx("circle",{cx:"7",cy:"4",r:"2.5"}),S.jsx("circle",{cx:"4",cy:"10",r:"2.5"}),S.jsx("circle",{cx:"10",cy:"10",r:"2.5"})]})}),S.jsx("span",{className:"font-bold",style:{fontSize:"16px",color:"var(--text-primary)"},children:"Beads"})]}),s&&S.jsx("div",{className:"px-4 pb-3 mb-1",style:{borderBottom:"1px solid var(--border-subtle)"},children:S.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:s})}),S.jsxs("div",{className:"px-2 space-y-0.5",children:[S.jsx(Lp,{href:"#/board",label:"Board",icon:S.jsx(Zv,{}),active:l.startsWith("#/board")||l===""||l==="#/"||l==="#"}),S.jsx(Lp,{href:"#/list",label:"List",icon:S.jsx(Kv,{}),active:l.startsWith("#/list")})]}),S.jsx("div",{className:"flex-1"}),S.jsxs("div",{className:"mx-3 mb-3 px-3 py-2.5 rounded-md flex items-center gap-2.5",style:{border:"1px solid var(--border-subtle)"},children:[S.jsx("div",{className:"flex items-center justify-center rounded-full text-xs font-bold shrink-0",style:{width:"28px",height:"28px",background:"var(--accent)",color:"white"},children:"R"}),S.jsxs("div",{children:[S.jsx("div",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:"Rustam"}),S.jsx("div",{style:{fontSize:"11px",color:"var(--text-tertiary)"},children:"Developer"})]})]})]}),S.jsx("main",{className:"flex-1 overflow-auto",children:i(l)})]})}const Np=new WeakMap;function bg(i){let l=Np.get(i);return l||(l=new Map,Np.set(i,l)),l}function Sg(i,l){return l?`${i}:${JSON.stringify(l)}`:i}function Jv(i,l,r){const s=bg(i),u=Sg(l,r);let f=s.get(u);if(f)return f.refCount++,f;const d=`sub-${l}-${Date.now()}`;f={refCount:1,subId:d,items:new Map,listeners:new Set,loading:!0,total:0,cleanupPush:null};const g=()=>{for(const p of f.listeners)p()};return f.cleanupPush=i.onPush(p=>{if(p.id===d)if(p.type==="snapshot"){f.items=new Map;for(const m of p.issues)f.items.set(m.id,m);f.loading=!1,typeof p.total=="number"?f.total=p.total:f.total=p.issues.length,g()}else p.type==="upsert"?(f.items.set(p.issue.id,p.issue),g()):p.type==="delete"&&(f.items.delete(p.issue_id),g())}),i.subscribe({id:d,type:l,params:r}),s.set(u,f),f}function Wv(i,l,r){var d;const s=bg(i),u=Sg(l,r),f=s.get(u);f&&(f.refCount--,f.refCount<=0&&((d=f.cleanupPush)==null||d.call(f),i.unsubscribe(f.subId),s.delete(u)))}function Xa(i,l){const r=ff(),s=l?JSON.stringify(l):"",u=F.useRef(null),f=F.useRef(!1),[d,g]=F.useState([]),[p,m]=F.useState(0);F.useEffect(()=>{const I=Jv(r,i,l);return u.current=I,()=>{Wv(r,i,l),u.current=null}},[r,i,s]);const[y,b]=F.useState([]),[E,A]=F.useState(!0),[D,B]=F.useState(0);F.useEffect(()=>{const I=u.current;if(!I)return;const Y=Array.from(I.items.values());b(Y),A(I.loading),B(I.total),!I.loading&&Y.length>0&&(f.current=!0,g(Y),m(I.total));const Z=()=>{const ae=Array.from(I.items.values());b(ae),A(I.loading),B(I.total),!I.loading&&ae.length>0&&(f.current=!0,g(ae),m(I.total))};return I.listeners.add(Z),()=>{I.listeners.delete(Z)}},[r,i,s]);const P=E&&!f.current,V=E&&f.current;return{issues:V?d:y,loading:P,refreshing:V,total:V?p:D}}const kp={0:{bg:"rgba(239,68,68,0.12)",text:"#DC2626"},1:{bg:"rgba(249,115,22,0.12)",text:"#EA580C"},2:{bg:"rgba(59,130,246,0.12)",text:"#2563EB"},3:{bg:"rgba(34,197,94,0.12)",text:"#16A34A"},4:{bg:"rgba(156,163,175,0.1)",text:"#9CA3AF"}};function df({priority:i}){const l=kp[i]||kp[4];return S.jsxs("span",{className:"inline-flex items-center justify-center font-mono font-bold",style:{fontSize:"11px",lineHeight:1,padding:"3px 8px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:["P",i]})}const Fv={epic:{bg:"rgba(124,58,237,0.1)",text:"#7C3AED"},feature:{bg:"rgba(99,102,241,0.1)",text:"#6366F1"},bug:{bg:"rgba(239,68,68,0.1)",text:"#DC2626"},task:{bg:"rgba(22,163,74,0.1)",text:"#16A34A"},chore:{bg:"rgba(120,113,108,0.1)",text:"#78716C"}},e0={bg:"rgba(120,113,108,0.1)",text:"#78716C"};function hf({type:i}){const l=Fv[i]||e0;return S.jsx("span",{className:"inline-flex items-center px-2 py-0.5 font-semibold capitalize",style:{fontSize:"11px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:i})}const wp=["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#64B5F6","#4FC3F7","#4DD0E1","#4DB6AC","#81C784","#AED581","#FFB74D"];function mf(i){const l=i.trim().split(/\s+/);return l.length>=2?(l[0][0]+l[l.length-1][0]).toUpperCase():i.slice(0,2).toUpperCase()}function pf(i){let l=0;for(let r=0;r<i.length;r++)l=i.charCodeAt(r)+((l<<5)-l);return wp[Math.abs(l)%wp.length]}const t0={epic:"#7C3AED",feature:"#6366F1",bug:"#EF4444",task:"#16A34A",chore:"#78716C"};function n0({issue:i,onClick:l,dimmed:r=!1}){const s=t0[i.issue_type]??"#78716C";return S.jsx("button",{onClick:l,className:`issue-card group w-full text-left relative cursor-pointer ${r?"issue-card--dimmed":""}`,style:{borderLeft:`3px solid ${s}`},children:S.jsxs("div",{className:"px-3.5 py-3",children:[S.jsx("div",{className:"mb-1",children:S.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text-tertiary)"},children:i.id})}),S.jsx("p",{className:"text-sm font-medium line-clamp-2 mb-2.5",style:{color:"var(--text-primary)"},children:i.title}),S.jsxs("div",{className:"flex items-center gap-1.5",children:[S.jsx(hf,{type:i.issue_type}),S.jsx(df,{priority:i.priority}),S.jsx("div",{className:"flex-1"}),i.assignee&&S.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:pf(i.assignee),color:"var(--text-inverse)"},title:i.assignee,children:mf(i.assignee)})]})]})})}const Mp=20,l0={open:"var(--status-open)",in_progress:"var(--status-in-progress)",blocked:"var(--status-blocked)",closed:"var(--status-closed)"};function Bs({title:i,subscriptionType:l,statusKey:r,onCardClick:s,isClosed:u=!1}){const[f,d]=F.useState(Mp),g=F.useMemo(()=>({limit:f,offset:0}),[f]),{issues:p,loading:m,total:y}=Xa(l,g),b=F.useRef(null),[E,A]=F.useState(!1),D=y>p.length,B=y-p.length,P=l0[r]??"var(--text-tertiary)";return F.useEffect(()=>{const V=b.current;if(!V)return;const I=()=>A(V.scrollHeight>V.clientHeight);I();const Y=new ResizeObserver(I);return Y.observe(V),()=>Y.disconnect()},[p.length]),S.jsxs("div",{className:"flex-1 min-w-[280px] max-w-[360px] flex flex-col self-start",children:[S.jsxs("div",{className:"flex items-center gap-2.5 px-1 pb-3 mb-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[S.jsx("div",{className:"rounded-full shrink-0",style:{width:"10px",height:"10px",backgroundColor:P,boxShadow:`0 0 0 3px ${P}33`}}),S.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:i}),S.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full ml-auto",style:{backgroundColor:"rgba(0,0,0,0.05)",color:"var(--text-tertiary)",fontSize:"11px"},children:m?"…":u&&y>p.length?`${p.length} / ${y}`:y})]}),S.jsxs("div",{ref:b,className:"space-y-2 overflow-y-auto flex-1 pr-1 relative",style:{maxHeight:"calc(100vh - 160px)",maskImage:E?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0,WebkitMaskImage:E?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0},children:[m&&p.length===0&&S.jsx("div",{className:"py-8 text-center",children:S.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"Loading…"})}),!m&&p.length===0&&S.jsx("div",{className:"py-8 text-center",style:{border:"2px dashed var(--border-default)",borderRadius:"var(--radius-md)",minHeight:"100px",display:"flex",alignItems:"center",justifyContent:"center"},children:S.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"No items"})}),p.map(V=>S.jsx(n0,{issue:V,onClick:()=>s(V.id),dimmed:u},V.id)),D&&S.jsxs("button",{onClick:()=>d(V=>V+Mp),className:"w-full text-xs py-2",style:{color:"var(--text-secondary)",transition:"color 120ms ease"},onMouseEnter:V=>{V.currentTarget.style.color="var(--accent)"},onMouseLeave:V=>{V.currentTarget.style.color="var(--text-secondary)"},children:["Show ",B," more…"]})]})]})}function a0(){const{total:i}=Xa("all-issues",{limit:1,offset:0}),{total:l}=Xa("epics",{limit:1,offset:0}),r=s=>{window.location.hash=`#/detail/${s}`};return S.jsxs("div",{className:"p-6",style:{background:"var(--bg-base)"},children:[S.jsxs("div",{className:"mb-6",children:[S.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Board"}),S.jsxs("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:[i," issues across ",l," epics"]})]}),S.jsxs("div",{className:"flex gap-4 overflow-x-auto items-start",children:[S.jsx(Bs,{title:"Open",subscriptionType:"ready-issues",statusKey:"open",onCardClick:r}),S.jsx(Bs,{title:"In Progress",subscriptionType:"in-progress-issues",statusKey:"in_progress",onCardClick:r}),S.jsx(Bs,{title:"Blocked",subscriptionType:"blocked-issues",statusKey:"blocked",onCardClick:r}),S.jsx(Bs,{title:"Closed",subscriptionType:"closed-issues",statusKey:"closed",onCardClick:r,isClosed:!0})]})]})}const i0={open:{dot:"var(--status-open)",bg:"rgba(59,130,246,0.08)",text:"#2563EB",border:"rgba(59,130,246,0.2)",label:"Open"},in_progress:{dot:"var(--status-in-progress)",bg:"rgba(245,158,11,0.08)",text:"#D97706",border:"rgba(245,158,11,0.2)",label:"In Progress"},blocked:{dot:"var(--status-blocked)",bg:"rgba(239,68,68,0.08)",text:"#DC2626",border:"rgba(239,68,68,0.2)",label:"Blocked"},closed:{dot:"var(--status-closed)",bg:"rgba(34,197,94,0.08)",text:"#16A34A",border:"rgba(34,197,94,0.2)",label:"Closed"}},r0={dot:"#9CA3AF",bg:"rgba(156,163,175,0.08)",text:"#6B7280",border:"rgba(156,163,175,0.2)",label:""};function cr({status:i}){const l=i0[i]||r0;return S.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 font-semibold",style:{fontSize:"11px",borderRadius:"20px",backgroundColor:l.bg,color:l.text,border:`1px solid ${l.border}`},children:[S.jsx("span",{className:"rounded-full shrink-0",style:{width:"6px",height:"6px",backgroundColor:l.dot}}),l.label||i]})}const Hs=20,s0=()=>S.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[S.jsx("circle",{cx:"7",cy:"7",r:"5"}),S.jsx("line",{x1:"11",y1:"11",x2:"14",y2:"14"})]});function o0(){return S.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[S.jsx("div",{className:"w-36 h-3 rounded skeleton-shimmer"}),S.jsx("div",{className:"w-20 h-5 rounded-full skeleton-shimmer"}),S.jsx("div",{className:"w-8 h-5 rounded skeleton-shimmer"}),S.jsx("div",{className:"flex-1 h-3 rounded skeleton-shimmer"}),S.jsx("div",{className:"w-14 h-5 rounded skeleton-shimmer"}),S.jsx("div",{className:"w-24 h-5 rounded skeleton-shimmer"}),S.jsx("div",{className:"w-16 h-3 rounded skeleton-shimmer"})]})}function u0(){return S.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{animation:"spin 0.8s linear infinite"},children:[S.jsx("circle",{cx:"10",cy:"10",r:"8",stroke:"var(--border-default)",strokeWidth:"2"}),S.jsx("path",{d:"M10 2a8 8 0 0 1 8 8",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round"})]})}function c0({search:i,setSearch:l,statusFilter:r,setStatusFilter:s,typeFilter:u,setTypeFilter:f}){return S.jsxs("div",{className:"flex items-center gap-3 mb-4 px-4 py-3 rounded-lg",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-sm)"},children:[S.jsxs("div",{className:"relative flex-1 max-w-xs",children:[S.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--text-tertiary)"},children:S.jsx(s0,{})}),S.jsx("input",{type:"text",value:i,onChange:d=>l(d.target.value),placeholder:"Search issues...",className:"w-full pl-9 pr-3 py-1.5 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:d=>{d.currentTarget.style.borderColor="var(--accent)"},onBlur:d=>{d.currentTarget.style.borderColor="var(--border-default)"}})]}),S.jsxs("select",{value:r,onChange:d=>s(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[S.jsx("option",{value:"all",children:"All statuses"}),S.jsx("option",{value:"open",children:"Open"}),S.jsx("option",{value:"in_progress",children:"In Progress"}),S.jsx("option",{value:"blocked",children:"Blocked"}),S.jsx("option",{value:"closed",children:"Closed"})]}),S.jsxs("select",{value:u,onChange:d=>f(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[S.jsx("option",{value:"all",children:"All types"}),S.jsx("option",{value:"epic",children:"Epic"}),S.jsx("option",{value:"feature",children:"Feature"}),S.jsx("option",{value:"task",children:"Task"}),S.jsx("option",{value:"bug",children:"Bug"}),S.jsx("option",{value:"chore",children:"Chore"})]})]})}function f0({page:i,totalPages:l,total:r,pageSize:s,onPageChange:u}){const f=i*s+1,d=Math.min((i+1)*s,r);return S.jsxs("div",{className:"flex items-center justify-between px-1 py-2 text-xs",style:{color:"var(--text-tertiary)"},children:[S.jsx("span",{children:r>0?`${f}–${d} of ${r}`:"0 issues"}),S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsx("button",{disabled:i===0,onClick:()=>u(0),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"««"}),S.jsx("button",{disabled:i===0,onClick:()=>u(i-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"«"}),S.jsxs("span",{className:"px-2",children:[i+1," / ",l||1]}),S.jsx("button",{disabled:i>=l-1,onClick:()=>u(i+1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»"}),S.jsx("button",{disabled:i>=l-1,onClick:()=>u(l-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»»"})]})]})}function d0({issue:i,selected:l,onClick:r}){const s=new Date(i.updated_at).toLocaleDateString();return S.jsxs("button",{onClick:r,className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors",style:{borderBottom:"1px solid var(--border-subtle)",background:l?"var(--bg-hover)":"transparent"},onMouseEnter:u=>{l||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{l||(u.currentTarget.style.background="transparent")},children:[S.jsx("span",{className:"font-mono text-xs w-36 shrink-0 text-left",style:{color:"var(--text-tertiary)"},children:i.id}),S.jsx("span",{className:"w-28 shrink-0",children:S.jsx(cr,{status:i.status})}),S.jsx("span",{className:"w-12 shrink-0",children:S.jsx(df,{priority:i.priority})}),S.jsxs("span",{className:"flex-1 text-left truncate",style:{color:"var(--text-primary)"},children:[i.title,i.issue_type==="epic"&&i.total_children!=null&&S.jsxs("span",{className:"ml-2 text-xs px-1.5 py-0.5 rounded",style:{background:"rgba(0,0,0,0.04)",color:"var(--text-tertiary)"},children:[i.total_children," sub"]})]}),S.jsx("span",{className:"w-16 shrink-0",children:S.jsx(hf,{type:i.issue_type})}),S.jsx("span",{className:"w-28 shrink-0 flex items-center gap-1.5 justify-end",children:i.assignee?S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"flex items-center justify-center rounded-full text-[9px] font-bold shrink-0",style:{width:"20px",height:"20px",backgroundColor:pf(i.assignee),color:"var(--text-inverse)"},children:mf(i.assignee)}),S.jsx("span",{className:"text-xs truncate",style:{color:"var(--text-secondary)"},children:i.assignee})]}):S.jsx("span",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"—"})}),S.jsx("span",{className:"text-xs w-20 text-right shrink-0",style:{color:"var(--text-tertiary)"},children:s})]})}function h0(){const[i,l]=F.useState(""),[r,s]=F.useState(""),[u,f]=F.useState("all"),[d,g]=F.useState("all"),[p,m]=F.useState(0),[y,b]=F.useState(-1),E=F.useRef(null);F.useEffect(()=>{const Z=setTimeout(()=>s(i),300);return()=>clearTimeout(Z)},[i]);const A=F.useMemo(()=>{const Z={};return r.trim()&&(Z.q=r.trim()),u!=="all"&&(Z.status=u),d!=="all"&&(Z.type=d),Z},[r,u,d]),{issues:D,loading:B,refreshing:P,total:V}=Xa("search-issues",A),I=Math.ceil(V/Hs),Y=F.useMemo(()=>{const Z=p*Hs;return D.slice(Z,Z+Hs)},[D,p]);return F.useEffect(()=>{m(0),b(-1)},[u,d,i]),F.useEffect(()=>{b(-1)},[p]),F.useEffect(()=>{const Z=ae=>{ae.target instanceof HTMLInputElement||ae.target instanceof HTMLTextAreaElement||ae.target instanceof HTMLSelectElement||(ae.key==="j"&&b(fe=>Math.min(fe+1,Y.length-1)),ae.key==="k"&&b(fe=>Math.max(fe-1,-1)),ae.key==="Enter"&&Y[y]&&(window.location.hash=`#/detail/${Y[y].id}`))};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[Y,y]),S.jsxs("div",{className:"p-6 h-full flex flex-col",style:{background:"var(--bg-base)"},children:[S.jsxs("div",{className:"mb-4",children:[S.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Issues"}),S.jsx("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:B?" ":`${V} issues`})]}),S.jsx(c0,{search:i,setSearch:l,statusFilter:u,setStatusFilter:f,typeFilter:d,setTypeFilter:g}),S.jsx("div",{className:"rounded-t-lg overflow-hidden",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderBottom:"none",boxShadow:"var(--shadow-card)"},children:S.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-tertiary)",borderBottom:"1px solid var(--border-subtle)",fontSize:"11px"},children:[S.jsx("span",{className:"w-36 shrink-0",children:"ID"}),S.jsx("span",{className:"w-28 shrink-0",children:"Status"}),S.jsx("span",{className:"w-12 shrink-0",children:"Priority"}),S.jsx("span",{className:"flex-1",children:"Title"}),S.jsx("span",{className:"w-16 shrink-0",children:"Type"}),S.jsx("span",{className:"w-28 shrink-0 text-right",children:"Assignee"}),S.jsx("span",{className:"w-20 shrink-0 text-right",children:"Date"})]})}),S.jsxs("div",{ref:E,className:"flex-1 overflow-y-auto rounded-b-lg relative",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderTop:"none",boxShadow:"var(--shadow-card)"},children:[B&&S.jsx(S.Fragment,{children:Array.from({length:8}).map((Z,ae)=>S.jsx(o0,{},ae))}),P&&S.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center",style:{background:"rgba(253,251,247,0.6)",backdropFilter:"blur(1px)"},children:S.jsx(u0,{})}),!B&&(Y.length===0?S.jsx("p",{className:"text-sm p-8 text-center",style:{color:"var(--text-tertiary)"},children:"No issues match your filters"}):Y.map((Z,ae)=>S.jsx(d0,{issue:Z,selected:ae===y,onClick:()=>{b(ae),window.location.hash=`#/detail/${Z.id}`}},Z.id)))]}),!B&&I>1&&S.jsx(f0,{page:p,totalPages:I,total:V,pageSize:Hs,onPageChange:m})]})}function Eg(){const i=ff();return{updateStatus:F.useCallback((l,r)=>i.updateStatus({id:l,status:r}),[i]),editText:F.useCallback(l=>i.editText(l),[i]),createIssue:F.useCallback(l=>i.createIssue(l),[i]),updatePriority:F.useCallback((l,r)=>i.updatePriority(l,r),[i]),updateAssignee:F.useCallback((l,r)=>i.updateAssignee(l,r),[i]),addLabel:F.useCallback((l,r)=>i.addLabel(l,r),[i]),removeLabel:F.useCallback((l,r)=>i.removeLabel(l,r),[i]),deleteIssue:F.useCallback(l=>i.deleteIssue(l),[i]),addComment:F.useCallback((l,r)=>i.addComment(l,r),[i]),addDep:F.useCallback((l,r)=>i.addDep(l,r),[i]),removeDep:F.useCallback((l,r)=>i.removeDep(l,r),[i])}}function gf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var aa=gf();function xg(i){aa=i}var or={exec:()=>null};function Le(i,l=""){let r=typeof i=="string"?i:i.source;const s={replace:(u,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(Ot.caret,"$1"),r=r.replace(u,d),s},getRegex:()=>new RegExp(r,l)};return s}var Ot={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},m0=/^(?:[ \t]*(?:\n|$))+/,p0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,g0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,pr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_f=/(?:[*+-]|\d{1,9}[.)])/,Tg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ag=Le(Tg).replace(/bull/g,_f).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),y0=Le(Tg).replace(/bull/g,_f).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),yf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v0=/^[^\n]+/,vf=/(?!\s*\])(?:\\.|[^\[\]\\])+/,b0=Le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),S0=Le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_f).getRegex(),ho="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",bf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,E0=Le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",bf).replace("tag",ho).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rg=Le(yf).replace("hr",pr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex(),x0=Le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Rg).getRegex(),Sf={blockquote:x0,code:p0,def:b0,fences:g0,heading:_0,hr:pr,html:E0,lheading:Ag,list:S0,newline:m0,paragraph:Rg,table:or,text:v0},zp=Le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",pr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex(),T0={...Sf,lheading:y0,table:zp,paragraph:Le(yf).replace("hr",pr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex()},A0={...Sf,html:Le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:or,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Le(yf).replace("hr",pr).replace("heading",` *#{1,6} *[^
|
|
51
|
-
]`).replace("lheading",
|
|
49
|
+
`+a.stack}}var ol=Object.prototype.hasOwnProperty,ul=i.unstable_scheduleCallback,sa=i.unstable_cancelCallback,vr=i.unstable_shouldYield,vo=i.unstable_requestPaint,gt=i.unstable_now,Ul=i.unstable_getCurrentPriorityLevel,wn=i.unstable_ImmediatePriority,Gt=i.unstable_UserBlockingPriority,cl=i.unstable_NormalPriority,br=i.unstable_LowPriority,Ja=i.unstable_IdlePriority,Wa=i.log,Sr=i.unstable_setDisableYieldValue,bn=null,ft=null;function dt(e){if(typeof Wa=="function"&&Sr(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(bn,e)}catch{}}var et=Math.clz32?Math.clz32:bo,Fa=Math.log,ei=Math.LN2;function bo(e){return e>>>=0,e===0?32:31-(Fa(e)/ei|0)|0}var Mn=256,zn=262144,oa=4194304;function It(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 ua(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var _=a&134217727;return _!==0?(a=_&~c,a!==0?o=It(a):(h&=_,h!==0?o=It(h):n||(n=_&~e,n!==0&&(o=It(n))))):(_=a&~c,_!==0?o=It(_):h!==0?o=It(h):n||(n=a&~e,n!==0&&(o=It(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(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 jn(){var e=oa;return oa<<=1,(oa&62914560)===0&&(oa=4194304),e}function ti(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ni(e,t,n,a,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var _=e.entanglements,x=e.expirationTimes,k=e.hiddenUpdates;for(n=h&~n;0<n;){var j=31-et(n),V=1<<j;_[j]=0,x[j]=-1;var N=k[j];if(N!==null)for(k[j]=null,j=0;j<N.length;j++){var M=N[j];M!==null&&(M.lane&=-536870913)}n&=~V}a!==0&&li(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function li(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-et(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ai(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-et(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Er(e,t){var n=t&-t;return n=(n&42)!==0?1:Nt(n),(n&(e.suspendedLanes|t))!==0?0:n}function Nt(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 gn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ii(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:dp(e.type))}function ri(e,t){var n=K.p;try{return K.p=e,t()}finally{K.p=n}}var Ft=Math.random().toString(36).slice(2),tt="__reactFiber$"+Ft,qe="__reactProps$"+Ft,Un="__reactContainer$"+Ft,ca="__reactEvents$"+Ft,xr="__reactListeners$"+Ft,Tr="__reactHandles$"+Ft,Ar="__reactResources$"+Ft,ne="__reactMarker$"+Ft;function R(e){delete e[tt],delete e[qe],delete e[ca],delete e[xr],delete e[Tr]}function q(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Un]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$m(e);e!==null;){if(n=e[tt])return n;e=$m(e)}return t}e=n,n=e.parentNode}return null}function J(e){if(e=e[tt]||e[Un]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function De(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Xe(e){var t=e[Ar];return t||(t=e[Ar]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function me(e){e[ne]=!0}var _t=new Set,en={};function wt(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(en[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var st=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]*$"),si={},oi={};function A_(e){return ol.call(oi,e)?!0:ol.call(si,e)?!1:st.test(e)?oi[e]=!0:(si[e]=!0,!1)}function Rr(e,t,n){if(A_(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Or(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Bn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R_(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function So(e){if(!e._valueTracker){var t=Mf(e)?"checked":"value";e._valueTracker=R_(e,t,""+e[t])}}function zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Mf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Cr(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 O_=/[\n"\\]/g;function nn(e){return e.replace(O_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Eo(e,t,n,a,o,c,h,_){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?xo(e,h,tn(t)):n!=null?xo(e,h,tn(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+tn(_):e.removeAttribute("name")}function jf(e,t,n,a,o,c,h,_){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){So(e);return}n=n!=null?""+tn(n):"",t=t!=null?""+tn(t):n,_||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=_?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),So(e)}function xo(e,t,n){t==="number"&&Cr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function fa(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Uf(e,t,n){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+tn(n):""}function Bf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Fe(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=tn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),So(e)}function da(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var C_=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 Hf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||C_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Vf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&Hf(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&Hf(e,c,t[c])}function To(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 D_=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"]]),L_=/^[\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 Dr(e){return L_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Hn(){}var Ao=null;function Ro(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,ma=null;function Gf(e){var t=J(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Eo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+nn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[qe]||null;if(!o)throw Error(s(90));Eo(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&zf(a)}break e;case"textarea":Uf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&fa(e,!!n.multiple,t,!1)}}}var Oo=!1;function If(e,t,n){if(Oo)return e(t,n);Oo=!0;try{var a=e(t);return a}finally{if(Oo=!1,(ha!==null||ma!==null)&&(gs(),ha&&(t=ha,e=ma,ma=ha=null,Gf(t),e)))for(t=0;t<e.length;t++)Gf(e[t])}}function ui(e,t){var n=e.stateNode;if(n===null)return null;var a=n[qe]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Co=!1;if(Vn)try{var ci={};Object.defineProperty(ci,"passive",{get:function(){Co=!0}}),window.addEventListener("test",ci,ci),window.removeEventListener("test",ci,ci)}catch{Co=!1}var dl=null,Do=null,Lr=null;function qf(){if(Lr)return Lr;var e,t=Do,n=t.length,a,o="value"in dl?dl.value:dl.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===o[c-a];a++);return Lr=o.slice(e,1<a?1-a:void 0)}function kr(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 Nr(){return!0}function Pf(){return!1}function Mt(e){function t(n,a,o,c,h){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(n=e[_],this[_]=n?n(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Nr:Pf,this.isPropagationStopped=Pf,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Nr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nr)},persist:function(){},isPersistent:Nr}),t}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wr=Mt(Hl),fi=S({},Hl,{view:0,detail:0}),k_=Mt(fi),Lo,ko,di,Mr=S({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wo,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!==di&&(di&&e.type==="mousemove"?(Lo=e.screenX-di.screenX,ko=e.screenY-di.screenY):ko=Lo=0,di=e),Lo)},movementY:function(e){return"movementY"in e?e.movementY:ko}}),Yf=Mt(Mr),N_=S({},Mr,{dataTransfer:0}),w_=Mt(N_),M_=S({},fi,{relatedTarget:0}),No=Mt(M_),z_=S({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),j_=Mt(z_),U_=S({},Hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),B_=Mt(U_),H_=S({},Hl,{data:0}),Xf=Mt(H_),V_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G_={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"},I_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=I_[e])?!!t[e]:!1}function wo(){return q_}var P_=S({},fi,{key:function(e){if(e.key){var t=V_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=kr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?G_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wo,charCode:function(e){return e.type==="keypress"?kr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?kr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Y_=Mt(P_),X_=S({},Mr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qf=Mt(X_),Q_=S({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wo}),Z_=Mt(Q_),K_=S({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),$_=Mt(K_),J_=S({},Mr,{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}),W_=Mt(J_),F_=S({},Hl,{newState:0,oldState:0}),ey=Mt(F_),ty=[9,13,27,32],Mo=Vn&&"CompositionEvent"in window,hi=null;Vn&&"documentMode"in document&&(hi=document.documentMode);var ny=Vn&&"TextEvent"in window&&!hi,Zf=Vn&&(!Mo||hi&&8<hi&&11>=hi),Kf=" ",$f=!1;function Jf(e,t){switch(e){case"keyup":return ty.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function ly(e,t){switch(e){case"compositionend":return Wf(t);case"keypress":return t.which!==32?null:($f=!0,Kf);case"textInput":return e=t.data,e===Kf&&$f?null:e;default:return null}}function ay(e,t){if(pa)return e==="compositionend"||!Mo&&Jf(e,t)?(e=qf(),Lr=Do=dl=null,pa=!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 Zf&&t.locale!=="ko"?null:t.data;default:return null}}var iy={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 Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iy[e.type]:t==="textarea"}function ed(e,t,n,a){ha?ma?ma.push(a):ma=[a]:ha=a,t=xs(t,"onChange"),0<t.length&&(n=new wr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var mi=null,pi=null;function ry(e){jm(e,0)}function zr(e){var t=De(e);if(zf(t))return e}function td(e,t){if(e==="change")return t}var nd=!1;if(Vn){var zo;if(Vn){var jo="oninput"in document;if(!jo){var ld=document.createElement("div");ld.setAttribute("oninput","return;"),jo=typeof ld.oninput=="function"}zo=jo}else zo=!1;nd=zo&&(!document.documentMode||9<document.documentMode)}function ad(){mi&&(mi.detachEvent("onpropertychange",id),pi=mi=null)}function id(e){if(e.propertyName==="value"&&zr(pi)){var t=[];ed(t,pi,e,Ro(e)),If(ry,t)}}function sy(e,t,n){e==="focusin"?(ad(),mi=t,pi=n,mi.attachEvent("onpropertychange",id)):e==="focusout"&&ad()}function oy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zr(pi)}function uy(e,t){if(e==="click")return zr(t)}function cy(e,t){if(e==="input"||e==="change")return zr(t)}function fy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:fy;function gi(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!ol.call(t,o)||!qt(e[o],t[o]))return!1}return!0}function rd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sd(e,t){var n=rd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rd(n)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ud(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Cr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cr(e.document)}return t}function Uo(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 dy=Vn&&"documentMode"in document&&11>=document.documentMode,ga=null,Bo=null,_i=null,Ho=!1;function cd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ho||ga==null||ga!==Cr(a)||(a=ga,"selectionStart"in a&&Uo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),_i&&gi(_i,a)||(_i=a,a=xs(Bo,"onSelect"),0<a.length&&(t=new wr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ga)))}function Vl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _a={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Vo={},fd={};Vn&&(fd=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);function Gl(e){if(Vo[e])return Vo[e];if(!_a[e])return e;var t=_a[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in fd)return Vo[e]=t[n];return e}var dd=Gl("animationend"),hd=Gl("animationiteration"),md=Gl("animationstart"),hy=Gl("transitionrun"),my=Gl("transitionstart"),py=Gl("transitioncancel"),pd=Gl("transitionend"),gd=new Map,Go="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(" ");Go.push("scrollEnd");function _n(e,t){gd.set(e,t),wt(t,[e])}var jr=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)},ln=[],ya=0,Io=0;function Ur(){for(var e=ya,t=Io=ya=0;t<e;){var n=ln[t];ln[t++]=null;var a=ln[t];ln[t++]=null;var o=ln[t];ln[t++]=null;var c=ln[t];if(ln[t++]=null,a!==null&&o!==null){var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}c!==0&&_d(n,o,c)}}function Br(e,t,n,a){ln[ya++]=e,ln[ya++]=t,ln[ya++]=n,ln[ya++]=a,Io|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function qo(e,t,n,a){return Br(e,t,n,a),Hr(e)}function Il(e,t){return Br(e,null,null,t),Hr(e)}function _d(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-et(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function Hr(e){if(50<Hi)throw Hi=0,Wu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var va={};function gy(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,a){return new gy(e,t,n,a)}function Po(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gn(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function yd(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vr(e,t,n,a,o,c){var h=0;if(a=e,typeof e=="function")Po(e)&&(h=1);else if(typeof e=="string")h=Sv(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pt:return e=Pt(31,n,t,o),e.elementType=pt,e.lanes=c,e;case B:return ql(n.children,o,c,t);case P:h=8,o|=24;break;case U:return e=Pt(12,n,t,o|2),e.elementType=U,e.lanes=c,e;case ae:return e=Pt(13,n,t,o),e.elementType=ae,e.lanes=c,e;case fe:return e=Pt(19,n,t,o),e.elementType=fe,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:h=10;break e;case I:h=9;break e;case Z:h=11;break e;case te:h=14;break e;case Ue:h=16,a=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Pt(h,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function ql(e,t,n,a){return e=Pt(7,e,a,t),e.lanes=n,e}function Yo(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function vd(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Xo(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bd=new WeakMap;function an(e,t){if(typeof e=="object"&&e!==null){var n=bd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Nn(t)},bd.set(e,t),t)}return{value:e,source:t,stack:Nn(t)}}var ba=[],Sa=0,Gr=null,yi=0,rn=[],sn=0,hl=null,En=1,xn="";function In(e,t){ba[Sa++]=yi,ba[Sa++]=Gr,Gr=e,yi=t}function Sd(e,t,n){rn[sn++]=En,rn[sn++]=xn,rn[sn++]=hl,hl=e;var a=En;e=xn;var o=32-et(a)-1;a&=~(1<<o),n+=1;var c=32-et(t)+o;if(30<c){var h=o-o%5;c=(a&(1<<h)-1).toString(32),a>>=h,o-=h,En=1<<32-et(t)+o|n<<o|a,xn=c+e}else En=1<<c|n<<o|a,xn=e}function Qo(e){e.return!==null&&(In(e,1),Sd(e,1,0))}function Zo(e){for(;e===Gr;)Gr=ba[--Sa],ba[Sa]=null,yi=ba[--Sa],ba[Sa]=null;for(;e===hl;)hl=rn[--sn],rn[sn]=null,xn=rn[--sn],rn[sn]=null,En=rn[--sn],rn[sn]=null}function Ed(e,t){rn[sn++]=En,rn[sn++]=xn,rn[sn++]=hl,En=t.id,xn=t.overflow,hl=e}var yt=null,He=null,Se=!1,ml=null,on=!1,Ko=Error(s(519));function pl(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vi(an(t,e)),Ko}function xd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[tt]=e,t[qe]=a,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<Gi.length;n++)_e(Gi[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),jf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),Bf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Vm(t.textContent,n)?(a.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),a.onScroll!=null&&_e("scroll",t),a.onScrollEnd!=null&&_e("scrollend",t),a.onClick!=null&&(t.onclick=Hn),t=!0):t=!1,t||pl(e,!0)}function Td(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:yt=yt.return}}function Ea(e){if(e!==yt)return!1;if(!Se)return Td(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||hc(e.type,e.memoizedProps)),n=!n),n&&He&&pl(e),Td(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=Km(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));He=Km(e)}else t===27?(t=He,Dl(e.type)?(e=yc,yc=null,He=e):He=t):He=yt?cn(e.stateNode.nextSibling):null;return!0}function Pl(){He=yt=null,Se=!1}function $o(){var e=ml;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),ml=null),e}function vi(e){ml===null?ml=[e]:ml.push(e)}var Jo=T(null),Yl=null,qn=null;function gl(e,t,n){X(Jo,t._currentValue),t._currentValue=n}function Pn(e){e._currentValue=Jo.current,G(Jo)}function Wo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Fo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var _=c;c=o;for(var x=0;x<t.length;x++)if(_.context===t[x]){c.lanes|=n,_=c.alternate,_!==null&&(_.lanes|=n),Wo(c.return,n,e),a||(h=null);break e}c=_.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Wo(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function xa(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var _=o.type;qt(o.pendingProps.value,h.value)||(e!==null?e.push(_):e=[_])}}else if(o===be.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Xi):e=[Xi])}o=o.return}e!==null&&Fo(t,e,n,a),t.flags|=262144}function Ir(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){Yl=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Ad(Yl,e)}function qr(e,t){return Yl===null&&Xl(e),Ad(e,t)}function Ad(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qn===null){if(e===null)throw Error(s(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return n}var _y=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},yy=i.unstable_scheduleCallback,vy=i.unstable_NormalPriority,nt={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function eu(){return{controller:new _y,data:new Map,refCount:0}}function bi(e){e.refCount--,e.refCount===0&&yy(vy,function(){e.controller.abort()})}var Si=null,tu=0,Ta=0,Aa=null;function by(e,t){if(Si===null){var n=Si=[];tu=0,Ta=ac(),Aa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return tu++,t.then(Rd,Rd),t}function Rd(){if(--tu===0&&Si!==null){Aa!==null&&(Aa.status="fulfilled");var e=Si;Si=null,Ta=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sy(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Od=z.S;z.S=function(e,t){cm=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&by(e,t),Od!==null&&Od(e,t)};var Ql=T(null);function nu(){var e=Ql.current;return e!==null?e:je.pooledCache}function Pr(e,t){t===null?X(Ql,Ql.current):X(Ql,t.pool)}function Cd(){var e=nu();return e===null?null:{parent:nt._currentValue,pool:e}}var Ra=Error(s(460)),lu=Error(s(474)),Yr=Error(s(542)),Xr={then:function(){}};function Dd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ld(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Hn,Hn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nd(e),e;default:if(typeof t.status=="string")t.then(Hn,Hn);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nd(e),e}throw Kl=t,Ra}}function Zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Kl=n,Ra):n}}var Kl=null;function kd(){if(Kl===null)throw Error(s(459));var e=Kl;return Kl=null,e}function Nd(e){if(e===Ra||e===Yr)throw Error(s(483))}var Oa=null,Ei=0;function Qr(e){var t=Ei;return Ei+=1,Oa===null&&(Oa=[]),Ld(Oa,e,t)}function xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zr(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wd(e){function t(D,O){if(e){var L=D.deletions;L===null?(D.deletions=[O],D.flags|=16):L.push(O)}}function n(D,O){if(!e)return null;for(;O!==null;)t(D,O),O=O.sibling;return null}function a(D){for(var O=new Map;D!==null;)D.key!==null?O.set(D.key,D):O.set(D.index,D),D=D.sibling;return O}function o(D,O){return D=Gn(D,O),D.index=0,D.sibling=null,D}function c(D,O,L){return D.index=L,e?(L=D.alternate,L!==null?(L=L.index,L<O?(D.flags|=67108866,O):L):(D.flags|=67108866,O)):(D.flags|=1048576,O)}function h(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function _(D,O,L,H){return O===null||O.tag!==6?(O=Yo(L,D.mode,H),O.return=D,O):(O=o(O,L),O.return=D,O)}function x(D,O,L,H){var ie=L.type;return ie===B?j(D,O,L.props.children,H,L.key):O!==null&&(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Zl(ie)===O.type)?(O=o(O,L.props),xi(O,L),O.return=D,O):(O=Vr(L.type,L.key,L.props,null,D.mode,H),xi(O,L),O.return=D,O)}function k(D,O,L,H){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=Xo(L,D.mode,H),O.return=D,O):(O=o(O,L.children||[]),O.return=D,O)}function j(D,O,L,H,ie){return O===null||O.tag!==7?(O=ql(L,D.mode,H,ie),O.return=D,O):(O=o(O,L),O.return=D,O)}function V(D,O,L){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Yo(""+O,D.mode,L),O.return=D,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case A:return L=Vr(O.type,O.key,O.props,null,D.mode,L),xi(L,O),L.return=D,L;case C:return O=Xo(O,D.mode,L),O.return=D,O;case Ue:return O=Zl(O),V(D,O,L)}if(Fe(O)||Ke(O))return O=ql(O,D.mode,L,null),O.return=D,O;if(typeof O.then=="function")return V(D,Qr(O),L);if(O.$$typeof===Y)return V(D,qr(D,O),L);Zr(D,O)}return null}function N(D,O,L,H){var ie=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ie!==null?null:_(D,O,""+L,H);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case A:return L.key===ie?x(D,O,L,H):null;case C:return L.key===ie?k(D,O,L,H):null;case Ue:return L=Zl(L),N(D,O,L,H)}if(Fe(L)||Ke(L))return ie!==null?null:j(D,O,L,H,null);if(typeof L.then=="function")return N(D,O,Qr(L),H);if(L.$$typeof===Y)return N(D,O,qr(D,L),H);Zr(D,L)}return null}function M(D,O,L,H,ie){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return D=D.get(L)||null,_(O,D,""+H,ie);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case A:return D=D.get(H.key===null?L:H.key)||null,x(O,D,H,ie);case C:return D=D.get(H.key===null?L:H.key)||null,k(O,D,H,ie);case Ue:return H=Zl(H),M(D,O,L,H,ie)}if(Fe(H)||Ke(H))return D=D.get(L)||null,j(O,D,H,ie,null);if(typeof H.then=="function")return M(D,O,L,Qr(H),ie);if(H.$$typeof===Y)return M(D,O,L,qr(O,H),ie);Zr(O,H)}return null}function F(D,O,L,H){for(var ie=null,Ee=null,le=O,de=O=0,ve=null;le!==null&&de<L.length;de++){le.index>de?(ve=le,le=null):ve=le.sibling;var xe=N(D,le,L[de],H);if(xe===null){le===null&&(le=ve);break}e&&le&&xe.alternate===null&&t(D,le),O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe,le=ve}if(de===L.length)return n(D,le),Se&&In(D,de),ie;if(le===null){for(;de<L.length;de++)le=V(D,L[de],H),le!==null&&(O=c(le,O,de),Ee===null?ie=le:Ee.sibling=le,Ee=le);return Se&&In(D,de),ie}for(le=a(le);de<L.length;de++)ve=M(le,D,de,L[de],H),ve!==null&&(e&&ve.alternate!==null&&le.delete(ve.key===null?de:ve.key),O=c(ve,O,de),Ee===null?ie=ve:Ee.sibling=ve,Ee=ve);return e&&le.forEach(function(Ml){return t(D,Ml)}),Se&&In(D,de),ie}function se(D,O,L,H){if(L==null)throw Error(s(151));for(var ie=null,Ee=null,le=O,de=O=0,ve=null,xe=L.next();le!==null&&!xe.done;de++,xe=L.next()){le.index>de?(ve=le,le=null):ve=le.sibling;var Ml=N(D,le,xe.value,H);if(Ml===null){le===null&&(le=ve);break}e&&le&&Ml.alternate===null&&t(D,le),O=c(Ml,O,de),Ee===null?ie=Ml:Ee.sibling=Ml,Ee=Ml,le=ve}if(xe.done)return n(D,le),Se&&In(D,de),ie;if(le===null){for(;!xe.done;de++,xe=L.next())xe=V(D,xe.value,H),xe!==null&&(O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe);return Se&&In(D,de),ie}for(le=a(le);!xe.done;de++,xe=L.next())xe=M(le,D,de,xe.value,H),xe!==null&&(e&&xe.alternate!==null&&le.delete(xe.key===null?de:xe.key),O=c(xe,O,de),Ee===null?ie=xe:Ee.sibling=xe,Ee=xe);return e&&le.forEach(function(Nv){return t(D,Nv)}),Se&&In(D,de),ie}function ze(D,O,L,H){if(typeof L=="object"&&L!==null&&L.type===B&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case A:e:{for(var ie=L.key;O!==null;){if(O.key===ie){if(ie=L.type,ie===B){if(O.tag===7){n(D,O.sibling),H=o(O,L.props.children),H.return=D,D=H;break e}}else if(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ue&&Zl(ie)===O.type){n(D,O.sibling),H=o(O,L.props),xi(H,L),H.return=D,D=H;break e}n(D,O);break}else t(D,O);O=O.sibling}L.type===B?(H=ql(L.props.children,D.mode,H,L.key),H.return=D,D=H):(H=Vr(L.type,L.key,L.props,null,D.mode,H),xi(H,L),H.return=D,D=H)}return h(D);case C:e:{for(ie=L.key;O!==null;){if(O.key===ie)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){n(D,O.sibling),H=o(O,L.children||[]),H.return=D,D=H;break e}else{n(D,O);break}else t(D,O);O=O.sibling}H=Xo(L,D.mode,H),H.return=D,D=H}return h(D);case Ue:return L=Zl(L),ze(D,O,L,H)}if(Fe(L))return F(D,O,L,H);if(Ke(L)){if(ie=Ke(L),typeof ie!="function")throw Error(s(150));return L=ie.call(L),se(D,O,L,H)}if(typeof L.then=="function")return ze(D,O,Qr(L),H);if(L.$$typeof===Y)return ze(D,O,qr(D,L),H);Zr(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(n(D,O.sibling),H=o(O,L),H.return=D,D=H):(n(D,O),H=Yo(L,D.mode,H),H.return=D,D=H),h(D)):n(D,O)}return function(D,O,L,H){try{Ei=0;var ie=ze(D,O,L,H);return Oa=null,ie}catch(le){if(le===Ra||le===Yr)throw le;var Ee=Pt(29,le,null,D.mode);return Ee.lanes=H,Ee.return=D,Ee}finally{}}}var $l=wd(!0),Md=wd(!1),_l=!1;function au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function iu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ae&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Hr(e),_d(e,null,n),t}return Br(e,a,t,n),Hr(e)}function Ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ai(e,n)}}function ru(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var su=!1;function Ai(){if(su){var e=Aa;if(e!==null)throw e}}function Ri(e,t,n,a){su=!1;var o=e.updateQueue;_l=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var x=_,k=x.next;x.next=null,h===null?c=k:h.next=k,h=x;var j=e.alternate;j!==null&&(j=j.updateQueue,_=j.lastBaseUpdate,_!==h&&(_===null?j.firstBaseUpdate=k:_.next=k,j.lastBaseUpdate=x))}if(c!==null){var V=o.baseState;h=0,j=k=x=null,_=c;do{var N=_.lane&-536870913,M=N!==_.lane;if(M?(ye&N)===N:(a&N)===N){N!==0&&N===Ta&&(su=!0),j!==null&&(j=j.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var F=e,se=_;N=t;var ze=n;switch(se.tag){case 1:if(F=se.payload,typeof F=="function"){V=F.call(ze,V,N);break e}V=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=se.payload,N=typeof F=="function"?F.call(ze,V,N):F,N==null)break e;V=S({},V,N);break e;case 2:_l=!0}}N=_.callback,N!==null&&(e.flags|=64,M&&(e.flags|=8192),M=o.callbacks,M===null?o.callbacks=[N]:M.push(N))}else M={lane:N,tag:_.tag,payload:_.payload,callback:_.callback,next:null},j===null?(k=j=M,x=V):j=j.next=M,h|=N;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;M=_,_=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(!0);j===null&&(x=V),o.baseState=x,o.firstBaseUpdate=k,o.lastBaseUpdate=j,c===null&&(o.shared.lanes=0),Tl|=h,e.lanes=h,e.memoizedState=V}}function zd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function jd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)zd(n[e],t)}var Ca=T(null),Kr=T(0);function Ud(e,t){e=Fn,X(Kr,e),X(Ca,t),Fn=e|t.baseLanes}function ou(){X(Kr,Fn),X(Ca,Ca.current)}function uu(){Fn=Kr.current,G(Ca),G(Kr)}var Yt=T(null),un=null;function bl(e){var t=e.alternate;X(Je,Je.current&1),X(Yt,e),un===null&&(t===null||Ca.current!==null||t.memoizedState!==null)&&(un=e)}function cu(e){X(Je,Je.current),X(Yt,e),un===null&&(un=e)}function Bd(e){e.tag===22?(X(Je,Je.current),X(Yt,e),un===null&&(un=e)):Sl()}function Sl(){X(Je,Je.current),X(Yt,Yt.current)}function Xt(e){G(Yt),un===e&&(un=null),G(Je)}var Je=T(0);function $r(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||gc(n)||_c(n)))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 Yn=0,ce=null,we=null,lt=null,Jr=!1,Da=!1,Jl=!1,Wr=0,Oi=0,La=null,Ey=0;function Qe(){throw Error(s(321))}function fu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function du(e,t,n,a,o,c){return Yn=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Sh:Ou,Jl=!1,c=n(a,o),Jl=!1,Da&&(c=Vd(t,n,a,o)),Hd(e),c}function Hd(e){z.H=Li;var t=we!==null&&we.next!==null;if(Yn=0,lt=we=ce=null,Jr=!1,Oi=0,La=null,t)throw Error(s(300));e===null||at||(e=e.dependencies,e!==null&&Ir(e)&&(at=!0))}function Vd(e,t,n,a){ce=e;var o=0;do{if(Da&&(La=null),Oi=0,Da=!1,25<=o)throw Error(s(301));if(o+=1,lt=we=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=Eh,c=t(n,a)}while(Da);return c}function xy(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Ci(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(ce.flags|=1024),t}function hu(){var e=Wr!==0;return Wr=0,e}function mu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function pu(e){if(Jr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jr=!1}Yn=0,lt=we=ce=null,Da=!1,Oi=Wr=0,La=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?ce.memoizedState=lt=e:lt=lt.next=e,lt}function We(){if(we===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=lt===null?ce.memoizedState:lt.next;if(t!==null)lt=t,we=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},lt===null?ce.memoizedState=lt=e:lt=lt.next=e}return lt}function Fr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ci(e){var t=Oi;return Oi+=1,La===null&&(La=[]),e=Ld(La,e,t),t=ce,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Sh:Ou),e}function es(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ci(e);if(e.$$typeof===Y)return vt(e)}throw Error(s(438,String(e)))}function gu(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Fr(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Lt;return t.index++,n}function Xn(e,t){return typeof t=="function"?t(e):t}function ts(e){var t=We();return _u(t,we,e)}function _u(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var _=h=null,x=null,k=t,j=!1;do{var V=k.lane&-536870913;if(V!==k.lane?(ye&V)===V:(Yn&V)===V){var N=k.revertLane;if(N===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),V===Ta&&(j=!0);else if((Yn&N)===N){k=k.next,N===Ta&&(j=!0);continue}else V={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(_=x=V,h=c):x=x.next=V,ce.lanes|=N,Tl|=N;V=k.action,Jl&&n(c,V),c=k.hasEagerState?k.eagerState:n(c,V)}else N={lane:V,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(_=x=N,h=c):x=x.next=N,ce.lanes|=V,Tl|=V;k=k.next}while(k!==null&&k!==t);if(x===null?h=c:x.next=_,!qt(c,e.memoizedState)&&(at=!0,j&&(n=Aa,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=x,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function yu(e){var t=We(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);qt(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Gd(e,t,n){var a=ce,o=We(),c=Se;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!qt((we||o).memoizedState,n);if(h&&(o.memoizedState=n,at=!0),o=o.queue,Su(Pd.bind(null,a,o,e),[e]),o.getSnapshot!==t||h||lt!==null&<.memoizedState.tag&1){if(a.flags|=2048,ka(9,{destroy:void 0},qd.bind(null,a,o,n,t),null),je===null)throw Error(s(349));c||(Yn&127)!==0||Id(a,t,n)}return n}function Id(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=Fr(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qd(e,t,n,a){t.value=n,t.getSnapshot=a,Yd(t)&&Xd(e)}function Pd(e,t,n){return n(function(){Yd(t)&&Xd(e)})}function Yd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function Xd(e){var t=Il(e,2);t!==null&&Ht(t,e,2)}function vu(e){var t=Tt();if(typeof e=="function"){var n=e;if(e=n(),Jl){dt(!0);try{n()}finally{dt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},t}function Qd(e,t,n,a){return e.baseState=n,_u(e,we,typeof a=="function"?a:Xn)}function Ty(e,t,n,a,o){if(as(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};z.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Zd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Zd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=z.T,h={};z.T=h;try{var _=n(o,a),x=z.S;x!==null&&x(h,_),Kd(e,t,_)}catch(k){bu(e,t,k)}finally{c!==null&&h.types!==null&&(c.types=h.types),z.T=c}}else try{c=n(o,a),Kd(e,t,c)}catch(k){bu(e,t,k)}}function Kd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){$d(e,t,a)},function(a){return bu(e,t,a)}):$d(e,t,n)}function $d(e,t,n){t.status="fulfilled",t.value=n,Jd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zd(e,n)))}function bu(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Jd(t),t=t.next;while(t!==a)}e.action=null}function Jd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wd(e,t){return t}function Fd(e,t){if(Se){var n=je.formState;if(n!==null){e:{var a=ce;if(Se){if(He){t:{for(var o=He,c=on;o.nodeType!==8;){if(!c){o=null;break t}if(o=cn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){He=cn(o.nextSibling),a=o.data==="F!";break e}}pl(a)}a=!1}a&&(t=n[0])}}return n=Tt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wd,lastRenderedState:t},n.queue=a,n=yh.bind(null,ce,a),a.dispatch=n,a=vu(!1),c=Ru.bind(null,ce,!1,a.queue),a=Tt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Ty.bind(null,ce,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function eh(e){var t=We();return th(t,we,e)}function th(e,t,n){if(t=_u(e,t,Wd)[0],e=ts(Xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ci(t)}catch(h){throw h===Ra?Yr:h}else a=t;t=We();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,ka(9,{destroy:void 0},Ay.bind(null,o,n),null)),[a,c,e]}function Ay(e,t){e.action=t}function nh(e){var t=We(),n=we;if(n!==null)return th(t,n,e);We(),t=t.memoizedState,n=We();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function ka(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Fr(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function lh(){return We().memoizedState}function ns(e,t,n,a){var o=Tt();ce.flags|=e,o.memoizedState=ka(1|t,{destroy:void 0},n,a===void 0?null:a)}function ls(e,t,n,a){var o=We();a=a===void 0?null:a;var c=o.memoizedState.inst;we!==null&&a!==null&&fu(a,we.memoizedState.deps)?o.memoizedState=ka(t,c,n,a):(ce.flags|=e,o.memoizedState=ka(1|t,c,n,a))}function ah(e,t){ns(8390656,8,e,t)}function Su(e,t){ls(2048,8,e,t)}function Ry(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Fr(),ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ih(e){var t=We().memoizedState;return Ry({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function rh(e,t){return ls(4,2,e,t)}function sh(e,t){return ls(4,4,e,t)}function oh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uh(e,t,n){n=n!=null?n.concat([e]):null,ls(4,4,oh.bind(null,t,e),n)}function Eu(){}function ch(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&fu(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function fh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&fu(t,a[1]))return a[0];if(a=e(),Jl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a}function xu(e,t,n){return n===void 0||(Yn&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=dm(),ce.lanes|=e,Tl|=e,n)}function dh(e,t,n,a){return qt(n,t)?n:Ca.current!==null?(e=xu(e,n,a),qt(e,t)||(at=!0),e):(Yn&42)===0||(Yn&1073741824)!==0&&(ye&261930)===0?(at=!0,e.memoizedState=n):(e=dm(),ce.lanes|=e,Tl|=e,t)}function hh(e,t,n,a,o){var c=K.p;K.p=c!==0&&8>c?c:8;var h=z.T,_={};z.T=_,Ru(e,!1,t,n);try{var x=o(),k=z.S;if(k!==null&&k(_,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var j=Sy(x,a);Di(e,t,j,Kt(e))}else Di(e,t,a,Kt(e))}catch(V){Di(e,t,{then:function(){},status:"rejected",reason:V},Kt())}finally{K.p=c,h!==null&&_.types!==null&&(h.types=_.types),z.T=h}}function Oy(){}function Tu(e,t,n,a){if(e.tag!==5)throw Error(s(476));var o=mh(e).queue;hh(e,o,t,re,n===null?Oy:function(){return ph(e),n(a)})}function mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ph(e){var t=mh(e);t.next===null&&(t=e.alternate.memoizedState),Di(e,t.next.queue,{},Kt())}function Au(){return vt(Xi)}function gh(){return We().memoizedState}function _h(){return We().memoizedState}function Cy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=yl(n);var a=vl(t,e,n);a!==null&&(Ht(a,t,n),Ti(a,t,n)),t={cache:eu()},e.payload=t;return}t=t.return}}function Dy(e,t,n){var a=Kt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},as(e)?vh(t,n):(n=qo(e,t,n,a),n!==null&&(Ht(n,e,a),bh(n,t,a)))}function yh(e,t,n){var a=Kt();Di(e,t,n,a)}function Di(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(as(e))vh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,_=c(h,n);if(o.hasEagerState=!0,o.eagerState=_,qt(_,h))return Br(e,t,o,0),je===null&&Ur(),!1}catch{}finally{}if(n=qo(e,t,o,a),n!==null)return Ht(n,e,a),bh(n,t,a),!0}return!1}function Ru(e,t,n,a){if(a={lane:2,revertLane:ac(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},as(e)){if(t)throw Error(s(479))}else t=qo(e,n,a,2),t!==null&&Ht(t,e,2)}function as(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function vh(e,t){Da=Jr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ai(e,n)}}var Li={readContext:vt,use:es,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};Li.useEffectEvent=Qe;var Sh={readContext:vt,use:es,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:ah,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ns(4194308,4,oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=Tt();t=t===void 0?null:t;var a=e();if(Jl){dt(!0);try{e()}finally{dt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Tt();if(n!==void 0){var o=n(t);if(Jl){dt(!0);try{n(t)}finally{dt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=Dy.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=vu(e);var t=e.queue,n=yh.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Eu,useDeferredValue:function(e,t){var n=Tt();return xu(n,e,t)},useTransition:function(){var e=vu(!1);return e=hh.bind(null,ce,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ce,o=Tt();if(Se){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),je===null)throw Error(s(349));(ye&127)!==0||Id(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,ah(Pd.bind(null,a,c,e),[e]),a.flags|=2048,ka(9,{destroy:void 0},qd.bind(null,a,c,n,t),null),n},useId:function(){var e=Tt(),t=je.identifierPrefix;if(Se){var n=xn,a=En;n=(a&~(1<<32-et(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Wr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Ey++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Au,useFormState:Fd,useActionState:Fd,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ru.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:gu,useCacheRefresh:function(){return Tt().memoizedState=Cy.bind(null,ce)},useEffectEvent:function(e){var t=Tt(),n={impl:e};return t.memoizedState=n,function(){if((Ae&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Ou={readContext:vt,use:es,useCallback:ch,useContext:vt,useEffect:Su,useImperativeHandle:uh,useInsertionEffect:rh,useLayoutEffect:sh,useMemo:fh,useReducer:ts,useRef:lh,useState:function(){return ts(Xn)},useDebugValue:Eu,useDeferredValue:function(e,t){var n=We();return dh(n,we.memoizedState,e,t)},useTransition:function(){var e=ts(Xn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ci(e),t]},useSyncExternalStore:Gd,useId:gh,useHostTransitionStatus:Au,useFormState:eh,useActionState:eh,useOptimistic:function(e,t){var n=We();return Qd(n,we,e,t)},useMemoCache:gu,useCacheRefresh:_h};Ou.useEffectEvent=ih;var Eh={readContext:vt,use:es,useCallback:ch,useContext:vt,useEffect:Su,useImperativeHandle:uh,useInsertionEffect:rh,useLayoutEffect:sh,useMemo:fh,useReducer:yu,useRef:lh,useState:function(){return yu(Xn)},useDebugValue:Eu,useDeferredValue:function(e,t){var n=We();return we===null?xu(n,e,t):dh(n,we.memoizedState,e,t)},useTransition:function(){var e=yu(Xn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ci(e),t]},useSyncExternalStore:Gd,useId:gh,useHostTransitionStatus:Au,useFormState:nh,useActionState:nh,useOptimistic:function(e,t){var n=We();return we!==null?Qd(n,we,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:gu,useCacheRefresh:_h};Eh.useEffectEvent=ih;function Cu(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Du={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ti(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Kt(),o=yl(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=vl(e,o,a),t!==null&&(Ht(t,e,a),Ti(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),a=yl(n);a.tag=2,t!=null&&(a.callback=t),t=vl(e,a,n),t!==null&&(Ht(t,e,n),Ti(t,e,n))}};function xh(e,t,n,a,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,h):t.prototype&&t.prototype.isPureReactComponent?!gi(n,a)||!gi(o,c):!0}function Th(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Du.enqueueReplaceState(t,t.state,null)}function Wl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Ah(e){jr(e)}function Rh(e){console.error(e)}function Oh(e){jr(e)}function is(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ch(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Lu(e,t,n){return n=yl(n),n.tag=3,n.payload={element:null},n.callback=function(){is(e,t)},n}function Dh(e){return e=yl(e),e.tag=3,e}function Lh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Ch(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Ch(t,n,a),typeof o!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var _=a.stack;this.componentDidCatch(a.value,{componentStack:_!==null?_:""})})}function Ly(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&xa(t,n,o,!0),n=Yt.current,n!==null){switch(n.tag){case 31:case 13:return un===null?_s():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Xr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),tc(e,a,o)),!1;case 22:return n.flags|=65536,a===Xr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),tc(e,a,o)),!1}throw Error(s(435,n.tag))}return tc(e,a,o),_s(),!1}if(Se)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Ko&&(e=Error(s(422),{cause:a}),vi(an(e,n)))):(a!==Ko&&(t=Error(s(423),{cause:a}),vi(an(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=an(a,n),o=Lu(e.stateNode,a,o),ru(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(s(520),{cause:a});if(c=an(c,n),Bi===null?Bi=[c]:Bi.push(c),Ze!==4&&(Ze=2),t===null)return!0;a=an(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Lu(n.stateNode,a,e),ru(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Al===null||!Al.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Dh(o),Lh(o,e,n,a),ru(n,o),!1}n=n.return}while(n!==null);return!1}var ku=Error(s(461)),at=!1;function bt(e,t,n,a){t.child=e===null?Md(t,null,n,a):$l(t,e.child,n,a)}function kh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var h={};for(var _ in a)_!=="ref"&&(h[_]=a[_])}else h=a;return Xl(t),a=du(e,t,n,h,c,o),_=hu(),e!==null&&!at?(mu(e,t,o),Qn(e,t,o)):(Se&&_&&Qo(t),t.flags|=1,bt(e,t,a,o),t.child)}function Nh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Po(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,wh(e,t,c,a,o)):(e=Vr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Hu(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:gi,n(h,a)&&e.ref===t.ref)return Qn(e,t,o)}return t.flags|=1,e=Gn(c,a),e.ref=t.ref,e.return=t,t.child=e}function wh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(gi(c,a)&&e.ref===t.ref)if(at=!1,t.pendingProps=a=c,Hu(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Qn(e,t,o)}return Nu(e,t,n,a,o)}function Mh(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return zh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pr(t,c!==null?c.cachePool:null),c!==null?Ud(t,c):ou(),Bd(t);else return a=t.lanes=536870912,zh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Pr(t,c.cachePool),Ud(t,c),Sl(),t.memoizedState=null):(e!==null&&Pr(t,null),ou(),Sl());return bt(e,t,o,n),t.child}function ki(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zh(e,t,n,a,o){var c=nu();return c=c===null?null:{parent:nt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Pr(t,null),ou(),Bd(t),e!==null&&xa(e,t,a,!0),t.childLanes=o,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jh(e,t,n){return $l(t,e.child,null,n),e=rs(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function ky(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=rs(t,a),t.lanes=536870912,ki(null,e);if(cu(t),(e=He)?(e=Zm(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=vd(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return rs(t,a)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(cu(t),o)if(t.flags&256)t.flags&=-257,t=jh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(at||xa(e,t,n,!1),o=(n&e.childLanes)!==0,at||o){if(a=je,a!==null&&(h=Er(a,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Il(e,h),Ht(a,e,h),ku;_s(),t=jh(e,t,n)}else e=c.treeContext,He=cn(h.nextSibling),yt=t,Se=!0,ml=null,on=!1,e!==null&&Ed(t,e),t=rs(t,a),t.flags|=4096;return t}return e=Gn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ss(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Nu(e,t,n,a,o){return Xl(t),n=du(e,t,n,a,void 0,o),a=hu(),e!==null&&!at?(mu(e,t,o),Qn(e,t,o)):(Se&&a&&Qo(t),t.flags|=1,bt(e,t,n,o),t.child)}function Uh(e,t,n,a,o,c){return Xl(t),t.updateQueue=null,n=Vd(t,a,n,o),Hd(e),a=hu(),e!==null&&!at?(mu(e,t,c),Qn(e,t,c)):(Se&&a&&Qo(t),t.flags|=1,bt(e,t,n,c),t.child)}function Bh(e,t,n,a,o){if(Xl(t),t.stateNode===null){var c=va,h=n.contextType;typeof h=="object"&&h!==null&&(c=vt(h)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Du,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},au(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?vt(h):va,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Cu(t,n,h,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Du.enqueueReplaceState(c,c.state,null),Ri(t,a,c,o),Ai(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var _=t.memoizedProps,x=Wl(n,_);c.props=x;var k=c.context,j=n.contextType;h=va,typeof j=="object"&&j!==null&&(h=vt(j));var V=n.getDerivedStateFromProps;j=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,j||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(_||k!==h)&&Th(t,c,a,h),_l=!1;var N=t.memoizedState;c.state=N,Ri(t,a,c,o),Ai(),k=t.memoizedState,_||N!==k||_l?(typeof V=="function"&&(Cu(t,n,V,a),k=t.memoizedState),(x=_l||xh(t,n,x,a,N,k,h))?(j||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),c.props=a,c.state=k,c.context=h,a=x):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,iu(e,t),h=t.memoizedProps,j=Wl(n,h),c.props=j,V=t.pendingProps,N=c.context,k=n.contextType,x=va,typeof k=="object"&&k!==null&&(x=vt(k)),_=n.getDerivedStateFromProps,(k=typeof _=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==V||N!==x)&&Th(t,c,a,x),_l=!1,N=t.memoizedState,c.state=N,Ri(t,a,c,o),Ai();var M=t.memoizedState;h!==V||N!==M||_l||e!==null&&e.dependencies!==null&&Ir(e.dependencies)?(typeof _=="function"&&(Cu(t,n,_,a),M=t.memoizedState),(j=_l||xh(t,n,j,a,N,M,x)||e!==null&&e.dependencies!==null&&Ir(e.dependencies))?(k||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,M,x),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,M,x)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),c.props=a,c.state=M,c.context=x,a=j):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,ss(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=$l(t,e.child,null,o),t.child=$l(t,null,n,o)):bt(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Qn(e,t,o),e}function Hh(e,t,n,a){return Pl(),t.flags|=256,bt(e,t,n,a),t.child}var wu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mu(e){return{baseLanes:e,cachePool:Cd()}}function zu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function Vh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(o?bl(t):Sl(),(e=He)?(e=Zm(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:En,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=vd(e),n.return=t,t.child=n,yt=t,He=null)):e=null,e===null)throw pl(t);return _c(e)?t.lanes=32:t.lanes=536870912,null}var _=a.children;return a=a.fallback,o?(Sl(),o=t.mode,_=os({mode:"hidden",children:_},o),a=ql(a,o,n,null),_.return=t,a.return=t,_.sibling=a,t.child=_,a=t.child,a.memoizedState=Mu(n),a.childLanes=zu(e,h,n),t.memoizedState=wu,ki(null,a)):(bl(t),ju(t,_))}var x=e.memoizedState;if(x!==null&&(_=x.dehydrated,_!==null)){if(c)t.flags&256?(bl(t),t.flags&=-257,t=Uu(e,t,n)):t.memoizedState!==null?(Sl(),t.child=e.child,t.flags|=128,t=null):(Sl(),_=a.fallback,o=t.mode,a=os({mode:"visible",children:a.children},o),_=ql(_,o,n,null),_.flags|=2,a.return=t,_.return=t,a.sibling=_,t.child=a,$l(t,e.child,null,n),a=t.child,a.memoizedState=Mu(n),a.childLanes=zu(e,h,n),t.memoizedState=wu,t=ki(null,a));else if(bl(t),_c(_)){if(h=_.nextSibling&&_.nextSibling.dataset,h)var k=h.dgst;h=k,a=Error(s(419)),a.stack="",a.digest=h,vi({value:a,source:null,stack:null}),t=Uu(e,t,n)}else if(at||xa(e,t,n,!1),h=(n&e.childLanes)!==0,at||h){if(h=je,h!==null&&(a=Er(h,n),a!==0&&a!==x.retryLane))throw x.retryLane=a,Il(e,a),Ht(h,e,a),ku;gc(_)||_s(),t=Uu(e,t,n)}else gc(_)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,He=cn(_.nextSibling),yt=t,Se=!0,ml=null,on=!1,e!==null&&Ed(t,e),t=ju(t,a.children),t.flags|=4096);return t}return o?(Sl(),_=a.fallback,o=t.mode,x=e.child,k=x.sibling,a=Gn(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,k!==null?_=Gn(k,_):(_=ql(_,o,n,null),_.flags|=2),_.return=t,a.return=t,a.sibling=_,t.child=a,ki(null,a),a=t.child,_=e.child.memoizedState,_===null?_=Mu(n):(o=_.cachePool,o!==null?(x=nt._currentValue,o=o.parent!==x?{parent:x,pool:x}:o):o=Cd(),_={baseLanes:_.baseLanes|n,cachePool:o}),a.memoizedState=_,a.childLanes=zu(e,h,n),t.memoizedState=wu,ki(e.child,a)):(bl(t),n=e.child,e=n.sibling,n=Gn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function ju(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Uu(e,t,n){return $l(t,e.child,null,n),e=ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Wo(e.return,t,n)}function Bu(e,t,n,a,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function Ih(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var h=Je.current,_=(h&2)!==0;if(_?(h=h&1|2,t.flags|=128):h&=1,X(Je,h),bt(e,t,a,n),a=Se?yi:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gh(e,n,t);else if(e.tag===19)Gh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&$r(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bu(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&$r(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bu(t,!0,n,null,c,a);break;case"together":Bu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(xa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ir(e)))}function Ny(e,t,n){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),gl(t,nt,e.memoizedState.cache),Pl();break;case 27:case 5:Ln(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(bl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Vh(e,t,n):(bl(t),e=Qn(e,t,n),e!==null?e.sibling:null);bl(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(xa(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return Ih(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),X(Je,Je.current),a)break;return null;case 22:return t.lanes=0,Mh(e,t,n,t.pendingProps);case 24:gl(t,nt,e.memoizedState.cache)}return Qn(e,t,n)}function qh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Hu(e,n)&&(t.flags&128)===0)return at=!1,Ny(e,t,n);at=(e.flags&131072)!==0}else at=!1,Se&&(t.flags&1048576)!==0&&Sd(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Zl(t.elementType),t.type=e,typeof e=="function")Po(e)?(a=Wl(e,a),t.tag=1,t=Bh(null,t,e,a,n)):(t.tag=0,t=Nu(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===Z){t.tag=11,t=kh(null,t,e,a,n);break e}else if(o===te){t.tag=14,t=Nh(null,t,e,a,n);break e}}throw t=Ye(e)||e,Error(s(306,t,""))}}return t;case 0:return Nu(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Wl(a,t.pendingProps),Bh(e,t,a,o,n);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,iu(e,t),Ri(t,a,null,n);var h=t.memoizedState;if(a=h.cache,gl(t,nt,a),a!==c.cache&&Fo(t,[nt],n,!0),Ai(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Hh(e,t,a,n);break e}else if(a!==o){o=an(Error(s(424)),t),vi(o),t=Hh(e,t,a,n);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(He=cn(e.firstChild),yt=t,Se=!0,ml=null,on=!0,n=Md(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pl(),a===o){t=Qn(e,t,n);break e}bt(e,t,a,n)}t=t.child}return t;case 26:return ss(e,t),e===null?(n=ep(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,a=Ts(ue.current).createElement(n),a[tt]=t,a[qe]=e,St(a,n,e),me(a),t.stateNode=a):t.memoizedState=ep(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ln(t),e===null&&Se&&(a=t.stateNode=Jm(t.type,t.pendingProps,ue.current),yt=t,on=!0,o=He,Dl(t.type)?(yc=o,He=cn(a.firstChild)):He=o),bt(e,t,t.pendingProps.children,n),ss(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((o=a=He)&&(a=ov(a,t.type,t.pendingProps,on),a!==null?(t.stateNode=a,yt=t,He=cn(a.firstChild),on=!1,o=!0):o=!1),o||pl(t)),Ln(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,hc(o,c)?a=null:h!==null&&hc(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=du(e,t,xy,null,null,n),Xi._currentValue=o),ss(e,t),bt(e,t,a,n),t.child;case 6:return e===null&&Se&&((e=n=He)&&(n=uv(n,t.pendingProps,on),n!==null?(t.stateNode=n,yt=t,He=null,e=!0):e=!1),e||pl(t)),null;case 13:return Vh(e,t,n);case 4:return Ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$l(t,null,a,n):bt(e,t,a,n),t.child;case 11:return kh(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),bt(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Xl(t),o=vt(o),a=a(o),t.flags|=1,bt(e,t,a,n),t.child;case 14:return Nh(e,t,t.type,t.pendingProps,n);case 15:return wh(e,t,t.type,t.pendingProps,n);case 19:return Ih(e,t,n);case 31:return ky(e,t,n);case 22:return Mh(e,t,n,t.pendingProps);case 24:return Xl(t),a=vt(nt),e===null?(o=nu(),o===null&&(o=je,c=eu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},au(t),gl(t,nt,o)):((e.lanes&n)!==0&&(iu(e,t),Ri(t,null,null,n),Ai()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),gl(t,nt,a)):(a=c.cache,gl(t,nt,a),a!==o.cache&&Fo(t,[nt],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Zn(e){e.flags|=4}function Vu(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(gm())e.flags|=8192;else throw Kl=Xr,lu}else e.flags&=-16777217}function Ph(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t))if(gm())e.flags|=8192;else throw Kl=Xr,lu}function us(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jn():536870912,e.lanes|=t,za|=t)}function Ni(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function wy(e,t,n){var a=t.pendingProps;switch(Zo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(nt),Ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ea(t)?Zn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$o())),Ve(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Zn(t),c!==null?(Ve(t),Ph(t,c)):(Ve(t),Vu(t,o,null,a,n))):c?c!==e.memoizedState?(Zn(t),Ve(t),Ph(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Zn(t),Ve(t),Vu(t,o,e,a,n)),null;case 27:if(zl(t),n=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}e=W.current,Ea(t)?xd(t):(e=Jm(o,a,n),t.stateNode=e,Zn(t))}return Ve(t),null;case 5:if(zl(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}if(c=W.current,Ea(t))xd(t);else{var h=Ts(ue.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(o,{is:a.is}):h.createElement(o)}}c[tt]=t,c[qe]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(St(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Zn(t)}}return Ve(t),Vu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Zn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Ea(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=yt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Vm(e.nodeValue,n)),e||pl(t,!0)}else e=Ts(e).createTextNode(a),e[tt]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ea(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=$o(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ve(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ea(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=$o(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),us(t,t.updateQueue),Ve(t),null);case 4:return Ie(),e===null&&oc(t.stateNode.containerInfo),Ve(t),null;case 10:return Pn(t.type),Ve(t),null;case 19:if(G(Je),a=t.memoizedState,a===null)return Ve(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)Ni(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=$r(e),c!==null){for(t.flags|=128,Ni(a,!1),e=c.updateQueue,t.updateQueue=e,us(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yd(n,e),n=n.sibling;return X(Je,Je.current&1|2),Se&&In(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&>()>ms&&(t.flags|=128,o=!0,Ni(a,!1),t.lanes=4194304)}else{if(!o)if(e=$r(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,us(t,e),Ni(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Se)return Ve(t),null}else 2*gt()-a.renderingStartTime>ms&&n!==536870912&&(t.flags|=128,o=!0,Ni(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gt(),e.sibling=null,n=Je.current,X(Je,o?n&1|2:n&1),Se&&In(t,a.treeForkCount),e):(Ve(t),null);case 22:case 23:return Xt(t),uu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&us(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&G(Ql),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Pn(nt),Ve(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function My(e,t){switch(Zo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(nt),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zl(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(s(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Je),null;case 4:return Ie(),null;case 10:return Pn(t.type),null;case 22:case 23:return Xt(t),uu(),e!==null&&G(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(nt),null;case 25:return null;default:return null}}function Yh(e,t){switch(Zo(t),t.tag){case 3:Pn(nt),Ie();break;case 26:case 27:case 5:zl(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:G(Je);break;case 10:Pn(t.type);break;case 22:case 23:Xt(t),uu(),e!==null&&G(Ql);break;case 24:Pn(nt)}}function wi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,h=n.inst;a=c(),h.destroy=a}n=n.next}while(n!==o)}}catch(_){Ne(t,t.return,_)}}function El(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var h=a.inst,_=h.destroy;if(_!==void 0){h.destroy=void 0,o=t;var x=n,k=_;try{k()}catch(j){Ne(o,x,j)}}}a=a.next}while(a!==c)}}catch(j){Ne(t,t.return,j)}}function Xh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{jd(t,n)}catch(a){Ne(e,e.return,a)}}}function Qh(e,t,n){n.props=Wl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ne(e,t,a)}}function Mi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Ne(e,t,o)}}function Tn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Ne(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Ne(e,t,o)}else n.current=null}function Zh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Ne(e,e.return,o)}}function Gu(e,t,n){try{var a=e.stateNode;nv(a,e.type,n,t),a[qe]=t}catch(o){Ne(e,e.return,o)}}function Kh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function Iu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kh(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&&Dl(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 qu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hn));else if(a!==4&&(a===27&&Dl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(qu(e,t,n),e=e.sibling;e!==null;)qu(e,t,n),e=e.sibling}function cs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(cs(e,t,n),e=e.sibling;e!==null;)cs(e,t,n),e=e.sibling}function $h(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);St(t,a,n),t[tt]=e,t[qe]=n}catch(c){Ne(e,e.return,c)}}var Kn=!1,it=!1,Pu=!1,Jh=typeof WeakSet=="function"?WeakSet:Set,ht=null;function zy(e,t){if(e=e.containerInfo,fc=ks,e=ud(e),Uo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,_=-1,x=-1,k=0,j=0,V=e,N=null;t:for(;;){for(var M;V!==n||o!==0&&V.nodeType!==3||(_=h+o),V!==c||a!==0&&V.nodeType!==3||(x=h+a),V.nodeType===3&&(h+=V.nodeValue.length),(M=V.firstChild)!==null;)N=V,V=M;for(;;){if(V===e)break t;if(N===n&&++k===o&&(_=h),N===c&&++j===a&&(x=h),(M=V.nextSibling)!==null)break;V=N,N=V.parentNode}V=M}n=_===-1||x===-1?null:{start:_,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(dc={focusedElem:e,selectionRange:n},ks=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,c=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(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var F=Wl(n.type,o);e=a.getSnapshotBeforeUpdate(F,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){Ne(n,n.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)pc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pc(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,ht=e;break}ht=t.return}}function Wh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Jn(e,n),a&4&&wi(5,n);break;case 1:if(Jn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){Ne(n,n.return,h)}else{var o=Wl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ne(n,n.return,h)}}a&64&&Xh(n),a&512&&Mi(n,n.return);break;case 3:if(Jn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{jd(e,t)}catch(h){Ne(n,n.return,h)}}break;case 27:t===null&&a&4&&$h(n);case 26:case 5:Jn(e,n),t===null&&a&4&&Zh(n),a&512&&Mi(n,n.return);break;case 12:Jn(e,n);break;case 31:Jn(e,n),a&4&&tm(e,n);break;case 13:Jn(e,n),a&4&&nm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Py.bind(null,n),cv(e,n))));break;case 22:if(a=n.memoizedState!==null||Kn,!a){t=t!==null&&t.memoizedState!==null||it,o=Kn;var c=it;Kn=a,(it=t)&&!c?Wn(e,n,(n.subtreeFlags&8772)!==0):Jn(e,n),Kn=o,it=c}break;case 30:break;default:Jn(e,n)}}function Fh(e){var t=e.alternate;t!==null&&(e.alternate=null,Fh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&R(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 Pe=null,zt=!1;function $n(e,t,n){for(n=n.child;n!==null;)em(e,t,n),n=n.sibling}function em(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(bn,n)}catch{}switch(n.tag){case 26:it||Tn(n,t),$n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:it||Tn(n,t);var a=Pe,o=zt;Dl(n.type)&&(Pe=n.stateNode,zt=!1),$n(e,t,n),qi(n.stateNode),Pe=a,zt=o;break;case 5:it||Tn(n,t);case 6:if(a=Pe,o=zt,Pe=null,$n(e,t,n),Pe=a,zt=o,Pe!==null)if(zt)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode)}catch(c){Ne(n,t,c)}else try{Pe.removeChild(n.stateNode)}catch(c){Ne(n,t,c)}break;case 18:Pe!==null&&(zt?(e=Pe,Xm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),qa(e)):Xm(Pe,n.stateNode));break;case 4:a=Pe,o=zt,Pe=n.stateNode.containerInfo,zt=!0,$n(e,t,n),Pe=a,zt=o;break;case 0:case 11:case 14:case 15:El(2,n,t),it||El(4,n,t),$n(e,t,n);break;case 1:it||(Tn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Qh(n,t,a)),$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:it=(a=it)||n.memoizedState!==null,$n(e,t,n),it=a;break;default:$n(e,t,n)}}function tm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qa(e)}catch(n){Ne(t,t.return,n)}}}function nm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qa(e)}catch(n){Ne(t,t.return,n)}}function jy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jh),t;default:throw Error(s(435,e.tag))}}function fs(e,t){var n=jy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=Yy.bind(null,e,a);a.then(o,o)}})}function jt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,h=t,_=h;e:for(;_!==null;){switch(_.tag){case 27:if(Dl(_.type)){Pe=_.stateNode,zt=!1;break e}break;case 5:Pe=_.stateNode,zt=!1;break e;case 3:case 4:Pe=_.stateNode.containerInfo,zt=!0;break e}_=_.return}if(Pe===null)throw Error(s(160));em(c,h,o),Pe=null,zt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)lm(t,e),t=t.sibling}var yn=null;function lm(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),Ut(e),a&4&&(El(3,e,e.return),wi(3,e),El(5,e,e.return));break;case 1:jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&64&&Kn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=yn;if(jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ne]||c[tt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),St(c,a,n),c[tt]=e,me(c),a=c;break e;case"link":var h=lp("link","href",o).get(a+(n.href||""));if(h){for(var _=0;_<h.length;_++)if(c=h[_],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(_,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;case"meta":if(h=lp("meta","content",o).get(a+(n.content||""))){for(_=0;_<h.length;_++)if(c=h[_],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(_,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;default:throw Error(s(468,a))}c[tt]=e,me(c),a=c}e.stateNode=a}else ap(o,e.type,e.stateNode);else e.stateNode=np(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?ap(o,e.type,e.stateNode):np(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Gu(e,e.memoizedProps,n.memoizedProps)}break;case 27:jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),n!==null&&a&4&&Gu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(jt(t,e),Ut(e),a&512&&(it||n===null||Tn(n,n.return)),e.flags&32){o=e.stateNode;try{da(o,"")}catch(F){Ne(e,e.return,F)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Gu(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Pu=!0);break;case 6:if(jt(t,e),Ut(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(F){Ne(e,e.return,F)}}break;case 3:if(Os=null,o=yn,yn=As(t.containerInfo),jt(t,e),yn=o,Ut(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{qa(t.containerInfo)}catch(F){Ne(e,e.return,F)}Pu&&(Pu=!1,am(e));break;case 4:a=yn,yn=As(e.stateNode.containerInfo),jt(t,e),Ut(e),yn=a;break;case 12:jt(t,e),Ut(e);break;case 31:jt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,fs(e,a)));break;case 13:jt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(hs=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,fs(e,a)));break;case 22:o=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,k=Kn,j=it;if(Kn=k||o,it=j||x,jt(t,e),it=j,Kn=k,Ut(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||x||Kn||it||Fl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){x=n=t;try{if(c=x.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{_=x.stateNode;var V=x.memoizedProps.style,N=V!=null&&V.hasOwnProperty("display")?V.display:null;_.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(F){Ne(x,x.return,F)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=o?"":x.memoizedProps}catch(F){Ne(x,x.return,F)}}}else if(t.tag===18){if(n===null){x=t;try{var M=x.stateNode;o?Qm(M,!0):Qm(x.stateNode,!1)}catch(F){Ne(x,x.return,F)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,fs(e,n))));break;case 19:jt(t,e),Ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,fs(e,a)));break;case 30:break;case 21:break;default:jt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Kh(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Iu(e);cs(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(da(h,""),n.flags&=-33);var _=Iu(e);cs(e,_,h);break;case 3:case 4:var x=n.stateNode.containerInfo,k=Iu(e);qu(e,k,x);break;default:throw Error(s(161))}}catch(j){Ne(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function am(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;am(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wh(e,t.alternate,t),t=t.sibling}function Fl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:El(4,t,t.return),Fl(t);break;case 1:Tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Qh(t,t.return,n),Fl(t);break;case 27:qi(t.stateNode);case 26:case 5:Tn(t,t.return),Fl(t);break;case 22:t.memoizedState===null&&Fl(t);break;case 30:Fl(t);break;default:Fl(t)}e=e.sibling}}function Wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Wn(o,c,n),wi(4,c);break;case 1:if(Wn(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){Ne(a,a.return,k)}if(a=c,o=a.updateQueue,o!==null){var _=a.stateNode;try{var x=o.shared.hiddenCallbacks;if(x!==null)for(o.shared.hiddenCallbacks=null,o=0;o<x.length;o++)zd(x[o],_)}catch(k){Ne(a,a.return,k)}}n&&h&64&&Xh(c),Mi(c,c.return);break;case 27:$h(c);case 26:case 5:Wn(o,c,n),n&&a===null&&h&4&&Zh(c),Mi(c,c.return);break;case 12:Wn(o,c,n);break;case 31:Wn(o,c,n),n&&h&4&&tm(o,c);break;case 13:Wn(o,c,n),n&&h&4&&nm(o,c);break;case 22:c.memoizedState===null&&Wn(o,c,n),Mi(c,c.return);break;case 30:break;default:Wn(o,c,n)}t=t.sibling}}function Yu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&bi(n))}function Xu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e))}function vn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)im(e,t,n,a),t=t.sibling}function im(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:vn(e,t,n,a),o&2048&&wi(9,t);break;case 1:vn(e,t,n,a);break;case 3:vn(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e)));break;case 12:if(o&2048){vn(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,_=c.onPostCommit;typeof _=="function"&&_(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Ne(t,t.return,x)}}else vn(e,t,n,a);break;case 31:vn(e,t,n,a);break;case 13:vn(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?vn(e,t,n,a):zi(e,t):c._visibility&2?vn(e,t,n,a):(c._visibility|=2,Na(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Yu(h,t);break;case 24:vn(e,t,n,a),o&2048&&Xu(t.alternate,t);break;default:vn(e,t,n,a)}}function Na(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,_=n,x=a,k=h.flags;switch(h.tag){case 0:case 11:case 15:Na(c,h,_,x,o),wi(8,h);break;case 23:break;case 22:var j=h.stateNode;h.memoizedState!==null?j._visibility&2?Na(c,h,_,x,o):zi(c,h):(j._visibility|=2,Na(c,h,_,x,o)),o&&k&2048&&Yu(h.alternate,h);break;case 24:Na(c,h,_,x,o),o&&k&2048&&Xu(h.alternate,h);break;default:Na(c,h,_,x,o)}t=t.sibling}}function zi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:zi(n,a),o&2048&&Yu(a.alternate,a);break;case 24:zi(n,a),o&2048&&Xu(a.alternate,a);break;default:zi(n,a)}t=t.sibling}}var ji=8192;function wa(e,t,n){if(e.subtreeFlags&ji)for(e=e.child;e!==null;)rm(e,t,n),e=e.sibling}function rm(e,t,n){switch(e.tag){case 26:wa(e,t,n),e.flags&ji&&e.memoizedState!==null&&Ev(n,yn,e.memoizedState,e.memoizedProps);break;case 5:wa(e,t,n);break;case 3:case 4:var a=yn;yn=As(e.stateNode.containerInfo),wa(e,t,n),yn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ji,ji=16777216,wa(e,t,n),ji=a):wa(e,t,n));break;default:wa(e,t,n)}}function sm(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 Ui(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,um(a,e)}sm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)om(e),e=e.sibling}function om(e){switch(e.tag){case 0:case 11:case 15:Ui(e),e.flags&2048&&El(9,e,e.return);break;case 3:Ui(e);break;case 12:Ui(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ds(e)):Ui(e);break;default:Ui(e)}}function ds(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,um(a,e)}sm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),ds(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ds(t));break;default:ds(t)}e=e.sibling}}function um(e,t){for(;ht!==null;){var n=ht;switch(n.tag){case 0:case 11:case 15:El(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:bi(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ht=a;else e:for(n=e;ht!==null;){a=ht;var o=a.sibling,c=a.return;if(Fh(a),a===n){ht=null;break e}if(o!==null){o.return=c,ht=o;break e}ht=c}}}var Uy={getCacheForType:function(e){var t=vt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return vt(nt).controller.signal}},By=typeof WeakMap=="function"?WeakMap:Map,Ae=0,je=null,ge=null,ye=0,ke=0,Qt=null,xl=!1,Ma=!1,Qu=!1,Fn=0,Ze=0,Tl=0,ea=0,Zu=0,Zt=0,za=0,Bi=null,Bt=null,Ku=!1,hs=0,cm=0,ms=1/0,ps=null,Al=null,ot=0,Rl=null,ja=null,el=0,$u=0,Ju=null,fm=null,Hi=0,Wu=null;function Kt(){return(Ae&2)!==0&&ye!==0?ye&-ye:z.T!==null?ac():ii()}function dm(){if(Zt===0)if((ye&536870912)===0||Se){var e=zn;zn<<=1,(zn&3932160)===0&&(zn=262144),Zt=e}else Zt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Zt}function Ht(e,t,n){(e===je&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Ua(e,0),Ol(e,ye,Zt,!1)),fl(e,n),((Ae&2)===0||e!==je)&&(e===je&&((Ae&2)===0&&(ea|=n),Ze===4&&Ol(e,ye,Zt,!1)),An(e))}function hm(e,t,n){if((Ae&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Bl(e,t),o=a?Gy(e,t):ec(e,t,!0),c=a;do{if(o===0){Ma&&!a&&Ol(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Hy(n)){o=ec(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var _=e;o=Bi;var x=_.current.memoizedState.isDehydrated;if(x&&(Ua(_,h).flags|=256),h=ec(_,h,!1),h!==2){if(Qu&&!x){_.errorRecoveryDisabledLanes|=c,ea|=c,o=4;break e}c=Bt,Bt=o,c!==null&&(Bt===null?Bt=c:Bt.push.apply(Bt,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){Ua(e,0),Ol(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ol(a,t,Zt,!xl);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=hs+300-gt(),10<o)){if(Ol(a,t,Zt,!xl),ua(a,0,!0)!==0)break e;el=t,a.timeoutHandle=Pm(mm.bind(null,a,n,Bt,ps,Ku,t,Zt,ea,za,xl,c,"Throttled",-0,0),o);break e}mm(a,n,Bt,ps,Ku,t,Zt,ea,za,xl,c,null,-0,0)}}break}while(!0);An(e)}function mm(e,t,n,a,o,c,h,_,x,k,j,V,N,M){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hn},rm(t,c,V);var F=(c&62914560)===c?hs-gt():(c&4194048)===c?cm-gt():0;if(F=xv(V,F),F!==null){el=c,e.cancelPendingCommit=F(Em.bind(null,e,t,c,n,a,o,h,_,x,j,V,null,N,M)),Ol(e,c,h,!k);return}}Em(e,t,c,n,a,o,h,_,x)}function Hy(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!qt(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ol(e,t,n,a){t&=~Zu,t&=~ea,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-et(o),h=1<<c;a[c]=-1,o&=~h}n!==0&&li(e,n,t)}function gs(){return(Ae&6)===0?(Vi(0),!1):!0}function Fu(){if(ge!==null){if(ke===0)var e=ge.return;else e=ge,qn=Yl=null,pu(e),Oa=null,Ei=0,e=ge;for(;e!==null;)Yh(e.alternate,e),e=e.return;ge=null}}function Ua(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,iv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),el=0,Fu(),je=e,ge=n=Gn(e.current,null),ye=t,ke=0,Qt=null,xl=!1,Ma=Bl(e,t),Qu=!1,za=Zt=Zu=ea=Tl=Ze=0,Bt=Bi=null,Ku=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-et(a),c=1<<o;t|=e[o],a&=~c}return Fn=t,Ur(),n}function pm(e,t){ce=null,z.H=Li,t===Ra||t===Yr?(t=kd(),ke=3):t===lu?(t=kd(),ke=4):ke=t===ku?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,ge===null&&(Ze=1,is(e,an(t,e.current)))}function gm(){var e=Yt.current;return e===null?!0:(ye&4194048)===ye?un===null:(ye&62914560)===ye||(ye&536870912)!==0?e===un:!1}function _m(){var e=z.H;return z.H=Li,e===null?Li:e}function ym(){var e=z.A;return z.A=Uy,e}function _s(){Ze=4,xl||(ye&4194048)!==ye&&Yt.current!==null||(Ma=!0),(Tl&134217727)===0&&(ea&134217727)===0||je===null||Ol(je,ye,Zt,!1)}function ec(e,t,n){var a=Ae;Ae|=2;var o=_m(),c=ym();(je!==e||ye!==t)&&(ps=null,Ua(e,t)),t=!1;var h=Ze;e:do try{if(ke!==0&&ge!==null){var _=ge,x=Qt;switch(ke){case 8:Fu(),h=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var k=ke;if(ke=0,Qt=null,Ba(e,_,x,k),n&&Ma){h=0;break e}break;default:k=ke,ke=0,Qt=null,Ba(e,_,x,k)}}Vy(),h=Ze;break}catch(j){pm(e,j)}while(!0);return t&&e.shellSuspendCounter++,qn=Yl=null,Ae=a,z.H=o,z.A=c,ge===null&&(je=null,ye=0,Ur()),h}function Vy(){for(;ge!==null;)vm(ge)}function Gy(e,t){var n=Ae;Ae|=2;var a=_m(),o=ym();je!==e||ye!==t?(ps=null,ms=gt()+500,Ua(e,t)):Ma=Bl(e,t);e:do try{if(ke!==0&&ge!==null){t=ge;var c=Qt;t:switch(ke){case 1:ke=0,Qt=null,Ba(e,t,c,1);break;case 2:case 9:if(Dd(c)){ke=0,Qt=null,bm(t);break}t=function(){ke!==2&&ke!==9||je!==e||(ke=7),An(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Dd(c)?(ke=0,Qt=null,bm(t)):(ke=0,Qt=null,Ba(e,t,c,7));break;case 5:var h=null;switch(ge.tag){case 26:h=ge.memoizedState;case 5:case 27:var _=ge;if(h?ip(h):_.stateNode.complete){ke=0,Qt=null;var x=_.sibling;if(x!==null)ge=x;else{var k=_.return;k!==null?(ge=k,ys(k)):ge=null}break t}}ke=0,Qt=null,Ba(e,t,c,5);break;case 6:ke=0,Qt=null,Ba(e,t,c,6);break;case 8:Fu(),Ze=6;break e;default:throw Error(s(462))}}Iy();break}catch(j){pm(e,j)}while(!0);return qn=Yl=null,z.H=a,z.A=o,Ae=n,ge!==null?0:(je=null,ye=0,Ur(),Ze)}function Iy(){for(;ge!==null&&!vr();)vm(ge)}function vm(e){var t=qh(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?ys(e):ge=t}function bm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Uh(n,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=Uh(n,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:pu(t);default:Yh(n,t),t=ge=yd(t,Fn),t=qh(n,t,Fn)}e.memoizedProps=e.pendingProps,t===null?ys(e):ge=t}function Ba(e,t,n,a){qn=Yl=null,pu(t),Oa=null,Ei=0;var o=t.return;try{if(Ly(e,o,t,n,ye)){Ze=1,is(e,an(n,e.current)),ge=null;return}}catch(c){if(o!==null)throw ge=o,c;Ze=1,is(e,an(n,e.current)),ge=null;return}t.flags&32768?(Se||a===1?e=!0:Ma||(ye&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Sm(t,e)):ys(t)}function ys(e){var t=e;do{if((t.flags&32768)!==0){Sm(t,xl);return}e=t.return;var n=wy(t.alternate,t,Fn);if(n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ze===0&&(Ze=5)}function Sm(e,t){do{var n=My(e.alternate,e);if(n!==null){n.flags&=32767,ge=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=n}while(e!==null);Ze=6,ge=null}function Em(e,t,n,a,o,c,h,_,x){e.cancelPendingCommit=null;do vs();while(ot!==0);if((Ae&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Io,ni(e,n,c,h,_,x),e===je&&(ge=je=null,ye=0),ja=t,Rl=e,el=n,$u=c,Ju=o,fm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xy(cl,function(){return Om(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,o=K.p,K.p=2,h=Ae,Ae|=4;try{zy(e,t,n)}finally{Ae=h,K.p=o,z.T=a}}ot=1,xm(),Tm(),Am()}}function xm(){if(ot===1){ot=0;var e=Rl,t=ja,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var a=K.p;K.p=2;var o=Ae;Ae|=4;try{lm(t,e);var c=dc,h=ud(e.containerInfo),_=c.focusedElem,x=c.selectionRange;if(h!==_&&_&&_.ownerDocument&&od(_.ownerDocument.documentElement,_)){if(x!==null&&Uo(_)){var k=x.start,j=x.end;if(j===void 0&&(j=k),"selectionStart"in _)_.selectionStart=k,_.selectionEnd=Math.min(j,_.value.length);else{var V=_.ownerDocument||document,N=V&&V.defaultView||window;if(N.getSelection){var M=N.getSelection(),F=_.textContent.length,se=Math.min(x.start,F),ze=x.end===void 0?se:Math.min(x.end,F);!M.extend&&se>ze&&(h=ze,ze=se,se=h);var D=sd(_,se),O=sd(_,ze);if(D&&O&&(M.rangeCount!==1||M.anchorNode!==D.node||M.anchorOffset!==D.offset||M.focusNode!==O.node||M.focusOffset!==O.offset)){var L=V.createRange();L.setStart(D.node,D.offset),M.removeAllRanges(),se>ze?(M.addRange(L),M.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),M.addRange(L))}}}}for(V=[],M=_;M=M.parentNode;)M.nodeType===1&&V.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<V.length;_++){var H=V[_];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}ks=!!fc,dc=fc=null}finally{Ae=o,K.p=a,z.T=n}}e.current=t,ot=2}}function Tm(){if(ot===2){ot=0;var e=Rl,t=ja,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var a=K.p;K.p=2;var o=Ae;Ae|=4;try{Wh(e,t.alternate,t)}finally{Ae=o,K.p=a,z.T=n}}ot=3}}function Am(){if(ot===4||ot===3){ot=0,vo();var e=Rl,t=ja,n=el,a=fm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,ja=Rl=null,Rm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Al=null),gn(n),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(bn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=z.T,o=K.p,K.p=2,z.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var _=a[h];c(_.value,{componentStack:_.stack})}}finally{z.T=t,K.p=o}}(el&3)!==0&&vs(),An(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Wu?Hi++:(Hi=0,Wu=e):Hi=0,Vi(0)}}function Rm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bi(t)))}function vs(){return xm(),Tm(),Am(),Om()}function Om(){if(ot!==5)return!1;var e=Rl,t=$u;$u=0;var n=gn(el),a=z.T,o=K.p;try{K.p=32>n?32:n,z.T=null,n=Ju,Ju=null;var c=Rl,h=el;if(ot=0,ja=Rl=null,el=0,(Ae&6)!==0)throw Error(s(331));var _=Ae;if(Ae|=4,om(c.current),im(c,c.current,h,n),Ae=_,Vi(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(bn,c)}catch{}return!0}finally{K.p=o,z.T=a,Rm(e,t)}}function Cm(e,t,n){t=an(n,t),t=Lu(e.stateNode,t,2),e=vl(e,t,2),e!==null&&(fl(e,2),An(e))}function Ne(e,t,n){if(e.tag===3)Cm(e,e,n);else for(;t!==null;){if(t.tag===3){Cm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=an(n,e),n=Dh(2),a=vl(t,n,2),a!==null&&(Lh(n,a,t,e),fl(a,2),An(a));break}}t=t.return}}function tc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new By;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(Qu=!0,o.add(n),e=qy.bind(null,e,t,n),t.then(e,e))}function qy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,je===e&&(ye&n)===n&&(Ze===4||Ze===3&&(ye&62914560)===ye&&300>gt()-hs?(Ae&2)===0&&Ua(e,0):Zu|=n,za===ye&&(za=0)),An(e)}function Dm(e,t){t===0&&(t=jn()),e=Il(e,t),e!==null&&(fl(e,t),An(e))}function Py(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dm(e,n)}function Yy(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Dm(e,n)}function Xy(e,t){return ul(e,t)}var bs=null,Ha=null,nc=!1,Ss=!1,lc=!1,Cl=0;function An(e){e!==Ha&&e.next===null&&(Ha===null?bs=Ha=e:Ha=Ha.next=e),Ss=!0,nc||(nc=!0,Zy())}function Vi(e,t){if(!lc&&Ss){lc=!0;do for(var n=!1,a=bs;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var h=a.suspendedLanes,_=a.pingedLanes;c=(1<<31-et(42|e)+1)-1,c&=o&~(h&~_),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,wm(a,c))}else c=ye,c=ua(a,a===je?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Bl(a,c)||(n=!0,wm(a,c));a=a.next}while(n);lc=!1}}function Qy(){Lm()}function Lm(){Ss=nc=!1;var e=0;Cl!==0&&av()&&(e=Cl);for(var t=gt(),n=null,a=bs;a!==null;){var o=a.next,c=km(a,t);c===0?(a.next=null,n===null?bs=o:n.next=o,o===null&&(Ha=n)):(n=a,(e!==0||(c&3)!==0)&&(Ss=!0)),a=o}ot!==0&&ot!==5||Vi(e),Cl!==0&&(Cl=0)}function km(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-et(c),_=1<<h,x=o[h];x===-1?((_&n)===0||(_&a)!==0)&&(o[h]=$e(_,t)):x<=t&&(e.expiredLanes|=_),c&=~_}if(t=je,n=ye,n=ua(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&sa(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Bl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&sa(a),gn(n)){case 2:case 8:n=Gt;break;case 32:n=cl;break;case 268435456:n=Ja;break;default:n=cl}return a=Nm.bind(null,e),n=ul(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&sa(a),e.callbackPriority=2,e.callbackNode=null,2}function Nm(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(vs()&&e.callbackNode!==n)return null;var a=ye;return a=ua(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(hm(e,a,t),km(e,gt()),e.callbackNode!=null&&e.callbackNode===n?Nm.bind(null,e):null)}function wm(e,t){if(vs())return null;hm(e,t,!0)}function Zy(){rv(function(){(Ae&6)!==0?ul(wn,Qy):Lm()})}function ac(){if(Cl===0){var e=Ta;e===0&&(e=Mn,Mn<<=1,(Mn&261888)===0&&(Mn=256)),Cl=e}return Cl}function Mm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Dr(""+e)}function zm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Ky(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Mm((o[qe]||null).action),h=a.submitter;h&&(t=(t=h[qe]||null)?Mm(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var _=new wr("action","action",null,a,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Cl!==0){var x=h?zm(o,h):new FormData(o);Tu(n,{pending:!0,data:x,method:o.method,action:c},null,x)}}else typeof c=="function"&&(_.preventDefault(),x=h?zm(o,h):new FormData(o),Tu(n,{pending:!0,data:x,method:o.method,action:c},c,x))},currentTarget:o}]})}}for(var ic=0;ic<Go.length;ic++){var rc=Go[ic],$y=rc.toLowerCase(),Jy=rc[0].toUpperCase()+rc.slice(1);_n($y,"on"+Jy)}_n(dd,"onAnimationEnd"),_n(hd,"onAnimationIteration"),_n(md,"onAnimationStart"),_n("dblclick","onDoubleClick"),_n("focusin","onFocus"),_n("focusout","onBlur"),_n(hy,"onTransitionRun"),_n(my,"onTransitionStart"),_n(py,"onTransitionCancel"),_n(pd,"onTransitionEnd"),Sn("onMouseEnter",["mouseout","mouseover"]),Sn("onMouseLeave",["mouseout","mouseover"]),Sn("onPointerEnter",["pointerout","pointerover"]),Sn("onPointerLeave",["pointerout","pointerover"]),wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gi="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(" "),Wy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gi));function jm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var h=a.length-1;0<=h;h--){var _=a[h],x=_.instance,k=_.currentTarget;if(_=_.listener,x!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=k;try{c(o)}catch(j){jr(j)}o.currentTarget=null,c=x}else for(h=0;h<a.length;h++){if(_=a[h],x=_.instance,k=_.currentTarget,_=_.listener,x!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=k;try{c(o)}catch(j){jr(j)}o.currentTarget=null,c=x}}}}function _e(e,t){var n=t[ca];n===void 0&&(n=t[ca]=new Set);var a=e+"__bubble";n.has(a)||(Um(t,e,2,!1),n.add(a))}function sc(e,t,n){var a=0;t&&(a|=4),Um(n,e,a,t)}var Es="_reactListening"+Math.random().toString(36).slice(2);function oc(e){if(!e[Es]){e[Es]=!0,_t.forEach(function(n){n!=="selectionchange"&&(Wy.has(n)||sc(n,!1,e),sc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Es]||(t[Es]=!0,sc("selectionchange",!1,t))}}function Um(e,t,n,a){switch(dp(t)){case 2:var o=Rv;break;case 8:o=Ov;break;default:o=xc}n=o.bind(null,t,n,e),o=void 0,!Co||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function uc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var _=a.stateNode.containerInfo;if(_===o)break;if(h===4)for(h=a.return;h!==null;){var x=h.tag;if((x===3||x===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;_!==null;){if(h=q(_),h===null)return;if(x=h.tag,x===5||x===6||x===26||x===27){a=c=h;continue e}_=_.parentNode}}a=a.return}If(function(){var k=c,j=Ro(n),V=[];e:{var N=gd.get(e);if(N!==void 0){var M=wr,F=e;switch(e){case"keypress":if(kr(n)===0)break e;case"keydown":case"keyup":M=Y_;break;case"focusin":F="focus",M=No;break;case"focusout":F="blur",M=No;break;case"beforeblur":case"afterblur":M=No;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=w_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Z_;break;case dd:case hd:case md:M=j_;break;case pd:M=$_;break;case"scroll":case"scrollend":M=k_;break;case"wheel":M=W_;break;case"copy":case"cut":case"paste":M=B_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Qf;break;case"toggle":case"beforetoggle":M=ey}var se=(t&4)!==0,ze=!se&&(e==="scroll"||e==="scrollend"),D=se?N!==null?N+"Capture":null:N;se=[];for(var O=k,L;O!==null;){var H=O;if(L=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||L===null||D===null||(H=ui(O,D),H!=null&&se.push(Ii(O,H,L))),ze)break;O=O.return}0<se.length&&(N=new M(N,F,null,n,j),V.push({event:N,listeners:se}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",N&&n!==Ao&&(F=n.relatedTarget||n.fromElement)&&(q(F)||F[Un]))break e;if((M||N)&&(N=j.window===j?j:(N=j.ownerDocument)?N.defaultView||N.parentWindow:window,M?(F=n.relatedTarget||n.toElement,M=k,F=F?q(F):null,F!==null&&(ze=f(F),se=F.tag,F!==ze||se!==5&&se!==27&&se!==6)&&(F=null)):(M=null,F=k),M!==F)){if(se=Yf,H="onMouseLeave",D="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(se=Qf,H="onPointerLeave",D="onPointerEnter",O="pointer"),ze=M==null?N:De(M),L=F==null?N:De(F),N=new se(H,O+"leave",M,n,j),N.target=ze,N.relatedTarget=L,H=null,q(j)===k&&(se=new se(D,O+"enter",F,n,j),se.target=L,se.relatedTarget=ze,H=se),ze=H,M&&F)t:{for(se=Fy,D=M,O=F,L=0,H=D;H;H=se(H))L++;H=0;for(var ie=O;ie;ie=se(ie))H++;for(;0<L-H;)D=se(D),L--;for(;0<H-L;)O=se(O),H--;for(;L--;){if(D===O||O!==null&&D===O.alternate){se=D;break t}D=se(D),O=se(O)}se=null}else se=null;M!==null&&Bm(V,N,M,se,!1),F!==null&&ze!==null&&Bm(V,ze,F,se,!0)}}e:{if(N=k?De(k):window,M=N.nodeName&&N.nodeName.toLowerCase(),M==="select"||M==="input"&&N.type==="file")var Ee=td;else if(Ff(N))if(nd)Ee=cy;else{Ee=oy;var le=sy}else M=N.nodeName,!M||M.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?k&&To(k.elementType)&&(Ee=td):Ee=uy;if(Ee&&(Ee=Ee(e,k))){ed(V,Ee,n,j);break e}le&&le(e,N,k),e==="focusout"&&k&&N.type==="number"&&k.memoizedProps.value!=null&&xo(N,"number",N.value)}switch(le=k?De(k):window,e){case"focusin":(Ff(le)||le.contentEditable==="true")&&(ga=le,Bo=k,_i=null);break;case"focusout":_i=Bo=ga=null;break;case"mousedown":Ho=!0;break;case"contextmenu":case"mouseup":case"dragend":Ho=!1,cd(V,n,j);break;case"selectionchange":if(dy)break;case"keydown":case"keyup":cd(V,n,j)}var de;if(Mo)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else pa?Jf(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(Zf&&n.locale!=="ko"&&(pa||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&pa&&(de=qf()):(dl=j,Do="value"in dl?dl.value:dl.textContent,pa=!0)),le=xs(k,ve),0<le.length&&(ve=new Xf(ve,e,null,n,j),V.push({event:ve,listeners:le}),de?ve.data=de:(de=Wf(n),de!==null&&(ve.data=de)))),(de=ny?ly(e,n):ay(e,n))&&(ve=xs(k,"onBeforeInput"),0<ve.length&&(le=new Xf("onBeforeInput","beforeinput",null,n,j),V.push({event:le,listeners:ve}),le.data=de)),Ky(V,e,k,n,j)}jm(V,t)})}function Ii(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xs(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ui(e,n),o!=null&&a.unshift(Ii(e,o,c)),o=ui(e,t),o!=null&&a.push(Ii(e,o,c))),e.tag===3)return a;e=e.return}return[]}function Fy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bm(e,t,n,a,o){for(var c=t._reactName,h=[];n!==null&&n!==a;){var _=n,x=_.alternate,k=_.stateNode;if(_=_.tag,x!==null&&x===a)break;_!==5&&_!==26&&_!==27||k===null||(x=k,o?(k=ui(n,c),k!=null&&h.unshift(Ii(n,k,x))):o||(k=ui(n,c),k!=null&&h.push(Ii(n,k,x)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var ev=/\r\n?/g,tv=/\u0000|\uFFFD/g;function Hm(e){return(typeof e=="string"?e:""+e).replace(ev,`
|
|
50
|
+
`).replace(tv,"")}function Vm(e,t){return t=Hm(t),Hm(e)===t}function Me(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||da(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&da(e,""+a);break;case"className":Or(e,"class",a);break;case"tabIndex":Or(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Or(e,n,a);break;case"style":Vf(e,a,c);break;case"data":if(t!=="object"){Or(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Dr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 c=="function"&&(n==="formAction"?(t!=="input"&&Me(e,t,"name",o.name,o,null),Me(e,t,"formEncType",o.formEncType,o,null),Me(e,t,"formMethod",o.formMethod,o,null),Me(e,t,"formTarget",o.formTarget,o,null)):(Me(e,t,"encType",o.encType,o,null),Me(e,t,"method",o.method,o,null),Me(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Dr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Hn);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Dr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Rr(e,"popover",a);break;case"xlinkActuate":Bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Rr(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=D_.get(n)||n,Rr(e,n,a))}}function cc(e,t,n,a,o,c){switch(n){case"style":Vf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?da(e,a):(typeof a=="number"||typeof a=="bigint")&&da(e,""+a);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!en.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[qe]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Rr(e,n,a)}}}function St(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,c,h,n,null)}}o&&Me(e,t,"srcSet",n.srcSet,n,null),a&&Me(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var _=c=h=o=null,x=null,k=null;for(a in n)if(n.hasOwnProperty(a)){var j=n[a];if(j!=null)switch(a){case"name":o=j;break;case"type":h=j;break;case"checked":x=j;break;case"defaultChecked":k=j;break;case"value":c=j;break;case"defaultValue":_=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:Me(e,t,a,j,n,null)}}jf(e,c,_,x,k,h,o,!1);return;case"select":_e("invalid",e),a=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(_=n[o],_!=null))switch(o){case"value":c=_;break;case"defaultValue":h=_;break;case"multiple":a=_;default:Me(e,t,o,_,n,null)}t=c,n=h,e.multiple=!!a,t!=null?fa(e,!!a,t,!1):n!=null&&fa(e,!!a,n,!0);return;case"textarea":_e("invalid",e),c=o=a=null;for(h in n)if(n.hasOwnProperty(h)&&(_=n[h],_!=null))switch(h){case"value":a=_;break;case"defaultValue":o=_;break;case"children":c=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:Me(e,t,h,_,n,null)}Bf(e,a,o,c);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,x,a,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(a=0;a<Gi.length;a++)_e(Gi[a],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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(k in n)if(n.hasOwnProperty(k)&&(a=n[k],a!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,k,a,n,null)}return;default:if(To(t)){for(j in n)n.hasOwnProperty(j)&&(a=n[j],a!==void 0&&cc(e,t,j,a,n,void 0));return}}for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!=null&&Me(e,t,_,a,n,null))}function nv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,_=null,x=null,k=null,j=null;for(M in n){var V=n[M];if(n.hasOwnProperty(M)&&V!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":x=V;default:a.hasOwnProperty(M)||Me(e,t,M,null,a,V)}}for(var N in a){var M=a[N];if(V=n[N],a.hasOwnProperty(N)&&(M!=null||V!=null))switch(N){case"type":c=M;break;case"name":o=M;break;case"checked":k=M;break;case"defaultChecked":j=M;break;case"value":h=M;break;case"defaultValue":_=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:M!==V&&Me(e,t,N,M,a,V)}}Eo(e,h,_,x,k,j,c,o);return;case"select":M=h=_=N=null;for(c in n)if(x=n[c],n.hasOwnProperty(c)&&x!=null)switch(c){case"value":break;case"multiple":M=x;default:a.hasOwnProperty(c)||Me(e,t,c,null,a,x)}for(o in a)if(c=a[o],x=n[o],a.hasOwnProperty(o)&&(c!=null||x!=null))switch(o){case"value":N=c;break;case"defaultValue":_=c;break;case"multiple":h=c;default:c!==x&&Me(e,t,o,c,a,x)}t=_,n=h,a=M,N!=null?fa(e,!!n,N,!1):!!a!=!!n&&(t!=null?fa(e,!!n,t,!0):fa(e,!!n,n?[]:"",!1));return;case"textarea":M=N=null;for(_ in n)if(o=n[_],n.hasOwnProperty(_)&&o!=null&&!a.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Me(e,t,_,null,a,o)}for(h in a)if(o=a[h],c=n[h],a.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":N=o;break;case"defaultValue":M=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Me(e,t,h,o,a,c)}Uf(e,N,M);return;case"option":for(var F in n)if(N=n[F],n.hasOwnProperty(F)&&N!=null&&!a.hasOwnProperty(F))switch(F){case"selected":e.selected=!1;break;default:Me(e,t,F,null,a,N)}for(x in a)if(N=a[x],M=n[x],a.hasOwnProperty(x)&&N!==M&&(N!=null||M!=null))switch(x){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:Me(e,t,x,N,a,M)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var se in n)N=n[se],n.hasOwnProperty(se)&&N!=null&&!a.hasOwnProperty(se)&&Me(e,t,se,null,a,N);for(k in a)if(N=a[k],M=n[k],a.hasOwnProperty(k)&&N!==M&&(N!=null||M!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,t));break;default:Me(e,t,k,N,a,M)}return;default:if(To(t)){for(var ze in n)N=n[ze],n.hasOwnProperty(ze)&&N!==void 0&&!a.hasOwnProperty(ze)&&cc(e,t,ze,void 0,a,N);for(j in a)N=a[j],M=n[j],!a.hasOwnProperty(j)||N===M||N===void 0&&M===void 0||cc(e,t,j,N,a,M);return}}for(var D in n)N=n[D],n.hasOwnProperty(D)&&N!=null&&!a.hasOwnProperty(D)&&Me(e,t,D,null,a,N);for(V in a)N=a[V],M=n[V],!a.hasOwnProperty(V)||N===M||N==null&&M==null||Me(e,t,V,N,a,M)}function Gm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,h=o.initiatorType,_=o.duration;if(c&&_&&Gm(h)){for(h=0,_=o.responseEnd,a+=1;a<n.length;a++){var x=n[a],k=x.startTime;if(k>_)break;var j=x.transferSize,V=x.initiatorType;j&&Gm(V)&&(x=x.responseEnd,h+=j*(x<_?1:(_-k)/(x-k)))}if(--a,t+=8*(c+h)/(o.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 fc=null,dc=null;function Ts(e){return e.nodeType===9?e:e.ownerDocument}function Im(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 qm(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 hc(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 mc=null;function av(){var e=window.event;return e&&e.type==="popstate"?e===mc?!1:(mc=e,!0):(mc=null,!1)}var Pm=typeof setTimeout=="function"?setTimeout:void 0,iv=typeof clearTimeout=="function"?clearTimeout:void 0,Ym=typeof Promise=="function"?Promise:void 0,rv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ym<"u"?function(e){return Ym.resolve(null).then(e).catch(sv)}:Pm;function sv(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function Xm(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),qa(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")qi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,qi(n);for(var c=n.firstChild;c;){var h=c.nextSibling,_=c.nodeName;c[ne]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&qi(e.ownerDocument.body);n=o}while(n);qa(t)}function Qm(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function pc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":pc(n),R(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function ov(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ne])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function uv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function Zm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function gc(e){return e.data==="$?"||e.data==="$~"}function _c(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function cv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function cn(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 yc=null;function Km(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function $m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Jm(e,t,n){switch(t=Ts(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function qi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);R(e)}var fn=new Map,Wm=new Set;function As(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var tl=K.d;K.d={f:fv,r:dv,D:hv,C:mv,L:pv,m:gv,X:yv,S:_v,M:vv};function fv(){var e=tl.f(),t=gs();return e||t}function dv(e){var t=J(e);t!==null&&t.tag===5&&t.type==="form"?ph(t):tl.r(e)}var Va=typeof document>"u"?null:document;function Fm(e,t,n){var a=Va;if(a&&typeof t=="string"&&t){var o=nn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Wm.has(o)||(Wm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),St(t,"link",e),me(t),a.head.appendChild(t)))}}function hv(e){tl.D(e),Fm("dns-prefetch",e,null)}function mv(e,t){tl.C(e,t),Fm("preconnect",e,t)}function pv(e,t,n){tl.L(e,t,n);var a=Va;if(a&&e&&t){var o='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+nn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+nn(n.imageSizes)+'"]')):o+='[href="'+nn(e)+'"]';var c=o;switch(t){case"style":c=Ga(e);break;case"script":c=Ia(e)}fn.has(c)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),fn.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Pi(c))||t==="script"&&a.querySelector(Yi(c))||(t=a.createElement("link"),St(t,"link",e),me(t),a.head.appendChild(t)))}}function gv(e,t){tl.m(e,t);var n=Va;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+nn(a)+'"][href="'+nn(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ia(e)}if(!fn.has(c)&&(e=S({rel:"modulepreload",href:e},t),fn.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Yi(c)))return}a=n.createElement("link"),St(a,"link",e),me(a),n.head.appendChild(a)}}}function _v(e,t,n){tl.S(e,t,n);var a=Va;if(a&&e){var o=Xe(a).hoistableStyles,c=Ga(e);t=t||"default";var h=o.get(c);if(!h){var _={loading:0,preload:null};if(h=a.querySelector(Pi(c)))_.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=fn.get(c))&&vc(e,n);var x=h=a.createElement("link");me(x),St(x,"link",e),x._p=new Promise(function(k,j){x.onload=k,x.onerror=j}),x.addEventListener("load",function(){_.loading|=1}),x.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Rs(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:_},o.set(c,h)}}}function yv(e,t){tl.X(e,t);var n=Va;if(n&&e){var a=Xe(n).hoistableScripts,o=Ia(e),c=a.get(o);c||(c=n.querySelector(Yi(o)),c||(e=S({src:e,async:!0},t),(t=fn.get(o))&&bc(e,t),c=n.createElement("script"),me(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function vv(e,t){tl.M(e,t);var n=Va;if(n&&e){var a=Xe(n).hoistableScripts,o=Ia(e),c=a.get(o);c||(c=n.querySelector(Yi(o)),c||(e=S({src:e,async:!0,type:"module"},t),(t=fn.get(o))&&bc(e,t),c=n.createElement("script"),me(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function ep(e,t,n,a){var o=(o=ue.current)?As(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ga(n.href),n=Xe(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ga(n.href);var c=Xe(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Pi(e)))&&!c._p&&(h.instance=c,h.state.loading=5),fn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},fn.set(e,n),c||bv(o,e,n,h.state))),t&&a===null)throw Error(s(528,""));return h}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ia(n),n=Xe(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ga(e){return'href="'+nn(e)+'"'}function Pi(e){return'link[rel="stylesheet"]['+e+"]"}function tp(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function bv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),St(t,"link",n),me(t),e.head.appendChild(t))}function Ia(e){return'[src="'+nn(e)+'"]'}function Yi(e){return"script[async]"+e}function np(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+nn(n.href)+'"]');if(a)return t.instance=a,me(a),a;var o=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),me(a),St(a,"style",o),Rs(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ga(n.href);var c=e.querySelector(Pi(o));if(c)return t.state.loading|=4,t.instance=c,me(c),c;a=tp(n),(o=fn.get(o))&&vc(a,o),c=(e.ownerDocument||e).createElement("link"),me(c);var h=c;return h._p=new Promise(function(_,x){h.onload=_,h.onerror=x}),St(c,"link",a),t.state.loading|=4,Rs(c,n.precedence,e),t.instance=c;case"script":return c=Ia(n.src),(o=e.querySelector(Yi(c)))?(t.instance=o,me(o),o):(a=n,(o=fn.get(c))&&(a=S({},n),bc(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),me(o),St(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Rs(a,n.precedence,e));return t.instance}function Rs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,h=0;h<a.length;h++){var _=a[h];if(_.dataset.precedence===t)c=_;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Os=null;function lp(e,t,n){if(Os===null){var a=new Map,o=Os=new Map;o.set(n,a)}else o=Os,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[ne]||c[tt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var _=a.get(h);_?_.push(c):a.set(h,[c])}}return a}function ap(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Sv(e,t,n){if(n===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 ip(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ev(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ga(a.href),c=t.querySelector(Pi(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,me(c);return}c=t.ownerDocument||t,a=tp(a),(o=fn.get(o))&&vc(a,o),c=c.createElement("link"),me(c);var h=c;h._p=new Promise(function(_,x){h.onload=_,h.onerror=x}),St(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Cs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Sc=0;function xv(e,t){return e.stylesheets&&e.count===0&&Ls(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ls(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Sc===0&&(Sc=62500*lv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ls(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Sc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Cs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ls(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ds=null;function Ls(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ds=new Map,t.forEach(Tv,e),Ds=null,Cs.call(e))}function Tv(e,t){if(!(t.state.loading&4)){var n=Ds.get(e);if(n)var a=n.get(null);else{n=new Map,Ds.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||a,c===a&&n.set(null,o),n.set(h,o),this.count++,a=Cs.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Xi={$$typeof:Y,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Av(e,t,n,a,o,c,h,_,x){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=ti(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ti(0),this.hiddenUpdates=ti(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function rp(e,t,n,a,o,c,h,_,x,k,j,V){return e=new Av(e,t,n,h,x,k,j,V,_),t=1,c===!0&&(t|=24),c=Pt(3,null,null,t),e.current=c,c.stateNode=e,t=eu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},au(c),e}function sp(e){return e?(e=va,e):va}function op(e,t,n,a,o,c){o=sp(o),a.context===null?a.context=o:a.pendingContext=o,a=yl(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=vl(e,a,t),n!==null&&(Ht(n,e,t),Ti(n,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ec(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=Il(e,67108864);t!==null&&Ht(t,e,67108864),Ec(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=Kt();t=Nt(t);var n=Il(e,t);n!==null&&Ht(n,e,t),Ec(e,t)}}var ks=!0;function Rv(e,t,n,a){var o=z.T;z.T=null;var c=K.p;try{K.p=2,xc(e,t,n,a)}finally{K.p=c,z.T=o}}function Ov(e,t,n,a){var o=z.T;z.T=null;var c=K.p;try{K.p=8,xc(e,t,n,a)}finally{K.p=c,z.T=o}}function xc(e,t,n,a){if(ks){var o=Tc(a);if(o===null)uc(e,t,a,Ns,n),hp(e,a);else if(Dv(o,e,t,n,a))a.stopPropagation();else if(hp(e,a),t&4&&-1<Cv.indexOf(e)){for(;o!==null;){var c=J(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=It(c.pendingLanes);if(h!==0){var _=c;for(_.pendingLanes|=2,_.entangledLanes|=2;h;){var x=1<<31-et(h);_.entanglements[1]|=x,h&=~x}An(c),(Ae&6)===0&&(ms=gt()+500,Vi(0))}}break;case 31:case 13:_=Il(c,2),_!==null&&Ht(_,c,2),gs(),Ec(c,2)}if(c=Tc(a),c===null&&uc(e,t,a,Ns,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else uc(e,t,a,null,n)}}function Tc(e){return e=Ro(e),Ac(e)}var Ns=null;function Ac(e){if(Ns=null,e=q(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ns=e,null}function dp(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(Ul()){case wn:return 2;case Gt:return 8;case cl:case br:return 32;case Ja:return 268435456;default:return 32}default:return 32}}var Rc=!1,Ll=null,kl=null,Nl=null,Qi=new Map,Zi=new Map,wl=[],Cv="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 hp(e,t){switch(e){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":kl=null;break;case"mouseover":case"mouseout":Nl=null;break;case"pointerover":case"pointerout":Qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zi.delete(t.pointerId)}}function Ki(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=J(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Dv(e,t,n,a,o){switch(t){case"focusin":return Ll=Ki(Ll,e,t,n,a,o),!0;case"dragenter":return kl=Ki(kl,e,t,n,a,o),!0;case"mouseover":return Nl=Ki(Nl,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return Qi.set(c,Ki(Qi.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Zi.set(c,Ki(Zi.get(c)||null,e,t,n,a,o)),!0}return!1}function mp(e){var t=q(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,ri(e.priority,function(){fp(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,ri(e.priority,function(){fp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ws(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ao=a,n.target.dispatchEvent(a),Ao=null}else return t=J(n),t!==null&&cp(t),e.blockedOn=n,!1;t.shift()}return!0}function pp(e,t,n){ws(e)&&n.delete(t)}function Lv(){Rc=!1,Ll!==null&&ws(Ll)&&(Ll=null),kl!==null&&ws(kl)&&(kl=null),Nl!==null&&ws(Nl)&&(Nl=null),Qi.forEach(pp),Zi.forEach(pp)}function Ms(e,t){e.blockedOn===t&&(e.blockedOn=null,Rc||(Rc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Lv)))}var zs=null;function gp(e){zs!==e&&(zs=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){zs===e&&(zs=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Ac(a||n)===null)continue;break}var c=J(n);c!==null&&(e.splice(t,3),t-=3,Tu(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function qa(e){function t(x){return Ms(x,e)}Ll!==null&&Ms(Ll,e),kl!==null&&Ms(kl,e),Nl!==null&&Ms(Nl,e),Qi.forEach(t),Zi.forEach(t);for(var n=0;n<wl.length;n++){var a=wl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wl.length&&(n=wl[0],n.blockedOn===null);)mp(n),n.blockedOn===null&&wl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],h=o[qe]||null;if(typeof c=="function")h||gp(n);else if(h){var _=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[qe]||null)_=h.formAction;else if(Ac(o)!==null)continue}else _=h.action;typeof _=="function"?n[a+1]=_:(n.splice(a,3),a-=3),gp(n)}}}function _p(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Oc(e){this._internalRoot=e}js.prototype.render=Oc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Kt();op(n,a,e,t,null,null)},js.prototype.unmount=Oc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),gs(),t[Un]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=ii();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wl.length&&t!==0&&t<wl[n].priority;n++);wl.splice(n,0,e),n===0&&mp(e)}};var yp=l.version;if(yp!=="19.2.4")throw Error(s(527,yp,"19.2.4"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var kv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Us.isDisabled&&Us.supportsFiber)try{bn=Us.inject(kv),ft=Us}catch{}}return Ji.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,a="",o=Ah,c=Rh,h=Oh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=rp(e,1,!1,null,null,n,a,null,o,c,h,_p),e[Un]=t.current,oc(e),new Oc(t)},Ji.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var a=!1,o="",c=Ah,h=Rh,_=Oh,x=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(_=n.onRecoverableError),n.formState!==void 0&&(x=n.formState)),t=rp(e,1,!0,t,n??null,a,o,x,c,h,_,_p),t.context=sp(null),n=t.current,a=Kt(),a=Nt(a),o=yl(a),o.callback=null,vl(n,o,a),n=a,t.current.lanes=n,fl(t,n),An(t),e[Un]=t.current,oc(e),new js(t)},Ji.version="19.2.4",Ji}var Cp;function qv(){if(Cp)return Lc.exports;Cp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Lc.exports=Iv(),Lc.exports}var Pv=qv();let Yv=0;function Dp(){return`req-${Date.now()}-${++Yv}`}class Xv{constructor(){w(this,"ws",null);w(this,"pending",new Map);w(this,"sendQueue",[]);w(this,"pushHandlers",new Set);w(this,"connectionHandlers",new Set);w(this,"activeSubscriptions",new Map);w(this,"reconnectDelay",500);w(this,"url");w(this,"disposed",!1);const l=location.protocol==="https:"?"wss:":"ws:";this.url=`${l}//${location.host}/ws`}connect(){this.disposed||(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{var l;this.reconnectDelay=500;for(const r of this.sendQueue)(l=this.ws)==null||l.send(r);this.sendQueue=[];for(const[,r]of this.activeSubscriptions)this.rawSend("subscribe-list",r);for(const r of this.connectionHandlers)r(!0)},this.ws.onclose=()=>{for(const l of this.connectionHandlers)l(!1);this.scheduleReconnect()},this.ws.onmessage=l=>{this.handleMessage(JSON.parse(l.data))})}dispose(){var l;this.disposed=!0,(l=this.ws)==null||l.close(),this.ws=null;for(const[,r]of this.pending)r.reject(new Error("disposed"));this.pending.clear(),this.sendQueue=[]}scheduleReconnect(){if(!this.disposed){setTimeout(()=>this.connect(),this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*2,1e4);for(const[l,r]of this.pending)r.reject(new Error("disconnected")),this.pending.delete(l)}}handleMessage(l){var s;if(l.type==="snapshot"||l.type==="upsert"||l.type==="delete"){const u=l.payload;for(const f of this.pushHandlers)f(u);return}const r=this.pending.get(l.id);r&&(this.pending.delete(l.id),l.ok?r.resolve(l.payload):r.reject(new Error(((s=l.error)==null?void 0:s.message)||"unknown error")))}rawSend(l,r){var d;const u={id:Dp(),type:l,payload:r},f=JSON.stringify(u);((d=this.ws)==null?void 0:d.readyState)===WebSocket.OPEN?this.ws.send(f):this.sendQueue.push(f)}send(l,r){return new Promise((s,u)=>{var p;const f=Dp();this.pending.set(f,{resolve:s,reject:u});const g=JSON.stringify({id:f,type:l,payload:r});((p=this.ws)==null?void 0:p.readyState)===WebSocket.OPEN?this.ws.send(g):this.sendQueue.push(g)})}onConnection(l){return this.connectionHandlers.add(l),()=>this.connectionHandlers.delete(l)}onPush(l){return this.pushHandlers.add(l),()=>this.pushHandlers.delete(l)}subscribe(l){return this.activeSubscriptions.set(l.id,l),this.send("subscribe-list",l)}unsubscribe(l){return this.activeSubscriptions.delete(l),this.send("unsubscribe-list",{id:l})}updateStatus(l){return this.send("update-status",l)}editText(l){return this.send("edit-text",l)}createIssue(l){return this.send("create-issue",l)}updatePriority(l,r){return this.send("update-priority",{id:l,priority:r})}updateAssignee(l,r){return this.send("update-assignee",{id:l,assignee:r})}addLabel(l,r){return this.send("label-add",{id:l,label:r})}removeLabel(l,r){return this.send("label-remove",{id:l,label:r})}deleteIssue(l){return this.send("delete-issue",{id:l})}getComments(l){return this.send("get-comments",{id:l})}addComment(l,r){return this.send("add-comment",{id:l,text:r})}addDep(l,r){return this.send("dep-add",{a:l,b:r})}removeDep(l,r){return this.send("dep-remove",{a:l,b:r})}listWorkspaces(){return this.send("list-workspaces")}getWorkspace(){return this.send("get-workspace")}setWorkspace(l,r){return this.send("set-workspace",{path:l,database:r})}fetchIssue(l){return new Promise(r=>{const s=`peek-${l}-${Date.now()}`,u=this.onPush(f=>{f.id!==s||f.type!=="snapshot"||(u(),this.unsubscribe(s),r(f.issues[0]??null))});this.subscribe({id:s,type:"issue-detail",params:{id:l}}),setTimeout(()=>{u(),this.unsubscribe(s),r(null)},3e3)})}}const bg=$.createContext(null);function Qv({children:i}){const l=$.useRef(null);return l.current||(l.current=new Xv,l.current.connect()),v.jsx(bg.Provider,{value:l.current,children:i})}function ho(){const i=$.useContext(bg);if(!i)throw new Error("useWs must be inside WsProvider");return i}function Zv(){const[i,l]=$.useState(window.location.hash||"#/board");return $.useEffect(()=>{const r=()=>l(window.location.hash||"#/board");return window.addEventListener("hashchange",r),()=>window.removeEventListener("hashchange",r)},[]),i}function Lp({href:i,label:l,icon:r,active:s}){return v.jsxs("a",{href:i,className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",style:{background:s?"var(--bg-hover)":"transparent",color:s?"var(--text-primary)":"var(--text-secondary)",fontWeight:s?500:400},onMouseEnter:u=>{s||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{s||(u.currentTarget.style.background="transparent")},children:[r,l]})}const Kv=()=>v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("rect",{x:"1",y:"1",width:"5",height:"6",rx:"1"}),v.jsx("rect",{x:"10",y:"1",width:"5",height:"9",rx:"1"}),v.jsx("rect",{x:"1",y:"9",width:"5",height:"6",rx:"1"}),v.jsx("rect",{x:"10",y:"12",width:"5",height:"3",rx:"1"})]}),$v=()=>v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[v.jsx("line",{x1:"5",y1:"4",x2:"14",y2:"4"}),v.jsx("line",{x1:"5",y1:"8",x2:"14",y2:"8"}),v.jsx("line",{x1:"5",y1:"12",x2:"14",y2:"12"}),v.jsx("circle",{cx:"2",cy:"4",r:"0.75",fill:"currentColor",stroke:"none"}),v.jsx("circle",{cx:"2",cy:"8",r:"0.75",fill:"currentColor",stroke:"none"}),v.jsx("circle",{cx:"2",cy:"12",r:"0.75",fill:"currentColor",stroke:"none"})]});function Jv({children:i}){const l=Zv(),r=ho(),[s,u]=$.useState("");return $.useEffect(()=>{r.getWorkspace().then(f=>{if(f!=null&&f.db_path){const d=f.db_path.split("/").filter(Boolean),g=d.lastIndexOf(".beads");if(g>0){u(d[g-1]);return}}f!=null&&f.root_dir&&u(f.root_dir.split("/").pop()||"")}).catch(()=>{})},[r]),v.jsxs("div",{className:"flex h-screen",style:{background:"var(--bg-base)"},children:[v.jsxs("nav",{className:"flex flex-col",style:{width:"200px",borderRight:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[v.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-5",children:[v.jsx("div",{className:"flex items-center justify-center rounded-md",style:{width:"28px",height:"28px",background:"var(--accent)"},children:v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"white",children:[v.jsx("circle",{cx:"7",cy:"4",r:"2.5"}),v.jsx("circle",{cx:"4",cy:"10",r:"2.5"}),v.jsx("circle",{cx:"10",cy:"10",r:"2.5"})]})}),v.jsx("span",{className:"font-bold",style:{fontSize:"16px",color:"var(--text-primary)"},children:"Beads"})]}),s&&v.jsx("div",{className:"px-4 pb-3 mb-1",style:{borderBottom:"1px solid var(--border-subtle)"},children:v.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:s})}),v.jsxs("div",{className:"px-2 space-y-0.5",children:[v.jsx(Lp,{href:"#/board",label:"Board",icon:v.jsx(Kv,{}),active:l.startsWith("#/board")||l===""||l==="#/"||l==="#"}),v.jsx(Lp,{href:"#/list",label:"List",icon:v.jsx($v,{}),active:l.startsWith("#/list")})]}),v.jsx("div",{className:"flex-1"}),v.jsxs("div",{className:"mx-3 mb-3 px-3 py-2.5 rounded-md flex items-center gap-2.5",style:{border:"1px solid var(--border-subtle)"},children:[v.jsx("div",{className:"flex items-center justify-center rounded-full text-xs font-bold shrink-0",style:{width:"28px",height:"28px",background:"var(--accent)",color:"white"},children:"R"}),v.jsxs("div",{children:[v.jsx("div",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:"Rustam"}),v.jsx("div",{style:{fontSize:"11px",color:"var(--text-tertiary)"},children:"Developer"})]})]})]}),v.jsx("main",{className:"flex-1 overflow-auto",children:i(l)})]})}const kp=new WeakMap;function Sg(i){let l=kp.get(i);return l||(l=new Map,kp.set(i,l)),l}function Eg(i,l){return l?`${i}:${JSON.stringify(l)}`:i}function Wv(i,l,r){const s=Sg(i),u=Eg(l,r);let f=s.get(u);if(f)return f.refCount++,f;const d=`sub-${l}-${Date.now()}`;f={refCount:1,subId:d,items:new Map,listeners:new Set,loading:!0,total:0,cleanupPush:null};const g=()=>{for(const p of f.listeners)p()};return f.cleanupPush=i.onPush(p=>{if(p.id===d)if(p.type==="snapshot"){f.items=new Map;for(const m of p.issues)f.items.set(m.id,m);f.loading=!1,typeof p.total=="number"?f.total=p.total:f.total=p.issues.length,g()}else p.type==="upsert"?(f.items.set(p.issue.id,p.issue),g()):p.type==="delete"&&(f.items.delete(p.issue_id),g())}),i.subscribe({id:d,type:l,params:r}),s.set(u,f),f}function Fv(i,l,r){var d;const s=Sg(i),u=Eg(l,r),f=s.get(u);f&&(f.refCount--,f.refCount<=0&&((d=f.cleanupPush)==null||d.call(f),i.unsubscribe(f.subId),s.delete(u)))}function Xa(i,l){const r=ho(),s=l?JSON.stringify(l):"",u=$.useRef(null),f=$.useRef(!1),[d,g]=$.useState([]),[p,m]=$.useState(0);$.useEffect(()=>{const I=Wv(r,i,l);return u.current=I,()=>{Fv(r,i,l),u.current=null}},[r,i,s]);const[y,S]=$.useState([]),[E,A]=$.useState(!0),[C,B]=$.useState(0);$.useEffect(()=>{const I=u.current;if(!I)return;const Y=Array.from(I.items.values());S(Y),A(I.loading),B(I.total),!I.loading&&Y.length>0&&(f.current=!0,g(Y),m(I.total));const Z=()=>{const ae=Array.from(I.items.values());S(ae),A(I.loading),B(I.total),!I.loading&&ae.length>0&&(f.current=!0,g(ae),m(I.total))};return I.listeners.add(Z),()=>{I.listeners.delete(Z)}},[r,i,s]);const P=E&&!f.current,U=E&&f.current;return{issues:U?d:y,loading:P,refreshing:U,total:U?p:C}}const Np={0:{bg:"rgba(239,68,68,0.12)",text:"#DC2626"},1:{bg:"rgba(249,115,22,0.12)",text:"#EA580C"},2:{bg:"rgba(59,130,246,0.12)",text:"#2563EB"},3:{bg:"rgba(34,197,94,0.12)",text:"#16A34A"},4:{bg:"rgba(156,163,175,0.1)",text:"#9CA3AF"}};function df({priority:i}){const l=Np[i]||Np[4];return v.jsxs("span",{className:"inline-flex items-center justify-center font-mono font-bold",style:{fontSize:"11px",lineHeight:1,padding:"3px 8px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:["P",i]})}const e0={epic:{bg:"rgba(124,58,237,0.1)",text:"#7C3AED"},feature:{bg:"rgba(99,102,241,0.1)",text:"#6366F1"},bug:{bg:"rgba(239,68,68,0.1)",text:"#DC2626"},task:{bg:"rgba(22,163,74,0.1)",text:"#16A34A"},chore:{bg:"rgba(120,113,108,0.1)",text:"#78716C"}},t0={bg:"rgba(120,113,108,0.1)",text:"#78716C"};function hf({type:i}){const l=e0[i]||t0;return v.jsx("span",{className:"inline-flex items-center px-2 py-0.5 font-semibold capitalize",style:{fontSize:"11px",borderRadius:"var(--radius-sm)",backgroundColor:l.bg,color:l.text},children:i})}const wp=["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#64B5F6","#4FC3F7","#4DD0E1","#4DB6AC","#81C784","#AED581","#FFB74D"];function mf(i){const l=i.trim().split(/\s+/);return l.length>=2?(l[0][0]+l[l.length-1][0]).toUpperCase():i.slice(0,2).toUpperCase()}function pf(i){let l=0;for(let r=0;r<i.length;r++)l=i.charCodeAt(r)+((l<<5)-l);return wp[Math.abs(l)%wp.length]}const n0={epic:"#7C3AED",feature:"#6366F1",bug:"#EF4444",task:"#16A34A",chore:"#78716C"};function l0({issue:i,onClick:l,dimmed:r=!1}){const s=n0[i.issue_type]??"#78716C";return v.jsx("button",{onClick:l,className:`issue-card group w-full text-left relative cursor-pointer ${r?"issue-card--dimmed":""}`,style:{borderLeft:`3px solid ${s}`},children:v.jsxs("div",{className:"px-3.5 py-3",children:[v.jsx("div",{className:"mb-1",children:v.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text-tertiary)"},children:i.id})}),v.jsx("p",{className:"text-sm font-medium line-clamp-2 mb-2.5",style:{color:"var(--text-primary)"},children:i.title}),v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx(hf,{type:i.issue_type}),v.jsx(df,{priority:i.priority}),v.jsx("div",{className:"flex-1"}),i.assignee&&v.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:pf(i.assignee),color:"var(--text-inverse)"},title:i.assignee,children:mf(i.assignee)})]})]})})}const Mp=20,a0={open:"var(--status-open)",in_progress:"var(--status-in-progress)",blocked:"var(--status-blocked)",closed:"var(--status-closed)"};function Bs({title:i,subscriptionType:l,statusKey:r,onCardClick:s,isClosed:u=!1}){const[f,d]=$.useState(Mp),g=$.useMemo(()=>({limit:f,offset:0}),[f]),{issues:p,loading:m,total:y}=Xa(l,g),S=$.useRef(null),[E,A]=$.useState(!1),C=y>p.length,B=y-p.length,P=a0[r]??"var(--text-tertiary)";return $.useEffect(()=>{const U=S.current;if(!U)return;const I=()=>A(U.scrollHeight>U.clientHeight);I();const Y=new ResizeObserver(I);return Y.observe(U),()=>Y.disconnect()},[p.length]),v.jsxs("div",{className:"flex-1 min-w-[280px] max-w-[360px] flex flex-col self-start",children:[v.jsxs("div",{className:"flex items-center gap-2.5 px-1 pb-3 mb-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[v.jsx("div",{className:"rounded-full shrink-0",style:{width:"10px",height:"10px",backgroundColor:P,boxShadow:`0 0 0 3px ${P}33`}}),v.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:i}),v.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full ml-auto",style:{backgroundColor:"rgba(0,0,0,0.05)",color:"var(--text-tertiary)",fontSize:"11px"},children:m?"…":u&&y>p.length?`${p.length} / ${y}`:y})]}),v.jsxs("div",{ref:S,className:"space-y-2 overflow-y-auto flex-1 pr-1 relative",style:{maxHeight:"calc(100vh - 160px)",maskImage:E?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0,WebkitMaskImage:E?"linear-gradient(to bottom, transparent 0px, black 8px, black calc(100% - 8px), transparent 100%)":void 0},children:[m&&p.length===0&&v.jsx("div",{className:"py-8 text-center",children:v.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"Loading…"})}),!m&&p.length===0&&v.jsx("div",{className:"py-8 text-center",style:{border:"2px dashed var(--border-default)",borderRadius:"var(--radius-md)",minHeight:"100px",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx("p",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"No items"})}),p.map(U=>v.jsx(l0,{issue:U,onClick:()=>s(U.id),dimmed:u},U.id)),C&&v.jsxs("button",{onClick:()=>d(U=>U+Mp),className:"w-full text-xs py-2",style:{color:"var(--text-secondary)",transition:"color 120ms ease"},onMouseEnter:U=>{U.currentTarget.style.color="var(--accent)"},onMouseLeave:U=>{U.currentTarget.style.color="var(--text-secondary)"},children:["Show ",B," more…"]})]})]})}function i0(){const{total:i}=Xa("all-issues",{limit:1,offset:0}),{total:l}=Xa("epics",{limit:1,offset:0}),r=s=>{window.location.hash=`#/detail/${s}`};return v.jsxs("div",{className:"p-6",style:{background:"var(--bg-base)"},children:[v.jsxs("div",{className:"mb-6",children:[v.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Board"}),v.jsxs("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:[i," issues across ",l," epics"]})]}),v.jsxs("div",{className:"flex gap-4 overflow-x-auto items-start",children:[v.jsx(Bs,{title:"Open",subscriptionType:"ready-issues",statusKey:"open",onCardClick:r}),v.jsx(Bs,{title:"In Progress",subscriptionType:"in-progress-issues",statusKey:"in_progress",onCardClick:r}),v.jsx(Bs,{title:"Blocked",subscriptionType:"blocked-issues",statusKey:"blocked",onCardClick:r}),v.jsx(Bs,{title:"Closed",subscriptionType:"closed-issues",statusKey:"closed",onCardClick:r,isClosed:!0})]})]})}const r0={open:{dot:"var(--status-open)",bg:"rgba(59,130,246,0.08)",text:"#2563EB",border:"rgba(59,130,246,0.2)",label:"Open"},in_progress:{dot:"var(--status-in-progress)",bg:"rgba(245,158,11,0.08)",text:"#D97706",border:"rgba(245,158,11,0.2)",label:"In Progress"},blocked:{dot:"var(--status-blocked)",bg:"rgba(239,68,68,0.08)",text:"#DC2626",border:"rgba(239,68,68,0.2)",label:"Blocked"},closed:{dot:"var(--status-closed)",bg:"rgba(34,197,94,0.08)",text:"#16A34A",border:"rgba(34,197,94,0.2)",label:"Closed"}},s0={dot:"#9CA3AF",bg:"rgba(156,163,175,0.08)",text:"#6B7280",border:"rgba(156,163,175,0.2)",label:""};function cr({status:i}){const l=r0[i]||s0;return v.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 font-semibold",style:{fontSize:"11px",borderRadius:"20px",backgroundColor:l.bg,color:l.text,border:`1px solid ${l.border}`},children:[v.jsx("span",{className:"rounded-full shrink-0",style:{width:"6px",height:"6px",backgroundColor:l.dot}}),l.label||i]})}const Hs=20,o0=()=>v.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[v.jsx("circle",{cx:"7",cy:"7",r:"5"}),v.jsx("line",{x1:"11",y1:"11",x2:"14",y2:"14"})]});function u0(){return v.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",style:{borderBottom:"1px solid var(--border-subtle)"},children:[v.jsx("div",{className:"w-36 h-3 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-20 h-5 rounded-full skeleton-shimmer"}),v.jsx("div",{className:"w-8 h-5 rounded skeleton-shimmer"}),v.jsx("div",{className:"flex-1 h-3 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-14 h-5 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-24 h-5 rounded skeleton-shimmer"}),v.jsx("div",{className:"w-16 h-3 rounded skeleton-shimmer"})]})}function c0(){return v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{animation:"spin 0.8s linear infinite"},children:[v.jsx("circle",{cx:"10",cy:"10",r:"8",stroke:"var(--border-default)",strokeWidth:"2"}),v.jsx("path",{d:"M10 2a8 8 0 0 1 8 8",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round"})]})}function f0({search:i,setSearch:l,statusFilter:r,setStatusFilter:s,typeFilter:u,setTypeFilter:f}){return v.jsxs("div",{className:"flex items-center gap-3 mb-4 px-4 py-3 rounded-lg",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-sm)"},children:[v.jsxs("div",{className:"relative flex-1 max-w-xs",children:[v.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--text-tertiary)"},children:v.jsx(o0,{})}),v.jsx("input",{type:"text",value:i,onChange:d=>l(d.target.value),placeholder:"Search issues...",className:"w-full pl-9 pr-3 py-1.5 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:d=>{d.currentTarget.style.borderColor="var(--accent)"},onBlur:d=>{d.currentTarget.style.borderColor="var(--border-default)"}})]}),v.jsxs("select",{value:r,onChange:d=>s(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[v.jsx("option",{value:"all",children:"All statuses"}),v.jsx("option",{value:"open",children:"Open"}),v.jsx("option",{value:"in_progress",children:"In Progress"}),v.jsx("option",{value:"blocked",children:"Blocked"}),v.jsx("option",{value:"closed",children:"Closed"})]}),v.jsxs("select",{value:u,onChange:d=>f(d.target.value),className:"px-3 py-1.5 text-sm rounded-md",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},children:[v.jsx("option",{value:"all",children:"All types"}),v.jsx("option",{value:"epic",children:"Epic"}),v.jsx("option",{value:"feature",children:"Feature"}),v.jsx("option",{value:"task",children:"Task"}),v.jsx("option",{value:"bug",children:"Bug"}),v.jsx("option",{value:"chore",children:"Chore"})]})]})}function d0({page:i,totalPages:l,total:r,pageSize:s,onPageChange:u}){const f=i*s+1,d=Math.min((i+1)*s,r);return v.jsxs("div",{className:"flex items-center justify-between px-1 py-2 text-xs",style:{color:"var(--text-tertiary)"},children:[v.jsx("span",{children:r>0?`${f}–${d} of ${r}`:"0 issues"}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("button",{disabled:i===0,onClick:()=>u(0),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"««"}),v.jsx("button",{disabled:i===0,onClick:()=>u(i-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"«"}),v.jsxs("span",{className:"px-2",children:[i+1," / ",l||1]}),v.jsx("button",{disabled:i>=l-1,onClick:()=>u(i+1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»"}),v.jsx("button",{disabled:i>=l-1,onClick:()=>u(l-1),className:"px-2 py-1 rounded disabled:opacity-30",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},children:"»»"})]})]})}function h0({issue:i,selected:l,onClick:r}){const s=new Date(i.updated_at).toLocaleDateString();return v.jsxs("button",{onClick:r,className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors",style:{borderBottom:"1px solid var(--border-subtle)",background:l?"var(--bg-hover)":"transparent"},onMouseEnter:u=>{l||(u.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:u=>{l||(u.currentTarget.style.background="transparent")},children:[v.jsx("span",{className:"font-mono text-xs w-36 shrink-0 text-left",style:{color:"var(--text-tertiary)"},children:i.id}),v.jsx("span",{className:"w-28 shrink-0",children:v.jsx(cr,{status:i.status})}),v.jsx("span",{className:"w-12 shrink-0",children:v.jsx(df,{priority:i.priority})}),v.jsxs("span",{className:"flex-1 text-left truncate",style:{color:"var(--text-primary)"},children:[i.title,i.issue_type==="epic"&&i.total_children!=null&&v.jsxs("span",{className:"ml-2 text-xs px-1.5 py-0.5 rounded",style:{background:"rgba(0,0,0,0.04)",color:"var(--text-tertiary)"},children:[i.total_children," sub"]})]}),v.jsx("span",{className:"w-16 shrink-0",children:v.jsx(hf,{type:i.issue_type})}),v.jsx("span",{className:"w-28 shrink-0 flex items-center gap-1.5 justify-end",children:i.assignee?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"flex items-center justify-center rounded-full text-[9px] font-bold shrink-0",style:{width:"20px",height:"20px",backgroundColor:pf(i.assignee),color:"var(--text-inverse)"},children:mf(i.assignee)}),v.jsx("span",{className:"text-xs truncate",style:{color:"var(--text-secondary)"},children:i.assignee})]}):v.jsx("span",{className:"text-xs",style:{color:"var(--text-tertiary)"},children:"—"})}),v.jsx("span",{className:"text-xs w-20 text-right shrink-0",style:{color:"var(--text-tertiary)"},children:s})]})}function m0(){const[i,l]=$.useState(""),[r,s]=$.useState(""),[u,f]=$.useState("all"),[d,g]=$.useState("all"),[p,m]=$.useState(0),[y,S]=$.useState(-1),E=$.useRef(null);$.useEffect(()=>{const Z=setTimeout(()=>s(i),300);return()=>clearTimeout(Z)},[i]);const A=$.useMemo(()=>{const Z={};return r.trim()&&(Z.q=r.trim()),u!=="all"&&(Z.status=u),d!=="all"&&(Z.type=d),Z},[r,u,d]),{issues:C,loading:B,refreshing:P,total:U}=Xa("search-issues",A),I=Math.ceil(U/Hs),Y=$.useMemo(()=>{const Z=p*Hs;return C.slice(Z,Z+Hs)},[C,p]);return $.useEffect(()=>{m(0),S(-1)},[u,d,i]),$.useEffect(()=>{S(-1)},[p]),$.useEffect(()=>{const Z=ae=>{ae.target instanceof HTMLInputElement||ae.target instanceof HTMLTextAreaElement||ae.target instanceof HTMLSelectElement||(ae.key==="j"&&S(fe=>Math.min(fe+1,Y.length-1)),ae.key==="k"&&S(fe=>Math.max(fe-1,-1)),ae.key==="Enter"&&Y[y]&&(window.location.hash=`#/detail/${Y[y].id}`))};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[Y,y]),v.jsxs("div",{className:"p-6 h-full flex flex-col",style:{background:"var(--bg-base)"},children:[v.jsxs("div",{className:"mb-4",children:[v.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Issues"}),v.jsx("p",{className:"text-sm mt-0.5",style:{color:"var(--text-tertiary)"},children:B?" ":`${U} issues`})]}),v.jsx(f0,{search:i,setSearch:l,statusFilter:u,setStatusFilter:f,typeFilter:d,setTypeFilter:g}),v.jsx("div",{className:"rounded-t-lg overflow-hidden",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderBottom:"none",boxShadow:"var(--shadow-card)"},children:v.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-tertiary)",borderBottom:"1px solid var(--border-subtle)",fontSize:"11px"},children:[v.jsx("span",{className:"w-36 shrink-0",children:"ID"}),v.jsx("span",{className:"w-28 shrink-0",children:"Status"}),v.jsx("span",{className:"w-12 shrink-0",children:"Priority"}),v.jsx("span",{className:"flex-1",children:"Title"}),v.jsx("span",{className:"w-16 shrink-0",children:"Type"}),v.jsx("span",{className:"w-28 shrink-0 text-right",children:"Assignee"}),v.jsx("span",{className:"w-20 shrink-0 text-right",children:"Date"})]})}),v.jsxs("div",{ref:E,className:"flex-1 overflow-y-auto rounded-b-lg relative",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderTop:"none",boxShadow:"var(--shadow-card)"},children:[B&&v.jsx(v.Fragment,{children:Array.from({length:8}).map((Z,ae)=>v.jsx(u0,{},ae))}),P&&v.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center",style:{background:"rgba(253,251,247,0.6)",backdropFilter:"blur(1px)"},children:v.jsx(c0,{})}),!B&&(Y.length===0?v.jsx("p",{className:"text-sm p-8 text-center",style:{color:"var(--text-tertiary)"},children:"No issues match your filters"}):Y.map((Z,ae)=>v.jsx(h0,{issue:Z,selected:ae===y,onClick:()=>{S(ae),window.location.hash=`#/detail/${Z.id}`}},Z.id)))]}),!B&&I>1&&v.jsx(d0,{page:p,totalPages:I,total:U,pageSize:Hs,onPageChange:m})]})}function xg(){const i=ho();return{updateStatus:$.useCallback((l,r)=>i.updateStatus({id:l,status:r}),[i]),editText:$.useCallback(l=>i.editText(l),[i]),createIssue:$.useCallback(l=>i.createIssue(l),[i]),updatePriority:$.useCallback((l,r)=>i.updatePriority(l,r),[i]),updateAssignee:$.useCallback((l,r)=>i.updateAssignee(l,r),[i]),addLabel:$.useCallback((l,r)=>i.addLabel(l,r),[i]),removeLabel:$.useCallback((l,r)=>i.removeLabel(l,r),[i]),deleteIssue:$.useCallback(l=>i.deleteIssue(l),[i]),addComment:$.useCallback((l,r)=>i.addComment(l,r),[i]),addDep:$.useCallback((l,r)=>i.addDep(l,r),[i]),removeDep:$.useCallback((l,r)=>i.removeDep(l,r),[i])}}function gf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var aa=gf();function Tg(i){aa=i}var or={exec:()=>null};function Le(i,l=""){let r=typeof i=="string"?i:i.source;const s={replace:(u,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(Ot.caret,"$1"),r=r.replace(u,d),s},getRegex:()=>new RegExp(r,l)};return s}var Ot={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},p0=/^(?:[ \t]*(?:\n|$))+/,g0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,pr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,y0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_f=/(?:[*+-]|\d{1,9}[.)])/,Ag=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Rg=Le(Ag).replace(/bull/g,_f).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),v0=Le(Ag).replace(/bull/g,_f).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),yf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,b0=/^[^\n]+/,vf=/(?!\s*\])(?:\\.|[^\[\]\\])+/,S0=Le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),E0=Le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_f).getRegex(),mo="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",bf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,x0=Le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",bf).replace("tag",mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Og=Le(yf).replace("hr",pr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),T0=Le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Og).getRegex(),Sf={blockquote:T0,code:g0,def:S0,fences:_0,heading:y0,hr:pr,html:x0,lheading:Rg,list:E0,newline:p0,paragraph:Og,table:or,text:b0},zp=Le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",pr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),A0={...Sf,lheading:v0,table:zp,paragraph:Le(yf).replace("hr",pr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex()},R0={...Sf,html:Le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:or,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Le(yf).replace("hr",pr).replace("heading",` *#{1,6} *[^
|
|
51
|
+
]`).replace("lheading",Rg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},O0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,C0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cg=/^( {2,}|\\)\n(?!\s*$)/,D0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,po=/[\p{P}\p{S}]/u,Ef=/[\s\p{P}\p{S}]/u,Dg=/[^\s\p{P}\p{S}]/u,L0=Le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ef).getRegex(),Lg=/(?!~)[\p{P}\p{S}]/u,k0=/(?!~)[\s\p{P}\p{S}]/u,N0=/(?:[^\s\p{P}\p{S}]|~)/u,w0=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,kg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,M0=Le(kg,"u").replace(/punct/g,po).getRegex(),z0=Le(kg,"u").replace(/punct/g,Lg).getRegex(),Ng="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",j0=Le(Ng,"gu").replace(/notPunctSpace/g,Dg).replace(/punctSpace/g,Ef).replace(/punct/g,po).getRegex(),U0=Le(Ng,"gu").replace(/notPunctSpace/g,N0).replace(/punctSpace/g,k0).replace(/punct/g,Lg).getRegex(),B0=Le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Dg).replace(/punctSpace/g,Ef).replace(/punct/g,po).getRegex(),H0=Le(/\\(punct)/,"gu").replace(/punct/g,po).getRegex(),V0=Le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),G0=Le(bf).replace("(?:-->|$)","-->").getRegex(),I0=Le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",G0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Fs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,q0=Le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Fs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),wg=Le(/^!?\[(label)\]\[(ref)\]/).replace("label",Fs).replace("ref",vf).getRegex(),Mg=Le(/^!?\[(ref)\](?:\[\])?/).replace("ref",vf).getRegex(),P0=Le("reflink|nolink(?!\\()","g").replace("reflink",wg).replace("nolink",Mg).getRegex(),xf={_backpedal:or,anyPunctuation:H0,autolink:V0,blockSkip:w0,br:Cg,code:C0,del:or,emStrongLDelim:M0,emStrongRDelimAst:j0,emStrongRDelimUnd:B0,escape:O0,link:q0,nolink:Mg,punctuation:L0,reflink:wg,reflinkSearch:P0,tag:I0,text:D0,url:or},Y0={...xf,link:Le(/^!?\[(label)\]\((.*?)\)/).replace("label",Fs).getRegex(),reflink:Le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Fs).getRegex()},Kc={...xf,emStrongRDelimAst:U0,emStrongLDelim:z0,url:Le(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},X0={...Kc,br:Le(Cg).replace("{2,}","*").getRegex(),text:Le(Kc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Vs={normal:Sf,gfm:A0,pedantic:R0},Wi={normal:xf,gfm:Kc,breaks:X0,pedantic:Y0},Q0={"&":"&","<":"<",">":">",'"':""","'":"'"},jp=i=>Q0[i];function Rn(i,l){if(l){if(Ot.escapeTest.test(i))return i.replace(Ot.escapeReplace,jp)}else if(Ot.escapeTestNoEncode.test(i))return i.replace(Ot.escapeReplaceNoEncode,jp);return i}function Up(i){try{i=encodeURI(i).replace(Ot.percentDecode,"%")}catch{return null}return i}function Bp(i,l){var f;const r=i.replace(Ot.findPipe,(d,g,p)=>{let m=!1,y=g;for(;--y>=0&&p[y]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Ot.splitPipe);let u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),l)if(s.length>l)s.splice(l);else for(;s.length<l;)s.push("");for(;u<s.length;u++)s[u]=s[u].trim().replace(Ot.slashPipe,"|");return s}function Fi(i,l,r){const s=i.length;if(s===0)return"";let u=0;for(;u<s&&i.charAt(s-u-1)===l;)u++;return i.slice(0,s-u)}function Z0(i,l){if(i.indexOf(l[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===l[0])r++;else if(i[s]===l[1]&&(r--,r<0))return s;return r>0?-2:-1}function Hp(i,l,r,s,u){const f=l.href,d=l.title||null,g=i[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;const p={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:d,text:g,tokens:s.inlineTokens(g)};return s.state.inLink=!1,p}function K0(i,l,r){const s=i.match(r.other.indentCodeCompensation);if(s===null)return l;const u=s[1];return l.split(`
|
|
52
52
|
`).map(f=>{const d=f.match(r.other.beginningSpace);if(d===null)return f;const[g]=d;return g.length>=u.length?f.slice(u.length):f}).join(`
|
|
53
53
|
`)}var eo=class{constructor(i){w(this,"options");w(this,"rules");w(this,"lexer");this.options=i||aa}space(i){const l=this.rules.block.newline.exec(i);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(i){const l=this.rules.block.code.exec(i);if(l){const r=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Fi(r,`
|
|
54
|
-
`)}}}fences(i){const l=this.rules.block.fences.exec(i);if(l){const r=l[0],s=
|
|
54
|
+
`)}}}fences(i){const l=this.rules.block.fences.exec(i);if(l){const r=l[0],s=K0(r,l[3]||"",this.rules);return{type:"code",raw:r,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:s}}}heading(i){const l=this.rules.block.heading.exec(i);if(l){let r=l[2].trim();if(this.rules.other.endingHash.test(r)){const s=Fi(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(i){const l=this.rules.block.hr.exec(i);if(l)return{type:"hr",raw:Fi(l[0],`
|
|
55
55
|
`)}}blockquote(i){const l=this.rules.block.blockquote.exec(i);if(l){let r=Fi(l[0],`
|
|
56
56
|
`).split(`
|
|
57
57
|
`),s="",u="";const f=[];for(;r.length>0;){let d=!1;const g=[];let p;for(p=0;p<r.length;p++)if(this.rules.other.blockquoteStart.test(r[p]))g.push(r[p]),d=!0;else if(!d)g.push(r[p]);else break;r=r.slice(p);const m=g.join(`
|
|
58
58
|
`),y=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
59
59
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
60
60
|
${m}`:m,u=u?`${u}
|
|
61
|
-
${y}`:y;const
|
|
61
|
+
${y}`:y;const S=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,f,!0),this.lexer.state.top=S,r.length===0)break;const E=f.at(-1);if((E==null?void 0:E.type)==="code")break;if((E==null?void 0:E.type)==="blockquote"){const A=E,C=A.raw+`
|
|
62
62
|
`+r.join(`
|
|
63
|
-
`),B=this.blockquote(
|
|
63
|
+
`),B=this.blockquote(C);f[f.length-1]=B,s=s.substring(0,s.length-A.raw.length)+B.raw,u=u.substring(0,u.length-A.text.length)+B.text;break}else if((E==null?void 0:E.type)==="list"){const A=E,C=A.raw+`
|
|
64
64
|
`+r.join(`
|
|
65
|
-
`),B=this.list(
|
|
66
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(i){let l=this.rules.block.list.exec(i);if(l){let r=l[1].trim();const s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const f=this.rules.other.listItemRegex(r);let d=!1;for(;i;){let p=!1,m="",y="";if(!(l=f.exec(i))||this.rules.block.hr.test(i))break;m=l[0],i=i.substring(m.length);let
|
|
67
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,
|
|
68
|
-
`,1)[0],A=!
|
|
69
|
-
`,i=i.substring(E.length+1),p=!0),!p){const
|
|
70
|
-
`,1)[0];let te;if(E=fe,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),te=E):te=E.replace(this.rules.other.tabCharGlobal," "),Y.test(E)||Z.test(E)||ae.test(E)||
|
|
71
|
-
`+te.slice(
|
|
65
|
+
`),B=this.list(C);f[f.length-1]=B,s=s.substring(0,s.length-E.raw.length)+B.raw,u=u.substring(0,u.length-A.raw.length)+B.raw,r=C.substring(f.at(-1).raw.length).split(`
|
|
66
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(i){let l=this.rules.block.list.exec(i);if(l){let r=l[1].trim();const s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const f=this.rules.other.listItemRegex(r);let d=!1;for(;i;){let p=!1,m="",y="";if(!(l=f.exec(i))||this.rules.block.hr.test(i))break;m=l[0],i=i.substring(m.length);let S=l[2].split(`
|
|
67
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,U=>" ".repeat(3*U.length)),E=i.split(`
|
|
68
|
+
`,1)[0],A=!S.trim(),C=0;if(this.options.pedantic?(C=2,y=S.trimStart()):A?C=l[1].length+1:(C=l[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,y=S.slice(C),C+=l[1].length),A&&this.rules.other.blankLine.test(E)&&(m+=E+`
|
|
69
|
+
`,i=i.substring(E.length+1),p=!0),!p){const U=this.rules.other.nextBulletRegex(C),I=this.rules.other.hrRegex(C),Y=this.rules.other.fencesBeginRegex(C),Z=this.rules.other.headingBeginRegex(C),ae=this.rules.other.htmlBeginRegex(C);for(;i;){const fe=i.split(`
|
|
70
|
+
`,1)[0];let te;if(E=fe,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),te=E):te=E.replace(this.rules.other.tabCharGlobal," "),Y.test(E)||Z.test(E)||ae.test(E)||U.test(E)||I.test(E))break;if(te.search(this.rules.other.nonSpaceChar)>=C||!E.trim())y+=`
|
|
71
|
+
`+te.slice(C);else{if(A||S.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Y.test(S)||Z.test(S)||I.test(S))break;y+=`
|
|
72
72
|
`+E}!A&&!E.trim()&&(A=!0),m+=fe+`
|
|
73
|
-
`,i=i.substring(fe.length+1),
|
|
73
|
+
`,i=i.substring(fe.length+1),S=te.slice(C)}}u.loose||(d?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(d=!0));let B=null,P;this.options.gfm&&(B=this.rules.other.listIsTask.exec(y),B&&(P=B[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),u.items.push({type:"list_item",raw:m,task:!!B,checked:P,loose:!1,text:y,tokens:[]}),u.raw+=m}const g=u.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let p=0;p<u.items.length;p++)if(this.lexer.state.top=!1,u.items[p].tokens=this.lexer.blockTokens(u.items[p].text,[]),!u.loose){const m=u.items[p].tokens.filter(S=>S.type==="space"),y=m.length>0&&m.some(S=>this.rules.other.anyLine.test(S.raw));u.loose=y}if(u.loose)for(let p=0;p<u.items.length;p++)u.items[p].loose=!0;return u}}html(i){const l=this.rules.block.html.exec(i);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(i){const l=this.rules.block.def.exec(i);if(l){const r=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:r,raw:l[0],href:s,title:u}}}table(i){var d;const l=this.rules.block.table.exec(i);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;const r=Bp(l[1]),s=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(d=l[3])!=null&&d.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
74
74
|
`):[],f={type:"table",raw:l[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const g of s)this.rules.other.tableAlignRight.test(g)?f.align.push("right"):this.rules.other.tableAlignCenter.test(g)?f.align.push("center"):this.rules.other.tableAlignLeft.test(g)?f.align.push("left"):f.align.push(null);for(let g=0;g<r.length;g++)f.header.push({text:r[g],tokens:this.lexer.inline(r[g]),header:!0,align:f.align[g]});for(const g of u)f.rows.push(Bp(g,f.header.length).map((p,m)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:f.align[m]})));return f}}lheading(i){const l=this.rules.block.lheading.exec(i);if(l)return{type:"heading",raw:l[0],depth:l[2].charAt(0)==="="?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(i){const l=this.rules.block.paragraph.exec(i);if(l){const r=l[1].charAt(l[1].length-1)===`
|
|
75
|
-
`?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:r,tokens:this.lexer.inline(r)}}}text(i){const l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){const l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){const l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){const l=this.rules.inline.link.exec(i);if(l){const r=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const f=Fi(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{const f=
|
|
75
|
+
`?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:r,tokens:this.lexer.inline(r)}}}text(i){const l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){const l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){const l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){const l=this.rules.inline.link.exec(i);if(l){const r=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const f=Fi(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{const f=Z0(l[2],"()");if(f===-2)return;if(f>-1){const g=(l[0].indexOf("!")===0?5:4)+l[1].length+f;l[2]=l[2].substring(0,f),l[0]=l[0].substring(0,g).trim(),l[3]=""}}let s=l[2],u="";if(this.options.pedantic){const f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],u=f[3])}else u=l[3]?l[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Hp(l,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(i,l){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){const s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=l[s.toLowerCase()];if(!u){const f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return Hp(r,u,r[0],this.lexer,this.rules)}}emStrong(i,l,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const f=[...s[0]].length-1;let d,g,p=f,m=0;const y=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,l=l.slice(-1*i.length+f);(s=y.exec(l))!=null;){if(d=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!d)continue;if(g=[...d].length,s[3]||s[4]){p+=g;continue}else if((s[5]||s[6])&&f%3&&!((f+g)%3)){m+=g;continue}if(p-=g,p>0)continue;g=Math.min(g,g+p+m);const S=[...s[0]][0].length,E=i.slice(0,f+s.index+S+g);if(Math.min(f,g)%2){const C=E.slice(1,-1);return{type:"em",raw:E,text:C,tokens:this.lexer.inlineTokens(C)}}const A=E.slice(2,-2);return{type:"strong",raw:E,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(i){const l=this.rules.inline.code.exec(i);if(l){let r=l[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:l[0],text:r}}}br(i){const l=this.rules.inline.br.exec(i);if(l)return{type:"br",raw:l[0]}}del(i){const l=this.rules.inline.del.exec(i);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(i){const l=this.rules.inline.autolink.exec(i);if(l){let r,s;return l[2]==="@"?(r=l[1],s="mailto:"+r):(r=l[1],s=r),{type:"link",raw:l[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(i){var r;let l;if(l=this.rules.inline.url.exec(i)){let s,u;if(l[2]==="@")s=l[0],u="mailto:"+s;else{let f;do f=l[0],l[0]=((r=this.rules.inline._backpedal.exec(l[0]))==null?void 0:r[0])??"";while(f!==l[0]);s=l[0],l[1]==="www."?u="http://"+l[0]:u=l[0]}return{type:"link",raw:l[0],text:s,href:u,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){const l=this.rules.inline.text.exec(i);if(l){const r=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:r}}}},al=class $c{constructor(l){w(this,"tokens");w(this,"options");w(this,"state");w(this,"tokenizer");w(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=l||aa,this.options.tokenizer=this.options.tokenizer||new eo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:Ot,block:Vs.normal,inline:Wi.normal};this.options.pedantic?(r.block=Vs.pedantic,r.inline=Wi.pedantic):this.options.gfm&&(r.block=Vs.gfm,this.options.breaks?r.inline=Wi.breaks:r.inline=Wi.gfm),this.tokenizer.rules=r}static get rules(){return{block:Vs,inline:Wi}}static lex(l,r){return new $c(r).lex(l)}static lexInline(l,r){return new $c(r).inlineTokens(l)}lex(l){l=l.replace(Ot.carriageReturn,`
|
|
76
76
|
`),this.blockTokens(l,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,r=[],s=!1){var u,f,d;for(this.options.pedantic&&(l=l.replace(Ot.tabCharGlobal," ").replace(Ot.spaceLine,""));l;){let g;if((f=(u=this.options.extensions)==null?void 0:u.block)!=null&&f.some(m=>(g=m.call({lexer:this},l,r))?(l=l.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(l)){l=l.substring(g.raw.length);const m=r.at(-1);g.raw.length===1&&m!==void 0?m.raw+=`
|
|
77
77
|
`:r.push(g);continue}if(g=this.tokenizer.code(l)){l=l.substring(g.raw.length);const m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=`
|
|
78
78
|
`+g.raw,m.text+=`
|
|
79
79
|
`+g.text,this.inlineQueue.at(-1).src=m.text):r.push(g);continue}if(g=this.tokenizer.fences(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.heading(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.hr(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.blockquote(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.list(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.html(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.def(l)){l=l.substring(g.raw.length);const m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=`
|
|
80
80
|
`+g.raw,m.text+=`
|
|
81
|
-
`+g.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title});continue}if(g=this.tokenizer.table(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.lheading(l)){l=l.substring(g.raw.length),r.push(g);continue}let p=l;if((d=this.options.extensions)!=null&&d.startBlock){let m=1/0;const y=l.slice(1);let
|
|
81
|
+
`+g.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title});continue}if(g=this.tokenizer.table(l)){l=l.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.lheading(l)){l=l.substring(g.raw.length),r.push(g);continue}let p=l;if((d=this.options.extensions)!=null&&d.startBlock){let m=1/0;const y=l.slice(1);let S;this.options.extensions.startBlock.forEach(E=>{S=E.call({lexer:this},y),typeof S=="number"&&S>=0&&(m=Math.min(m,S))}),m<1/0&&m>=0&&(p=l.substring(0,m+1))}if(this.state.top&&(g=this.tokenizer.paragraph(p))){const m=r.at(-1);s&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=`
|
|
82
82
|
`+g.raw,m.text+=`
|
|
83
83
|
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(g),s=p.length!==l.length,l=l.substring(g.raw.length);continue}if(g=this.tokenizer.text(l)){l=l.substring(g.raw.length);const m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=`
|
|
84
84
|
`+g.raw,m.text+=`
|
|
85
|
-
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(g);continue}if(l){const m="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(l,r=[]){return this.inlineQueue.push({src:l,tokens:r}),r}inlineTokens(l,r=[]){var g,p,m;let s=l,u=null;if(this.tokens.links){const y=Object.keys(this.tokens.links);if(y.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)y.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,u.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(u=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,d="";for(;l;){f||(d=""),f=!1;let y;if((p=(g=this.options.extensions)==null?void 0:g.inline)!=null&&p.some(E=>(y=E.call({lexer:this},l,r))?(l=l.substring(y.raw.length),r.push(y),!0):!1))continue;if(y=this.tokenizer.escape(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.tag(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.link(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(y.raw.length);const E=r.at(-1);y.type==="text"&&(E==null?void 0:E.type)==="text"?(E.raw+=y.raw,E.text+=y.text):r.push(y);continue}if(y=this.tokenizer.emStrong(l,s,d)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.codespan(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.br(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.del(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.autolink(l)){l=l.substring(y.raw.length),r.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(l))){l=l.substring(y.raw.length),r.push(y);continue}let
|
|
85
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(g);continue}if(l){const m="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(l,r=[]){return this.inlineQueue.push({src:l,tokens:r}),r}inlineTokens(l,r=[]){var g,p,m;let s=l,u=null;if(this.tokens.links){const y=Object.keys(this.tokens.links);if(y.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)y.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,u.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(u=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,d="";for(;l;){f||(d=""),f=!1;let y;if((p=(g=this.options.extensions)==null?void 0:g.inline)!=null&&p.some(E=>(y=E.call({lexer:this},l,r))?(l=l.substring(y.raw.length),r.push(y),!0):!1))continue;if(y=this.tokenizer.escape(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.tag(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.link(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(y.raw.length);const E=r.at(-1);y.type==="text"&&(E==null?void 0:E.type)==="text"?(E.raw+=y.raw,E.text+=y.text):r.push(y);continue}if(y=this.tokenizer.emStrong(l,s,d)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.codespan(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.br(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.del(l)){l=l.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.autolink(l)){l=l.substring(y.raw.length),r.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(l))){l=l.substring(y.raw.length),r.push(y);continue}let S=l;if((m=this.options.extensions)!=null&&m.startInline){let E=1/0;const A=l.slice(1);let C;this.options.extensions.startInline.forEach(B=>{C=B.call({lexer:this},A),typeof C=="number"&&C>=0&&(E=Math.min(E,C))}),E<1/0&&E>=0&&(S=l.substring(0,E+1))}if(y=this.tokenizer.inlineText(S)){l=l.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(d=y.raw.slice(-1)),f=!0;const E=r.at(-1);(E==null?void 0:E.type)==="text"?(E.raw+=y.raw,E.text+=y.text):r.push(y);continue}if(l){const E="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(E);break}else throw new Error(E)}}return r}},to=class{constructor(i){w(this,"options");w(this,"parser");this.options=i||aa}space(i){return""}code({text:i,lang:l,escaped:r}){var f;const s=(f=(l||"").match(Ot.notSpaceStart))==null?void 0:f[0],u=i.replace(Ot.endingNewline,"")+`
|
|
86
86
|
`;return s?'<pre><code class="language-'+Rn(s)+'">'+(r?u:Rn(u,!0))+`</code></pre>
|
|
87
87
|
`:"<pre><code>"+(r?u:Rn(u,!0))+`</code></pre>
|
|
88
88
|
`}blockquote({tokens:i}){return`<blockquote>
|
|
@@ -100,12 +100,12 @@ ${this.parser.parse(i)}</blockquote>
|
|
|
100
100
|
`}tablerow({text:i}){return`<tr>
|
|
101
101
|
${i}</tr>
|
|
102
102
|
`}tablecell(i){const l=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+l+`</${r}>
|
|
103
|
-
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Rn(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:r}){const s=this.parser.parseInline(r),u=Up(i);if(u===null)return s;i=u;let f='<a href="'+i+'"';return l&&(f+=' title="'+Rn(l)+'"'),f+=">"+s+"</a>",f}image({href:i,title:l,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));const u=Up(i);if(u===null)return Rn(r);i=u;let f=`<img src="${i}" alt="${r}"`;return l&&(f+=` title="${Rn(l)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Rn(i.text)}},Tf=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},il=class
|
|
104
|
-
`+this.renderer.text(m);r?s+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):s+=y;continue}default:{const m='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}parseInline(l,r=this.renderer){var u,f;let s="";for(let d=0;d<l.length;d++){const g=l[d];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[g.type]){const m=this.options.extensions.renderers[g.type].call({parser:this},g);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(g.type)){s+=m||"";continue}}const p=g;switch(p.type){case"escape":{s+=r.text(p);break}case"html":{s+=r.html(p);break}case"link":{s+=r.link(p);break}case"image":{s+=r.image(p);break}case"strong":{s+=r.strong(p);break}case"em":{s+=r.em(p);break}case"codespan":{s+=r.codespan(p);break}case"br":{s+=r.br(p);break}case"del":{s+=r.del(p);break}case"text":{s+=r.text(p);break}default:{const m='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}},
|
|
105
|
-
Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An error occurred:</p><pre>"+Rn(r.message+"",!0)+"</pre>";return l?Promise.resolve(s):s}if(l)return Promise.reject(r);throw r}}},la=new K0;function Te(i,l){return la.parse(i,l)}Te.options=Te.setOptions=function(i){return la.setOptions(i),Te.defaults=la.defaults,xg(Te.defaults),Te};Te.getDefaults=gf;Te.defaults=aa;Te.use=function(...i){return la.use(...i),Te.defaults=la.defaults,xg(Te.defaults),Te};Te.walkTokens=function(i,l){return la.walkTokens(i,l)};Te.parseInline=la.parseInline;Te.Parser=il;Te.parser=il.parse;Te.Renderer=to;Te.TextRenderer=Tf;Te.Lexer=al;Te.lexer=al.lex;Te.Tokenizer=eo;Te.Hooks=Zs;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;il.parse;al.lex;/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Mg,setPrototypeOf:Vp,isFrozen:$0,getPrototypeOf:J0,getOwnPropertyDescriptor:W0}=Object;let{freeze:Ct,seal:mn,create:Ks}=Object,{apply:Jc,construct:Wc}=typeof Reflect<"u"&&Reflect;Ct||(Ct=function(l){return l});mn||(mn=function(l){return l});Jc||(Jc=function(l,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return l.apply(r,u)});Wc||(Wc=function(l){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new l(...s)});const Gs=Dt(Array.prototype.forEach),F0=Dt(Array.prototype.lastIndexOf),Gp=Dt(Array.prototype.pop),er=Dt(Array.prototype.push),eb=Dt(Array.prototype.splice),$s=Dt(String.prototype.toLowerCase),wc=Dt(String.prototype.toString),Mc=Dt(String.prototype.match),tr=Dt(String.prototype.replace),tb=Dt(String.prototype.indexOf),nb=Dt(String.prototype.trim),Jt=Dt(Object.prototype.hasOwnProperty),At=Dt(RegExp.prototype.test),nr=lb(TypeError);function Dt(i){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return Jc(i,l,s)}}function lb(i){return function(){for(var l=arguments.length,r=new Array(l),s=0;s<l;s++)r[s]=arguments[s];return Wc(i,r)}}function pe(i,l){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$s;Vp&&Vp(i,null);let s=l.length;for(;s--;){let u=l[s];if(typeof u=="string"){const f=r(u);f!==u&&($0(l)||(l[s]=f),u=f)}i[u]=!0}return i}function ab(i){for(let l=0;l<i.length;l++)Jt(i,l)||(i[l]=null);return i}function On(i){const l=Ks(null);for(const[r,s]of Mg(i))Jt(i,r)&&(Array.isArray(s)?l[r]=ab(s):s&&typeof s=="object"&&s.constructor===Object?l[r]=On(s):l[r]=s);return l}function lr(i,l){for(;i!==null;){const s=W0(i,l);if(s){if(s.get)return Dt(s.get);if(typeof s.value=="function")return Dt(s.value)}i=J0(i)}function r(){return null}return r}const Ip=Ct(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zc=Ct(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jc=Ct(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ib=Ct(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Uc=Ct(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),rb=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qp=Ct(["#text"]),Pp=Ct(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Bc=Ct(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Yp=Ct(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Is=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sb=mn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ob=mn(/<%[\w\W]*|[\w\W]*%>/gm),ub=mn(/\$\{[\w\W]*/gm),cb=mn(/^data-[\-\w.\u00B7-\uFFFF]+$/),fb=mn(/^aria-[\-\w]+$/),zg=mn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),db=mn(/^(?:\w+script|data):/i),hb=mn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jg=mn(/^html$/i),mb=mn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Xp=Object.freeze({__proto__:null,ARIA_ATTR:fb,ATTR_WHITESPACE:hb,CUSTOM_ELEMENT:mb,DATA_ATTR:cb,DOCTYPE_NAME:jg,ERB_EXPR:ob,IS_ALLOWED_URI:zg,IS_SCRIPT_OR_DATA:db,MUSTACHE_EXPR:sb,TMPLIT_EXPR:ub});const ar={element:1,text:3,progressingInstruction:7,comment:8,document:9},pb=function(){return typeof window>"u"?null:window},gb=function(l,r){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Qp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ug(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pb();const l=ne=>Ug(ne);if(l.version="3.3.3",l.removed=[],!i||!i.document||i.document.nodeType!==ar.document||!i.Element)return l.isSupported=!1,l;let{document:r}=i;const s=r,u=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:g,Element:p,NodeFilter:m,NamedNodeMap:y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:b,DOMParser:E,trustedTypes:A}=i,D=p.prototype,B=lr(D,"cloneNode"),P=lr(D,"remove"),V=lr(D,"nextSibling"),I=lr(D,"childNodes"),Y=lr(D,"parentNode");if(typeof d=="function"){const ne=r.createElement("template");ne.content&&ne.content.ownerDocument&&(r=ne.content.ownerDocument)}let Z,ae="";const{implementation:fe,createNodeIterator:te,createDocumentFragment:Ue,getElementsByTagName:pt}=r,{importNode:Lt}=s;let Re=Qp();l.isSupported=typeof Mg=="function"&&typeof Y=="function"&&fe&&fe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ke,ERB_EXPR:Nt,TMPLIT_EXPR:Ye,DATA_ATTR:Fe,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:Oe}=Xp;let{IS_ALLOWED_URI:Ce}=Xp,T=null;const G=pe({},[...Ip,...zc,...jc,...Uc,...qp]);let X=null;const J=pe({},[...Pp,...Bc,...Yp,...Is]);let ee=Object.seal(Ks(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,be=null;const Ge=Object.seal(Ks(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Ln=!0,zl=!1,ra=!0,Nn=!1,Wt=!0,pn=!1,jl=!1,$a=!1,kn=!1,ol=!1,ul=!1,sa=!0,vr=!1;const yo="user-content-";let gt=!0,Ul=!1,wn={},Gt=null;const cl=pe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let br=null;const Ja=pe({},["audio","video","img","source","image","track"]);let Wa=null;const Sr=pe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bn="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let et=dt,Fa=!1,ei=null;const vo=pe({},[bn,ft,dt],wc);let Mn=pe({},["mi","mo","mn","ms","mtext"]),zn=pe({},["annotation-xml"]);const oa=pe({},["title","style","font","a","script"]);let It=null;const ua=["application/xhtml+xml","text/html"],Bl="text/html";let $e=null,jn=null;const ti=r.createElement("form"),fl=function(R){return R instanceof RegExp||R instanceof Function},ni=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jn&&jn===R)){if((!R||typeof R!="object")&&(R={}),R=On(R),It=ua.indexOf(R.PARSER_MEDIA_TYPE)===-1?Bl:R.PARSER_MEDIA_TYPE,$e=It==="application/xhtml+xml"?wc:$s,T=Jt(R,"ALLOWED_TAGS")?pe({},R.ALLOWED_TAGS,$e):G,X=Jt(R,"ALLOWED_ATTR")?pe({},R.ALLOWED_ATTR,$e):J,ei=Jt(R,"ALLOWED_NAMESPACES")?pe({},R.ALLOWED_NAMESPACES,wc):vo,Wa=Jt(R,"ADD_URI_SAFE_ATTR")?pe(On(Sr),R.ADD_URI_SAFE_ATTR,$e):Sr,br=Jt(R,"ADD_DATA_URI_TAGS")?pe(On(Ja),R.ADD_DATA_URI_TAGS,$e):Ja,Gt=Jt(R,"FORBID_CONTENTS")?pe({},R.FORBID_CONTENTS,$e):cl,ue=Jt(R,"FORBID_TAGS")?pe({},R.FORBID_TAGS,$e):On({}),be=Jt(R,"FORBID_ATTR")?pe({},R.FORBID_ATTR,$e):On({}),wn=Jt(R,"USE_PROFILES")?R.USE_PROFILES:!1,Ie=R.ALLOW_ARIA_ATTR!==!1,Ln=R.ALLOW_DATA_ATTR!==!1,zl=R.ALLOW_UNKNOWN_PROTOCOLS||!1,ra=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Nn=R.SAFE_FOR_TEMPLATES||!1,Wt=R.SAFE_FOR_XML!==!1,pn=R.WHOLE_DOCUMENT||!1,kn=R.RETURN_DOM||!1,ol=R.RETURN_DOM_FRAGMENT||!1,ul=R.RETURN_TRUSTED_TYPE||!1,$a=R.FORCE_BODY||!1,sa=R.SANITIZE_DOM!==!1,vr=R.SANITIZE_NAMED_PROPS||!1,gt=R.KEEP_CONTENT!==!1,Ul=R.IN_PLACE||!1,Ce=R.ALLOWED_URI_REGEXP||zg,et=R.NAMESPACE||dt,Mn=R.MATHML_TEXT_INTEGRATION_POINTS||Mn,zn=R.HTML_INTEGRATION_POINTS||zn,ee=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nn&&(Ln=!1),ol&&(kn=!0),wn&&(T=pe({},qp),X=Ks(null),wn.html===!0&&(pe(T,Ip),pe(X,Pp)),wn.svg===!0&&(pe(T,zc),pe(X,Bc),pe(X,Is)),wn.svgFilters===!0&&(pe(T,jc),pe(X,Bc),pe(X,Is)),wn.mathMl===!0&&(pe(T,Uc),pe(X,Yp),pe(X,Is))),Jt(R,"ADD_TAGS")||(Ge.tagCheck=null),Jt(R,"ADD_ATTR")||(Ge.attributeCheck=null),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Ge.tagCheck=R.ADD_TAGS:(T===G&&(T=On(T)),pe(T,R.ADD_TAGS,$e))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Ge.attributeCheck=R.ADD_ATTR:(X===J&&(X=On(X)),pe(X,R.ADD_ATTR,$e))),R.ADD_URI_SAFE_ATTR&&pe(Wa,R.ADD_URI_SAFE_ATTR,$e),R.FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),pe(Gt,R.FORBID_CONTENTS,$e)),R.ADD_FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),pe(Gt,R.ADD_FORBID_CONTENTS,$e)),gt&&(T["#text"]=!0),pn&&pe(T,["html","head","body"]),T.table&&(pe(T,["tbody"]),delete ue.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw nr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw nr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=R.TRUSTED_TYPES_POLICY,ae=Z.createHTML("")}else Z===void 0&&(Z=gb(A,u)),Z!==null&&typeof ae=="string"&&(ae=Z.createHTML(""));Ct&&Ct(R),jn=R}},li=pe({},[...zc,...jc,...ib]),ai=pe({},[...Uc,...rb]),Er=function(R){let q=Y(R);(!q||!q.tagName)&&(q={namespaceURI:et,tagName:"template"});const $=$s(R.tagName),De=$s(q.tagName);return ei[R.namespaceURI]?R.namespaceURI===ft?q.namespaceURI===dt?$==="svg":q.namespaceURI===bn?$==="svg"&&(De==="annotation-xml"||Mn[De]):!!li[$]:R.namespaceURI===bn?q.namespaceURI===dt?$==="math":q.namespaceURI===ft?$==="math"&&zn[De]:!!ai[$]:R.namespaceURI===dt?q.namespaceURI===ft&&!zn[De]||q.namespaceURI===bn&&!Mn[De]?!1:!ai[$]&&(oa[$]||!li[$]):!!(It==="application/xhtml+xml"&&ei[R.namespaceURI]):!1},kt=function(R){er(l.removed,{element:R});try{Y(R).removeChild(R)}catch{P(R)}},gn=function(R,q){try{er(l.removed,{attribute:q.getAttributeNode(R),from:q})}catch{er(l.removed,{attribute:null,from:q})}if(q.removeAttribute(R),R==="is")if(kn||ol)try{kt(q)}catch{}else try{q.setAttribute(R,"")}catch{}},ii=function(R){let q=null,$=null;if($a)R="<remove></remove>"+R;else{const me=Mc(R,/^[\r\n\t ]+/);$=me&&me[0]}It==="application/xhtml+xml"&&et===dt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const De=Z?Z.createHTML(R):R;if(et===dt)try{q=new E().parseFromString(De,It)}catch{}if(!q||!q.documentElement){q=fe.createDocument(et,"template",null);try{q.documentElement.innerHTML=Fa?ae:De}catch{}}const Xe=q.body||q.documentElement;return R&&$&&Xe.insertBefore(r.createTextNode($),Xe.childNodes[0]||null),et===dt?pt.call(q,pn?"html":"body")[0]:pn?q.documentElement:Xe},ri=function(R){return te.call(R.ownerDocument||R,R,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Ft=function(R){return R instanceof b&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof y)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},tt=function(R){return typeof g=="function"&&R instanceof g};function qe(ne,R,q){Gs(ne,$=>{$.call(l,R,q,jn)})}const Un=function(R){let q=null;if(qe(Re.beforeSanitizeElements,R,null),Ft(R))return kt(R),!0;const $=$e(R.nodeName);if(qe(Re.uponSanitizeElement,R,{tagName:$,allowedTags:T}),Wt&&R.hasChildNodes()&&!tt(R.firstElementChild)&&At(/<[/\w!]/g,R.innerHTML)&&At(/<[/\w!]/g,R.textContent)||R.nodeType===ar.progressingInstruction||Wt&&R.nodeType===ar.comment&&At(/<[/\w]/g,R.data))return kt(R),!0;if(!(Ge.tagCheck instanceof Function&&Ge.tagCheck($))&&(!T[$]||ue[$])){if(!ue[$]&&xr($)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,$)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck($)))return!1;if(gt&&!Gt[$]){const De=Y(R)||R.parentNode,Xe=I(R)||R.childNodes;if(Xe&&De){const me=Xe.length;for(let _t=me-1;_t>=0;--_t){const en=B(Xe[_t],!0);en.__removalCount=(R.__removalCount||0)+1,De.insertBefore(en,V(R))}}}return kt(R),!0}return R instanceof p&&!Er(R)||($==="noscript"||$==="noembed"||$==="noframes")&&At(/<\/no(script|embed|frames)/i,R.innerHTML)?(kt(R),!0):(Nn&&R.nodeType===ar.text&&(q=R.textContent,Gs([Ke,Nt,Ye],De=>{q=tr(q,De," ")}),R.textContent!==q&&(er(l.removed,{element:R.cloneNode()}),R.textContent=q)),qe(Re.afterSanitizeElements,R,null),!1)},ca=function(R,q,$){if(be[q]||sa&&(q==="id"||q==="name")&&($ in r||$ in ti))return!1;if(!(Ln&&!be[q]&&At(Fe,q))){if(!(Ie&&At(z,q))){if(!(Ge.attributeCheck instanceof Function&&Ge.attributeCheck(q,R))){if(!X[q]||be[q]){if(!(xr(R)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,R)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(R))&&(ee.attributeNameCheck instanceof RegExp&&At(ee.attributeNameCheck,q)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(q,R))||q==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,$)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck($))))return!1}else if(!Wa[q]){if(!At(Ce,tr($,re,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&R!=="script"&&tb($,"data:")===0&&br[R])){if(!(zl&&!At(K,tr($,re,"")))){if($)return!1}}}}}}}return!0},xr=function(R){return R!=="annotation-xml"&&Mc(R,Oe)},Tr=function(R){qe(Re.beforeSanitizeAttributes,R,null);const{attributes:q}=R;if(!q||Ft(R))return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let De=q.length;for(;De--;){const Xe=q[De],{name:me,namespaceURI:_t,value:en}=Xe,wt=$e(me),Sn=en;let st=me==="value"?Sn:nb(Sn);if($.attrName=wt,$.attrValue=st,$.keepAttr=!0,$.forceKeepAttr=void 0,qe(Re.uponSanitizeAttribute,R,$),st=$.attrValue,vr&&(wt==="id"||wt==="name")&&(gn(me,R),st=yo+st),Wt&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,st)){gn(me,R);continue}if(wt==="attributename"&&Mc(st,"href")){gn(me,R);continue}if($.forceKeepAttr)continue;if(!$.keepAttr){gn(me,R);continue}if(!ra&&At(/\/>/i,st)){gn(me,R);continue}Nn&&Gs([Ke,Nt,Ye],oi=>{st=tr(st,oi," ")});const si=$e(R.nodeName);if(!ca(si,wt,st)){gn(me,R);continue}if(Z&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!_t)switch(A.getAttributeType(si,wt)){case"TrustedHTML":{st=Z.createHTML(st);break}case"TrustedScriptURL":{st=Z.createScriptURL(st);break}}if(st!==Sn)try{_t?R.setAttributeNS(_t,me,st):R.setAttribute(me,st),Ft(R)?kt(R):Gp(l.removed)}catch{gn(me,R)}}qe(Re.afterSanitizeAttributes,R,null)},Ar=function ne(R){let q=null;const $=ri(R);for(qe(Re.beforeSanitizeShadowDOM,R,null);q=$.nextNode();)qe(Re.uponSanitizeShadowNode,q,null),Un(q),Tr(q),q.content instanceof f&&ne(q.content);qe(Re.afterSanitizeShadowDOM,R,null)};return l.sanitize=function(ne){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,$=null,De=null,Xe=null;if(Fa=!ne,Fa&&(ne="<!-->"),typeof ne!="string"&&!tt(ne))if(typeof ne.toString=="function"){if(ne=ne.toString(),typeof ne!="string")throw nr("dirty is not a string, aborting")}else throw nr("toString is not a function");if(!l.isSupported)return ne;if(jl||ni(R),l.removed=[],typeof ne=="string"&&(Ul=!1),Ul){if(ne.nodeName){const en=$e(ne.nodeName);if(!T[en]||ue[en])throw nr("root node is forbidden and cannot be sanitized in-place")}}else if(ne instanceof g)q=ii("<!---->"),$=q.ownerDocument.importNode(ne,!0),$.nodeType===ar.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?q=$:q.appendChild($);else{if(!kn&&!Nn&&!pn&&ne.indexOf("<")===-1)return Z&&ul?Z.createHTML(ne):ne;if(q=ii(ne),!q)return kn?null:ul?ae:""}q&&$a&&kt(q.firstChild);const me=ri(Ul?ne:q);for(;De=me.nextNode();)Un(De),Tr(De),De.content instanceof f&&Ar(De.content);if(Ul)return ne;if(kn){if(ol)for(Xe=Ue.call(q.ownerDocument);q.firstChild;)Xe.appendChild(q.firstChild);else Xe=q;return(X.shadowroot||X.shadowrootmode)&&(Xe=Lt.call(s,Xe,!0)),Xe}let _t=pn?q.outerHTML:q.innerHTML;return pn&&T["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&At(jg,q.ownerDocument.doctype.name)&&(_t="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
|
|
106
|
-
`+_t),Nn&&Gs([Ke,Nt,Ye],en=>{_t=tr(_t,en," ")}),Z&&ul?Z.createHTML(_t):_t},l.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ni(ne),jl=!0},l.clearConfig=function(){jn=null,jl=!1},l.isValidAttribute=function(ne,R,q){jn||ni({});const $=$e(ne),De=$e(R);return ca($,De,q)},l.addHook=function(ne,R){typeof R=="function"&&er(Re[ne],R)},l.removeHook=function(ne,R){if(R!==void 0){const q=F0(Re[ne],R);return q===-1?void 0:eb(Re[ne],q,1)[0]}return Gp(Re[ne])},l.removeHooks=function(ne){Re[ne]=[]},l.removeAllHooks=function(){Re=Qp()},l}var Zp=Ug();const _b="modulepreload",yb=function(i){return"/"+i},Kp={},v=function(l,r,s){let u=Promise.resolve();if(r&&r.length>0){let d=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));u=d(r.map(m=>{if(m=yb(m),m in Kp)return;Kp[m]=!0;const y=m.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${b}`))return;const E=document.createElement("link");if(E.rel=y?"stylesheet":_b,y||(E.as="script"),E.crossOrigin="",E.href=m,p&&E.setAttribute("nonce",p),document.head.appendChild(E),y)return new Promise((A,D)=>{E.addEventListener("load",A),E.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=d,window.dispatchEvent(g),!g.defaultPrevented)throw d}return u.then(d=>{for(const g of d||[])g.status==="rejected"&&f(g.reason);return l().catch(f)})},Bg=[{id:"abap",name:"ABAP",import:()=>v(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>v(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>v(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>v(()=>import("./angular-html-LfdN0zeE.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>v(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>v(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>v(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>v(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>v(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>v(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>v(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>v(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>v(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>v(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>v(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>v(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>v(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>v(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>v(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>v(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>v(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>v(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>v(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>v(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>v(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>v(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>v(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>v(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>v(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>v(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>v(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>v(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>v(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>v(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>v(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>v(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>v(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>v(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>v(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>v(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>v(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>v(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>v(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>v(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>v(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>v(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>v(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>v(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>v(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>v(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>v(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>v(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>v(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>v(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>v(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>v(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>v(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>v(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>v(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>v(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>v(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>v(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>v(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>v(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>v(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>v(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>v(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>v(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>v(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>v(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>v(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>v(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>v(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>v(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>v(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>v(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>v(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>v(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>v(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>v(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>v(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>v(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>v(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>v(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>v(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>v(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>v(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>v(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>v(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>v(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>v(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>v(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>v(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>v(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>v(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>v(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>v(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>v(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>v(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>v(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>v(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>v(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>v(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>v(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>v(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>v(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>v(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>v(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>v(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>v(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>v(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>v(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>v(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>v(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>v(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>v(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>v(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>v(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>v(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>v(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>v(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>v(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>v(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>v(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>v(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>v(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>v(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>v(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>v(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>v(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>v(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>v(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>v(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>v(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>v(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>v(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>v(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>v(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>v(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>v(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>v(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>v(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>v(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>v(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>v(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>v(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>v(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>v(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>v(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>v(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>v(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>v(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>v(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>v(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>v(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>v(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>v(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>v(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>v(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>v(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>v(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>v(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>v(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>v(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>v(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>v(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>v(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>v(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>v(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>v(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>v(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>v(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>v(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>v(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>v(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>v(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>v(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>v(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>v(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>v(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>v(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>v(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>v(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>v(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>v(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>v(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>v(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>v(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>v(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>v(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>v(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>v(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>v(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>v(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>v(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>v(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>v(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>v(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>v(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>v(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>v(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>v(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>v(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>v(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>v(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>v(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>v(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>v(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>v(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>v(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>v(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>v(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>v(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>v(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>v(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>v(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>v(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>v(()=>import("./zig-BVz_zdnA.js"),[])}],vb=Object.fromEntries(Bg.map(i=>[i.id,i.import])),bb=Object.fromEntries(Bg.flatMap(i=>{var l;return((l=i.aliases)==null?void 0:l.map(r=>[r,i.import]))||[]})),Sb={...vb,...bb},Eb=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>v(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>v(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>v(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>v(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>v(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>v(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>v(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>v(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>v(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>v(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>v(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>v(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>v(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>v(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>v(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>v(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>v(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>v(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>v(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>v(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>v(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>v(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>v(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>v(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>v(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>v(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>v(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>v(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>v(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>v(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>v(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>v(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>v(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>v(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>v(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>v(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>v(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>v(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>v(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>v(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>v(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>v(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>v(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>v(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>v(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>v(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>v(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>v(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>v(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>v(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>v(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>v(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>v(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>v(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],xb=Object.fromEntries(Eb.map(i=>[i.id,i.import]));let sl=class extends Error{constructor(l){super(l),this.name="ShikiError"}},Af=class extends Error{constructor(l){super(l),this.name="ShikiError"}};function Tb(){return 2147483648}function Ab(){return typeof performance<"u"?performance.now():Date.now()}const Rb=(i,l)=>i+(l-i%l)%l;async function Ob(i){let l,r;const s={};function u(A){r=A,s.HEAPU8=new Uint8Array(A),s.HEAPU32=new Uint32Array(A)}function f(A,D,B){s.HEAPU8.copyWithin(A,D,D+B)}function d(A){try{return l.grow(A-r.byteLength+65535>>>16),u(l.buffer),1}catch{}}function g(A){const D=s.HEAPU8.length;A=A>>>0;const B=Tb();if(A>B)return!1;for(let P=1;P<=4;P*=2){let V=D*(1+.2/P);V=Math.min(V,A+100663296);const I=Math.min(B,Rb(Math.max(A,V),65536));if(d(I))return!0}return!1}const p=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function m(A,D,B=1024){const P=D+B;let V=D;for(;A[V]&&!(V>=P);)++V;if(V-D>16&&A.buffer&&p)return p.decode(A.subarray(D,V));let I="";for(;D<V;){let Y=A[D++];if(!(Y&128)){I+=String.fromCharCode(Y);continue}const Z=A[D++]&63;if((Y&224)===192){I+=String.fromCharCode((Y&31)<<6|Z);continue}const ae=A[D++]&63;if((Y&240)===224?Y=(Y&15)<<12|Z<<6|ae:Y=(Y&7)<<18|Z<<12|ae<<6|A[D++]&63,Y<65536)I+=String.fromCharCode(Y);else{const fe=Y-65536;I+=String.fromCharCode(55296|fe>>10,56320|fe&1023)}}return I}function y(A,D){return A?m(s.HEAPU8,A,D):""}const b={emscripten_get_now:Ab,emscripten_memcpy_big:f,emscripten_resize_heap:g,fd_write:()=>0};async function E(){const D=await i({env:b,wasi_snapshot_preview1:b});l=D.memory,u(l.buffer),Object.assign(s,D),s.UTF8ToString=y}return await E(),s}var Cb=Object.defineProperty,Db=(i,l,r)=>l in i?Cb(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r,ut=(i,l,r)=>(Db(i,typeof l!="symbol"?l+"":l,r),r);let mt=null;function Lb(i){throw new Af(i.UTF8ToString(i.getLastOnigError()))}class po{constructor(l){ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16Value"),ut(this,"utf8Value"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16");const r=l.length,s=po._utf8ByteLength(l),u=s!==r,f=u?new Uint32Array(r+1):null;u&&(f[r]=s);const d=u?new Uint32Array(s+1):null;u&&(d[s]=r);const g=new Uint8Array(s);let p=0;for(let m=0;m<r;m++){const y=l.charCodeAt(m);let b=y,E=!1;if(y>=55296&&y<=56319&&m+1<r){const A=l.charCodeAt(m+1);A>=56320&&A<=57343&&(b=(y-55296<<10)+65536|A-56320,E=!0)}u&&(f[m]=p,E&&(f[m+1]=p),b<=127?d[p+0]=m:b<=2047?(d[p+0]=m,d[p+1]=m):b<=65535?(d[p+0]=m,d[p+1]=m,d[p+2]=m):(d[p+0]=m,d[p+1]=m,d[p+2]=m,d[p+3]=m)),b<=127?g[p++]=b:b<=2047?(g[p++]=192|(b&1984)>>>6,g[p++]=128|(b&63)>>>0):b<=65535?(g[p++]=224|(b&61440)>>>12,g[p++]=128|(b&4032)>>>6,g[p++]=128|(b&63)>>>0):(g[p++]=240|(b&1835008)>>>18,g[p++]=128|(b&258048)>>>12,g[p++]=128|(b&4032)>>>6,g[p++]=128|(b&63)>>>0),E&&m++}this.utf16Length=r,this.utf8Length=s,this.utf16Value=l,this.utf8Value=g,this.utf16OffsetToUtf8=f,this.utf8OffsetToUtf16=d}static _utf8ByteLength(l){let r=0;for(let s=0,u=l.length;s<u;s++){const f=l.charCodeAt(s);let d=f,g=!1;if(f>=55296&&f<=56319&&s+1<u){const p=l.charCodeAt(s+1);p>=56320&&p<=57343&&(d=(f-55296<<10)+65536|p-56320,g=!0)}d<=127?r+=1:d<=2047?r+=2:d<=65535?r+=3:r+=4,g&&s++}return r}createString(l){const r=l.omalloc(this.utf8Length);return l.HEAPU8.set(this.utf8Value,r),r}}const Cn=class{constructor(i){if(ut(this,"id",++Cn.LAST_ID),ut(this,"_onigBinding"),ut(this,"content"),ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16"),ut(this,"ptr"),!mt)throw new Af("Must invoke loadWasm first.");this._onigBinding=mt,this.content=i;const l=new po(i);this.utf16Length=l.utf16Length,this.utf8Length=l.utf8Length,this.utf16OffsetToUtf8=l.utf16OffsetToUtf8,this.utf8OffsetToUtf16=l.utf8OffsetToUtf16,this.utf8Length<1e4&&!Cn._sharedPtrInUse?(Cn._sharedPtr||(Cn._sharedPtr=mt.omalloc(1e4)),Cn._sharedPtrInUse=!0,mt.HEAPU8.set(l.utf8Value,Cn._sharedPtr),this.ptr=Cn._sharedPtr):this.ptr=l.createString(mt)}convertUtf8OffsetToUtf16(i){return this.utf8OffsetToUtf16?i<0?0:i>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[i]:i}convertUtf16OffsetToUtf8(i){return this.utf16OffsetToUtf8?i<0?0:i>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[i]:i}dispose(){this.ptr===Cn._sharedPtr?Cn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let gr=Cn;ut(gr,"LAST_ID",0);ut(gr,"_sharedPtr",0);ut(gr,"_sharedPtrInUse",!1);class Nb{constructor(l){if(ut(this,"_onigBinding"),ut(this,"_ptr"),!mt)throw new Af("Must invoke loadWasm first.");const r=[],s=[];for(let g=0,p=l.length;g<p;g++){const m=new po(l[g]);r[g]=m.createString(mt),s[g]=m.utf8Length}const u=mt.omalloc(4*l.length);mt.HEAPU32.set(r,u/4);const f=mt.omalloc(4*l.length);mt.HEAPU32.set(s,f/4);const d=mt.createOnigScanner(u,f,l.length);for(let g=0,p=l.length;g<p;g++)mt.ofree(r[g]);mt.ofree(f),mt.ofree(u),d===0&&Lb(mt),this._onigBinding=mt,this._ptr=d}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(l,r,s){let u=0;if(typeof s=="number"&&(u=s),typeof l=="string"){l=new gr(l);const f=this._findNextMatchSync(l,r,!1,u);return l.dispose(),f}return this._findNextMatchSync(l,r,!1,u)}_findNextMatchSync(l,r,s,u){const f=this._onigBinding,d=f.findNextOnigScannerMatch(this._ptr,l.id,l.ptr,l.utf8Length,l.convertUtf16OffsetToUtf8(r),u);if(d===0)return null;const g=f.HEAPU32;let p=d/4;const m=g[p++],y=g[p++],b=[];for(let E=0;E<y;E++){const A=l.convertUtf8OffsetToUtf16(g[p++]),D=l.convertUtf8OffsetToUtf16(g[p++]);b[E]={start:A,end:D,length:D-A}}return{index:m,captureIndices:b}}}function kb(i){return typeof i.instantiator=="function"}function wb(i){return typeof i.default=="function"}function Mb(i){return typeof i.data<"u"}function zb(i){return typeof Response<"u"&&i instanceof Response}function jb(i){var l;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((l=Buffer.isBuffer)==null?void 0:l.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let qs;function Ub(i){if(qs)return qs;async function l(){mt=await Ob(async r=>{let s=i;return s=await s,typeof s=="function"&&(s=await s(r)),typeof s=="function"&&(s=await s(r)),kb(s)?s=await s.instantiator(r):wb(s)?s=await s.default(r):(Mb(s)&&(s=s.data),zb(s)?typeof WebAssembly.instantiateStreaming=="function"?s=await Bb(s)(r):s=await Hb(s)(r):jb(s)?s=await Hc(s)(r):s instanceof WebAssembly.Module?s=await Hc(s)(r):"default"in s&&s.default instanceof WebAssembly.Module&&(s=await Hc(s.default)(r))),"instance"in s&&(s=s.instance),"exports"in s&&(s=s.exports),s})}return qs=l(),qs}function Hc(i){return l=>WebAssembly.instantiate(i,l)}function Bb(i){return l=>WebAssembly.instantiateStreaming(i,l)}function Hb(i){return async l=>{const r=await i.arrayBuffer();return WebAssembly.instantiate(r,l)}}let Vb;function Gb(){return Vb}async function Hg(i){return i&&await Ub(i),{createScanner(l){return new Nb(l.map(r=>typeof r=="string"?r:r.source))},createString(l){return new gr(l)}}}function Ib(i){return Rf(i)}function Rf(i){return Array.isArray(i)?qb(i):i instanceof RegExp?i:typeof i=="object"?Pb(i):i}function qb(i){let l=[];for(let r=0,s=i.length;r<s;r++)l[r]=Rf(i[r]);return l}function Pb(i){let l={};for(let r in i)l[r]=Rf(i[r]);return l}function Vg(i,...l){return l.forEach(r=>{for(let s in r)i[s]=r[s]}),i}function Gg(i){const l=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return l===0?i:~l===i.length-1?Gg(i.substring(0,i.length-1)):i.substr(~l+1)}var Vc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ps=class{static hasCaptures(i){return i===null?!1:(Vc.lastIndex=0,Vc.test(i))}static replaceCaptures(i,l,r){return i.replace(Vc,(s,u,f,d)=>{let g=r[parseInt(u||f,10)];if(g){let p=l.substring(g.start,g.end);for(;p[0]===".";)p=p.substring(1);switch(d){case"downcase":return p.toLowerCase();case"upcase":return p.toUpperCase();default:return p}}else return s})}};function Ig(i,l){return i<l?-1:i>l?1:0}function qg(i,l){if(i===null&&l===null)return 0;if(!i)return-1;if(!l)return 1;let r=i.length,s=l.length;if(r===s){for(let u=0;u<r;u++){let f=Ig(i[u],l[u]);if(f!==0)return f}return 0}return r-s}function $p(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Pg(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Yg=class{constructor(i){w(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const l=this.fn(i);return this.cache.set(i,l),l}},no=class{constructor(i,l,r){w(this,"_cachedMatchRoot",new Yg(i=>this._root.match(i)));this._colorMap=i,this._defaults=l,this._root=r}static createFromRawTheme(i,l){return this.createFromParsedTheme(Qb(i),l)}static createFromParsedTheme(i,l){return Kb(i,l)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const l=i.scopeName,s=this._cachedMatchRoot.get(l).find(u=>Yb(i.parent,u.parentScopes));return s?new Xg(s.fontStyle,s.foreground,s.background):null}},Gc=class Js{constructor(l,r){this.parent=l,this.scopeName=r}static push(l,r){for(const s of r)l=new Js(l,s);return l}static from(...l){let r=null;for(let s=0;s<l.length;s++)r=new Js(r,l[s]);return r}push(l){return new Js(this,l)}getSegments(){let l=this;const r=[];for(;l;)r.push(l.scopeName),l=l.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(l){return this===l?!0:this.parent===null?!1:this.parent.extends(l)}getExtensionIfDefined(l){const r=[];let s=this;for(;s&&s!==l;)r.push(s.scopeName),s=s.parent;return s===l?r.reverse():void 0}};function Yb(i,l){if(l.length===0)return!0;for(let r=0;r<l.length;r++){let s=l[r],u=!1;if(s===">"){if(r===l.length-1)return!1;s=l[++r],u=!0}for(;i&&!Xb(i.scopeName,s);){if(u)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function Xb(i,l){return l===i||i.startsWith(l)&&i[l.length]==="."}var Xg=class{constructor(i,l,r){this.fontStyle=i,this.foregroundId=l,this.backgroundId=r}};function Qb(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let l=i.settings,r=[],s=0;for(let u=0,f=l.length;u<f;u++){let d=l[u];if(!d.settings)continue;let g;if(typeof d.scope=="string"){let b=d.scope;b=b.replace(/^[,]+/,""),b=b.replace(/[,]+$/,""),g=b.split(",")}else Array.isArray(d.scope)?g=d.scope:g=[""];let p=-1;if(typeof d.settings.fontStyle=="string"){p=0;let b=d.settings.fontStyle.split(" ");for(let E=0,A=b.length;E<A;E++)switch(b[E]){case"italic":p=p|1;break;case"bold":p=p|2;break;case"underline":p=p|4;break;case"strikethrough":p=p|8;break}}let m=null;typeof d.settings.foreground=="string"&&$p(d.settings.foreground)&&(m=d.settings.foreground);let y=null;typeof d.settings.background=="string"&&$p(d.settings.background)&&(y=d.settings.background);for(let b=0,E=g.length;b<E;b++){let D=g[b].trim().split(" "),B=D[D.length-1],P=null;D.length>1&&(P=D.slice(0,D.length-1),P.reverse()),r[s++]=new Zb(B,P,u,p,m,y)}}return r}var Zb=class{constructor(i,l,r,s,u,f){this.scope=i,this.parentScopes=l,this.index=r,this.fontStyle=s,this.foreground=u,this.background=f}},rl=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(rl||{});function Kb(i,l){i.sort((p,m)=>{let y=Ig(p.scope,m.scope);return y!==0||(y=qg(p.parentScopes,m.parentScopes),y!==0)?y:p.index-m.index});let r=0,s="#000000",u="#ffffff";for(;i.length>=1&&i[0].scope==="";){let p=i.shift();p.fontStyle!==-1&&(r=p.fontStyle),p.foreground!==null&&(s=p.foreground),p.background!==null&&(u=p.background)}let f=new $b(l),d=new Xg(r,f.getId(s),f.getId(u)),g=new Wb(new Fc(0,null,-1,0,0),[]);for(let p=0,m=i.length;p<m;p++){let y=i[p];g.insert(0,y.scope,y.parentScopes,y.fontStyle,f.getId(y.foreground),f.getId(y.background))}return new no(f,d,g)}var $b=class{constructor(i){w(this,"_isFrozen");w(this,"_lastColorId");w(this,"_id2color");w(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let l=0,r=i.length;l<r;l++)this._color2id[i[l]]=l,this._id2color[l]=i[l]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let l=this._color2id[i];if(l)return l;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return l=++this._lastColorId,this._color2id[i]=l,this._id2color[l]=i,l}getColorMap(){return this._id2color.slice(0)}},Jb=Object.freeze([]),Fc=class Qg{constructor(l,r,s,u,f){w(this,"scopeDepth");w(this,"parentScopes");w(this,"fontStyle");w(this,"foreground");w(this,"background");this.scopeDepth=l,this.parentScopes=r||Jb,this.fontStyle=s,this.foreground=u,this.background=f}clone(){return new Qg(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(l){let r=[];for(let s=0,u=l.length;s<u;s++)r[s]=l[s].clone();return r}acceptOverwrite(l,r,s,u){this.scopeDepth>l?console.log("how did this happen?"):this.scopeDepth=l,r!==-1&&(this.fontStyle=r),s!==0&&(this.foreground=s),u!==0&&(this.background=u)}},Wb=class ef{constructor(l,r=[],s={}){w(this,"_rulesWithParentScopes");this._mainRule=l,this._children=s,this._rulesWithParentScopes=r}static _cmpBySpecificity(l,r){if(l.scopeDepth!==r.scopeDepth)return r.scopeDepth-l.scopeDepth;let s=0,u=0;for(;l.parentScopes[s]===">"&&s++,r.parentScopes[u]===">"&&u++,!(s>=l.parentScopes.length||u>=r.parentScopes.length);){const f=r.parentScopes[u].length-l.parentScopes[s].length;if(f!==0)return f;s++,u++}return r.parentScopes.length-l.parentScopes.length}match(l){if(l!==""){let s=l.indexOf("."),u,f;if(s===-1?(u=l,f=""):(u=l.substring(0,s),f=l.substring(s+1)),this._children.hasOwnProperty(u))return this._children[u].match(f)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(ef._cmpBySpecificity),r}insert(l,r,s,u,f,d){if(r===""){this._doInsertHere(l,s,u,f,d);return}let g=r.indexOf("."),p,m;g===-1?(p=r,m=""):(p=r.substring(0,g),m=r.substring(g+1));let y;this._children.hasOwnProperty(p)?y=this._children[p]:(y=new ef(this._mainRule.clone(),Fc.cloneArr(this._rulesWithParentScopes)),this._children[p]=y),y.insert(l+1,m,s,u,f,d)}_doInsertHere(l,r,s,u,f){if(r===null){this._mainRule.acceptOverwrite(l,s,u,f);return}for(let d=0,g=this._rulesWithParentScopes.length;d<g;d++){let p=this._rulesWithParentScopes[d];if(qg(p.parentScopes,r)===0){p.acceptOverwrite(l,s,u,f);return}}s===-1&&(s=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),f===0&&(f=this._mainRule.background),this._rulesWithParentScopes.push(new Fc(l,r,s,u,f))}},Qa=class dn{static toBinaryStr(l){return l.toString(2).padStart(32,"0")}static print(l){const r=dn.getLanguageId(l),s=dn.getTokenType(l),u=dn.getFontStyle(l),f=dn.getForeground(l),d=dn.getBackground(l);console.log({languageId:r,tokenType:s,fontStyle:u,foreground:f,background:d})}static getLanguageId(l){return(l&255)>>>0}static getTokenType(l){return(l&768)>>>8}static containsBalancedBrackets(l){return(l&1024)!==0}static getFontStyle(l){return(l&30720)>>>11}static getForeground(l){return(l&16744448)>>>15}static getBackground(l){return(l&4278190080)>>>24}static set(l,r,s,u,f,d,g){let p=dn.getLanguageId(l),m=dn.getTokenType(l),y=dn.containsBalancedBrackets(l)?1:0,b=dn.getFontStyle(l),E=dn.getForeground(l),A=dn.getBackground(l);return r!==0&&(p=r),s!==8&&(m=s),u!==null&&(y=u?1:0),f!==-1&&(b=f),d!==0&&(E=d),g!==0&&(A=g),(p<<0|m<<8|y<<10|b<<11|E<<15|A<<24)>>>0}};function lo(i,l){const r=[],s=Fb(i);let u=s.next();for(;u!==null;){let p=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":p=1;break;case"L":p=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=s.next()}let m=d();if(r.push({matcher:m,priority:p}),u!==",")break;u=s.next()}return r;function f(){if(u==="-"){u=s.next();const p=f();return m=>!!p&&!p(m)}if(u==="("){u=s.next();const p=g();return u===")"&&(u=s.next()),p}if(Jp(u)){const p=[];do p.push(u),u=s.next();while(Jp(u));return m=>l(p,m)}return null}function d(){const p=[];let m=f();for(;m;)p.push(m),m=f();return y=>p.every(b=>b(y))}function g(){const p=[];let m=d();for(;m&&(p.push(m),u==="|"||u===",");){do u=s.next();while(u==="|"||u===",");m=d()}return y=>p.some(b=>b(y))}}function Jp(i){return!!i&&!!i.match(/[\w\.:]+/)}function Fb(i){let l=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=l.exec(i);return{next:()=>{if(!r)return null;const s=r[0];return r=l.exec(i),s}}}function Zg(i){typeof i.dispose=="function"&&i.dispose()}var fr=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},eS=class{constructor(i,l){this.scopeName=i,this.ruleName=l}toKey(){return`${this.scopeName}#${this.ruleName}`}},tS=class{constructor(){w(this,"_references",[]);w(this,"_seenReferenceKeys",new Set);w(this,"visitedRule",new Set)}get references(){return this._references}add(i){const l=i.toKey();this._seenReferenceKeys.has(l)||(this._seenReferenceKeys.add(l),this._references.push(i))}},nS=class{constructor(i,l){w(this,"seenFullScopeRequests",new Set);w(this,"seenPartialScopeRequests",new Set);w(this,"Q");this.repo=i,this.initialScopeName=l,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new fr(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const l=new tS;for(const r of i)lS(r,this.initialScopeName,this.repo,l);for(const r of l.references)if(r instanceof fr){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function lS(i,l,r,s){const u=r.lookup(i.scopeName);if(!u){if(i.scopeName===l)throw new Error(`No grammar provided for <${l}>`);return}const f=r.lookup(l);i instanceof fr?Ws({baseGrammar:f,selfGrammar:u},s):tf(i.ruleName,{baseGrammar:f,selfGrammar:u,repository:u.repository},s);const d=r.injections(i.scopeName);if(d)for(const g of d)s.add(new fr(g))}function tf(i,l,r){if(l.repository&&l.repository[i]){const s=l.repository[i];ao([s],l,r)}}function Ws(i,l){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&ao(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},l),i.selfGrammar.injections&&ao(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},l)}function ao(i,l,r){for(const s of i){if(r.visitedRule.has(s))continue;r.visitedRule.add(s);const u=s.repository?Vg({},l.repository,s.repository):l.repository;Array.isArray(s.patterns)&&ao(s.patterns,{...l,repository:u},r);const f=s.include;if(!f)continue;const d=Kg(f);switch(d.kind){case 0:Ws({...l,selfGrammar:l.baseGrammar},r);break;case 1:Ws(l,r);break;case 2:tf(d.ruleName,{...l,repository:u},r);break;case 3:case 4:const g=d.scopeName===l.selfGrammar.scopeName?l.selfGrammar:d.scopeName===l.baseGrammar.scopeName?l.baseGrammar:void 0;if(g){const p={baseGrammar:l.baseGrammar,selfGrammar:g,repository:u};d.kind===4?tf(d.ruleName,p,r):Ws(p,r)}else d.kind===4?r.add(new eS(d.scopeName,d.ruleName)):r.add(new fr(d.scopeName));break}}}var aS=class{constructor(){w(this,"kind",0)}},iS=class{constructor(){w(this,"kind",1)}},rS=class{constructor(i){w(this,"kind",2);this.ruleName=i}},sS=class{constructor(i){w(this,"kind",3);this.scopeName=i}},oS=class{constructor(i,l){w(this,"kind",4);this.scopeName=i,this.ruleName=l}};function Kg(i){if(i==="$base")return new aS;if(i==="$self")return new iS;const l=i.indexOf("#");if(l===-1)return new sS(i);if(l===0)return new rS(i.substring(1));{const r=i.substring(0,l),s=i.substring(l+1);return new oS(r,s)}}var uS=/\\(\d+)/,Wp=/\\(\d+)/g,cS=-1,$g=-2;var _r=class{constructor(i,l,r,s){w(this,"$location");w(this,"id");w(this,"_nameIsCapturing");w(this,"_name");w(this,"_contentNameIsCapturing");w(this,"_contentName");this.$location=i,this.id=l,this._name=r||null,this._nameIsCapturing=Ps.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=Ps.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Gg(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,l){return!this._nameIsCapturing||this._name===null||i===null||l===null?this._name:Ps.replaceCaptures(this._name,i,l)}getContentName(i,l){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ps.replaceCaptures(this._contentName,i,l)}},fS=class extends _r{constructor(l,r,s,u,f){super(l,r,s,u);w(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=f}dispose(){}collectPatterns(l,r){throw new Error("Not supported!")}compile(l,r){throw new Error("Not supported!")}compileAG(l,r,s,u){throw new Error("Not supported!")}},dS=class extends _r{constructor(l,r,s,u,f){super(l,r,s,null);w(this,"_match");w(this,"captures");w(this,"_cachedCompiledPatterns");this._match=new dr(u,this.id),this.captures=f,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(l,r){r.push(this._match)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Fp=class extends _r{constructor(l,r,s,u,f){super(l,r,s,u);w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(l,r){for(const s of this.patterns)l.getRule(s).collectPatterns(l,r)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},nf=class extends _r{constructor(l,r,s,u,f,d,g,p,m,y){super(l,r,s,u);w(this,"_begin");w(this,"beginCaptures");w(this,"_end");w(this,"endHasBackReferences");w(this,"endCaptures");w(this,"applyEndPatternLast");w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");this._begin=new dr(f,this.id),this.beginCaptures=d,this._end=new dr(g||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=p,this.applyEndPatternLast=m||!1,this.patterns=y.patterns,this.hasMissingPatterns=y.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(l,r){return this._end.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l,r).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l,r).compileAG(l,s,u)}_getCachedCompiledPatterns(l,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new hr;for(const s of this.patterns)l.getRule(s).collectPatterns(l,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},io=class extends _r{constructor(l,r,s,u,f,d,g,p,m){super(l,r,s,u);w(this,"_begin");w(this,"beginCaptures");w(this,"whileCaptures");w(this,"_while");w(this,"whileHasBackReferences");w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");w(this,"_cachedCompiledWhilePatterns");this._begin=new dr(f,this.id),this.beginCaptures=d,this.whileCaptures=p,this._while=new dr(g,$g),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(l,r){return this._while.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new hr;for(const r of this.patterns)l.getRule(r).collectPatterns(l,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(l,r){return this._getCachedCompiledWhilePatterns(l,r).compile(l)}compileWhileAG(l,r,s,u){return this._getCachedCompiledWhilePatterns(l,r).compileAG(l,s,u)}_getCachedCompiledWhilePatterns(l,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new hr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}},Jg=class xt{static createCaptureRule(l,r,s,u,f){return l.registerRule(d=>new fS(r,d,s,u,f))}static getCompiledRuleId(l,r,s){return l.id||r.registerRule(u=>{if(l.id=u,l.match)return new dS(l.$vscodeTextmateLocation,l.id,l.name,l.match,xt._compileCaptures(l.captures,r,s));if(typeof l.begin>"u"){l.repository&&(s=Vg({},s,l.repository));let f=l.patterns;return typeof f>"u"&&l.include&&(f=[{include:l.include}]),new Fp(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,xt._compilePatterns(f,r,s))}return l.while?new io(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,xt._compileCaptures(l.beginCaptures||l.captures,r,s),l.while,xt._compileCaptures(l.whileCaptures||l.captures,r,s),xt._compilePatterns(l.patterns,r,s)):new nf(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,xt._compileCaptures(l.beginCaptures||l.captures,r,s),l.end,xt._compileCaptures(l.endCaptures||l.captures,r,s),l.applyEndPatternLast,xt._compilePatterns(l.patterns,r,s))}),l.id}static _compileCaptures(l,r,s){let u=[];if(l){let f=0;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const g=parseInt(d,10);g>f&&(f=g)}for(let d=0;d<=f;d++)u[d]=null;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const g=parseInt(d,10);let p=0;l[d].patterns&&(p=xt.getCompiledRuleId(l[d],r,s)),u[g]=xt.createCaptureRule(r,l[d].$vscodeTextmateLocation,l[d].name,l[d].contentName,p)}}return u}static _compilePatterns(l,r,s){let u=[];if(l)for(let f=0,d=l.length;f<d;f++){const g=l[f];let p=-1;if(g.include){const m=Kg(g.include);switch(m.kind){case 0:case 1:p=xt.getCompiledRuleId(s[g.include],r,s);break;case 2:let y=s[m.ruleName];y&&(p=xt.getCompiledRuleId(y,r,s));break;case 3:case 4:const b=m.scopeName,E=m.kind===4?m.ruleName:null,A=r.getExternalGrammar(b,s);if(A)if(E){let D=A.repository[E];D&&(p=xt.getCompiledRuleId(D,r,A.repository))}else p=xt.getCompiledRuleId(A.repository.$self,r,A.repository);break}}else p=xt.getCompiledRuleId(g,r,s);if(p!==-1){const m=r.getRule(p);let y=!1;if((m instanceof Fp||m instanceof nf||m instanceof io)&&m.hasMissingPatterns&&m.patterns.length===0&&(y=!0),y)continue;u.push(p)}}return{patterns:u,hasMissingPatterns:(l?l.length:0)!==u.length}}},dr=class Wg{constructor(l,r){w(this,"source");w(this,"ruleId");w(this,"hasAnchor");w(this,"hasBackReferences");w(this,"_anchorCache");if(l&&typeof l=="string"){const s=l.length;let u=0,f=[],d=!1;for(let g=0;g<s;g++)if(l.charAt(g)==="\\"&&g+1<s){const m=l.charAt(g+1);m==="z"?(f.push(l.substring(u,g)),f.push("$(?!\\n)(?<!\\n)"),u=g+2):(m==="A"||m==="G")&&(d=!0),g++}this.hasAnchor=d,u===0?this.source=l:(f.push(l.substring(u,s)),this.source=f.join(""))}else this.hasAnchor=!1,this.source=l;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=uS.test(this.source):this.hasBackReferences=!1}clone(){return new Wg(this.source,this.ruleId)}setSource(l){this.source!==l&&(this.source=l,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(l,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let s=r.map(u=>l.substring(u.start,u.end));return Wp.lastIndex=0,this.source.replace(Wp,(u,f)=>Pg(s[parseInt(f,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let l=[],r=[],s=[],u=[],f,d,g,p;for(f=0,d=this.source.length;f<d;f++)g=this.source.charAt(f),l[f]=g,r[f]=g,s[f]=g,u[f]=g,g==="\\"&&f+1<d&&(p=this.source.charAt(f+1),p==="A"?(l[f+1]="",r[f+1]="",s[f+1]="A",u[f+1]="A"):p==="G"?(l[f+1]="",r[f+1]="G",s[f+1]="",u[f+1]="G"):(l[f+1]=p,r[f+1]=p,s[f+1]=p,u[f+1]=p),f++);return{A0_G0:l.join(""),A0_G1:r.join(""),A1_G0:s.join(""),A1_G1:u.join("")}}resolveAnchors(l,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:l?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},hr=class{constructor(){w(this,"_items");w(this,"_hasAnchors");w(this,"_cached");w(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,l){this._items[i].source!==l&&(this._disposeCaches(),this._items[i].setSource(l))}compile(i){if(!this._cached){let l=this._items.map(r=>r.source);this._cached=new eg(i,l,this._items.map(r=>r.ruleId))}return this._cached}compileAG(i,l,r){return this._hasAnchors?l?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,l,r){let s=this._items.map(u=>u.resolveAnchors(l,r));return new eg(i,s,this._items.map(u=>u.ruleId))}},eg=class{constructor(i,l,r){w(this,"scanner");this.regExps=l,this.rules=r,this.scanner=i.createOnigScanner(l)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let l=0,r=this.rules.length;l<r;l++)i.push(" - "+this.rules[l]+": "+this.regExps[l]);return i.join(`
|
|
107
|
-
`)}findNextMatchSync(i,l,r){const s=this.scanner.findNextMatchSync(i,l,r);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}},
|
|
108
|
-
`;const f=this.createOnigString(i),d=f.content.length,g=new AS(r,i,this._tokenTypeMatchers,this.balancedBracketSelectors),p=Fg(this,f,u,0,l,g,!0,s);return Zg(f),{lineLength:d,lineTokens:g,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}};function lg(i,l){return i=Ib(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=l||i.repository.$self,i}var ur=class Dn{constructor(l,r,s){this.parent=l,this.scopePath=r,this.tokenAttributes=s}static fromExtension(l,r){let s=l,u=(l==null?void 0:l.scopePath)??null;for(const f of r)u=Gc.push(u,f.scopeNames),s=new Dn(s,u,f.encodedTokenAttributes);return s}static createRoot(l,r){return new Dn(null,new Gc(null,l),r)}static createRootAndLookUpScopeName(l,r,s){const u=s.getMetadataForScope(l),f=new Gc(null,l),d=s.themeProvider.themeMatch(f),g=Dn.mergeAttributes(r,u,d);return new Dn(null,f,g)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(l){return Dn.equals(this,l)}static equals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.scopeName!==r.scopeName||l.tokenAttributes!==r.tokenAttributes)return!1;l=l.parent,r=r.parent}while(!0)}static mergeAttributes(l,r,s){let u=-1,f=0,d=0;return s!==null&&(u=s.fontStyle,f=s.foregroundId,d=s.backgroundId),Qa.set(l,r.languageId,r.tokenType,null,u,f,d)}pushAttributed(l,r){if(l===null)return this;if(l.indexOf(" ")===-1)return Dn._pushAttributed(this,l,r);const s=l.split(/ /g);let u=this;for(const f of s)u=Dn._pushAttributed(u,f,r);return u}static _pushAttributed(l,r,s){const u=s.getMetadataForScope(r),f=l.scopePath.push(r),d=s.themeProvider.themeMatch(f),g=Dn.mergeAttributes(l.tokenAttributes,u,d);return new Dn(l,f,g)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(l){var u;const r=[];let s=this;for(;s&&s!==l;)r.push({encodedTokenAttributes:s.tokenAttributes,scopeNames:s.scopePath.getExtensionIfDefined(((u=s.parent)==null?void 0:u.scopePath)??null)}),s=s.parent;return s===l?r.reverse():void 0}},hn,lf=(hn=class{constructor(l,r,s,u,f,d,g,p){w(this,"_stackElementBrand");w(this,"_enterPos");w(this,"_anchorPos");w(this,"depth");this.parent=l,this.ruleId=r,this.beginRuleCapturedEOL=f,this.endRule=d,this.nameScopesList=g,this.contentNameScopesList=p,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=u}equals(l){return l===null?!1:hn._equals(this,l)}static _equals(l,r){return l===r?!0:this._structuralEquals(l,r)?ur.equals(l.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.depth!==r.depth||l.ruleId!==r.ruleId||l.endRule!==r.endRule)return!1;l=l.parent,r=r.parent}while(!0)}clone(){return this}static _reset(l){for(;l;)l._enterPos=-1,l._anchorPos=-1,l=l.parent}reset(){hn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(l,r,s,u,f,d,g){return new hn(this,l,r,s,u,f,d,g)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(l){return l.getRule(this.ruleId)}toString(){const l=[];return this._writeString(l,0),"["+l.join(",")+"]"}_writeString(l,r){var s,u;return this.parent&&(r=this.parent._writeString(l,r)),l[r++]=`(${this.ruleId}, ${(s=this.nameScopesList)==null?void 0:s.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,r}withContentNameScopesList(l){return this.contentNameScopesList===l?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,l)}withEndRule(l){return this.endRule===l?this:new hn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,l,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(l){let r=this;for(;r&&r._enterPos===l._enterPos;){if(r.ruleId===l.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var l,r,s;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((l=this.parent)==null?void 0:l.nameScopesList)??null))??[],contentNameScopesList:((s=this.contentNameScopesList)==null?void 0:s.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(l,r){const s=ur.fromExtension((l==null?void 0:l.nameScopesList)??null,r.nameScopesList);return new hn(l,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,s,ur.fromExtension(s,r.contentNameScopesList))}},w(hn,"NULL",new hn(null,0,0,0,!1,null,null,null)),hn),TS=class{constructor(i,l){w(this,"balancedBracketScopes");w(this,"unbalancedBracketScopes");w(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(r=>r==="*"?(this.allowAny=!0,[]):lo(r,ro).map(s=>s.matcher)),this.unbalancedBracketScopes=l.flatMap(r=>lo(r,ro).map(s=>s.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const l of this.unbalancedBracketScopes)if(l(i))return!1;for(const l of this.balancedBracketScopes)if(l(i))return!0;return this.allowAny}},AS=class{constructor(i,l,r,s){w(this,"_emitBinaryTokens");w(this,"_lineText");w(this,"_tokens");w(this,"_binaryTokens");w(this,"_lastTokenEndIndex");w(this,"_tokenTypeOverrides");this.balancedBracketSelectors=s,this._emitBinaryTokens=i,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,l){this.produceFromScopes(i.contentNameScopesList,l)}produceFromScopes(i,l){var s;if(this._lastTokenEndIndex>=l)return;if(this._emitBinaryTokens){let u=(i==null?void 0:i.tokenAttributes)??0,f=!1;if((s=this.balancedBracketSelectors)!=null&&s.matchesAlways&&(f=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const d=(i==null?void 0:i.getScopeNames())??[];for(const g of this._tokenTypeOverrides)g.matcher(d)&&(u=Qa.set(u,0,g.type,null,-1,0,0));this.balancedBracketSelectors&&(f=this.balancedBracketSelectors.match(d))}if(f&&(u=Qa.set(u,0,8,f,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=l;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=l;return}const r=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:l,scopes:r}),this._lastTokenEndIndex=l}getResult(i,l){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===l-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,l){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===l-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let s=0,u=this._binaryTokens.length;s<u;s++)r[s]=this._binaryTokens[s];return r}},RS=class{constructor(i,l){w(this,"_grammars",new Map);w(this,"_rawGrammars",new Map);w(this,"_injectionGrammars",new Map);w(this,"_theme");this._onigLib=l,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,l){this._rawGrammars.set(i.scopeName,i),l&&this._injectionGrammars.set(i.scopeName,l)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,l,r,s,u){if(!this._grammars.has(i)){let f=this._rawGrammars.get(i);if(!f)return null;this._grammars.set(i,SS(i,f,l,r,s,u,this,this._onigLib))}return this._grammars.get(i)}},OS=class{constructor(l){w(this,"_options");w(this,"_syncRegistry");w(this,"_ensureGrammarCache");this._options=l,this._syncRegistry=new RS(no.createFromRawTheme(l.theme,l.colorMap),l.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(l,r){this._syncRegistry.setTheme(no.createFromRawTheme(l,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(l,r,s){return this.loadGrammarWithConfiguration(l,r,{embeddedLanguages:s})}loadGrammarWithConfiguration(l,r,s){return this._loadGrammar(l,r,s.embeddedLanguages,s.tokenTypes,new TS(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(l){return this._loadGrammar(l,0,null,null,null)}_loadGrammar(l,r,s,u,f){const d=new nS(this._syncRegistry,l);for(;d.Q.length>0;)d.Q.map(g=>this._loadSingleGrammar(g.scopeName)),d.processQueue();return this._grammarForScopeName(l,r,s,u,f)}_loadSingleGrammar(l){this._ensureGrammarCache.has(l)||(this._doLoadSingleGrammar(l),this._ensureGrammarCache.set(l,!0))}_doLoadSingleGrammar(l){const r=this._options.loadGrammar(l);if(r){const s=typeof this._options.getInjections=="function"?this._options.getInjections(l):void 0;this._syncRegistry.addGrammar(r,s)}}addGrammar(l,r=[],s=0,u=null){return this._syncRegistry.addGrammar(l,r),this._grammarForScopeName(l.scopeName,s,u)}_grammarForScopeName(l,r=0,s=null,u=null,f=null){return this._syncRegistry.grammarForScopeName(l,r,s,u,f)}},af=lf.NULL;const CS=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class yr{constructor(l,r,s){this.normal=r,this.property=l,s&&(this.space=s)}}yr.prototype.normal={};yr.prototype.property={};yr.prototype.space=void 0;function t_(i,l){const r={},s={};for(const u of i)Object.assign(r,u.property),Object.assign(s,u.normal);return new yr(r,s,l)}function rf(i){return i.toLowerCase()}class Vt{constructor(l,r){this.attribute=r,this.property=l}}Vt.prototype.attribute="";Vt.prototype.booleanish=!1;Vt.prototype.boolean=!1;Vt.prototype.commaOrSpaceSeparated=!1;Vt.prototype.commaSeparated=!1;Vt.prototype.defined=!1;Vt.prototype.mustUseProperty=!1;Vt.prototype.number=!1;Vt.prototype.overloadedBoolean=!1;Vt.prototype.property="";Vt.prototype.spaceSeparated=!1;Vt.prototype.space=void 0;let DS=0;const he=ia(),rt=ia(),sf=ia(),Q=ia(),Be=ia(),Pa=ia(),$t=ia();function ia(){return 2**++DS}const of=Object.freeze(Object.defineProperty({__proto__:null,boolean:he,booleanish:rt,commaOrSpaceSeparated:$t,commaSeparated:Pa,number:Q,overloadedBoolean:sf,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),qc=Object.keys(of);class Of extends Vt{constructor(l,r,s,u){let f=-1;if(super(l,r),ag(this,"space",u),typeof s=="number")for(;++f<qc.length;){const d=qc[f];ag(this,qc[f],(s&of[d])===of[d])}}}Of.prototype.defined=!0;function ag(i,l,r){r&&(i[l]=r)}function Za(i){const l={},r={};for(const[s,u]of Object.entries(i.properties)){const f=new Of(s,i.transform(i.attributes||{},s),u,i.space);i.mustUseProperty&&i.mustUseProperty.includes(s)&&(f.mustUseProperty=!0),l[s]=f,r[rf(s)]=s,r[rf(f.attribute)]=s}return new yr(l,r,i.space)}const n_=Za({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:Be,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:Q,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:Be,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:rt,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(i,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function l_(i,l){return l in i?i[l]:l}function a_(i,l){return l_(i,l.toLowerCase())}const LS=Za({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pa,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:he,allowPaymentRequest:he,allowUserMedia:he,alt:null,as:null,async:he,autoCapitalize:null,autoComplete:Be,autoFocus:he,autoPlay:he,blocking:Be,capture:null,charSet:null,checked:he,cite:null,className:Be,cols:Q,colSpan:null,content:null,contentEditable:rt,controls:he,controlsList:Be,coords:Q|Pa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:he,defer:he,dir:null,dirName:null,disabled:he,download:sf,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:he,formTarget:null,headers:Be,height:Q,hidden:sf,high:Q,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:he,inputMode:null,integrity:null,is:null,isMap:he,itemId:null,itemProp:Be,itemRef:Be,itemScope:he,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:he,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:he,muted:he,name:null,nonce:null,noModule:he,noValidate:he,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:he,optimum:Q,pattern:null,ping:Be,placeholder:null,playsInline:he,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:he,referrerPolicy:null,rel:Be,required:he,reversed:he,rows:Q,rowSpan:Q,sandbox:Be,scope:null,scoped:he,seamless:he,selected:he,shadowRootClonable:he,shadowRootDelegatesFocus:he,shadowRootMode:null,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:he,useMap:null,value:rt,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:he,declare:he,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:he,noHref:he,noShade:he,noWrap:he,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:he,disableRemotePlayback:he,prefix:null,property:null,results:Q,security:null,unselectable:null},space:"html",transform:a_}),NS=Za({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:$t,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:Be,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:he,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:Pa,g2:Pa,glyphName:Pa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,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:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:l_}),i_=Za({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(i,l){return"xlink:"+l.slice(5).toLowerCase()}}),r_=Za({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:a_}),s_=Za({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(i,l){return"xml:"+l.slice(3).toLowerCase()}}),kS=/[A-Z]/g,ig=/-[a-z]/g,wS=/^data[-\w.:]+$/i;function MS(i,l){const r=rf(l);let s=l,u=Vt;if(r in i.normal)return i.property[i.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&wS.test(l)){if(l.charAt(4)==="-"){const f=l.slice(5).replace(ig,jS);s="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=l.slice(4);if(!ig.test(f)){let d=f.replace(kS,zS);d.charAt(0)!=="-"&&(d="-"+d),l="data"+d}}u=Of}return new u(s,l)}function zS(i){return"-"+i.toLowerCase()}function jS(i){return i.charAt(1).toUpperCase()}const US=t_([n_,LS,i_,r_,s_],"html"),o_=t_([n_,NS,i_,r_,s_],"svg"),rg={}.hasOwnProperty;function BS(i,l){const r=l||{};function s(u,...f){let d=s.invalid;const g=s.handlers;if(u&&rg.call(u,i)){const p=String(u[i]);d=rg.call(g,p)?g[p]:s.unknown}if(d)return d.call(this,u,...f)}return s.handlers=r.handlers||{},s.invalid=r.invalid,s.unknown=r.unknown,s}const HS=/["&'<>`]/g,VS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,GS=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,IS=/[|\\{}()[\]^$+*?.]/g,sg=new WeakMap;function qS(i,l){if(i=i.replace(l.subset?PS(l.subset):HS,s),l.subset||l.escapeOnly)return i;return i.replace(VS,r).replace(GS,s);function r(u,f,d){return l.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,d.charCodeAt(f+2),l)}function s(u,f,d){return l.format(u.charCodeAt(0),d.charCodeAt(f+1),l)}}function PS(i){let l=sg.get(i);return l||(l=YS(i),sg.set(i,l)),l}function YS(i){const l=[];let r=-1;for(;++r<i.length;)l.push(i[r].replace(IS,"\\$&"));return new RegExp("(?:"+l.join("|")+")","g")}const XS=/[\dA-Fa-f]/;function QS(i,l,r){const s="&#x"+i.toString(16).toUpperCase();return r&&l&&!XS.test(String.fromCharCode(l))?s:s+";"}const ZS=/\d/;function KS(i,l,r){const s="&#"+String(i);return r&&l&&!ZS.test(String.fromCharCode(l))?s:s+";"}const $S=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Pc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},JS=["cent","copy","divide","gt","lt","not","para","times"],u_={}.hasOwnProperty,uf={};let Ys;for(Ys in Pc)u_.call(Pc,Ys)&&(uf[Pc[Ys]]=Ys);const WS=/[^\dA-Za-z]/;function FS(i,l,r,s){const u=String.fromCharCode(i);if(u_.call(uf,u)){const f=uf[u],d="&"+f;return r&&$S.includes(f)&&!JS.includes(f)&&(!s||l&&l!==61&&WS.test(String.fromCharCode(l)))?d:d+";"}return""}function e1(i,l,r){let s=QS(i,l,r.omitOptionalSemicolons),u;if((r.useNamedReferences||r.useShortestReferences)&&(u=FS(i,l,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!u)&&r.useShortestReferences){const f=KS(i,l,r.omitOptionalSemicolons);f.length<s.length&&(s=f)}return u&&(!r.useShortestReferences||u.length<s.length)?u:s}function Ya(i,l){return qS(i,Object.assign({format:e1},l))}const t1=/^>|^->|<!--|-->|--!>|<!-$/g,n1=[">"],l1=["<",">"];function a1(i,l,r,s){return s.settings.bogusComments?"<?"+Ya(i.value,Object.assign({},s.settings.characterReferences,{subset:n1}))+">":"<!--"+i.value.replace(t1,u)+"-->";function u(f){return Ya(f,Object.assign({},s.settings.characterReferences,{subset:l1}))}}function i1(i,l,r,s){return"<!"+(s.settings.upperDoctype?"DOCTYPE":"doctype")+(s.settings.tightDoctype?"":" ")+"html>"}function og(i,l){const r=String(i);if(typeof l!="string")throw new TypeError("Expected character");let s=0,u=r.indexOf(l);for(;u!==-1;)s++,u=r.indexOf(l,u+l.length);return s}function r1(i,l){const r=l||{};return(i[i.length-1]===""?[...i,""]:i).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function s1(i){return i.join(" ").trim()}const o1=/[ \t\n\f\r]/g;function Cf(i){return typeof i=="object"?i.type==="text"?ug(i.value):!1:ug(i)}function ug(i){return i.replace(o1,"")===""}const ct=f_(1),c_=f_(-1),u1=[];function f_(i){return l;function l(r,s,u){const f=r?r.children:u1;let d=(s||0)+i,g=f[d];if(!u)for(;g&&Cf(g);)d+=i,g=f[d];return g}}const c1={}.hasOwnProperty;function d_(i){return l;function l(r,s,u){return c1.call(i,r.tagName)&&i[r.tagName](r,s,u)}}const Df=d_({body:d1,caption:Yc,colgroup:Yc,dd:g1,dt:p1,head:Yc,html:f1,li:m1,optgroup:_1,option:y1,p:h1,rp:cg,rt:cg,tbody:b1,td:fg,tfoot:S1,th:fg,thead:v1,tr:E1});function Yc(i,l,r){const s=ct(r,l,!0);return!s||s.type!=="comment"&&!(s.type==="text"&&Cf(s.value.charAt(0)))}function f1(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function d1(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function h1(i,l,r){const s=ct(r,l);return s?s.type==="element"&&(s.tagName==="address"||s.tagName==="article"||s.tagName==="aside"||s.tagName==="blockquote"||s.tagName==="details"||s.tagName==="div"||s.tagName==="dl"||s.tagName==="fieldset"||s.tagName==="figcaption"||s.tagName==="figure"||s.tagName==="footer"||s.tagName==="form"||s.tagName==="h1"||s.tagName==="h2"||s.tagName==="h3"||s.tagName==="h4"||s.tagName==="h5"||s.tagName==="h6"||s.tagName==="header"||s.tagName==="hgroup"||s.tagName==="hr"||s.tagName==="main"||s.tagName==="menu"||s.tagName==="nav"||s.tagName==="ol"||s.tagName==="p"||s.tagName==="pre"||s.tagName==="section"||s.tagName==="table"||s.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function m1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="li"}function p1(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd"))}function g1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd")}function cg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="rp"||s.tagName==="rt")}function _1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="optgroup"}function y1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="option"||s.tagName==="optgroup")}function v1(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot"))}function b1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot")}function S1(i,l,r){return!ct(r,l)}function E1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="tr"}function fg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="td"||s.tagName==="th")}const x1=d_({body:R1,colgroup:O1,head:A1,html:T1,tbody:C1});function T1(i){const l=ct(i,-1);return!l||l.type!=="comment"}function A1(i){const l=new Set;for(const s of i.children)if(s.type==="element"&&(s.tagName==="base"||s.tagName==="title")){if(l.has(s.tagName))return!1;l.add(s.tagName)}const r=i.children[0];return!r||r.type==="element"}function R1(i){const l=ct(i,-1,!0);return!l||l.type!=="comment"&&!(l.type==="text"&&Cf(l.value.charAt(0)))&&!(l.type==="element"&&(l.tagName==="meta"||l.tagName==="link"||l.tagName==="script"||l.tagName==="style"||l.tagName==="template"))}function O1(i,l,r){const s=c_(r,l),u=ct(i,-1,!0);return r&&s&&s.type==="element"&&s.tagName==="colgroup"&&Df(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function C1(i,l,r){const s=c_(r,l),u=ct(i,-1);return r&&s&&s.type==="element"&&(s.tagName==="thead"||s.tagName==="tbody")&&Df(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const Xs={name:[[`
|
|
103
|
+
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Rn(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:r}){const s=this.parser.parseInline(r),u=Up(i);if(u===null)return s;i=u;let f='<a href="'+i+'"';return l&&(f+=' title="'+Rn(l)+'"'),f+=">"+s+"</a>",f}image({href:i,title:l,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));const u=Up(i);if(u===null)return Rn(r);i=u;let f=`<img src="${i}" alt="${r}"`;return l&&(f+=` title="${Rn(l)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Rn(i.text)}},Tf=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},il=class Jc{constructor(l){w(this,"options");w(this,"renderer");w(this,"textRenderer");this.options=l||aa,this.options.renderer=this.options.renderer||new to,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Tf}static parse(l,r){return new Jc(r).parse(l)}static parseInline(l,r){return new Jc(r).parseInline(l)}parse(l,r=!0){var u,f;let s="";for(let d=0;d<l.length;d++){const g=l[d];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[g.type]){const m=g,y=this.options.extensions.renderers[m.type].call({parser:this},m);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(m.type)){s+=y||"";continue}}const p=g;switch(p.type){case"space":{s+=this.renderer.space(p);continue}case"hr":{s+=this.renderer.hr(p);continue}case"heading":{s+=this.renderer.heading(p);continue}case"code":{s+=this.renderer.code(p);continue}case"table":{s+=this.renderer.table(p);continue}case"blockquote":{s+=this.renderer.blockquote(p);continue}case"list":{s+=this.renderer.list(p);continue}case"html":{s+=this.renderer.html(p);continue}case"paragraph":{s+=this.renderer.paragraph(p);continue}case"text":{let m=p,y=this.renderer.text(m);for(;d+1<l.length&&l[d+1].type==="text";)m=l[++d],y+=`
|
|
104
|
+
`+this.renderer.text(m);r?s+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):s+=y;continue}default:{const m='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}parseInline(l,r=this.renderer){var u,f;let s="";for(let d=0;d<l.length;d++){const g=l[d];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[g.type]){const m=this.options.extensions.renderers[g.type].call({parser:this},g);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(g.type)){s+=m||"";continue}}const p=g;switch(p.type){case"escape":{s+=r.text(p);break}case"html":{s+=r.html(p);break}case"link":{s+=r.link(p);break}case"image":{s+=r.image(p);break}case"strong":{s+=r.strong(p);break}case"em":{s+=r.em(p);break}case"codespan":{s+=r.codespan(p);break}case"br":{s+=r.br(p);break}case"del":{s+=r.del(p);break}case"text":{s+=r.text(p);break}default:{const m='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}},Zc,Zs=(Zc=class{constructor(i){w(this,"options");w(this,"block");this.options=i||aa}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}provideLexer(){return this.block?al.lex:al.lexInline}provideParser(){return this.block?il.parse:il.parseInline}},w(Zc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Zc),$0=class{constructor(...i){w(this,"defaults",gf());w(this,"options",this.setOptions);w(this,"parse",this.parseMarkdown(!0));w(this,"parseInline",this.parseMarkdown(!1));w(this,"Parser",il);w(this,"Renderer",to);w(this,"TextRenderer",Tf);w(this,"Lexer",al);w(this,"Tokenizer",eo);w(this,"Hooks",Zs);this.use(...i)}walkTokens(i,l){var s,u;let r=[];for(const f of i)switch(r=r.concat(l.call(this,f)),f.type){case"table":{const d=f;for(const g of d.header)r=r.concat(this.walkTokens(g.tokens,l));for(const g of d.rows)for(const p of g)r=r.concat(this.walkTokens(p.tokens,l));break}case"list":{const d=f;r=r.concat(this.walkTokens(d.items,l));break}default:{const d=f;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[d.type]?this.defaults.extensions.childTokens[d.type].forEach(g=>{const p=d[g].flat(1/0);r=r.concat(this.walkTokens(p,l))}):d.tokens&&(r=r.concat(this.walkTokens(d.tokens,l)))}}return r}use(...i){const l=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){const f=l.renderers[u.name];f?l.renderers[u.name]=function(...d){let g=u.renderer.apply(this,d);return g===!1&&(g=f.apply(this,d)),g}:l.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=l[u.level];f?f.unshift(u.tokenizer):l[u.level]=[u.tokenizer],u.start&&(u.level==="block"?l.startBlock?l.startBlock.push(u.start):l.startBlock=[u.start]:u.level==="inline"&&(l.startInline?l.startInline.push(u.start):l.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(l.childTokens[u.name]=u.childTokens)}),s.extensions=l),r.renderer){const u=this.defaults.renderer||new to(this.defaults);for(const f in r.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const d=f,g=r.renderer[d],p=u[d];u[d]=(...m)=>{let y=g.apply(u,m);return y===!1&&(y=p.apply(u,m)),y||""}}s.renderer=u}if(r.tokenizer){const u=this.defaults.tokenizer||new eo(this.defaults);for(const f in r.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const d=f,g=r.tokenizer[d],p=u[d];u[d]=(...m)=>{let y=g.apply(u,m);return y===!1&&(y=p.apply(u,m)),y}}s.tokenizer=u}if(r.hooks){const u=this.defaults.hooks||new Zs;for(const f in r.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const d=f,g=r.hooks[d],p=u[d];Zs.passThroughHooks.has(f)?u[d]=m=>{if(this.defaults.async)return Promise.resolve(g.call(u,m)).then(S=>p.call(u,S));const y=g.call(u,m);return p.call(u,y)}:u[d]=(...m)=>{let y=g.apply(u,m);return y===!1&&(y=p.apply(u,m)),y}}s.hooks=u}if(r.walkTokens){const u=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(d){let g=[];return g.push(f.call(this,d)),u&&(g=g.concat(u.call(this,d))),g}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,l){return al.lex(i,l??this.defaults)}parser(i,l){return il.parse(i,l??this.defaults)}parseMarkdown(i){return(r,s)=>{const u={...s},f={...this.defaults,...u},d=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&u.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=i);const g=f.hooks?f.hooks.provideLexer():i?al.lex:al.lexInline,p=f.hooks?f.hooks.provideParser():i?il.parse:il.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(r):r).then(m=>g(m,f)).then(m=>f.hooks?f.hooks.processAllTokens(m):m).then(m=>f.walkTokens?Promise.all(this.walkTokens(m,f.walkTokens)).then(()=>m):m).then(m=>p(m,f)).then(m=>f.hooks?f.hooks.postprocess(m):m).catch(d);try{f.hooks&&(r=f.hooks.preprocess(r));let m=g(r,f);f.hooks&&(m=f.hooks.processAllTokens(m)),f.walkTokens&&this.walkTokens(m,f.walkTokens);let y=p(m,f);return f.hooks&&(y=f.hooks.postprocess(y)),y}catch(m){return d(m)}}}onError(i,l){return r=>{if(r.message+=`
|
|
105
|
+
Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An error occurred:</p><pre>"+Rn(r.message+"",!0)+"</pre>";return l?Promise.resolve(s):s}if(l)return Promise.reject(r);throw r}}},la=new $0;function Te(i,l){return la.parse(i,l)}Te.options=Te.setOptions=function(i){return la.setOptions(i),Te.defaults=la.defaults,Tg(Te.defaults),Te};Te.getDefaults=gf;Te.defaults=aa;Te.use=function(...i){return la.use(...i),Te.defaults=la.defaults,Tg(Te.defaults),Te};Te.walkTokens=function(i,l){return la.walkTokens(i,l)};Te.parseInline=la.parseInline;Te.Parser=il;Te.parser=il.parse;Te.Renderer=to;Te.TextRenderer=Tf;Te.Lexer=al;Te.lexer=al.lex;Te.Tokenizer=eo;Te.Hooks=Zs;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;il.parse;al.lex;/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:zg,setPrototypeOf:Vp,isFrozen:J0,getPrototypeOf:W0,getOwnPropertyDescriptor:F0}=Object;let{freeze:Ct,seal:mn,create:Ks}=Object,{apply:Wc,construct:Fc}=typeof Reflect<"u"&&Reflect;Ct||(Ct=function(l){return l});mn||(mn=function(l){return l});Wc||(Wc=function(l,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return l.apply(r,u)});Fc||(Fc=function(l){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new l(...s)});const Gs=Dt(Array.prototype.forEach),eb=Dt(Array.prototype.lastIndexOf),Gp=Dt(Array.prototype.pop),er=Dt(Array.prototype.push),tb=Dt(Array.prototype.splice),$s=Dt(String.prototype.toLowerCase),Mc=Dt(String.prototype.toString),zc=Dt(String.prototype.match),tr=Dt(String.prototype.replace),nb=Dt(String.prototype.indexOf),lb=Dt(String.prototype.trim),Jt=Dt(Object.prototype.hasOwnProperty),At=Dt(RegExp.prototype.test),nr=ab(TypeError);function Dt(i){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return Wc(i,l,s)}}function ab(i){return function(){for(var l=arguments.length,r=new Array(l),s=0;s<l;s++)r[s]=arguments[s];return Fc(i,r)}}function pe(i,l){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$s;Vp&&Vp(i,null);let s=l.length;for(;s--;){let u=l[s];if(typeof u=="string"){const f=r(u);f!==u&&(J0(l)||(l[s]=f),u=f)}i[u]=!0}return i}function ib(i){for(let l=0;l<i.length;l++)Jt(i,l)||(i[l]=null);return i}function On(i){const l=Ks(null);for(const[r,s]of zg(i))Jt(i,r)&&(Array.isArray(s)?l[r]=ib(s):s&&typeof s=="object"&&s.constructor===Object?l[r]=On(s):l[r]=s);return l}function lr(i,l){for(;i!==null;){const s=F0(i,l);if(s){if(s.get)return Dt(s.get);if(typeof s.value=="function")return Dt(s.value)}i=W0(i)}function r(){return null}return r}const Ip=Ct(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),jc=Ct(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Uc=Ct(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rb=Ct(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Bc=Ct(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),sb=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qp=Ct(["#text"]),Pp=Ct(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Hc=Ct(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Yp=Ct(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Is=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ob=mn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ub=mn(/<%[\w\W]*|[\w\W]*%>/gm),cb=mn(/\$\{[\w\W]*/gm),fb=mn(/^data-[\-\w.\u00B7-\uFFFF]+$/),db=mn(/^aria-[\-\w]+$/),jg=mn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hb=mn(/^(?:\w+script|data):/i),mb=mn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ug=mn(/^html$/i),pb=mn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Xp=Object.freeze({__proto__:null,ARIA_ATTR:db,ATTR_WHITESPACE:mb,CUSTOM_ELEMENT:pb,DATA_ATTR:fb,DOCTYPE_NAME:Ug,ERB_EXPR:ub,IS_ALLOWED_URI:jg,IS_SCRIPT_OR_DATA:hb,MUSTACHE_EXPR:ob,TMPLIT_EXPR:cb});const ar={element:1,text:3,progressingInstruction:7,comment:8,document:9},gb=function(){return typeof window>"u"?null:window},_b=function(l,r){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Qp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Bg(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gb();const l=ne=>Bg(ne);if(l.version="3.3.3",l.removed=[],!i||!i.document||i.document.nodeType!==ar.document||!i.Element)return l.isSupported=!1,l;let{document:r}=i;const s=r,u=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:g,Element:p,NodeFilter:m,NamedNodeMap:y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:S,DOMParser:E,trustedTypes:A}=i,C=p.prototype,B=lr(C,"cloneNode"),P=lr(C,"remove"),U=lr(C,"nextSibling"),I=lr(C,"childNodes"),Y=lr(C,"parentNode");if(typeof d=="function"){const ne=r.createElement("template");ne.content&&ne.content.ownerDocument&&(r=ne.content.ownerDocument)}let Z,ae="";const{implementation:fe,createNodeIterator:te,createDocumentFragment:Ue,getElementsByTagName:pt}=r,{importNode:Lt}=s;let Re=Qp();l.isSupported=typeof zg=="function"&&typeof Y=="function"&&fe&&fe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ke,ERB_EXPR:kt,TMPLIT_EXPR:Ye,DATA_ATTR:Fe,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:Oe}=Xp;let{IS_ALLOWED_URI:Ce}=Xp,T=null;const G=pe({},[...Ip,...jc,...Uc,...Bc,...qp]);let X=null;const W=pe({},[...Pp,...Hc,...Yp,...Is]);let ee=Object.seal(Ks(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,be=null;const Ge=Object.seal(Ks(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Ln=!0,zl=!1,ra=!0,kn=!1,Wt=!0,pn=!1,jl=!1,$a=!1,Nn=!1,ol=!1,ul=!1,sa=!0,vr=!1;const vo="user-content-";let gt=!0,Ul=!1,wn={},Gt=null;const cl=pe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let br=null;const Ja=pe({},["audio","video","img","source","image","track"]);let Wa=null;const Sr=pe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bn="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let et=dt,Fa=!1,ei=null;const bo=pe({},[bn,ft,dt],Mc);let Mn=pe({},["mi","mo","mn","ms","mtext"]),zn=pe({},["annotation-xml"]);const oa=pe({},["title","style","font","a","script"]);let It=null;const ua=["application/xhtml+xml","text/html"],Bl="text/html";let $e=null,jn=null;const ti=r.createElement("form"),fl=function(R){return R instanceof RegExp||R instanceof Function},ni=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jn&&jn===R)){if((!R||typeof R!="object")&&(R={}),R=On(R),It=ua.indexOf(R.PARSER_MEDIA_TYPE)===-1?Bl:R.PARSER_MEDIA_TYPE,$e=It==="application/xhtml+xml"?Mc:$s,T=Jt(R,"ALLOWED_TAGS")?pe({},R.ALLOWED_TAGS,$e):G,X=Jt(R,"ALLOWED_ATTR")?pe({},R.ALLOWED_ATTR,$e):W,ei=Jt(R,"ALLOWED_NAMESPACES")?pe({},R.ALLOWED_NAMESPACES,Mc):bo,Wa=Jt(R,"ADD_URI_SAFE_ATTR")?pe(On(Sr),R.ADD_URI_SAFE_ATTR,$e):Sr,br=Jt(R,"ADD_DATA_URI_TAGS")?pe(On(Ja),R.ADD_DATA_URI_TAGS,$e):Ja,Gt=Jt(R,"FORBID_CONTENTS")?pe({},R.FORBID_CONTENTS,$e):cl,ue=Jt(R,"FORBID_TAGS")?pe({},R.FORBID_TAGS,$e):On({}),be=Jt(R,"FORBID_ATTR")?pe({},R.FORBID_ATTR,$e):On({}),wn=Jt(R,"USE_PROFILES")?R.USE_PROFILES:!1,Ie=R.ALLOW_ARIA_ATTR!==!1,Ln=R.ALLOW_DATA_ATTR!==!1,zl=R.ALLOW_UNKNOWN_PROTOCOLS||!1,ra=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,kn=R.SAFE_FOR_TEMPLATES||!1,Wt=R.SAFE_FOR_XML!==!1,pn=R.WHOLE_DOCUMENT||!1,Nn=R.RETURN_DOM||!1,ol=R.RETURN_DOM_FRAGMENT||!1,ul=R.RETURN_TRUSTED_TYPE||!1,$a=R.FORCE_BODY||!1,sa=R.SANITIZE_DOM!==!1,vr=R.SANITIZE_NAMED_PROPS||!1,gt=R.KEEP_CONTENT!==!1,Ul=R.IN_PLACE||!1,Ce=R.ALLOWED_URI_REGEXP||jg,et=R.NAMESPACE||dt,Mn=R.MATHML_TEXT_INTEGRATION_POINTS||Mn,zn=R.HTML_INTEGRATION_POINTS||zn,ee=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&fl(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),kn&&(Ln=!1),ol&&(Nn=!0),wn&&(T=pe({},qp),X=Ks(null),wn.html===!0&&(pe(T,Ip),pe(X,Pp)),wn.svg===!0&&(pe(T,jc),pe(X,Hc),pe(X,Is)),wn.svgFilters===!0&&(pe(T,Uc),pe(X,Hc),pe(X,Is)),wn.mathMl===!0&&(pe(T,Bc),pe(X,Yp),pe(X,Is))),Jt(R,"ADD_TAGS")||(Ge.tagCheck=null),Jt(R,"ADD_ATTR")||(Ge.attributeCheck=null),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Ge.tagCheck=R.ADD_TAGS:(T===G&&(T=On(T)),pe(T,R.ADD_TAGS,$e))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Ge.attributeCheck=R.ADD_ATTR:(X===W&&(X=On(X)),pe(X,R.ADD_ATTR,$e))),R.ADD_URI_SAFE_ATTR&&pe(Wa,R.ADD_URI_SAFE_ATTR,$e),R.FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),pe(Gt,R.FORBID_CONTENTS,$e)),R.ADD_FORBID_CONTENTS&&(Gt===cl&&(Gt=On(Gt)),pe(Gt,R.ADD_FORBID_CONTENTS,$e)),gt&&(T["#text"]=!0),pn&&pe(T,["html","head","body"]),T.table&&(pe(T,["tbody"]),delete ue.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw nr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw nr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=R.TRUSTED_TYPES_POLICY,ae=Z.createHTML("")}else Z===void 0&&(Z=_b(A,u)),Z!==null&&typeof ae=="string"&&(ae=Z.createHTML(""));Ct&&Ct(R),jn=R}},li=pe({},[...jc,...Uc,...rb]),ai=pe({},[...Bc,...sb]),Er=function(R){let q=Y(R);(!q||!q.tagName)&&(q={namespaceURI:et,tagName:"template"});const J=$s(R.tagName),De=$s(q.tagName);return ei[R.namespaceURI]?R.namespaceURI===ft?q.namespaceURI===dt?J==="svg":q.namespaceURI===bn?J==="svg"&&(De==="annotation-xml"||Mn[De]):!!li[J]:R.namespaceURI===bn?q.namespaceURI===dt?J==="math":q.namespaceURI===ft?J==="math"&&zn[De]:!!ai[J]:R.namespaceURI===dt?q.namespaceURI===ft&&!zn[De]||q.namespaceURI===bn&&!Mn[De]?!1:!ai[J]&&(oa[J]||!li[J]):!!(It==="application/xhtml+xml"&&ei[R.namespaceURI]):!1},Nt=function(R){er(l.removed,{element:R});try{Y(R).removeChild(R)}catch{P(R)}},gn=function(R,q){try{er(l.removed,{attribute:q.getAttributeNode(R),from:q})}catch{er(l.removed,{attribute:null,from:q})}if(q.removeAttribute(R),R==="is")if(Nn||ol)try{Nt(q)}catch{}else try{q.setAttribute(R,"")}catch{}},ii=function(R){let q=null,J=null;if($a)R="<remove></remove>"+R;else{const me=zc(R,/^[\r\n\t ]+/);J=me&&me[0]}It==="application/xhtml+xml"&&et===dt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const De=Z?Z.createHTML(R):R;if(et===dt)try{q=new E().parseFromString(De,It)}catch{}if(!q||!q.documentElement){q=fe.createDocument(et,"template",null);try{q.documentElement.innerHTML=Fa?ae:De}catch{}}const Xe=q.body||q.documentElement;return R&&J&&Xe.insertBefore(r.createTextNode(J),Xe.childNodes[0]||null),et===dt?pt.call(q,pn?"html":"body")[0]:pn?q.documentElement:Xe},ri=function(R){return te.call(R.ownerDocument||R,R,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Ft=function(R){return R instanceof S&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof y)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},tt=function(R){return typeof g=="function"&&R instanceof g};function qe(ne,R,q){Gs(ne,J=>{J.call(l,R,q,jn)})}const Un=function(R){let q=null;if(qe(Re.beforeSanitizeElements,R,null),Ft(R))return Nt(R),!0;const J=$e(R.nodeName);if(qe(Re.uponSanitizeElement,R,{tagName:J,allowedTags:T}),Wt&&R.hasChildNodes()&&!tt(R.firstElementChild)&&At(/<[/\w!]/g,R.innerHTML)&&At(/<[/\w!]/g,R.textContent)||R.nodeType===ar.progressingInstruction||Wt&&R.nodeType===ar.comment&&At(/<[/\w]/g,R.data))return Nt(R),!0;if(!(Ge.tagCheck instanceof Function&&Ge.tagCheck(J))&&(!T[J]||ue[J])){if(!ue[J]&&xr(J)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,J)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(J)))return!1;if(gt&&!Gt[J]){const De=Y(R)||R.parentNode,Xe=I(R)||R.childNodes;if(Xe&&De){const me=Xe.length;for(let _t=me-1;_t>=0;--_t){const en=B(Xe[_t],!0);en.__removalCount=(R.__removalCount||0)+1,De.insertBefore(en,U(R))}}}return Nt(R),!0}return R instanceof p&&!Er(R)||(J==="noscript"||J==="noembed"||J==="noframes")&&At(/<\/no(script|embed|frames)/i,R.innerHTML)?(Nt(R),!0):(kn&&R.nodeType===ar.text&&(q=R.textContent,Gs([Ke,kt,Ye],De=>{q=tr(q,De," ")}),R.textContent!==q&&(er(l.removed,{element:R.cloneNode()}),R.textContent=q)),qe(Re.afterSanitizeElements,R,null),!1)},ca=function(R,q,J){if(be[q]||sa&&(q==="id"||q==="name")&&(J in r||J in ti))return!1;if(!(Ln&&!be[q]&&At(Fe,q))){if(!(Ie&&At(z,q))){if(!(Ge.attributeCheck instanceof Function&&Ge.attributeCheck(q,R))){if(!X[q]||be[q]){if(!(xr(R)&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,R)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(R))&&(ee.attributeNameCheck instanceof RegExp&&At(ee.attributeNameCheck,q)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(q,R))||q==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&At(ee.tagNameCheck,J)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(J))))return!1}else if(!Wa[q]){if(!At(Ce,tr(J,re,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&R!=="script"&&nb(J,"data:")===0&&br[R])){if(!(zl&&!At(K,tr(J,re,"")))){if(J)return!1}}}}}}}return!0},xr=function(R){return R!=="annotation-xml"&&zc(R,Oe)},Tr=function(R){qe(Re.beforeSanitizeAttributes,R,null);const{attributes:q}=R;if(!q||Ft(R))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let De=q.length;for(;De--;){const Xe=q[De],{name:me,namespaceURI:_t,value:en}=Xe,wt=$e(me),Sn=en;let st=me==="value"?Sn:lb(Sn);if(J.attrName=wt,J.attrValue=st,J.keepAttr=!0,J.forceKeepAttr=void 0,qe(Re.uponSanitizeAttribute,R,J),st=J.attrValue,vr&&(wt==="id"||wt==="name")&&(gn(me,R),st=vo+st),Wt&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,st)){gn(me,R);continue}if(wt==="attributename"&&zc(st,"href")){gn(me,R);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){gn(me,R);continue}if(!ra&&At(/\/>/i,st)){gn(me,R);continue}kn&&Gs([Ke,kt,Ye],oi=>{st=tr(st,oi," ")});const si=$e(R.nodeName);if(!ca(si,wt,st)){gn(me,R);continue}if(Z&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!_t)switch(A.getAttributeType(si,wt)){case"TrustedHTML":{st=Z.createHTML(st);break}case"TrustedScriptURL":{st=Z.createScriptURL(st);break}}if(st!==Sn)try{_t?R.setAttributeNS(_t,me,st):R.setAttribute(me,st),Ft(R)?Nt(R):Gp(l.removed)}catch{gn(me,R)}}qe(Re.afterSanitizeAttributes,R,null)},Ar=function ne(R){let q=null;const J=ri(R);for(qe(Re.beforeSanitizeShadowDOM,R,null);q=J.nextNode();)qe(Re.uponSanitizeShadowNode,q,null),Un(q),Tr(q),q.content instanceof f&&ne(q.content);qe(Re.afterSanitizeShadowDOM,R,null)};return l.sanitize=function(ne){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,J=null,De=null,Xe=null;if(Fa=!ne,Fa&&(ne="<!-->"),typeof ne!="string"&&!tt(ne))if(typeof ne.toString=="function"){if(ne=ne.toString(),typeof ne!="string")throw nr("dirty is not a string, aborting")}else throw nr("toString is not a function");if(!l.isSupported)return ne;if(jl||ni(R),l.removed=[],typeof ne=="string"&&(Ul=!1),Ul){if(ne.nodeName){const en=$e(ne.nodeName);if(!T[en]||ue[en])throw nr("root node is forbidden and cannot be sanitized in-place")}}else if(ne instanceof g)q=ii("<!---->"),J=q.ownerDocument.importNode(ne,!0),J.nodeType===ar.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?q=J:q.appendChild(J);else{if(!Nn&&!kn&&!pn&&ne.indexOf("<")===-1)return Z&&ul?Z.createHTML(ne):ne;if(q=ii(ne),!q)return Nn?null:ul?ae:""}q&&$a&&Nt(q.firstChild);const me=ri(Ul?ne:q);for(;De=me.nextNode();)Un(De),Tr(De),De.content instanceof f&&Ar(De.content);if(Ul)return ne;if(Nn){if(ol)for(Xe=Ue.call(q.ownerDocument);q.firstChild;)Xe.appendChild(q.firstChild);else Xe=q;return(X.shadowroot||X.shadowrootmode)&&(Xe=Lt.call(s,Xe,!0)),Xe}let _t=pn?q.outerHTML:q.innerHTML;return pn&&T["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&At(Ug,q.ownerDocument.doctype.name)&&(_t="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
|
|
106
|
+
`+_t),kn&&Gs([Ke,kt,Ye],en=>{_t=tr(_t,en," ")}),Z&&ul?Z.createHTML(_t):_t},l.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ni(ne),jl=!0},l.clearConfig=function(){jn=null,jl=!1},l.isValidAttribute=function(ne,R,q){jn||ni({});const J=$e(ne),De=$e(R);return ca(J,De,q)},l.addHook=function(ne,R){typeof R=="function"&&er(Re[ne],R)},l.removeHook=function(ne,R){if(R!==void 0){const q=eb(Re[ne],R);return q===-1?void 0:tb(Re[ne],q,1)[0]}return Gp(Re[ne])},l.removeHooks=function(ne){Re[ne]=[]},l.removeAllHooks=function(){Re=Qp()},l}var Zp=Bg();const yb="modulepreload",vb=function(i){return"/"+i},Kp={},b=function(l,r,s){let u=Promise.resolve();if(r&&r.length>0){let d=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));u=d(r.map(m=>{if(m=vb(m),m in Kp)return;Kp[m]=!0;const y=m.endsWith(".css"),S=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${S}`))return;const E=document.createElement("link");if(E.rel=y?"stylesheet":yb,y||(E.as="script"),E.crossOrigin="",E.href=m,p&&E.setAttribute("nonce",p),document.head.appendChild(E),y)return new Promise((A,C)=>{E.addEventListener("load",A),E.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=d,window.dispatchEvent(g),!g.defaultPrevented)throw d}return u.then(d=>{for(const g of d||[])g.status==="rejected"&&f(g.reason);return l().catch(f)})},Hg=[{id:"abap",name:"ABAP",import:()=>b(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>b(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>b(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>b(()=>import("./angular-html-LfdN0zeE.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>b(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>b(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>b(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>b(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>b(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>b(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>b(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>b(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>b(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>b(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>b(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>b(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>b(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>b(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>b(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>b(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>b(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>b(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>b(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>b(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>b(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>b(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>b(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>b(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>b(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>b(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>b(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>b(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>b(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>b(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>b(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>b(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>b(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>b(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>b(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>b(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>b(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>b(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>b(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>b(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>b(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>b(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>b(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>b(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>b(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>b(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>b(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>b(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>b(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>b(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>b(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>b(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>b(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>b(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>b(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>b(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>b(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>b(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>b(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>b(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>b(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>b(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>b(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>b(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>b(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>b(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>b(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>b(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>b(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>b(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>b(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>b(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>b(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>b(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>b(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>b(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>b(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>b(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>b(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>b(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>b(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>b(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>b(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>b(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>b(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>b(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>b(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>b(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>b(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>b(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>b(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>b(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>b(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>b(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>b(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>b(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>b(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>b(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>b(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>b(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>b(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>b(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>b(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>b(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>b(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>b(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>b(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>b(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>b(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>b(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>b(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>b(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>b(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>b(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>b(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>b(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>b(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>b(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>b(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>b(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>b(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>b(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>b(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>b(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>b(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>b(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>b(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>b(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>b(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>b(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>b(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>b(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>b(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>b(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>b(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>b(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>b(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>b(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>b(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>b(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>b(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>b(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>b(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>b(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>b(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>b(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>b(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>b(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>b(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>b(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>b(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>b(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>b(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>b(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>b(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>b(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>b(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>b(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>b(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>b(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>b(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>b(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>b(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>b(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>b(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>b(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>b(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>b(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>b(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>b(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>b(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>b(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>b(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>b(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>b(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>b(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>b(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>b(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>b(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>b(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>b(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>b(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>b(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>b(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>b(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>b(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>b(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>b(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>b(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>b(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>b(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>b(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>b(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>b(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>b(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>b(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>b(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>b(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>b(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>b(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>b(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>b(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>b(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>b(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>b(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>b(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>b(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>b(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>b(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>b(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>b(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>b(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>b(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>b(()=>import("./zig-BVz_zdnA.js"),[])}],bb=Object.fromEntries(Hg.map(i=>[i.id,i.import])),Sb=Object.fromEntries(Hg.flatMap(i=>{var l;return((l=i.aliases)==null?void 0:l.map(r=>[r,i.import]))||[]})),Eb={...bb,...Sb},xb=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>b(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>b(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>b(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>b(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>b(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>b(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>b(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>b(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>b(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>b(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>b(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>b(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>b(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>b(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>b(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>b(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>b(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>b(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>b(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>b(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>b(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>b(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>b(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>b(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>b(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>b(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>b(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>b(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>b(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>b(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>b(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>b(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>b(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>b(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>b(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>b(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>b(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>b(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>b(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>b(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>b(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>b(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>b(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>b(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>b(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>b(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>b(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>b(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>b(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>b(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>b(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>b(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>b(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>b(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],Tb=Object.fromEntries(xb.map(i=>[i.id,i.import]));let sl=class extends Error{constructor(l){super(l),this.name="ShikiError"}},Af=class extends Error{constructor(l){super(l),this.name="ShikiError"}};function Ab(){return 2147483648}function Rb(){return typeof performance<"u"?performance.now():Date.now()}const Ob=(i,l)=>i+(l-i%l)%l;async function Cb(i){let l,r;const s={};function u(A){r=A,s.HEAPU8=new Uint8Array(A),s.HEAPU32=new Uint32Array(A)}function f(A,C,B){s.HEAPU8.copyWithin(A,C,C+B)}function d(A){try{return l.grow(A-r.byteLength+65535>>>16),u(l.buffer),1}catch{}}function g(A){const C=s.HEAPU8.length;A=A>>>0;const B=Ab();if(A>B)return!1;for(let P=1;P<=4;P*=2){let U=C*(1+.2/P);U=Math.min(U,A+100663296);const I=Math.min(B,Ob(Math.max(A,U),65536));if(d(I))return!0}return!1}const p=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function m(A,C,B=1024){const P=C+B;let U=C;for(;A[U]&&!(U>=P);)++U;if(U-C>16&&A.buffer&&p)return p.decode(A.subarray(C,U));let I="";for(;C<U;){let Y=A[C++];if(!(Y&128)){I+=String.fromCharCode(Y);continue}const Z=A[C++]&63;if((Y&224)===192){I+=String.fromCharCode((Y&31)<<6|Z);continue}const ae=A[C++]&63;if((Y&240)===224?Y=(Y&15)<<12|Z<<6|ae:Y=(Y&7)<<18|Z<<12|ae<<6|A[C++]&63,Y<65536)I+=String.fromCharCode(Y);else{const fe=Y-65536;I+=String.fromCharCode(55296|fe>>10,56320|fe&1023)}}return I}function y(A,C){return A?m(s.HEAPU8,A,C):""}const S={emscripten_get_now:Rb,emscripten_memcpy_big:f,emscripten_resize_heap:g,fd_write:()=>0};async function E(){const C=await i({env:S,wasi_snapshot_preview1:S});l=C.memory,u(l.buffer),Object.assign(s,C),s.UTF8ToString=y}return await E(),s}var Db=Object.defineProperty,Lb=(i,l,r)=>l in i?Db(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r,ut=(i,l,r)=>(Lb(i,typeof l!="symbol"?l+"":l,r),r);let mt=null;function kb(i){throw new Af(i.UTF8ToString(i.getLastOnigError()))}class go{constructor(l){ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16Value"),ut(this,"utf8Value"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16");const r=l.length,s=go._utf8ByteLength(l),u=s!==r,f=u?new Uint32Array(r+1):null;u&&(f[r]=s);const d=u?new Uint32Array(s+1):null;u&&(d[s]=r);const g=new Uint8Array(s);let p=0;for(let m=0;m<r;m++){const y=l.charCodeAt(m);let S=y,E=!1;if(y>=55296&&y<=56319&&m+1<r){const A=l.charCodeAt(m+1);A>=56320&&A<=57343&&(S=(y-55296<<10)+65536|A-56320,E=!0)}u&&(f[m]=p,E&&(f[m+1]=p),S<=127?d[p+0]=m:S<=2047?(d[p+0]=m,d[p+1]=m):S<=65535?(d[p+0]=m,d[p+1]=m,d[p+2]=m):(d[p+0]=m,d[p+1]=m,d[p+2]=m,d[p+3]=m)),S<=127?g[p++]=S:S<=2047?(g[p++]=192|(S&1984)>>>6,g[p++]=128|(S&63)>>>0):S<=65535?(g[p++]=224|(S&61440)>>>12,g[p++]=128|(S&4032)>>>6,g[p++]=128|(S&63)>>>0):(g[p++]=240|(S&1835008)>>>18,g[p++]=128|(S&258048)>>>12,g[p++]=128|(S&4032)>>>6,g[p++]=128|(S&63)>>>0),E&&m++}this.utf16Length=r,this.utf8Length=s,this.utf16Value=l,this.utf8Value=g,this.utf16OffsetToUtf8=f,this.utf8OffsetToUtf16=d}static _utf8ByteLength(l){let r=0;for(let s=0,u=l.length;s<u;s++){const f=l.charCodeAt(s);let d=f,g=!1;if(f>=55296&&f<=56319&&s+1<u){const p=l.charCodeAt(s+1);p>=56320&&p<=57343&&(d=(f-55296<<10)+65536|p-56320,g=!0)}d<=127?r+=1:d<=2047?r+=2:d<=65535?r+=3:r+=4,g&&s++}return r}createString(l){const r=l.omalloc(this.utf8Length);return l.HEAPU8.set(this.utf8Value,r),r}}const Cn=class{constructor(i){if(ut(this,"id",++Cn.LAST_ID),ut(this,"_onigBinding"),ut(this,"content"),ut(this,"utf16Length"),ut(this,"utf8Length"),ut(this,"utf16OffsetToUtf8"),ut(this,"utf8OffsetToUtf16"),ut(this,"ptr"),!mt)throw new Af("Must invoke loadWasm first.");this._onigBinding=mt,this.content=i;const l=new go(i);this.utf16Length=l.utf16Length,this.utf8Length=l.utf8Length,this.utf16OffsetToUtf8=l.utf16OffsetToUtf8,this.utf8OffsetToUtf16=l.utf8OffsetToUtf16,this.utf8Length<1e4&&!Cn._sharedPtrInUse?(Cn._sharedPtr||(Cn._sharedPtr=mt.omalloc(1e4)),Cn._sharedPtrInUse=!0,mt.HEAPU8.set(l.utf8Value,Cn._sharedPtr),this.ptr=Cn._sharedPtr):this.ptr=l.createString(mt)}convertUtf8OffsetToUtf16(i){return this.utf8OffsetToUtf16?i<0?0:i>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[i]:i}convertUtf16OffsetToUtf8(i){return this.utf16OffsetToUtf8?i<0?0:i>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[i]:i}dispose(){this.ptr===Cn._sharedPtr?Cn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let gr=Cn;ut(gr,"LAST_ID",0);ut(gr,"_sharedPtr",0);ut(gr,"_sharedPtrInUse",!1);class Nb{constructor(l){if(ut(this,"_onigBinding"),ut(this,"_ptr"),!mt)throw new Af("Must invoke loadWasm first.");const r=[],s=[];for(let g=0,p=l.length;g<p;g++){const m=new go(l[g]);r[g]=m.createString(mt),s[g]=m.utf8Length}const u=mt.omalloc(4*l.length);mt.HEAPU32.set(r,u/4);const f=mt.omalloc(4*l.length);mt.HEAPU32.set(s,f/4);const d=mt.createOnigScanner(u,f,l.length);for(let g=0,p=l.length;g<p;g++)mt.ofree(r[g]);mt.ofree(f),mt.ofree(u),d===0&&kb(mt),this._onigBinding=mt,this._ptr=d}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(l,r,s){let u=0;if(typeof s=="number"&&(u=s),typeof l=="string"){l=new gr(l);const f=this._findNextMatchSync(l,r,!1,u);return l.dispose(),f}return this._findNextMatchSync(l,r,!1,u)}_findNextMatchSync(l,r,s,u){const f=this._onigBinding,d=f.findNextOnigScannerMatch(this._ptr,l.id,l.ptr,l.utf8Length,l.convertUtf16OffsetToUtf8(r),u);if(d===0)return null;const g=f.HEAPU32;let p=d/4;const m=g[p++],y=g[p++],S=[];for(let E=0;E<y;E++){const A=l.convertUtf8OffsetToUtf16(g[p++]),C=l.convertUtf8OffsetToUtf16(g[p++]);S[E]={start:A,end:C,length:C-A}}return{index:m,captureIndices:S}}}function wb(i){return typeof i.instantiator=="function"}function Mb(i){return typeof i.default=="function"}function zb(i){return typeof i.data<"u"}function jb(i){return typeof Response<"u"&&i instanceof Response}function Ub(i){var l;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((l=Buffer.isBuffer)==null?void 0:l.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let qs;function Bb(i){if(qs)return qs;async function l(){mt=await Cb(async r=>{let s=i;return s=await s,typeof s=="function"&&(s=await s(r)),typeof s=="function"&&(s=await s(r)),wb(s)?s=await s.instantiator(r):Mb(s)?s=await s.default(r):(zb(s)&&(s=s.data),jb(s)?typeof WebAssembly.instantiateStreaming=="function"?s=await Hb(s)(r):s=await Vb(s)(r):Ub(s)?s=await Vc(s)(r):s instanceof WebAssembly.Module?s=await Vc(s)(r):"default"in s&&s.default instanceof WebAssembly.Module&&(s=await Vc(s.default)(r))),"instance"in s&&(s=s.instance),"exports"in s&&(s=s.exports),s})}return qs=l(),qs}function Vc(i){return l=>WebAssembly.instantiate(i,l)}function Hb(i){return l=>WebAssembly.instantiateStreaming(i,l)}function Vb(i){return async l=>{const r=await i.arrayBuffer();return WebAssembly.instantiate(r,l)}}let Gb;function Ib(){return Gb}async function Vg(i){return i&&await Bb(i),{createScanner(l){return new Nb(l.map(r=>typeof r=="string"?r:r.source))},createString(l){return new gr(l)}}}function qb(i){return Rf(i)}function Rf(i){return Array.isArray(i)?Pb(i):i instanceof RegExp?i:typeof i=="object"?Yb(i):i}function Pb(i){let l=[];for(let r=0,s=i.length;r<s;r++)l[r]=Rf(i[r]);return l}function Yb(i){let l={};for(let r in i)l[r]=Rf(i[r]);return l}function Gg(i,...l){return l.forEach(r=>{for(let s in r)i[s]=r[s]}),i}function Ig(i){const l=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return l===0?i:~l===i.length-1?Ig(i.substring(0,i.length-1)):i.substr(~l+1)}var Gc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ps=class{static hasCaptures(i){return i===null?!1:(Gc.lastIndex=0,Gc.test(i))}static replaceCaptures(i,l,r){return i.replace(Gc,(s,u,f,d)=>{let g=r[parseInt(u||f,10)];if(g){let p=l.substring(g.start,g.end);for(;p[0]===".";)p=p.substring(1);switch(d){case"downcase":return p.toLowerCase();case"upcase":return p.toUpperCase();default:return p}}else return s})}};function qg(i,l){return i<l?-1:i>l?1:0}function Pg(i,l){if(i===null&&l===null)return 0;if(!i)return-1;if(!l)return 1;let r=i.length,s=l.length;if(r===s){for(let u=0;u<r;u++){let f=qg(i[u],l[u]);if(f!==0)return f}return 0}return r-s}function $p(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Yg(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Xg=class{constructor(i){w(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const l=this.fn(i);return this.cache.set(i,l),l}},no=class{constructor(i,l,r){w(this,"_cachedMatchRoot",new Xg(i=>this._root.match(i)));this._colorMap=i,this._defaults=l,this._root=r}static createFromRawTheme(i,l){return this.createFromParsedTheme(Zb(i),l)}static createFromParsedTheme(i,l){return $b(i,l)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const l=i.scopeName,s=this._cachedMatchRoot.get(l).find(u=>Xb(i.parent,u.parentScopes));return s?new Qg(s.fontStyle,s.foreground,s.background):null}},Ic=class Js{constructor(l,r){this.parent=l,this.scopeName=r}static push(l,r){for(const s of r)l=new Js(l,s);return l}static from(...l){let r=null;for(let s=0;s<l.length;s++)r=new Js(r,l[s]);return r}push(l){return new Js(this,l)}getSegments(){let l=this;const r=[];for(;l;)r.push(l.scopeName),l=l.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(l){return this===l?!0:this.parent===null?!1:this.parent.extends(l)}getExtensionIfDefined(l){const r=[];let s=this;for(;s&&s!==l;)r.push(s.scopeName),s=s.parent;return s===l?r.reverse():void 0}};function Xb(i,l){if(l.length===0)return!0;for(let r=0;r<l.length;r++){let s=l[r],u=!1;if(s===">"){if(r===l.length-1)return!1;s=l[++r],u=!0}for(;i&&!Qb(i.scopeName,s);){if(u)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function Qb(i,l){return l===i||i.startsWith(l)&&i[l.length]==="."}var Qg=class{constructor(i,l,r){this.fontStyle=i,this.foregroundId=l,this.backgroundId=r}};function Zb(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let l=i.settings,r=[],s=0;for(let u=0,f=l.length;u<f;u++){let d=l[u];if(!d.settings)continue;let g;if(typeof d.scope=="string"){let S=d.scope;S=S.replace(/^[,]+/,""),S=S.replace(/[,]+$/,""),g=S.split(",")}else Array.isArray(d.scope)?g=d.scope:g=[""];let p=-1;if(typeof d.settings.fontStyle=="string"){p=0;let S=d.settings.fontStyle.split(" ");for(let E=0,A=S.length;E<A;E++)switch(S[E]){case"italic":p=p|1;break;case"bold":p=p|2;break;case"underline":p=p|4;break;case"strikethrough":p=p|8;break}}let m=null;typeof d.settings.foreground=="string"&&$p(d.settings.foreground)&&(m=d.settings.foreground);let y=null;typeof d.settings.background=="string"&&$p(d.settings.background)&&(y=d.settings.background);for(let S=0,E=g.length;S<E;S++){let C=g[S].trim().split(" "),B=C[C.length-1],P=null;C.length>1&&(P=C.slice(0,C.length-1),P.reverse()),r[s++]=new Kb(B,P,u,p,m,y)}}return r}var Kb=class{constructor(i,l,r,s,u,f){this.scope=i,this.parentScopes=l,this.index=r,this.fontStyle=s,this.foreground=u,this.background=f}},rl=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(rl||{});function $b(i,l){i.sort((p,m)=>{let y=qg(p.scope,m.scope);return y!==0||(y=Pg(p.parentScopes,m.parentScopes),y!==0)?y:p.index-m.index});let r=0,s="#000000",u="#ffffff";for(;i.length>=1&&i[0].scope==="";){let p=i.shift();p.fontStyle!==-1&&(r=p.fontStyle),p.foreground!==null&&(s=p.foreground),p.background!==null&&(u=p.background)}let f=new Jb(l),d=new Qg(r,f.getId(s),f.getId(u)),g=new Fb(new ef(0,null,-1,0,0),[]);for(let p=0,m=i.length;p<m;p++){let y=i[p];g.insert(0,y.scope,y.parentScopes,y.fontStyle,f.getId(y.foreground),f.getId(y.background))}return new no(f,d,g)}var Jb=class{constructor(i){w(this,"_isFrozen");w(this,"_lastColorId");w(this,"_id2color");w(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let l=0,r=i.length;l<r;l++)this._color2id[i[l]]=l,this._id2color[l]=i[l]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let l=this._color2id[i];if(l)return l;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return l=++this._lastColorId,this._color2id[i]=l,this._id2color[l]=i,l}getColorMap(){return this._id2color.slice(0)}},Wb=Object.freeze([]),ef=class Zg{constructor(l,r,s,u,f){w(this,"scopeDepth");w(this,"parentScopes");w(this,"fontStyle");w(this,"foreground");w(this,"background");this.scopeDepth=l,this.parentScopes=r||Wb,this.fontStyle=s,this.foreground=u,this.background=f}clone(){return new Zg(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(l){let r=[];for(let s=0,u=l.length;s<u;s++)r[s]=l[s].clone();return r}acceptOverwrite(l,r,s,u){this.scopeDepth>l?console.log("how did this happen?"):this.scopeDepth=l,r!==-1&&(this.fontStyle=r),s!==0&&(this.foreground=s),u!==0&&(this.background=u)}},Fb=class tf{constructor(l,r=[],s={}){w(this,"_rulesWithParentScopes");this._mainRule=l,this._children=s,this._rulesWithParentScopes=r}static _cmpBySpecificity(l,r){if(l.scopeDepth!==r.scopeDepth)return r.scopeDepth-l.scopeDepth;let s=0,u=0;for(;l.parentScopes[s]===">"&&s++,r.parentScopes[u]===">"&&u++,!(s>=l.parentScopes.length||u>=r.parentScopes.length);){const f=r.parentScopes[u].length-l.parentScopes[s].length;if(f!==0)return f;s++,u++}return r.parentScopes.length-l.parentScopes.length}match(l){if(l!==""){let s=l.indexOf("."),u,f;if(s===-1?(u=l,f=""):(u=l.substring(0,s),f=l.substring(s+1)),this._children.hasOwnProperty(u))return this._children[u].match(f)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(tf._cmpBySpecificity),r}insert(l,r,s,u,f,d){if(r===""){this._doInsertHere(l,s,u,f,d);return}let g=r.indexOf("."),p,m;g===-1?(p=r,m=""):(p=r.substring(0,g),m=r.substring(g+1));let y;this._children.hasOwnProperty(p)?y=this._children[p]:(y=new tf(this._mainRule.clone(),ef.cloneArr(this._rulesWithParentScopes)),this._children[p]=y),y.insert(l+1,m,s,u,f,d)}_doInsertHere(l,r,s,u,f){if(r===null){this._mainRule.acceptOverwrite(l,s,u,f);return}for(let d=0,g=this._rulesWithParentScopes.length;d<g;d++){let p=this._rulesWithParentScopes[d];if(Pg(p.parentScopes,r)===0){p.acceptOverwrite(l,s,u,f);return}}s===-1&&(s=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),f===0&&(f=this._mainRule.background),this._rulesWithParentScopes.push(new ef(l,r,s,u,f))}},Qa=class dn{static toBinaryStr(l){return l.toString(2).padStart(32,"0")}static print(l){const r=dn.getLanguageId(l),s=dn.getTokenType(l),u=dn.getFontStyle(l),f=dn.getForeground(l),d=dn.getBackground(l);console.log({languageId:r,tokenType:s,fontStyle:u,foreground:f,background:d})}static getLanguageId(l){return(l&255)>>>0}static getTokenType(l){return(l&768)>>>8}static containsBalancedBrackets(l){return(l&1024)!==0}static getFontStyle(l){return(l&30720)>>>11}static getForeground(l){return(l&16744448)>>>15}static getBackground(l){return(l&4278190080)>>>24}static set(l,r,s,u,f,d,g){let p=dn.getLanguageId(l),m=dn.getTokenType(l),y=dn.containsBalancedBrackets(l)?1:0,S=dn.getFontStyle(l),E=dn.getForeground(l),A=dn.getBackground(l);return r!==0&&(p=r),s!==8&&(m=s),u!==null&&(y=u?1:0),f!==-1&&(S=f),d!==0&&(E=d),g!==0&&(A=g),(p<<0|m<<8|y<<10|S<<11|E<<15|A<<24)>>>0}};function lo(i,l){const r=[],s=eS(i);let u=s.next();for(;u!==null;){let p=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":p=1;break;case"L":p=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=s.next()}let m=d();if(r.push({matcher:m,priority:p}),u!==",")break;u=s.next()}return r;function f(){if(u==="-"){u=s.next();const p=f();return m=>!!p&&!p(m)}if(u==="("){u=s.next();const p=g();return u===")"&&(u=s.next()),p}if(Jp(u)){const p=[];do p.push(u),u=s.next();while(Jp(u));return m=>l(p,m)}return null}function d(){const p=[];let m=f();for(;m;)p.push(m),m=f();return y=>p.every(S=>S(y))}function g(){const p=[];let m=d();for(;m&&(p.push(m),u==="|"||u===",");){do u=s.next();while(u==="|"||u===",");m=d()}return y=>p.some(S=>S(y))}}function Jp(i){return!!i&&!!i.match(/[\w\.:]+/)}function eS(i){let l=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=l.exec(i);return{next:()=>{if(!r)return null;const s=r[0];return r=l.exec(i),s}}}function Kg(i){typeof i.dispose=="function"&&i.dispose()}var fr=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},tS=class{constructor(i,l){this.scopeName=i,this.ruleName=l}toKey(){return`${this.scopeName}#${this.ruleName}`}},nS=class{constructor(){w(this,"_references",[]);w(this,"_seenReferenceKeys",new Set);w(this,"visitedRule",new Set)}get references(){return this._references}add(i){const l=i.toKey();this._seenReferenceKeys.has(l)||(this._seenReferenceKeys.add(l),this._references.push(i))}},lS=class{constructor(i,l){w(this,"seenFullScopeRequests",new Set);w(this,"seenPartialScopeRequests",new Set);w(this,"Q");this.repo=i,this.initialScopeName=l,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new fr(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const l=new nS;for(const r of i)aS(r,this.initialScopeName,this.repo,l);for(const r of l.references)if(r instanceof fr){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function aS(i,l,r,s){const u=r.lookup(i.scopeName);if(!u){if(i.scopeName===l)throw new Error(`No grammar provided for <${l}>`);return}const f=r.lookup(l);i instanceof fr?Ws({baseGrammar:f,selfGrammar:u},s):nf(i.ruleName,{baseGrammar:f,selfGrammar:u,repository:u.repository},s);const d=r.injections(i.scopeName);if(d)for(const g of d)s.add(new fr(g))}function nf(i,l,r){if(l.repository&&l.repository[i]){const s=l.repository[i];ao([s],l,r)}}function Ws(i,l){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&ao(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},l),i.selfGrammar.injections&&ao(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},l)}function ao(i,l,r){for(const s of i){if(r.visitedRule.has(s))continue;r.visitedRule.add(s);const u=s.repository?Gg({},l.repository,s.repository):l.repository;Array.isArray(s.patterns)&&ao(s.patterns,{...l,repository:u},r);const f=s.include;if(!f)continue;const d=$g(f);switch(d.kind){case 0:Ws({...l,selfGrammar:l.baseGrammar},r);break;case 1:Ws(l,r);break;case 2:nf(d.ruleName,{...l,repository:u},r);break;case 3:case 4:const g=d.scopeName===l.selfGrammar.scopeName?l.selfGrammar:d.scopeName===l.baseGrammar.scopeName?l.baseGrammar:void 0;if(g){const p={baseGrammar:l.baseGrammar,selfGrammar:g,repository:u};d.kind===4?nf(d.ruleName,p,r):Ws(p,r)}else d.kind===4?r.add(new tS(d.scopeName,d.ruleName)):r.add(new fr(d.scopeName));break}}}var iS=class{constructor(){w(this,"kind",0)}},rS=class{constructor(){w(this,"kind",1)}},sS=class{constructor(i){w(this,"kind",2);this.ruleName=i}},oS=class{constructor(i){w(this,"kind",3);this.scopeName=i}},uS=class{constructor(i,l){w(this,"kind",4);this.scopeName=i,this.ruleName=l}};function $g(i){if(i==="$base")return new iS;if(i==="$self")return new rS;const l=i.indexOf("#");if(l===-1)return new oS(i);if(l===0)return new sS(i.substring(1));{const r=i.substring(0,l),s=i.substring(l+1);return new uS(r,s)}}var cS=/\\(\d+)/,Wp=/\\(\d+)/g,fS=-1,Jg=-2;var _r=class{constructor(i,l,r,s){w(this,"$location");w(this,"id");w(this,"_nameIsCapturing");w(this,"_name");w(this,"_contentNameIsCapturing");w(this,"_contentName");this.$location=i,this.id=l,this._name=r||null,this._nameIsCapturing=Ps.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=Ps.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Ig(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,l){return!this._nameIsCapturing||this._name===null||i===null||l===null?this._name:Ps.replaceCaptures(this._name,i,l)}getContentName(i,l){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ps.replaceCaptures(this._contentName,i,l)}},dS=class extends _r{constructor(l,r,s,u,f){super(l,r,s,u);w(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=f}dispose(){}collectPatterns(l,r){throw new Error("Not supported!")}compile(l,r){throw new Error("Not supported!")}compileAG(l,r,s,u){throw new Error("Not supported!")}},hS=class extends _r{constructor(l,r,s,u,f){super(l,r,s,null);w(this,"_match");w(this,"captures");w(this,"_cachedCompiledPatterns");this._match=new dr(u,this.id),this.captures=f,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(l,r){r.push(this._match)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Fp=class extends _r{constructor(l,r,s,u,f){super(l,r,s,u);w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(l,r){for(const s of this.patterns)l.getRule(s).collectPatterns(l,r)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hr,this.collectPatterns(l,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},lf=class extends _r{constructor(l,r,s,u,f,d,g,p,m,y){super(l,r,s,u);w(this,"_begin");w(this,"beginCaptures");w(this,"_end");w(this,"endHasBackReferences");w(this,"endCaptures");w(this,"applyEndPatternLast");w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");this._begin=new dr(f,this.id),this.beginCaptures=d,this._end=new dr(g||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=p,this.applyEndPatternLast=m||!1,this.patterns=y.patterns,this.hasMissingPatterns=y.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(l,r){return this._end.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l,r).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l,r).compileAG(l,s,u)}_getCachedCompiledPatterns(l,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new hr;for(const s of this.patterns)l.getRule(s).collectPatterns(l,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},io=class extends _r{constructor(l,r,s,u,f,d,g,p,m){super(l,r,s,u);w(this,"_begin");w(this,"beginCaptures");w(this,"whileCaptures");w(this,"_while");w(this,"whileHasBackReferences");w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");w(this,"_cachedCompiledWhilePatterns");this._begin=new dr(f,this.id),this.beginCaptures=d,this.whileCaptures=p,this._while=new dr(g,Jg),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(l,r){return this._while.resolveBackReferences(l,r)}collectPatterns(l,r){r.push(this._begin)}compile(l,r){return this._getCachedCompiledPatterns(l).compile(l)}compileAG(l,r,s,u){return this._getCachedCompiledPatterns(l).compileAG(l,s,u)}_getCachedCompiledPatterns(l){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new hr;for(const r of this.patterns)l.getRule(r).collectPatterns(l,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(l,r){return this._getCachedCompiledWhilePatterns(l,r).compile(l)}compileWhileAG(l,r,s,u){return this._getCachedCompiledWhilePatterns(l,r).compileAG(l,s,u)}_getCachedCompiledWhilePatterns(l,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new hr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}},Wg=class xt{static createCaptureRule(l,r,s,u,f){return l.registerRule(d=>new dS(r,d,s,u,f))}static getCompiledRuleId(l,r,s){return l.id||r.registerRule(u=>{if(l.id=u,l.match)return new hS(l.$vscodeTextmateLocation,l.id,l.name,l.match,xt._compileCaptures(l.captures,r,s));if(typeof l.begin>"u"){l.repository&&(s=Gg({},s,l.repository));let f=l.patterns;return typeof f>"u"&&l.include&&(f=[{include:l.include}]),new Fp(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,xt._compilePatterns(f,r,s))}return l.while?new io(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,xt._compileCaptures(l.beginCaptures||l.captures,r,s),l.while,xt._compileCaptures(l.whileCaptures||l.captures,r,s),xt._compilePatterns(l.patterns,r,s)):new lf(l.$vscodeTextmateLocation,l.id,l.name,l.contentName,l.begin,xt._compileCaptures(l.beginCaptures||l.captures,r,s),l.end,xt._compileCaptures(l.endCaptures||l.captures,r,s),l.applyEndPatternLast,xt._compilePatterns(l.patterns,r,s))}),l.id}static _compileCaptures(l,r,s){let u=[];if(l){let f=0;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const g=parseInt(d,10);g>f&&(f=g)}for(let d=0;d<=f;d++)u[d]=null;for(const d in l){if(d==="$vscodeTextmateLocation")continue;const g=parseInt(d,10);let p=0;l[d].patterns&&(p=xt.getCompiledRuleId(l[d],r,s)),u[g]=xt.createCaptureRule(r,l[d].$vscodeTextmateLocation,l[d].name,l[d].contentName,p)}}return u}static _compilePatterns(l,r,s){let u=[];if(l)for(let f=0,d=l.length;f<d;f++){const g=l[f];let p=-1;if(g.include){const m=$g(g.include);switch(m.kind){case 0:case 1:p=xt.getCompiledRuleId(s[g.include],r,s);break;case 2:let y=s[m.ruleName];y&&(p=xt.getCompiledRuleId(y,r,s));break;case 3:case 4:const S=m.scopeName,E=m.kind===4?m.ruleName:null,A=r.getExternalGrammar(S,s);if(A)if(E){let C=A.repository[E];C&&(p=xt.getCompiledRuleId(C,r,A.repository))}else p=xt.getCompiledRuleId(A.repository.$self,r,A.repository);break}}else p=xt.getCompiledRuleId(g,r,s);if(p!==-1){const m=r.getRule(p);let y=!1;if((m instanceof Fp||m instanceof lf||m instanceof io)&&m.hasMissingPatterns&&m.patterns.length===0&&(y=!0),y)continue;u.push(p)}}return{patterns:u,hasMissingPatterns:(l?l.length:0)!==u.length}}},dr=class Fg{constructor(l,r){w(this,"source");w(this,"ruleId");w(this,"hasAnchor");w(this,"hasBackReferences");w(this,"_anchorCache");if(l&&typeof l=="string"){const s=l.length;let u=0,f=[],d=!1;for(let g=0;g<s;g++)if(l.charAt(g)==="\\"&&g+1<s){const m=l.charAt(g+1);m==="z"?(f.push(l.substring(u,g)),f.push("$(?!\\n)(?<!\\n)"),u=g+2):(m==="A"||m==="G")&&(d=!0),g++}this.hasAnchor=d,u===0?this.source=l:(f.push(l.substring(u,s)),this.source=f.join(""))}else this.hasAnchor=!1,this.source=l;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=cS.test(this.source):this.hasBackReferences=!1}clone(){return new Fg(this.source,this.ruleId)}setSource(l){this.source!==l&&(this.source=l,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(l,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let s=r.map(u=>l.substring(u.start,u.end));return Wp.lastIndex=0,this.source.replace(Wp,(u,f)=>Yg(s[parseInt(f,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let l=[],r=[],s=[],u=[],f,d,g,p;for(f=0,d=this.source.length;f<d;f++)g=this.source.charAt(f),l[f]=g,r[f]=g,s[f]=g,u[f]=g,g==="\\"&&f+1<d&&(p=this.source.charAt(f+1),p==="A"?(l[f+1]="",r[f+1]="",s[f+1]="A",u[f+1]="A"):p==="G"?(l[f+1]="",r[f+1]="G",s[f+1]="",u[f+1]="G"):(l[f+1]=p,r[f+1]=p,s[f+1]=p,u[f+1]=p),f++);return{A0_G0:l.join(""),A0_G1:r.join(""),A1_G0:s.join(""),A1_G1:u.join("")}}resolveAnchors(l,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:l?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},hr=class{constructor(){w(this,"_items");w(this,"_hasAnchors");w(this,"_cached");w(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,l){this._items[i].source!==l&&(this._disposeCaches(),this._items[i].setSource(l))}compile(i){if(!this._cached){let l=this._items.map(r=>r.source);this._cached=new eg(i,l,this._items.map(r=>r.ruleId))}return this._cached}compileAG(i,l,r){return this._hasAnchors?l?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,l,r)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,l,r){let s=this._items.map(u=>u.resolveAnchors(l,r));return new eg(i,s,this._items.map(u=>u.ruleId))}},eg=class{constructor(i,l,r){w(this,"scanner");this.regExps=l,this.rules=r,this.scanner=i.createOnigScanner(l)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let l=0,r=this.rules.length;l<r;l++)i.push(" - "+this.rules[l]+": "+this.regExps[l]);return i.join(`
|
|
107
|
+
`)}findNextMatchSync(i,l,r){const s=this.scanner.findNextMatchSync(i,l,r);return s?{ruleId:this.rules[s.index],captureIndices:s.captureIndices}:null}},qc=class{constructor(i,l){this.languageId=i,this.tokenType=l}},ll,mS=(ll=class{constructor(l,r){w(this,"_defaultAttributes");w(this,"_embeddedLanguagesMatcher");w(this,"_getBasicScopeAttributes",new Xg(l=>{const r=this._scopeToLanguage(l),s=this._toStandardTokenType(l);return new qc(r,s)}));this._defaultAttributes=new qc(l,8),this._embeddedLanguagesMatcher=new pS(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(l){return l===null?ll._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(l)}_scopeToLanguage(l){return this._embeddedLanguagesMatcher.match(l)||0}_toStandardTokenType(l){const r=l.match(ll.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},w(ll,"_NULL_SCOPE_METADATA",new qc(0,0)),w(ll,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),ll),pS=class{constructor(i){w(this,"values");w(this,"scopesRegExp");if(i.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(i);const l=i.map(([r,s])=>Yg(r));l.sort(),l.reverse(),this.scopesRegExp=new RegExp(`^((${l.join(")|(")}))($|\\.)`,"")}}match(i){if(!this.scopesRegExp)return;const l=i.match(this.scopesRegExp);if(l)return this.values.get(l[1])}},tg=class{constructor(i,l){this.stack=i,this.stoppedEarly=l}};function e_(i,l,r,s,u,f,d,g){const p=l.content.length;let m=!1,y=-1;if(d){const A=gS(i,l,r,s,u,f);u=A.stack,s=A.linePos,r=A.isFirstLine,y=A.anchorPosition}const S=Date.now();for(;!m;){if(g!==0&&Date.now()-S>g)return new tg(u,!0);E()}return new tg(u,!1);function E(){const A=_S(i,l,r,s,u,y);if(!A){f.produce(u,p),m=!0;return}const C=A.captureIndices,B=A.matchedRuleId,P=C&&C.length>0?C[0].end>s:!1;if(B===fS){const U=u.getRule(i);f.produce(u,C[0].start),u=u.withContentNameScopesList(u.nameScopesList),sr(i,l,r,u,f,U.endCaptures,C),f.produce(u,C[0].end);const I=u;if(u=u.parent,y=I.getAnchorPos(),!P&&I.getEnterPos()===s){u=I,f.produce(u,p),m=!0;return}}else{const U=i.getRule(B);f.produce(u,C[0].start);const I=u,Y=U.getName(l.content,C),Z=u.contentNameScopesList.pushAttributed(Y,i);if(u=u.push(B,s,y,C[0].end===p,null,Z,Z),U instanceof lf){const ae=U;sr(i,l,r,u,f,ae.beginCaptures,C),f.produce(u,C[0].end),y=C[0].end;const fe=ae.getContentName(l.content,C),te=Z.pushAttributed(fe,i);if(u=u.withContentNameScopesList(te),ae.endHasBackReferences&&(u=u.withEndRule(ae.getEndWithResolvedBackReferences(l.content,C))),!P&&I.hasSameRuleAs(u)){u=u.pop(),f.produce(u,p),m=!0;return}}else if(U instanceof io){const ae=U;sr(i,l,r,u,f,ae.beginCaptures,C),f.produce(u,C[0].end),y=C[0].end;const fe=ae.getContentName(l.content,C),te=Z.pushAttributed(fe,i);if(u=u.withContentNameScopesList(te),ae.whileHasBackReferences&&(u=u.withEndRule(ae.getWhileWithResolvedBackReferences(l.content,C))),!P&&I.hasSameRuleAs(u)){u=u.pop(),f.produce(u,p),m=!0;return}}else if(sr(i,l,r,u,f,U.captures,C),f.produce(u,C[0].end),u=u.pop(),!P){u=u.safePop(),f.produce(u,p),m=!0;return}}C[0].end>s&&(s=C[0].end,r=!1)}}function gS(i,l,r,s,u,f){let d=u.beginRuleCapturedEOL?0:-1;const g=[];for(let p=u;p;p=p.pop()){const m=p.getRule(i);m instanceof io&&g.push({rule:m,stack:p})}for(let p=g.pop();p;p=g.pop()){const{ruleScanner:m,findOptions:y}=bS(p.rule,i,p.stack.endRule,r,s===d),S=m.findNextMatchSync(l,s,y);if(S){if(S.ruleId!==Jg){u=p.stack.pop();break}S.captureIndices&&S.captureIndices.length&&(f.produce(p.stack,S.captureIndices[0].start),sr(i,l,r,p.stack,f,p.rule.whileCaptures,S.captureIndices),f.produce(p.stack,S.captureIndices[0].end),d=S.captureIndices[0].end,S.captureIndices[0].end>s&&(s=S.captureIndices[0].end,r=!1))}else{u=p.stack.pop();break}}return{stack:u,linePos:s,anchorPosition:d,isFirstLine:r}}function _S(i,l,r,s,u,f){const d=yS(i,l,r,s,u,f),g=i.getInjections();if(g.length===0)return d;const p=vS(g,i,l,r,s,u,f);if(!p)return d;if(!d)return p;const m=d.captureIndices[0].start,y=p.captureIndices[0].start;return y<m||p.priorityMatch&&y===m?p:d}function yS(i,l,r,s,u,f){const d=u.getRule(i),{ruleScanner:g,findOptions:p}=t_(d,i,u.endRule,r,s===f),m=g.findNextMatchSync(l,s,p);return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}function vS(i,l,r,s,u,f,d){let g=Number.MAX_VALUE,p=null,m,y=0;const S=f.contentNameScopesList.getScopeNames();for(let E=0,A=i.length;E<A;E++){const C=i[E];if(!C.matcher(S))continue;const B=l.getRule(C.ruleId),{ruleScanner:P,findOptions:U}=t_(B,l,null,s,u===d),I=P.findNextMatchSync(r,u,U);if(!I)continue;const Y=I.captureIndices[0].start;if(!(Y>=g)&&(g=Y,p=I.captureIndices,m=I.ruleId,y=C.priority,g===u))break}return p?{priorityMatch:y===-1,captureIndices:p,matchedRuleId:m}:null}function t_(i,l,r,s,u){return{ruleScanner:i.compileAG(l,r,s,u),findOptions:0}}function bS(i,l,r,s,u){return{ruleScanner:i.compileWhileAG(l,r,s,u),findOptions:0}}function sr(i,l,r,s,u,f,d){if(f.length===0)return;const g=l.content,p=Math.min(f.length,d.length),m=[],y=d[0].end;for(let S=0;S<p;S++){const E=f[S];if(E===null)continue;const A=d[S];if(A.length===0)continue;if(A.start>y)break;for(;m.length>0&&m[m.length-1].endPos<=A.start;)u.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?u.produceFromScopes(m[m.length-1].scopes,A.start):u.produce(s,A.start),E.retokenizeCapturedWithRuleId){const B=E.getName(g,d),P=s.contentNameScopesList.pushAttributed(B,i),U=E.getContentName(g,d),I=P.pushAttributed(U,i),Y=s.push(E.retokenizeCapturedWithRuleId,A.start,-1,!1,null,P,I),Z=i.createOnigString(g.substring(0,A.end));e_(i,Z,r&&A.start===0,A.start,Y,u,!1,0),Kg(Z);continue}const C=E.getName(g,d);if(C!==null){const P=(m.length>0?m[m.length-1].scopes:s.contentNameScopesList).pushAttributed(C,i);m.push(new SS(P,A.end))}}for(;m.length>0;)u.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}var SS=class{constructor(i,l){w(this,"scopes");w(this,"endPos");this.scopes=i,this.endPos=l}};function ES(i,l,r,s,u,f,d,g){return new TS(i,l,r,s,u,f,d,g)}function ng(i,l,r,s,u){const f=lo(l,ro),d=Wg.getCompiledRuleId(r,s,u.repository);for(const g of f)i.push({debugSelector:l,matcher:g.matcher,ruleId:d,grammar:u,priority:g.priority})}function ro(i,l){if(l.length<i.length)return!1;let r=0;return i.every(s=>{for(let u=r;u<l.length;u++)if(xS(l[u],s))return r=u+1,!0;return!1})}function xS(i,l){if(!i)return!1;if(i===l)return!0;const r=l.length;return i.length>r&&i.substr(0,r)===l&&i[r]==="."}var TS=class{constructor(i,l,r,s,u,f,d,g){w(this,"_rootId");w(this,"_lastRuleId");w(this,"_ruleId2desc");w(this,"_includedGrammars");w(this,"_grammarRepository");w(this,"_grammar");w(this,"_injections");w(this,"_basicScopeAttributesProvider");w(this,"_tokenTypeMatchers");if(this._rootScopeName=i,this.balancedBracketSelectors=f,this._onigLib=g,this._basicScopeAttributesProvider=new mS(r,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=d,this._grammar=lg(l,null),this._injections=null,this._tokenTypeMatchers=[],u)for(const p of Object.keys(u)){const m=lo(p,ro);for(const y of m)this._tokenTypeMatchers.push({matcher:y.matcher,type:u[p]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const i of this._ruleId2desc)i&&i.dispose()}createOnigScanner(i){return this._onigLib.createOnigScanner(i)}createOnigString(i){return this._onigLib.createOnigString(i)}getMetadataForScope(i){return this._basicScopeAttributesProvider.getBasicScopeAttributes(i)}_collectInjections(){const i={lookup:u=>u===this._rootScopeName?this._grammar:this.getExternalGrammar(u),injections:u=>this._grammarRepository.injections(u)},l=[],r=this._rootScopeName,s=i.lookup(r);if(s){const u=s.injections;if(u)for(let d in u)ng(l,d,u[d],this,s);const f=this._grammarRepository.injections(r);f&&f.forEach(d=>{const g=this.getExternalGrammar(d);if(g){const p=g.injectionSelector;p&&ng(l,p,g,this,g)}})}return l.sort((u,f)=>u.priority-f.priority),l}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(i){const l=++this._lastRuleId,r=i(l);return this._ruleId2desc[l]=r,r}getRule(i){return this._ruleId2desc[i]}getExternalGrammar(i,l){if(this._includedGrammars[i])return this._includedGrammars[i];if(this._grammarRepository){const r=this._grammarRepository.lookup(i);if(r)return this._includedGrammars[i]=lg(r,l&&l.$base),this._includedGrammars[i]}}tokenizeLine(i,l,r=0){const s=this._tokenize(i,l,!1,r);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(i,l,r=0){const s=this._tokenize(i,l,!0,r);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(i,l,r,s){this._rootId===-1&&(this._rootId=Wg.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let u;if(!l||l===af.NULL){u=!0;const m=this._basicScopeAttributesProvider.getDefaultAttributes(),y=this.themeProvider.getDefaults(),S=Qa.set(0,m.languageId,m.tokenType,null,y.fontStyle,y.foregroundId,y.backgroundId),E=this.getRule(this._rootId).getName(null,null);let A;E?A=ur.createRootAndLookUpScopeName(E,S,this):A=ur.createRoot("unknown",S),l=new af(null,this._rootId,-1,-1,!1,null,A,A)}else u=!1,l.reset();i=i+`
|
|
108
|
+
`;const f=this.createOnigString(i),d=f.content.length,g=new RS(r,i,this._tokenTypeMatchers,this.balancedBracketSelectors),p=e_(this,f,u,0,l,g,!0,s);return Kg(f),{lineLength:d,lineTokens:g,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}};function lg(i,l){return i=qb(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=l||i.repository.$self,i}var ur=class Dn{constructor(l,r,s){this.parent=l,this.scopePath=r,this.tokenAttributes=s}static fromExtension(l,r){let s=l,u=(l==null?void 0:l.scopePath)??null;for(const f of r)u=Ic.push(u,f.scopeNames),s=new Dn(s,u,f.encodedTokenAttributes);return s}static createRoot(l,r){return new Dn(null,new Ic(null,l),r)}static createRootAndLookUpScopeName(l,r,s){const u=s.getMetadataForScope(l),f=new Ic(null,l),d=s.themeProvider.themeMatch(f),g=Dn.mergeAttributes(r,u,d);return new Dn(null,f,g)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(l){return Dn.equals(this,l)}static equals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.scopeName!==r.scopeName||l.tokenAttributes!==r.tokenAttributes)return!1;l=l.parent,r=r.parent}while(!0)}static mergeAttributes(l,r,s){let u=-1,f=0,d=0;return s!==null&&(u=s.fontStyle,f=s.foregroundId,d=s.backgroundId),Qa.set(l,r.languageId,r.tokenType,null,u,f,d)}pushAttributed(l,r){if(l===null)return this;if(l.indexOf(" ")===-1)return Dn._pushAttributed(this,l,r);const s=l.split(/ /g);let u=this;for(const f of s)u=Dn._pushAttributed(u,f,r);return u}static _pushAttributed(l,r,s){const u=s.getMetadataForScope(r),f=l.scopePath.push(r),d=s.themeProvider.themeMatch(f),g=Dn.mergeAttributes(l.tokenAttributes,u,d);return new Dn(l,f,g)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(l){var u;const r=[];let s=this;for(;s&&s!==l;)r.push({encodedTokenAttributes:s.tokenAttributes,scopeNames:s.scopePath.getExtensionIfDefined(((u=s.parent)==null?void 0:u.scopePath)??null)}),s=s.parent;return s===l?r.reverse():void 0}},hn,af=(hn=class{constructor(l,r,s,u,f,d,g,p){w(this,"_stackElementBrand");w(this,"_enterPos");w(this,"_anchorPos");w(this,"depth");this.parent=l,this.ruleId=r,this.beginRuleCapturedEOL=f,this.endRule=d,this.nameScopesList=g,this.contentNameScopesList=p,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=u}equals(l){return l===null?!1:hn._equals(this,l)}static _equals(l,r){return l===r?!0:this._structuralEquals(l,r)?ur.equals(l.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(l,r){do{if(l===r||!l&&!r)return!0;if(!l||!r||l.depth!==r.depth||l.ruleId!==r.ruleId||l.endRule!==r.endRule)return!1;l=l.parent,r=r.parent}while(!0)}clone(){return this}static _reset(l){for(;l;)l._enterPos=-1,l._anchorPos=-1,l=l.parent}reset(){hn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(l,r,s,u,f,d,g){return new hn(this,l,r,s,u,f,d,g)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(l){return l.getRule(this.ruleId)}toString(){const l=[];return this._writeString(l,0),"["+l.join(",")+"]"}_writeString(l,r){var s,u;return this.parent&&(r=this.parent._writeString(l,r)),l[r++]=`(${this.ruleId}, ${(s=this.nameScopesList)==null?void 0:s.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,r}withContentNameScopesList(l){return this.contentNameScopesList===l?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,l)}withEndRule(l){return this.endRule===l?this:new hn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,l,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(l){let r=this;for(;r&&r._enterPos===l._enterPos;){if(r.ruleId===l.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var l,r,s;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((l=this.parent)==null?void 0:l.nameScopesList)??null))??[],contentNameScopesList:((s=this.contentNameScopesList)==null?void 0:s.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(l,r){const s=ur.fromExtension((l==null?void 0:l.nameScopesList)??null,r.nameScopesList);return new hn(l,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,s,ur.fromExtension(s,r.contentNameScopesList))}},w(hn,"NULL",new hn(null,0,0,0,!1,null,null,null)),hn),AS=class{constructor(i,l){w(this,"balancedBracketScopes");w(this,"unbalancedBracketScopes");w(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(r=>r==="*"?(this.allowAny=!0,[]):lo(r,ro).map(s=>s.matcher)),this.unbalancedBracketScopes=l.flatMap(r=>lo(r,ro).map(s=>s.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const l of this.unbalancedBracketScopes)if(l(i))return!1;for(const l of this.balancedBracketScopes)if(l(i))return!0;return this.allowAny}},RS=class{constructor(i,l,r,s){w(this,"_emitBinaryTokens");w(this,"_lineText");w(this,"_tokens");w(this,"_binaryTokens");w(this,"_lastTokenEndIndex");w(this,"_tokenTypeOverrides");this.balancedBracketSelectors=s,this._emitBinaryTokens=i,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,l){this.produceFromScopes(i.contentNameScopesList,l)}produceFromScopes(i,l){var s;if(this._lastTokenEndIndex>=l)return;if(this._emitBinaryTokens){let u=(i==null?void 0:i.tokenAttributes)??0,f=!1;if((s=this.balancedBracketSelectors)!=null&&s.matchesAlways&&(f=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const d=(i==null?void 0:i.getScopeNames())??[];for(const g of this._tokenTypeOverrides)g.matcher(d)&&(u=Qa.set(u,0,g.type,null,-1,0,0));this.balancedBracketSelectors&&(f=this.balancedBracketSelectors.match(d))}if(f&&(u=Qa.set(u,0,8,f,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=l;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=l;return}const r=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:l,scopes:r}),this._lastTokenEndIndex=l}getResult(i,l){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===l-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,l){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===l-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,l),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let s=0,u=this._binaryTokens.length;s<u;s++)r[s]=this._binaryTokens[s];return r}},OS=class{constructor(i,l){w(this,"_grammars",new Map);w(this,"_rawGrammars",new Map);w(this,"_injectionGrammars",new Map);w(this,"_theme");this._onigLib=l,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,l){this._rawGrammars.set(i.scopeName,i),l&&this._injectionGrammars.set(i.scopeName,l)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,l,r,s,u){if(!this._grammars.has(i)){let f=this._rawGrammars.get(i);if(!f)return null;this._grammars.set(i,ES(i,f,l,r,s,u,this,this._onigLib))}return this._grammars.get(i)}},CS=class{constructor(l){w(this,"_options");w(this,"_syncRegistry");w(this,"_ensureGrammarCache");this._options=l,this._syncRegistry=new OS(no.createFromRawTheme(l.theme,l.colorMap),l.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(l,r){this._syncRegistry.setTheme(no.createFromRawTheme(l,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(l,r,s){return this.loadGrammarWithConfiguration(l,r,{embeddedLanguages:s})}loadGrammarWithConfiguration(l,r,s){return this._loadGrammar(l,r,s.embeddedLanguages,s.tokenTypes,new AS(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(l){return this._loadGrammar(l,0,null,null,null)}_loadGrammar(l,r,s,u,f){const d=new lS(this._syncRegistry,l);for(;d.Q.length>0;)d.Q.map(g=>this._loadSingleGrammar(g.scopeName)),d.processQueue();return this._grammarForScopeName(l,r,s,u,f)}_loadSingleGrammar(l){this._ensureGrammarCache.has(l)||(this._doLoadSingleGrammar(l),this._ensureGrammarCache.set(l,!0))}_doLoadSingleGrammar(l){const r=this._options.loadGrammar(l);if(r){const s=typeof this._options.getInjections=="function"?this._options.getInjections(l):void 0;this._syncRegistry.addGrammar(r,s)}}addGrammar(l,r=[],s=0,u=null){return this._syncRegistry.addGrammar(l,r),this._grammarForScopeName(l.scopeName,s,u)}_grammarForScopeName(l,r=0,s=null,u=null,f=null){return this._syncRegistry.grammarForScopeName(l,r,s,u,f)}},rf=af.NULL;const DS=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class yr{constructor(l,r,s){this.normal=r,this.property=l,s&&(this.space=s)}}yr.prototype.normal={};yr.prototype.property={};yr.prototype.space=void 0;function n_(i,l){const r={},s={};for(const u of i)Object.assign(r,u.property),Object.assign(s,u.normal);return new yr(r,s,l)}function sf(i){return i.toLowerCase()}class Vt{constructor(l,r){this.attribute=r,this.property=l}}Vt.prototype.attribute="";Vt.prototype.booleanish=!1;Vt.prototype.boolean=!1;Vt.prototype.commaOrSpaceSeparated=!1;Vt.prototype.commaSeparated=!1;Vt.prototype.defined=!1;Vt.prototype.mustUseProperty=!1;Vt.prototype.number=!1;Vt.prototype.overloadedBoolean=!1;Vt.prototype.property="";Vt.prototype.spaceSeparated=!1;Vt.prototype.space=void 0;let LS=0;const he=ia(),rt=ia(),of=ia(),Q=ia(),Be=ia(),Pa=ia(),$t=ia();function ia(){return 2**++LS}const uf=Object.freeze(Object.defineProperty({__proto__:null,boolean:he,booleanish:rt,commaOrSpaceSeparated:$t,commaSeparated:Pa,number:Q,overloadedBoolean:of,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Pc=Object.keys(uf);class Of extends Vt{constructor(l,r,s,u){let f=-1;if(super(l,r),ag(this,"space",u),typeof s=="number")for(;++f<Pc.length;){const d=Pc[f];ag(this,Pc[f],(s&uf[d])===uf[d])}}}Of.prototype.defined=!0;function ag(i,l,r){r&&(i[l]=r)}function Za(i){const l={},r={};for(const[s,u]of Object.entries(i.properties)){const f=new Of(s,i.transform(i.attributes||{},s),u,i.space);i.mustUseProperty&&i.mustUseProperty.includes(s)&&(f.mustUseProperty=!0),l[s]=f,r[sf(s)]=s,r[sf(f.attribute)]=s}return new yr(l,r,i.space)}const l_=Za({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:Be,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:Q,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:Be,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:rt,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(i,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function a_(i,l){return l in i?i[l]:l}function i_(i,l){return a_(i,l.toLowerCase())}const kS=Za({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pa,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:he,allowPaymentRequest:he,allowUserMedia:he,alt:null,as:null,async:he,autoCapitalize:null,autoComplete:Be,autoFocus:he,autoPlay:he,blocking:Be,capture:null,charSet:null,checked:he,cite:null,className:Be,cols:Q,colSpan:null,content:null,contentEditable:rt,controls:he,controlsList:Be,coords:Q|Pa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:he,defer:he,dir:null,dirName:null,disabled:he,download:of,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:he,formTarget:null,headers:Be,height:Q,hidden:of,high:Q,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:he,inputMode:null,integrity:null,is:null,isMap:he,itemId:null,itemProp:Be,itemRef:Be,itemScope:he,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:he,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:he,muted:he,name:null,nonce:null,noModule:he,noValidate:he,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:he,optimum:Q,pattern:null,ping:Be,placeholder:null,playsInline:he,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:he,referrerPolicy:null,rel:Be,required:he,reversed:he,rows:Q,rowSpan:Q,sandbox:Be,scope:null,scoped:he,seamless:he,selected:he,shadowRootClonable:he,shadowRootDelegatesFocus:he,shadowRootMode:null,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:he,useMap:null,value:rt,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:he,declare:he,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:he,noHref:he,noShade:he,noWrap:he,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:he,disableRemotePlayback:he,prefix:null,property:null,results:Q,security:null,unselectable:null},space:"html",transform:i_}),NS=Za({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:$t,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:Be,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:he,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:Pa,g2:Pa,glyphName:Pa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,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:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:a_}),r_=Za({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(i,l){return"xlink:"+l.slice(5).toLowerCase()}}),s_=Za({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:i_}),o_=Za({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(i,l){return"xml:"+l.slice(3).toLowerCase()}}),wS=/[A-Z]/g,ig=/-[a-z]/g,MS=/^data[-\w.:]+$/i;function zS(i,l){const r=sf(l);let s=l,u=Vt;if(r in i.normal)return i.property[i.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&MS.test(l)){if(l.charAt(4)==="-"){const f=l.slice(5).replace(ig,US);s="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=l.slice(4);if(!ig.test(f)){let d=f.replace(wS,jS);d.charAt(0)!=="-"&&(d="-"+d),l="data"+d}}u=Of}return new u(s,l)}function jS(i){return"-"+i.toLowerCase()}function US(i){return i.charAt(1).toUpperCase()}const BS=n_([l_,kS,r_,s_,o_],"html"),u_=n_([l_,NS,r_,s_,o_],"svg"),rg={}.hasOwnProperty;function HS(i,l){const r=l||{};function s(u,...f){let d=s.invalid;const g=s.handlers;if(u&&rg.call(u,i)){const p=String(u[i]);d=rg.call(g,p)?g[p]:s.unknown}if(d)return d.call(this,u,...f)}return s.handlers=r.handlers||{},s.invalid=r.invalid,s.unknown=r.unknown,s}const VS=/["&'<>`]/g,GS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IS=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,qS=/[|\\{}()[\]^$+*?.]/g,sg=new WeakMap;function PS(i,l){if(i=i.replace(l.subset?YS(l.subset):VS,s),l.subset||l.escapeOnly)return i;return i.replace(GS,r).replace(IS,s);function r(u,f,d){return l.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,d.charCodeAt(f+2),l)}function s(u,f,d){return l.format(u.charCodeAt(0),d.charCodeAt(f+1),l)}}function YS(i){let l=sg.get(i);return l||(l=XS(i),sg.set(i,l)),l}function XS(i){const l=[];let r=-1;for(;++r<i.length;)l.push(i[r].replace(qS,"\\$&"));return new RegExp("(?:"+l.join("|")+")","g")}const QS=/[\dA-Fa-f]/;function ZS(i,l,r){const s="&#x"+i.toString(16).toUpperCase();return r&&l&&!QS.test(String.fromCharCode(l))?s:s+";"}const KS=/\d/;function $S(i,l,r){const s="&#"+String(i);return r&&l&&!KS.test(String.fromCharCode(l))?s:s+";"}const JS=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Yc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},WS=["cent","copy","divide","gt","lt","not","para","times"],c_={}.hasOwnProperty,cf={};let Ys;for(Ys in Yc)c_.call(Yc,Ys)&&(cf[Yc[Ys]]=Ys);const FS=/[^\dA-Za-z]/;function e1(i,l,r,s){const u=String.fromCharCode(i);if(c_.call(cf,u)){const f=cf[u],d="&"+f;return r&&JS.includes(f)&&!WS.includes(f)&&(!s||l&&l!==61&&FS.test(String.fromCharCode(l)))?d:d+";"}return""}function t1(i,l,r){let s=ZS(i,l,r.omitOptionalSemicolons),u;if((r.useNamedReferences||r.useShortestReferences)&&(u=e1(i,l,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!u)&&r.useShortestReferences){const f=$S(i,l,r.omitOptionalSemicolons);f.length<s.length&&(s=f)}return u&&(!r.useShortestReferences||u.length<s.length)?u:s}function Ya(i,l){return PS(i,Object.assign({format:t1},l))}const n1=/^>|^->|<!--|-->|--!>|<!-$/g,l1=[">"],a1=["<",">"];function i1(i,l,r,s){return s.settings.bogusComments?"<?"+Ya(i.value,Object.assign({},s.settings.characterReferences,{subset:l1}))+">":"<!--"+i.value.replace(n1,u)+"-->";function u(f){return Ya(f,Object.assign({},s.settings.characterReferences,{subset:a1}))}}function r1(i,l,r,s){return"<!"+(s.settings.upperDoctype?"DOCTYPE":"doctype")+(s.settings.tightDoctype?"":" ")+"html>"}function og(i,l){const r=String(i);if(typeof l!="string")throw new TypeError("Expected character");let s=0,u=r.indexOf(l);for(;u!==-1;)s++,u=r.indexOf(l,u+l.length);return s}function s1(i,l){const r=l||{};return(i[i.length-1]===""?[...i,""]:i).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function o1(i){return i.join(" ").trim()}const u1=/[ \t\n\f\r]/g;function Cf(i){return typeof i=="object"?i.type==="text"?ug(i.value):!1:ug(i)}function ug(i){return i.replace(u1,"")===""}const ct=d_(1),f_=d_(-1),c1=[];function d_(i){return l;function l(r,s,u){const f=r?r.children:c1;let d=(s||0)+i,g=f[d];if(!u)for(;g&&Cf(g);)d+=i,g=f[d];return g}}const f1={}.hasOwnProperty;function h_(i){return l;function l(r,s,u){return f1.call(i,r.tagName)&&i[r.tagName](r,s,u)}}const Df=h_({body:h1,caption:Xc,colgroup:Xc,dd:_1,dt:g1,head:Xc,html:d1,li:p1,optgroup:y1,option:v1,p:m1,rp:cg,rt:cg,tbody:S1,td:fg,tfoot:E1,th:fg,thead:b1,tr:x1});function Xc(i,l,r){const s=ct(r,l,!0);return!s||s.type!=="comment"&&!(s.type==="text"&&Cf(s.value.charAt(0)))}function d1(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function h1(i,l,r){const s=ct(r,l);return!s||s.type!=="comment"}function m1(i,l,r){const s=ct(r,l);return s?s.type==="element"&&(s.tagName==="address"||s.tagName==="article"||s.tagName==="aside"||s.tagName==="blockquote"||s.tagName==="details"||s.tagName==="div"||s.tagName==="dl"||s.tagName==="fieldset"||s.tagName==="figcaption"||s.tagName==="figure"||s.tagName==="footer"||s.tagName==="form"||s.tagName==="h1"||s.tagName==="h2"||s.tagName==="h3"||s.tagName==="h4"||s.tagName==="h5"||s.tagName==="h6"||s.tagName==="header"||s.tagName==="hgroup"||s.tagName==="hr"||s.tagName==="main"||s.tagName==="menu"||s.tagName==="nav"||s.tagName==="ol"||s.tagName==="p"||s.tagName==="pre"||s.tagName==="section"||s.tagName==="table"||s.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function p1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="li"}function g1(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd"))}function _1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="dt"||s.tagName==="dd")}function cg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="rp"||s.tagName==="rt")}function y1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="optgroup"}function v1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="option"||s.tagName==="optgroup")}function b1(i,l,r){const s=ct(r,l);return!!(s&&s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot"))}function S1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="tbody"||s.tagName==="tfoot")}function E1(i,l,r){return!ct(r,l)}function x1(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&s.tagName==="tr"}function fg(i,l,r){const s=ct(r,l);return!s||s.type==="element"&&(s.tagName==="td"||s.tagName==="th")}const T1=h_({body:O1,colgroup:C1,head:R1,html:A1,tbody:D1});function A1(i){const l=ct(i,-1);return!l||l.type!=="comment"}function R1(i){const l=new Set;for(const s of i.children)if(s.type==="element"&&(s.tagName==="base"||s.tagName==="title")){if(l.has(s.tagName))return!1;l.add(s.tagName)}const r=i.children[0];return!r||r.type==="element"}function O1(i){const l=ct(i,-1,!0);return!l||l.type!=="comment"&&!(l.type==="text"&&Cf(l.value.charAt(0)))&&!(l.type==="element"&&(l.tagName==="meta"||l.tagName==="link"||l.tagName==="script"||l.tagName==="style"||l.tagName==="template"))}function C1(i,l,r){const s=f_(r,l),u=ct(i,-1,!0);return r&&s&&s.type==="element"&&s.tagName==="colgroup"&&Df(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function D1(i,l,r){const s=f_(r,l),u=ct(i,-1);return r&&s&&s.type==="element"&&(s.tagName==="thead"||s.tagName==="tbody")&&Df(s,r.children.indexOf(s),r)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const Xs={name:[[`
|
|
109
109
|
\f\r &/=>`.split(""),`
|
|
110
110
|
\f\r "&'/=>\``.split("")],[`\0
|
|
111
111
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -113,9 +113,11 @@ Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An err
|
|
|
113
113
|
\f\r &>`.split(""),`\0
|
|
114
114
|
\f\r "&'<=>\``.split("")],[`\0
|
|
115
115
|
\f\r "&'<=>\``.split(""),`\0
|
|
116
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function D1(i,l,r,s){const u=s.schema,f=u.space==="svg"?!1:s.settings.omitOptionalTags;let d=u.space==="svg"?s.settings.closeEmptyElements:s.settings.voids.includes(i.tagName.toLowerCase());const g=[];let p;u.space==="html"&&i.tagName==="svg"&&(s.schema=o_);const m=L1(s,i.properties),y=s.all(u.space==="html"&&i.tagName==="template"?i.content:i);return s.schema=u,y&&(d=!1),(m||!f||!x1(i,l,r))&&(g.push("<",i.tagName,m?" "+m:""),d&&(u.space==="svg"||s.settings.closeSelfClosing)&&(p=m.charAt(m.length-1),(!s.settings.tightSelfClosing||p==="/"||p&&p!=='"'&&p!=="'")&&g.push(" "),g.push("/")),g.push(">")),g.push(y),!d&&(!f||!Df(i,l,r))&&g.push("</"+i.tagName+">"),g.join("")}function L1(i,l){const r=[];let s=-1,u;if(l){for(u in l)if(l[u]!==null&&l[u]!==void 0){const f=N1(i,u,l[u]);f&&r.push(f)}}for(;++s<r.length;){const f=i.settings.tightAttributes?r[s].charAt(r[s].length-1):void 0;s!==r.length-1&&f!=='"'&&f!=="'"&&(r[s]+=" ")}return r.join("")}function N1(i,l,r){const s=MS(i.schema,l),u=i.settings.allowParseErrors&&i.schema.space==="html"?0:1,f=i.settings.allowDangerousCharacters?0:1;let d=i.quote,g;if(s.overloadedBoolean&&(r===s.attribute||r==="")?r=!0:(s.boolean||s.overloadedBoolean)&&(typeof r!="string"||r===s.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const p=Ya(s.attribute,Object.assign({},i.settings.characterReferences,{subset:Xs.name[u][f]}));return r===!0||(r=Array.isArray(r)?(s.commaSeparated?r1:s1)(r,{padLeft:!i.settings.tightCommaSeparatedLists}):String(r),i.settings.collapseEmptyAttributes&&!r)?p:(i.settings.preferUnquoted&&(g=Ya(r,Object.assign({},i.settings.characterReferences,{attribute:!0,subset:Xs.unquoted[u][f]}))),g!==r&&(i.settings.quoteSmart&&og(r,d)>og(r,i.alternative)&&(d=i.alternative),g=d+Ya(r,Object.assign({},i.settings.characterReferences,{subset:(d==="'"?Xs.single:Xs.double)[u][f],attribute:!0}))+d),p+(g&&"="+g))}const k1=["<","&"];function h_(i,l,r,s){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?i.value:Ya(i.value,Object.assign({},s.settings.characterReferences,{subset:k1}))}function w1(i,l,r,s){return s.settings.allowDangerousHtml?i.value:h_(i,l,r,s)}function M1(i,l,r,s){return s.all(i)}const z1=BS("type",{invalid:j1,unknown:U1,handlers:{comment:a1,doctype:i1,element:D1,raw:w1,root:M1,text:h_}});function j1(i){throw new Error("Expected node, not `"+i+"`")}function U1(i){const l=i;throw new Error("Cannot compile unknown node `"+l.type+"`")}const B1={},H1={},V1=[];function G1(i,l){const r=B1,s=r.quote||'"',u=s==='"'?"'":'"';if(s!=='"'&&s!=="'")throw new Error("Invalid quote `"+s+"`, expected `'` or `\"`");return{one:I1,all:q1,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||CS,characterReferences:r.characterReferences||H1,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?o_:US,quote:s,alternative:u}.one(Array.isArray(i)?{type:"root",children:i}:i,void 0,void 0)}function I1(i,l,r){return z1(i,l,r,this)}function q1(i){const l=[],r=i&&i.children||V1;let s=-1;for(;++s<r.length;)l[s]=this.one(r[s],s,i);return l.join("")}function P1(i){return Array.isArray(i)?i:[i]}function go(i,l=!1){var f;const r=i.split(/(\r?\n)/g);let s=0;const u=[];for(let d=0;d<r.length;d+=2){const g=l?r[d]+(r[d+1]||""):r[d];u.push([g,s]),s+=r[d].length,s+=((f=r[d+1])==null?void 0:f.length)||0}return u}function Lf(i){return!i||["plaintext","txt","text","plain"].includes(i)}function m_(i){return i==="ansi"||Lf(i)}function Nf(i){return i==="none"}function p_(i){return Nf(i)}function g_(i,l){var s;if(!l)return i;i.properties||(i.properties={}),(s=i.properties).class||(s.class=[]),typeof i.properties.class=="string"&&(i.properties.class=i.properties.class.split(/\s+/g)),Array.isArray(i.properties.class)||(i.properties.class=[]);const r=Array.isArray(l)?l:l.split(/\s+/g);for(const u of r)u&&!i.properties.class.includes(u)&&i.properties.class.push(u);return i}function Y1(i,l){let r=0;const s=[];for(const u of l)u>r&&s.push({...i,content:i.content.slice(r,u),offset:i.offset+r}),r=u;return r<i.content.length&&s.push({...i,content:i.content.slice(r),offset:i.offset+r}),s}function X1(i,l){const r=Array.from(l instanceof Set?l:new Set(l)).sort((s,u)=>s-u);return r.length?i.map(s=>s.flatMap(u=>{const f=r.filter(d=>u.offset<d&&d<u.offset+u.content.length).map(d=>d-u.offset).sort((d,g)=>d-g);return f.length?Y1(u,f):u})):i}async function __(i){return Promise.resolve(typeof i=="function"?i():i).then(l=>l.default||l)}function so(i,l){const r=typeof i=="string"?{}:{...i.colorReplacements},s=typeof i=="string"?i:i.name;for(const[u,f]of Object.entries((l==null?void 0:l.colorReplacements)||{}))typeof f=="string"?r[u]=f:u===s&&Object.assign(r,f);return r}function ta(i,l){return i&&((l==null?void 0:l[i==null?void 0:i.toLowerCase()])||i)}function y_(i){const l={};return i.color&&(l.color=i.color),i.bgColor&&(l["background-color"]=i.bgColor),i.fontStyle&&(i.fontStyle&rl.Italic&&(l["font-style"]="italic"),i.fontStyle&rl.Bold&&(l["font-weight"]="bold"),i.fontStyle&rl.Underline&&(l["text-decoration"]="underline")),l}function Q1(i){return typeof i=="string"?i:Object.entries(i).map(([l,r])=>`${l}:${r}`).join(";")}function Z1(i){const l=go(i,!0).map(([u])=>u);function r(u){if(u===i.length)return{line:l.length-1,character:l[l.length-1].length};let f=u,d=0;for(const g of l){if(f<g.length)break;f-=g.length,d++}return{line:d,character:f}}function s(u,f){let d=0;for(let g=0;g<u;g++)d+=l[g].length;return d+=f,d}return{lines:l,indexToPos:r,posToIndex:s}}class Rt extends Error{constructor(l){super(l),this.name="ShikiError"}}const v_=new WeakMap;function _o(i,l){v_.set(i,l)}function mr(i){return v_.get(i)}class Ka{constructor(...l){w(this,"_stacks",{});w(this,"lang");if(l.length===2){const[r,s]=l;this.lang=s,this._stacks=r}else{const[r,s,u]=l;this.lang=s,this._stacks={[u]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(l,r){return new Ka(Object.fromEntries(P1(r).map(s=>[s,af])),l)}getInternalStack(l=this.theme){return this._stacks[l]}get scopes(){return dg(this._stacks[this.theme])}getScopes(l=this.theme){return dg(this._stacks[l])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function dg(i){const l=[],r=new Set;function s(u){var d;if(r.has(u))return;r.add(u);const f=(d=u==null?void 0:u.nameScopesList)==null?void 0:d.scopeName;f&&l.push(f),u.parent&&s(u.parent)}return s(i),l}function K1(i,l){if(!(i instanceof Ka))throw new Rt("Invalid grammar state");return i.getInternalStack(l)}function $1(){const i=new WeakMap;function l(r){if(!i.has(r.meta)){let s=function(d){if(typeof d=="number"){if(d<0||d>r.source.length)throw new Rt(`Invalid decoration offset: ${d}. Code length: ${r.source.length}`);return{...u.indexToPos(d),offset:d}}else{const g=u.lines[d.line];if(g===void 0)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Lines length: ${u.lines.length}`);if(d.character<0||d.character>g.length)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Line ${d.line} length: ${g.length}`);return{...d,offset:u.posToIndex(d.line,d.character)}}};const u=Z1(r.source),f=(r.options.decorations||[]).map(d=>({...d,start:s(d.start),end:s(d.end)}));J1(f),i.set(r.meta,{decorations:f,converter:u,source:r.source})}return i.get(r.meta)}return{name:"shiki:decorations",tokens(r){var d;if(!((d=this.options.decorations)!=null&&d.length))return;const u=l(this).decorations.flatMap(g=>[g.start.offset,g.end.offset]);return X1(r,u)},code(r){var y;if(!((y=this.options.decorations)!=null&&y.length))return;const s=l(this),u=Array.from(r.children).filter(b=>b.type==="element"&&b.tagName==="span");if(u.length!==s.converter.lines.length)throw new Rt(`Number of lines in code element (${u.length}) does not match the number of lines in the source (${s.converter.lines.length}). Failed to apply decorations.`);function f(b,E,A,D){const B=u[b];let P="",V=-1,I=-1;if(E===0&&(V=0),A===0&&(I=0),A===Number.POSITIVE_INFINITY&&(I=B.children.length),V===-1||I===-1)for(let Z=0;Z<B.children.length;Z++)P+=b_(B.children[Z]),V===-1&&P.length===E&&(V=Z+1),I===-1&&P.length===A&&(I=Z+1);if(V===-1)throw new Rt(`Failed to find start index for decoration ${JSON.stringify(D.start)}`);if(I===-1)throw new Rt(`Failed to find end index for decoration ${JSON.stringify(D.end)}`);const Y=B.children.slice(V,I);if(!D.alwaysWrap&&Y.length===B.children.length)g(B,D,"line");else if(!D.alwaysWrap&&Y.length===1&&Y[0].type==="element")g(Y[0],D,"token");else{const Z={type:"element",tagName:"span",properties:{},children:Y};g(Z,D,"wrapper"),B.children.splice(V,Y.length,Z)}}function d(b,E){u[b]=g(u[b],E,"line")}function g(b,E,A){var P;const D=E.properties||{},B=E.transform||(V=>V);return b.tagName=E.tagName||"span",b.properties={...b.properties,...D,class:b.properties.class},(P=E.properties)!=null&&P.class&&g_(b,E.properties.class),b=B(b,A)||b,b}const p=[],m=s.decorations.sort((b,E)=>E.start.offset-b.start.offset);for(const b of m){const{start:E,end:A}=b;if(E.line===A.line)f(E.line,E.character,A.character,b);else if(E.line<A.line){f(E.line,E.character,Number.POSITIVE_INFINITY,b);for(let D=E.line+1;D<A.line;D++)p.unshift(()=>d(D,b));f(A.line,0,A.character,b)}}p.forEach(b=>b())}}}function J1(i){for(let l=0;l<i.length;l++){const r=i[l];if(r.start.offset>r.end.offset)throw new Rt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let s=l+1;s<i.length;s++){const u=i[s],f=r.start.offset<u.start.offset&&u.start.offset<r.end.offset,d=r.start.offset<u.end.offset&&u.end.offset<r.end.offset,g=u.start.offset<r.start.offset&&r.start.offset<u.end.offset,p=u.start.offset<r.end.offset&&r.end.offset<u.end.offset;if(f||d||g||p){if(d&&d||g&&p)continue;throw new Rt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(u.start)} intersect.`)}}}}function b_(i){return i.type==="text"?i.value:i.type==="element"?i.children.map(b_).join(""):""}const W1=[$1()];function oo(i){return[...i.transformers||[],...W1]}var na=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Xc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function F1(i,l){const r=i.indexOf("\x1B[",l);if(r!==-1){const s=i.indexOf("m",r);return{sequence:i.substring(r+2,s).split(";"),startPosition:r,position:s+1}}return{position:i.length}}function hg(i,l){let r=1;const s=i[l+r++];let u;if(s==="2"){const f=[i[l+r++],i[l+r++],i[l+r]].map(d=>Number.parseInt(d));f.length===3&&!f.some(d=>Number.isNaN(d))&&(u={type:"rgb",rgb:f})}else if(s==="5"){const f=Number.parseInt(i[l+r]);Number.isNaN(f)||(u={type:"table",index:Number(f)})}return[r,u]}function eE(i){const l=[];for(let r=0;r<i.length;r++){const s=i[r],u=Number.parseInt(s);if(!Number.isNaN(u))if(u===0)l.push({type:"resetAll"});else if(u<=9)Xc[u]&&l.push({type:"setDecoration",value:Xc[u]});else if(u<=29){const f=Xc[u-20];f&&l.push({type:"resetDecoration",value:f})}else if(u<=37)l.push({type:"setForegroundColor",value:{type:"named",name:na[u-30]}});else if(u===38){const[f,d]=hg(i,r);d&&l.push({type:"setForegroundColor",value:d}),r+=f}else if(u===39)l.push({type:"resetForegroundColor"});else if(u<=47)l.push({type:"setBackgroundColor",value:{type:"named",name:na[u-40]}});else if(u===48){const[f,d]=hg(i,r);d&&l.push({type:"setBackgroundColor",value:d}),r+=f}else u===49?l.push({type:"resetBackgroundColor"}):u>=90&&u<=97?l.push({type:"setForegroundColor",value:{type:"named",name:na[u-90+8]}}):u>=100&&u<=107&&l.push({type:"setBackgroundColor",value:{type:"named",name:na[u-100+8]}})}return l}function tE(){let i=null,l=null,r=new Set;return{parse(s){const u=[];let f=0;do{const d=F1(s,f),g=d.sequence?s.substring(f,d.startPosition):s.substring(f);if(g.length>0&&u.push({value:g,foreground:i,background:l,decorations:new Set(r)}),d.sequence){const p=eE(d.sequence);for(const m of p)m.type==="resetAll"?(i=null,l=null,r.clear()):m.type==="resetForegroundColor"?i=null:m.type==="resetBackgroundColor"?l=null:m.type==="resetDecoration"&&r.delete(m.value);for(const m of p)m.type==="setForegroundColor"?i=m.value:m.type==="setBackgroundColor"?l=m.value:m.type==="setDecoration"&&r.add(m.value)}f=d.position}while(f<s.length);return u}}}var nE={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function lE(i=nE){function l(g){return i[g]}function r(g){return`#${g.map(p=>Math.max(0,Math.min(p,255)).toString(16).padStart(2,"0")).join("")}`}let s;function u(){if(s)return s;s=[];for(let m=0;m<na.length;m++)s.push(l(na[m]));let g=[0,95,135,175,215,255];for(let m=0;m<6;m++)for(let y=0;y<6;y++)for(let b=0;b<6;b++)s.push(r([g[m],g[y],g[b]]));let p=8;for(let m=0;m<24;m++,p+=10)s.push(r([p,p,p]));return s}function f(g){return u()[g]}function d(g){switch(g.type){case"named":return l(g.name);case"rgb":return r(g.rgb);case"table":return f(g.index)}}return{value:d}}function aE(i,l,r){const s=so(i,r),u=go(l),f=lE(Object.fromEntries(na.map(g=>{var p;return[g,(p=i.colors)==null?void 0:p[`terminal.ansi${g[0].toUpperCase()}${g.substring(1)}`]]}))),d=tE();return u.map(g=>d.parse(g[0]).map(p=>{let m,y;p.decorations.has("reverse")?(m=p.background?f.value(p.background):i.bg,y=p.foreground?f.value(p.foreground):i.fg):(m=p.foreground?f.value(p.foreground):i.fg,y=p.background?f.value(p.background):void 0),m=ta(m,s),y=ta(y,s),p.decorations.has("dim")&&(m=iE(m));let b=rl.None;return p.decorations.has("bold")&&(b|=rl.Bold),p.decorations.has("italic")&&(b|=rl.Italic),p.decorations.has("underline")&&(b|=rl.Underline),{content:p.value,offset:g[1],color:m,bgColor:y,fontStyle:b}}))}function iE(i){const l=i.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(l)if(l[3]){const s=Math.round(Number.parseInt(l[3],16)/2).toString(16).padStart(2,"0");return`#${l[1]}${l[2]}${s}`}else return l[2]?`#${l[1]}${l[2]}80`:`#${Array.from(l[1]).map(s=>`${s}${s}`).join("")}80`;const r=i.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:i}function kf(i,l,r={}){const{lang:s="text",theme:u=i.getLoadedThemes()[0]}=r;if(Lf(s)||Nf(u))return go(l).map(p=>[{content:p[0],offset:p[1]}]);const{theme:f,colorMap:d}=i.setTheme(u);if(s==="ansi")return aE(f,l,r);const g=i.getLanguage(s);if(r.grammarState){if(r.grammarState.lang!==g.name)throw new sl(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${g.name}"`);if(!r.grammarState.themes.includes(f.name))throw new sl(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${f.name}"`)}return sE(l,g,f,d,r)}function rE(...i){if(i.length===2)return mr(i[1]);const[l,r,s={}]=i,{lang:u="text",theme:f=l.getLoadedThemes()[0]}=s;if(Lf(u)||Nf(f))throw new sl("Plain language does not have grammar state");if(u==="ansi")throw new sl("ANSI language does not have grammar state");const{theme:d,colorMap:g}=l.setTheme(f),p=l.getLanguage(u);return new Ka(uo(r,p,d,g,s).stateStack,p.name,d.name)}function sE(i,l,r,s,u){const f=uo(i,l,r,s,u),d=new Ka(uo(i,l,r,s,u).stateStack,l.name,r.name);return _o(f.tokens,d),f.tokens}function uo(i,l,r,s,u){const f=so(r,u),{tokenizeMaxLineLength:d=0,tokenizeTimeLimit:g=500}=u,p=go(i);let m=u.grammarState?K1(u.grammarState,r.name)??af:u.grammarContextCode!=null?uo(u.grammarContextCode,l,r,s,{...u,grammarState:void 0,grammarContextCode:void 0}).stateStack:af,y=[];const b=[];for(let E=0,A=p.length;E<A;E++){const[D,B]=p[E];if(D===""){y=[],b.push([]);continue}if(d>0&&D.length>=d){y=[],b.push([{content:D,offset:B,color:"",fontStyle:0}]);continue}let P,V,I;u.includeExplanation&&(P=l.tokenizeLine(D,m),V=P.tokens,I=0);const Y=l.tokenizeLine2(D,m,g),Z=Y.tokens.length/2;for(let ae=0;ae<Z;ae++){const fe=Y.tokens[2*ae],te=ae+1<Z?Y.tokens[2*ae+2]:D.length;if(fe===te)continue;const Ue=Y.tokens[2*ae+1],pt=ta(s[Qa.getForeground(Ue)],f),Lt=Qa.getFontStyle(Ue),Re={content:D.substring(fe,te),offset:B+fe,color:pt,fontStyle:Lt};if(u.includeExplanation){const Ke=[];if(u.includeExplanation!=="scopeName")for(const Ye of r.settings){let Fe;switch(typeof Ye.scope){case"string":Fe=Ye.scope.split(/,/).map(z=>z.trim());break;case"object":Fe=Ye.scope;break;default:continue}Ke.push({settings:Ye,selectors:Fe.map(z=>z.split(/ /))})}Re.explanation=[];let Nt=0;for(;fe+Nt<te;){const Ye=V[I],Fe=D.substring(Ye.startIndex,Ye.endIndex);Nt+=Fe.length,Re.explanation.push({content:Fe,scopes:u.includeExplanation==="scopeName"?oE(Ye.scopes):uE(Ke,Ye.scopes)}),I+=1}}y.push(Re)}b.push(y),y=[],m=Y.ruleStack}return{tokens:b,stateStack:m}}function oE(i){return i.map(l=>({scopeName:l}))}function uE(i,l){const r=[];for(let s=0,u=l.length;s<u;s++){const f=l[s];r[s]={scopeName:f,themeMatches:fE(i,f,l.slice(0,s))}}return r}function mg(i,l){return i===l||l.substring(0,i.length)===i&&l[i.length]==="."}function cE(i,l,r){if(!mg(i[i.length-1],l))return!1;let s=i.length-2,u=r.length-1;for(;s>=0&&u>=0;)mg(i[s],r[u])&&(s-=1),u-=1;return s===-1}function fE(i,l,r){const s=[];for(const{selectors:u,settings:f}of i)for(const d of u)if(cE(d,l,r)){s.push(f);break}return s}function S_(i,l,r){const s=Object.entries(r.themes).filter(p=>p[1]).map(p=>({color:p[0],theme:p[1]})),u=s.map(p=>{const m=kf(i,l,{...r,theme:p.theme}),y=mr(m),b=typeof p.theme=="string"?p.theme:p.theme.name;return{tokens:m,state:y,theme:b}}),f=dE(...u.map(p=>p.tokens)),d=f[0].map((p,m)=>p.map((y,b)=>{const E={content:y.content,variants:{},offset:y.offset};return"includeExplanation"in r&&r.includeExplanation&&(E.explanation=y.explanation),f.forEach((A,D)=>{const{content:B,explanation:P,offset:V,...I}=A[m][b];E.variants[s[D].color]=I}),E})),g=u[0].state?new Ka(Object.fromEntries(u.map(p=>{var m;return[p.theme,(m=p.state)==null?void 0:m.getInternalStack(p.theme)]})),u[0].state.lang):void 0;return g&&_o(d,g),d}function dE(...i){const l=i.map(()=>[]),r=i.length;for(let s=0;s<i[0].length;s++){const u=i.map(p=>p[s]),f=l.map(()=>[]);l.forEach((p,m)=>p.push(f[m]));const d=u.map(()=>0),g=u.map(p=>p[0]);for(;g.every(p=>p);){const p=Math.min(...g.map(m=>m.content.length));for(let m=0;m<r;m++){const y=g[m];y.content.length===p?(f[m].push(y),d[m]+=1,g[m]=u[m][d[m]]):(f[m].push({...y,content:y.content.slice(0,p)}),g[m]={...y,content:y.content.slice(p),offset:y.offset+p})}}}return l}function co(i,l,r){let s,u,f,d,g,p;if("themes"in r){const{defaultColor:m="light",cssVariablePrefix:y="--shiki-"}=r,b=Object.entries(r.themes).filter(P=>P[1]).map(P=>({color:P[0],theme:P[1]})).sort((P,V)=>P.color===m?-1:V.color===m?1:0);if(b.length===0)throw new sl("`themes` option must not be empty");const E=S_(i,l,r);if(p=mr(E),m&&!b.find(P=>P.color===m))throw new sl(`\`themes\` option must contain the defaultColor key \`${m}\``);const A=b.map(P=>i.getTheme(P.theme)),D=b.map(P=>P.color);f=E.map(P=>P.map(V=>hE(V,D,y,m))),p&&_o(f,p);const B=b.map(P=>so(P.theme,r));u=b.map((P,V)=>(V===0&&m?"":`${y+P.color}:`)+(ta(A[V].fg,B[V])||"inherit")).join(";"),s=b.map((P,V)=>(V===0&&m?"":`${y+P.color}-bg:`)+(ta(A[V].bg,B[V])||"inherit")).join(";"),d=`shiki-themes ${A.map(P=>P.name).join(" ")}`,g=m?void 0:[u,s].join(";")}else if("theme"in r){const m=so(r.theme,r);f=kf(i,l,r);const y=i.getTheme(r.theme);s=ta(y.bg,m),u=ta(y.fg,m),d=y.name,p=mr(f)}else throw new sl("Invalid options, either `theme` or `themes` must be provided");return{tokens:f,fg:u,bg:s,themeName:d,rootStyle:g,grammarState:p}}function hE(i,l,r,s){const u={content:i.content,explanation:i.explanation,offset:i.offset},f=l.map(p=>y_(i.variants[p])),d=new Set(f.flatMap(p=>Object.keys(p))),g={};return f.forEach((p,m)=>{for(const y of d){const b=p[y]||"inherit";if(m===0&&s)g[y]=b;else{const E=y==="color"?"":y==="background-color"?"-bg":`-${y}`,A=r+l[m]+(y==="color"?"":E);g[A]=b}}}),u.htmlStyle=g,u}function fo(i,l,r,s={meta:{},options:r,codeToHast:(u,f)=>fo(i,u,f),codeToTokens:(u,f)=>co(i,u,f)}){var A,D;let u=l;for(const B of oo(r))u=((A=B.preprocess)==null?void 0:A.call(s,u,r))||u;let{tokens:f,fg:d,bg:g,themeName:p,rootStyle:m,grammarState:y}=co(i,u,r);const{mergeWhitespaces:b=!0}=r;b===!0?f=pE(f):b==="never"&&(f=gE(f));const E={...s,get source(){return u}};for(const B of oo(r))f=((D=B.tokens)==null?void 0:D.call(E,f))||f;return mE(f,{...r,fg:d,bg:g,themeName:p,rootStyle:m},E,y)}function mE(i,l,r,s=mr(i)){var D,B,P;const u=oo(l),f=[],d={type:"root",children:[]},{structure:g="classic",tabindex:p="0"}=l;let m={type:"element",tagName:"pre",properties:{class:`shiki ${l.themeName||""}`,style:l.rootStyle||`background-color:${l.bg};color:${l.fg}`,...p!==!1&&p!=null?{tabindex:p.toString()}:{},...Object.fromEntries(Array.from(Object.entries(l.meta||{})).filter(([V])=>!V.startsWith("_")))},children:[]},y={type:"element",tagName:"code",properties:{},children:f};const b=[],E={...r,structure:g,addClassToHast:g_,get source(){return r.source},get tokens(){return i},get options(){return l},get root(){return d},get pre(){return m},get code(){return y},get lines(){return b}};if(i.forEach((V,I)=>{var ae,fe;I&&(g==="inline"?d.children.push({type:"element",tagName:"br",properties:{},children:[]}):g==="classic"&&f.push({type:"text",value:`
|
|
117
|
-
`}));let Y={type:"element",tagName:"span",properties:{class:"line"},children:[]},Z=0;for(const te of V){let Ue={type:"element",tagName:"span",properties:{...te.htmlAttrs},children:[{type:"text",value:te.content}]};te.htmlStyle;const pt=Q1(te.htmlStyle||y_(te));pt&&(Ue.properties.style=pt);for(const Lt of u)Ue=((ae=Lt==null?void 0:Lt.span)==null?void 0:ae.call(E,Ue,I+1,Z,Y,te))||Ue;g==="inline"?d.children.push(Ue):g==="classic"&&Y.children.push(Ue),Z+=te.content.length}if(g==="classic"){for(const te of u)Y=((fe=te==null?void 0:te.line)==null?void 0:fe.call(E,Y,I+1))||Y;b.push(Y),f.push(Y)}}),g==="classic"){for(const V of u)y=((D=V==null?void 0:V.code)==null?void 0:D.call(E,y))||y;m.children.push(y);for(const V of u)m=((B=V==null?void 0:V.pre)==null?void 0:B.call(E,m))||m;d.children.push(m)}let A=d;for(const V of u)A=((P=V==null?void 0:V.root)==null?void 0:P.call(E,A))||A;return s&&_o(A,s),A}function pE(i){return i.map(l=>{const r=[];let s="",u=0;return l.forEach((f,d)=>{const p=!(f.fontStyle&&f.fontStyle&rl.Underline);p&&f.content.match(/^\s+$/)&&l[d+1]?(u||(u=f.offset),s+=f.content):s?(p?r.push({...f,offset:u,content:s+f.content}):r.push({content:s,offset:u},f),u=0,s=""):r.push(f)}),r})}function gE(i){return i.map(l=>l.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const s=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!s)return r;const[,u,f,d]=s;if(!u&&!d)return r;const g=[{...r,offset:r.offset+u.length,content:f}];return u&&g.unshift({content:u,offset:r.offset}),d&&g.push({content:d,offset:r.offset+u.length+f.length}),g}))}function _E(i,l,r){var f;const s={meta:{},options:r,codeToHast:(d,g)=>fo(i,d,g),codeToTokens:(d,g)=>co(i,d,g)};let u=G1(fo(i,l,r,s));for(const d of oo(r))u=((f=d.postprocess)==null?void 0:f.call(s,u,r))||u;return u}const pg={light:"#333333",dark:"#bbbbbb"},gg={light:"#fffffe",dark:"#1e1e1e"},_g="__shiki_resolved";function wf(i){var g,p,m,y,b;if(i!=null&&i[_g])return i;const l={...i};l.tokenColors&&!l.settings&&(l.settings=l.tokenColors,delete l.tokenColors),l.type||(l.type="dark"),l.colorReplacements={...l.colorReplacements},l.settings||(l.settings=[]);let{bg:r,fg:s}=l;if(!r||!s){const E=l.settings?l.settings.find(A=>!A.name&&!A.scope):void 0;(g=E==null?void 0:E.settings)!=null&&g.foreground&&(s=E.settings.foreground),(p=E==null?void 0:E.settings)!=null&&p.background&&(r=E.settings.background),!s&&((m=l==null?void 0:l.colors)!=null&&m["editor.foreground"])&&(s=l.colors["editor.foreground"]),!r&&((y=l==null?void 0:l.colors)!=null&&y["editor.background"])&&(r=l.colors["editor.background"]),s||(s=l.type==="light"?pg.light:pg.dark),r||(r=l.type==="light"?gg.light:gg.dark),l.fg=s,l.bg=r}l.settings[0]&&l.settings[0].settings&&!l.settings[0].scope||l.settings.unshift({settings:{foreground:l.fg,background:l.bg}});let u=0;const f=new Map;function d(E){var D;if(f.has(E))return f.get(E);u+=1;const A=`#${u.toString(16).padStart(8,"0").toLowerCase()}`;return(D=l.colorReplacements)!=null&&D[`#${A}`]?d(E):(f.set(E,A),A)}l.settings=l.settings.map(E=>{var P,V;const A=((P=E.settings)==null?void 0:P.foreground)&&!E.settings.foreground.startsWith("#"),D=((V=E.settings)==null?void 0:V.background)&&!E.settings.background.startsWith("#");if(!A&&!D)return E;const B={...E,settings:{...E.settings}};if(A){const I=d(E.settings.foreground);l.colorReplacements[I]=E.settings.foreground,B.settings.foreground=I}if(D){const I=d(E.settings.background);l.colorReplacements[I]=E.settings.background,B.settings.background=I}return B});for(const E of Object.keys(l.colors||{}))if((E==="editor.foreground"||E==="editor.background"||E.startsWith("terminal.ansi"))&&!((b=l.colors[E])!=null&&b.startsWith("#"))){const A=d(l.colors[E]);l.colorReplacements[A]=l.colors[E],l.colors[E]=A}return Object.defineProperty(l,_g,{enumerable:!1,writable:!1,value:!0}),l}async function E_(i){return Array.from(new Set((await Promise.all(i.filter(l=>!m_(l)).map(async l=>await __(l).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function x_(i){return(await Promise.all(i.map(async r=>p_(r)?null:wf(await __(r))))).filter(r=>!!r)}class yE extends OS{constructor(r,s,u,f={}){super(r);w(this,"_resolvedThemes",new Map);w(this,"_resolvedGrammars",new Map);w(this,"_langMap",new Map);w(this,"_langGraph",new Map);w(this,"_textmateThemeCache",new WeakMap);w(this,"_loadedThemesCache",null);w(this,"_loadedLanguagesCache",null);this._resolver=r,this._themes=s,this._langs=u,this._alias=f,this._themes.map(d=>this.loadTheme(d)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const s=wf(r);return s.name&&(this._resolvedThemes.set(s.name,s),this._loadedThemesCache=null),s}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let s=this._textmateThemeCache.get(r);s||(s=no.createFromRawTheme(r),this._textmateThemeCache.set(r,s)),this._syncRegistry.setTheme(s)}getGrammar(r){if(this._alias[r]){const s=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],s.has(r))throw new Rt(`Circular alias \`${Array.from(s).join(" -> ")} -> ${r}\``);s.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){var d,g,p,m;if(this.getGrammar(r.name))return;const s=new Set([...this._langMap.values()].filter(y=>{var b;return(b=y.embeddedLangsLazy)==null?void 0:b.includes(r.name)}));this._resolver.addLanguage(r);const u={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const f=this.loadGrammarWithConfiguration(r.scopeName,1,u);if(f.name=r.name,this._resolvedGrammars.set(r.name,f),r.aliases&&r.aliases.forEach(y=>{this._alias[y]=r.name}),this._loadedLanguagesCache=null,s.size)for(const y of s)this._resolvedGrammars.delete(y.name),this._loadedLanguagesCache=null,(g=(d=this._syncRegistry)==null?void 0:d._injectionGrammars)==null||g.delete(y.scopeName),(m=(p=this._syncRegistry)==null?void 0:p._grammars)==null||m.delete(y.scopeName),this.loadLanguage(this._langMap.get(y.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const f of r)this.resolveEmbeddedLanguages(f);const s=Array.from(this._langGraph.entries()),u=s.filter(([f,d])=>!d);if(u.length){const f=s.filter(([d,g])=>{var p;return g&&((p=g.embeddedLangs)==null?void 0:p.some(m=>u.map(([y])=>y).includes(m)))}).filter(d=>!u.includes(d));throw new Rt(`Missing languages ${u.map(([d])=>`\`${d}\``).join(", ")}, required by ${f.map(([d])=>`\`${d}\``).join(", ")}`)}for(const[f,d]of s)this._resolver.addLanguage(d);for(const[f,d]of s)this.loadLanguage(d)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const s of r.embeddedLangs)this._langGraph.set(s,this._langMap.get(s))}}class vE{constructor(l,r){w(this,"_langs",new Map);w(this,"_scopeToLang",new Map);w(this,"_injections",new Map);w(this,"_onigLib");this._onigLib={createOnigScanner:s=>l.createScanner(s),createOnigString:s=>l.createString(s)},r.forEach(s=>this.addLanguage(s))}get onigLib(){return this._onigLib}getLangRegistration(l){return this._langs.get(l)}loadGrammar(l){return this._scopeToLang.get(l)}addLanguage(l){this._langs.set(l.name,l),l.aliases&&l.aliases.forEach(r=>{this._langs.set(r,l)}),this._scopeToLang.set(l.scopeName,l),l.injectTo&&l.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(l.scopeName)})}getInjections(l){const r=l.split(".");let s=[];for(let u=1;u<=r.length;u++){const f=r.slice(0,u).join(".");s=[...s,...this._injections.get(f)||[]]}return s}}let ir=0;function bE(i){ir+=1,i.warnings!==!1&&ir>=10&&ir%10===0&&console.warn(`[Shiki] ${ir} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let l=!1;if(!i.engine)throw new Rt("`engine` option is required for synchronous mode");const r=(i.langs||[]).flat(1),s=(i.themes||[]).flat(1).map(wf),u=new vE(i.engine,r),f=new yE(u,s,r,i.langAlias);let d;function g(I){P();const Y=f.getGrammar(typeof I=="string"?I:I.name);if(!Y)throw new Rt(`Language \`${I}\` not found, you may need to load it first`);return Y}function p(I){if(I==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};P();const Y=f.getTheme(I);if(!Y)throw new Rt(`Theme \`${I}\` not found, you may need to load it first`);return Y}function m(I){P();const Y=p(I);d!==I&&(f.setTheme(Y),d=I);const Z=f.getColorMap();return{theme:Y,colorMap:Z}}function y(){return P(),f.getLoadedThemes()}function b(){return P(),f.getLoadedLanguages()}function E(...I){P(),f.loadLanguages(I.flat(1))}async function A(...I){return E(await E_(I))}function D(...I){P();for(const Y of I.flat(1))f.loadTheme(Y)}async function B(...I){return P(),D(await x_(I))}function P(){if(l)throw new Rt("Shiki instance has been disposed")}function V(){l||(l=!0,f.dispose(),ir-=1)}return{setTheme:m,getTheme:p,getLanguage:g,getLoadedThemes:y,getLoadedLanguages:b,loadLanguage:A,loadLanguageSync:E,loadTheme:B,loadThemeSync:D,dispose:V,[Symbol.dispose]:V}}async function SE(i={}){i.loadWasm;const[l,r,s]=await Promise.all([x_(i.themes||[]),E_(i.langs||[]),i.engine||Hg(i.loadWasm||Gb())]);return bE({...i,themes:l,langs:r,engine:s})}async function EE(i={}){const l=await SE(i);return{getLastGrammarState:(...r)=>rE(l,...r),codeToTokensBase:(r,s)=>kf(l,r,s),codeToTokensWithThemes:(r,s)=>S_(l,r,s),codeToTokens:(r,s)=>co(l,r,s),codeToHast:(r,s)=>fo(l,r,s),codeToHtml:(r,s)=>_E(l,r,s),...l,getInternalContext:()=>l}}function xE(i,l,r){let s,u,f;{const g=i;s=g.langs,u=g.themes,f=g.engine}async function d(g){function p(A){if(typeof A=="string"){if(m_(A))return[];const D=s[A];if(!D)throw new sl(`Language \`${A}\` is not included in this bundle. You may want to load it from external source.`);return D}return A}function m(A){if(p_(A))return"none";if(typeof A=="string"){const D=u[A];if(!D)throw new sl(`Theme \`${A}\` is not included in this bundle. You may want to load it from external source.`);return D}return A}const y=(g.themes??[]).map(A=>m(A)),b=(g.langs??[]).map(A=>p(A)),E=await EE({engine:g.engine??f(),...g,themes:y,langs:b});return{...E,loadLanguage(...A){return E.loadLanguage(...A.map(p))},loadTheme(...A){return E.loadTheme(...A.map(m))}}}return d}function TE(i){let l;async function r(s={}){if(l){const u=await l;return await Promise.all([u.loadTheme(...s.themes||[]),u.loadLanguage(...s.langs||[])]),u}else return l=i({...s,themes:s.themes||[],langs:s.langs||[]}),l}return r}function AE(i){const l=TE(i);return{getSingletonHighlighter(r){return l(r)},async codeToHtml(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHtml(r,s)},async codeToHast(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHast(r,s)},async codeToTokens(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToTokens(r,s)},async codeToTokensBase(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).codeToTokensBase(r,s)},async codeToTokensWithThemes(r,s){return(await l({langs:[s.lang],themes:Object.values(s.themes).filter(Boolean)})).codeToTokensWithThemes(r,s)},async getLastGrammarState(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(r,s)}}}const RE=xE({langs:Sb,themes:xb,engine:()=>Hg(v(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:OE}=AE(RE);let rr=null;async function CE(){if(rr)return rr;try{const l=await(await fetch("/api/config")).json();rr={attachmentBaseUrl:l.fileAttachmentBaseUrl||"",projectPrefix:l.projectPrefix||""}}catch{rr={attachmentBaseUrl:"",projectPrefix:""}}return rr}function DE(i,l){return l?i.replace(/attach:\/\/([^\s)]+)/g,(r,s)=>`${l}/${s}`):i}function LE(i){return i.toLowerCase().replace(/<[^>]+>/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}const NE={heading({text:i,depth:l}){const r=LE(i);return`<h${l} id="${r}">${i}</h${l}>`}};Te.use({renderer:NE});function kE(i){return i.replace(new RegExp("(?<![[\\w/])#([a-z0-9]+-[a-z0-9]+)(?![(\\]\\w])","gi"),(l,r)=>`[#${r}](#/detail/${r})`)}function yg({content:i}){const[l,r]=F.useState("");return F.useEffect(()=>{if(!i){r("");return}let s=!1;async function u(){const f=await CE();let d=DE(i,f.attachmentBaseUrl);d=kE(d);const g=Te.lexer(d),p=[];Te.walkTokens(g,A=>{A.type==="code"&&p.push({code:A.text,lang:A.lang||"text"})});const m=await Promise.all(p.map(async A=>{try{return await OE(A.code,{lang:A.lang,theme:"github-light"})}catch{return`<pre><code>${Zp.sanitize(A.code)}</code></pre>`}}));let y=Te.parser(g),b=0;y=y.replace(/<pre><code[^>]*>[\s\S]*?<\/code><\/pre>/g,()=>m[b++]||"");const E=Zp.sanitize(y,{ADD_TAGS:["span"],ADD_ATTR:["style","class","id"]});s||r(E)}return u(),()=>{s=!0}},[i]),S.jsx("div",{className:`prose prose-stone prose-sm max-w-none
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline`,dangerouslySetInnerHTML:{__html:l}})}function Qs({label:i,value:l,placeholder:r,onSave:s}){const[u,f]=F.useState(!1),[d,g]=F.useState(l),[p,m]=F.useState("edit"),[y,b]=F.useState(!1);F.useEffect(()=>{u||g(l)},[l,u]);const E=F.useCallback(async()=>{b(!0);try{await s(d),f(!1),m("edit")}finally{b(!1)}},[d,s]),A=F.useCallback(()=>{g(l),f(!1),m("edit")},[l]),D=F.useCallback(B=>{B.key==="s"&&(B.metaKey||B.ctrlKey)&&(B.preventDefault(),E()),B.key==="Escape"&&(B.preventDefault(),A())},[E,A]);return u?S.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--accent)",boxShadow:"var(--shadow-card)"},onKeyDown:D,children:[S.jsxs("div",{className:"flex items-center justify-between mb-2",children:[S.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),S.jsxs("div",{className:"flex overflow-hidden text-xs rounded-md",style:{border:"1px solid var(--border-default)"},children:[S.jsx("button",{onClick:()=>m("edit"),className:"px-2.5 py-1 font-medium",style:{background:p==="edit"?"var(--bg-hover)":"var(--bg-elevated)",color:p==="edit"?"var(--text-primary)":"var(--text-secondary)"},children:"Edit"}),S.jsx("button",{onClick:()=>m("preview"),className:"px-2.5 py-1 font-medium",style:{background:p==="preview"?"var(--bg-hover)":"var(--bg-elevated)",color:p==="preview"?"var(--text-primary)":"var(--text-secondary)",borderLeft:"1px solid var(--border-default)"},children:"Preview"})]})]}),p==="edit"?S.jsx("textarea",{value:d,onChange:B=>g(B.target.value),rows:10,className:"w-full p-3 text-sm font-mono rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:B=>{B.currentTarget.style.borderColor="var(--accent)"},onBlur:B=>{B.currentTarget.style.borderColor="var(--border-default)"},autoFocus:!0}):S.jsx("div",{className:"p-3 rounded-md min-h-[160px]",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)"},children:S.jsx(yg,{content:d})}),S.jsxs("div",{className:"flex items-center justify-end gap-2 mt-3",children:[S.jsx("span",{className:"text-xs mr-auto",style:{color:"var(--text-tertiary)"},children:"Cmd+S to save, Esc to cancel"}),S.jsx("button",{onClick:A,className:"px-3 py-1.5 text-sm rounded-md transition-colors",style:{color:"var(--text-secondary)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},onMouseEnter:B=>{B.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:B=>{B.currentTarget.style.background="var(--bg-elevated)"},children:"Cancel"}),S.jsx("button",{onClick:E,disabled:y,className:"px-3 py-1.5 text-sm rounded-md font-medium disabled:opacity-50 transition-colors",style:{background:"var(--accent)",color:"white"},onMouseEnter:B=>{B.currentTarget.style.opacity="0.9"},onMouseLeave:B=>{B.currentTarget.style.opacity="1"},children:y?"Saving...":"Save"})]})]}):S.jsxs("div",{id:i.toLowerCase().replace(/\s+/g,"-"),className:"group rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[S.jsxs("div",{className:"flex items-center justify-between mb-2",children:[S.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),S.jsx("button",{onClick:()=>f(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity",style:{color:"var(--text-tertiary)"},onMouseEnter:B=>{B.currentTarget.style.color="var(--accent)"},onMouseLeave:B=>{B.currentTarget.style.color="var(--text-tertiary)"},title:`Edit ${i}`,children:S.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})})})]}),l?S.jsx(yg,{content:l}):S.jsx("p",{className:"text-sm italic",style:{color:"var(--text-tertiary)"},children:r||`Add ${i.toLowerCase()}...`})]})}function nl({label:i,children:l}){return S.jsxs("div",{className:"px-3 py-2.5 rounded-md",style:{border:"1px solid var(--border-subtle)"},children:[S.jsx("h3",{className:"font-semibold uppercase tracking-wider mb-1.5",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),l]})}function wE({issue:i,onUpdate:l}){const r=i.parent_id||i.parent,s=i.parent_title||i.parent_title,u=i.parent_status||i.parent_status,f=new Date(i.updated_at).toLocaleDateString();return S.jsxs("aside",{className:"shrink-0 p-4 space-y-3 overflow-y-auto",style:{width:"280px",borderLeft:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[S.jsx(nl,{label:"Status",children:S.jsxs("select",{value:i.status,onChange:d=>l.updateStatus(i.id,d.target.value),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[S.jsx("option",{value:"open",children:"Open"}),S.jsx("option",{value:"in_progress",children:"In Progress"}),S.jsx("option",{value:"closed",children:"Closed"})]})}),S.jsx(nl,{label:"Priority",children:S.jsx("select",{value:i.priority,onChange:d=>l.updatePriority(i.id,Number(d.target.value)),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[0,1,2,3,4].map(d=>S.jsxs("option",{value:d,children:["P",d]},d))})}),S.jsx(nl,{label:"Type",children:S.jsx(hf,{type:i.issue_type})}),S.jsx(nl,{label:"Assignee",children:i.assignee?S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:pf(i.assignee),color:"var(--text-inverse)"},children:mf(i.assignee)}),S.jsx("span",{className:"text-sm",style:{color:"var(--text-primary)"},children:i.assignee})]}):S.jsx("span",{className:"text-sm",style:{color:"var(--text-tertiary)"},children:"Unassigned"})}),S.jsx(nl,{label:"Updated",children:S.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:f})}),i.labels&&i.labels.length>0&&S.jsx(nl,{label:"Labels",children:S.jsx("div",{className:"flex flex-wrap gap-1",children:i.labels.map(d=>S.jsx("span",{className:"px-2 py-0.5 text-xs rounded",style:{background:"var(--bg-hover)",color:"var(--text-secondary)"},children:d},d))})}),r&&S.jsx(nl,{label:"Parent",children:S.jsxs("a",{href:`#/detail/${r}`,className:"block rounded px-1 py-1 -mx-1 transition-colors",style:{color:"var(--text-primary)"},onMouseEnter:d=>{d.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.background="transparent"},children:[S.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[u&&S.jsx(cr,{status:u}),S.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text-tertiary)"},children:r})]}),s&&S.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:s})]})}),(()=>{const d=(i.dependencies||[]).filter(g=>g.type==="blocks"&&g.issue_id===i.id);return d.length===0?null:S.jsx(nl,{label:"Blocked By",children:S.jsx("div",{className:"space-y-1",children:d.map(g=>S.jsx("a",{href:`#/detail/${g.depends_on_id}`,className:"block text-xs font-mono px-1 py-0.5 transition-colors",style:{color:"var(--accent)"},onMouseEnter:p=>{p.currentTarget.style.textDecoration="underline"},onMouseLeave:p=>{p.currentTarget.style.textDecoration="none"},children:g.depends_on_id},g.depends_on_id))})})})(),i.dependents&&i.dependents.length>0&&S.jsx(nl,{label:"Children / Dependents",children:S.jsx("div",{className:"space-y-1",children:i.dependents.map(d=>S.jsxs("a",{href:`#/detail/${d.id}`,className:"block text-xs rounded px-1 py-1.5 -mx-1 transition-colors",onMouseEnter:g=>{g.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:g=>{g.currentTarget.style.background="transparent"},children:[S.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[S.jsx(cr,{status:d.status}),S.jsx("span",{className:"font-mono",style:{color:"var(--text-tertiary)"},children:d.id})]}),d.title&&S.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:d.title})]},d.id))})})]})}function ME({issueId:i}){const l=Eg(),[r,s]=F.useState(""),u=async()=>{r.trim()&&(await l.addComment(i,r.trim()),s(""))};return S.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[S.jsx("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:"Comments"}),S.jsx("div",{className:"flex gap-2",children:S.jsx("textarea",{value:r,onChange:f=>s(f.target.value),placeholder:"Add a comment... (Ctrl+Enter to submit)",rows:3,className:"flex-1 p-2 text-sm rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:f=>{f.currentTarget.style.borderColor="var(--accent)"},onBlur:f=>{f.currentTarget.style.borderColor="var(--border-default)"},onKeyDown:f=>{f.key==="Enter"&&(f.ctrlKey||f.metaKey)&&u()}})}),S.jsx("button",{onClick:u,className:"mt-2 px-3 py-1.5 text-sm rounded-md font-medium transition-colors",style:{background:"var(--bg-hover)",color:"var(--text-primary)",border:"1px solid var(--border-default)"},onMouseEnter:f=>{f.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:f=>{f.currentTarget.style.borderColor="var(--border-default)"},children:"Add Comment"})]})}function zE({issueId:i}){const{issues:l,loading:r}=Xa("issue-detail",{id:i}),s=Eg(),u=l[0];return r?S.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Loading..."}):u?S.jsxs("div",{className:"flex h-full",style:{background:"var(--bg-base)"},children:[S.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-5",children:[S.jsxs("div",{className:"flex items-center gap-2 text-sm",style:{color:"var(--text-tertiary)"},children:[S.jsx("a",{href:"#/list",className:"flex items-center gap-1 transition-colors",style:{color:"var(--text-tertiary)"},onMouseEnter:f=>{f.currentTarget.style.color="var(--accent)"},onMouseLeave:f=>{f.currentTarget.style.color="var(--text-tertiary)"},children:"← List"}),S.jsx("span",{children:"/"}),S.jsx("span",{className:"font-mono",children:u.id})]}),S.jsx("h1",{className:"text-2xl font-bold",style:{color:"var(--text-primary)"},children:u.title}),S.jsx(Qs,{label:"Description",value:u.description||"",onSave:f=>s.editText({id:u.id,field:"description",value:f})}),S.jsx(Qs,{label:"Acceptance Criteria",value:u.acceptance||"",placeholder:"Add acceptance criteria...",onSave:f=>s.editText({id:u.id,field:"acceptance",value:f})}),S.jsx(Qs,{label:"Notes",value:u.notes||"",placeholder:"Add notes...",onSave:f=>s.editText({id:u.id,field:"notes",value:f})}),S.jsx(Qs,{label:"Design",value:u.design||"",placeholder:"Add design notes...",onSave:f=>s.editText({id:u.id,field:"design",value:f})}),u.issue_type==="epic"&&u.dependents&&u.dependents.length>0&&S.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[S.jsxs("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:["Children (",u.closed_children??0," / ",u.total_children??u.dependents.length,")"]}),S.jsx("div",{className:"space-y-0.5",children:u.dependents.map(f=>S.jsxs("a",{href:`#/detail/${f.id}`,className:"flex items-center gap-2.5 px-2 py-2 rounded-md transition-colors",style:{opacity:f.status==="closed"?.6:1},onMouseEnter:d=>{d.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.background="transparent"},children:[S.jsx(cr,{status:f.status}),S.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:f.id}),S.jsx("span",{className:"text-sm truncate",style:{color:"var(--text-primary)"},children:f.title})]},f.id))})]}),S.jsx(ME,{issueId:u.id})]}),S.jsx(wE,{issue:u,onUpdate:s})]}):S.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Issue not found"})}function jE(i){const[l,r]=F.useState(""),s=F.useMemo(()=>{if(!l.trim())return i;const u=l.toLowerCase();return i.filter(f=>f.id.toLowerCase().includes(u)||f.title.toLowerCase().includes(u)||(f.description||"").toLowerCase().includes(u))},[i,l]);return{query:l,setQuery:r,results:s}}function UE(){const[i,l]=F.useState(!1),{issues:r}=Xa("all-issues"),{query:s,setQuery:u,results:f}=jE(r),[d,g]=F.useState(0),p=F.useRef(null);F.useEffect(()=>{const b=E=>{var D;const A=(D=E.target)==null?void 0:D.tagName;E.key==="k"&&(E.metaKey||E.ctrlKey)&&A!=="TEXTAREA"&&(E.preventDefault(),l(!0)),E.key==="Escape"&&i&&(E.preventDefault(),l(!1),u(""),g(0))};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[i,u]),F.useEffect(()=>{i&&setTimeout(()=>{var b;return(b=p.current)==null?void 0:b.focus()},0)},[i]),F.useEffect(()=>g(0),[f]);const m=b=>{const E=f.slice(0,20);b.key==="ArrowDown"&&(b.preventDefault(),g(A=>Math.min(A+1,E.length-1))),b.key==="ArrowUp"&&(b.preventDefault(),g(A=>Math.max(A-1,0))),b.key==="Enter"&&E[d]&&(window.location.hash=`#/detail/${E[d].id}`,l(!1),u(""))};if(!i)return null;const y=f.slice(0,20);return S.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>{l(!1),u("")},children:[S.jsx("div",{className:"absolute inset-0",style:{background:"var(--bg-overlay)"}}),S.jsxs("div",{className:"relative w-full max-w-lg overflow-hidden",style:{background:"var(--bg-elevated)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.15)"},onClick:b=>b.stopPropagation(),children:[S.jsx("input",{ref:p,type:"text",value:s,onChange:b=>u(b.target.value),onKeyDown:m,placeholder:"Search issues...",className:"w-full px-4 py-3 text-sm outline-none",style:{borderBottom:"1px solid var(--border-subtle)",background:"transparent",color:"var(--text-primary)"}}),S.jsxs("div",{className:"max-h-80 overflow-y-auto",children:[y.length===0&&s&&S.jsx("div",{className:"px-4 py-6 text-sm text-center",style:{color:"var(--text-tertiary)"},children:"No results"}),y.map((b,E)=>S.jsxs("button",{onClick:()=>{window.location.hash=`#/detail/${b.id}`,l(!1),u("")},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-left transition-colors",style:{background:E===d?"var(--bg-hover)":"transparent"},onMouseEnter:A=>{A.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:A=>{A.currentTarget.style.background=E===d?"var(--bg-hover)":"transparent"},children:[S.jsx("span",{className:"font-mono text-xs w-28 shrink-0",style:{color:"var(--text-tertiary)"},children:b.id}),S.jsx(cr,{status:b.status}),S.jsx("span",{className:"flex-1 truncate",style:{color:"var(--text-primary)"},children:b.title}),S.jsx(df,{priority:b.priority})]},b.id))]}),S.jsx("div",{className:"px-4 py-2 text-xs",style:{color:"var(--text-tertiary)",borderTop:"1px solid var(--border-subtle)"},children:"↑↓ navigate · ↵ open · esc close"})]})]})}function BE(){return S.jsxs(Xv,{children:[S.jsx(UE,{}),S.jsx($v,{children:i=>{if(i.startsWith("#/detail/")){const l=i.replace("#/detail/","");return S.jsx(zE,{issueId:l},l)}return i.startsWith("#/list")?S.jsx(h0,{}):i.startsWith("#/board")||i===""||i==="#/"||i==="#"?S.jsx(a0,{}):S.jsx("div",{className:"p-6 text-stone-400",children:"View not implemented yet"})}})]})}qv.createRoot(document.getElementById("root")).render(S.jsx(F.StrictMode,{children:S.jsx(BE,{})}));
|
|
116
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function L1(i,l,r,s){const u=s.schema,f=u.space==="svg"?!1:s.settings.omitOptionalTags;let d=u.space==="svg"?s.settings.closeEmptyElements:s.settings.voids.includes(i.tagName.toLowerCase());const g=[];let p;u.space==="html"&&i.tagName==="svg"&&(s.schema=u_);const m=k1(s,i.properties),y=s.all(u.space==="html"&&i.tagName==="template"?i.content:i);return s.schema=u,y&&(d=!1),(m||!f||!T1(i,l,r))&&(g.push("<",i.tagName,m?" "+m:""),d&&(u.space==="svg"||s.settings.closeSelfClosing)&&(p=m.charAt(m.length-1),(!s.settings.tightSelfClosing||p==="/"||p&&p!=='"'&&p!=="'")&&g.push(" "),g.push("/")),g.push(">")),g.push(y),!d&&(!f||!Df(i,l,r))&&g.push("</"+i.tagName+">"),g.join("")}function k1(i,l){const r=[];let s=-1,u;if(l){for(u in l)if(l[u]!==null&&l[u]!==void 0){const f=N1(i,u,l[u]);f&&r.push(f)}}for(;++s<r.length;){const f=i.settings.tightAttributes?r[s].charAt(r[s].length-1):void 0;s!==r.length-1&&f!=='"'&&f!=="'"&&(r[s]+=" ")}return r.join("")}function N1(i,l,r){const s=zS(i.schema,l),u=i.settings.allowParseErrors&&i.schema.space==="html"?0:1,f=i.settings.allowDangerousCharacters?0:1;let d=i.quote,g;if(s.overloadedBoolean&&(r===s.attribute||r==="")?r=!0:(s.boolean||s.overloadedBoolean)&&(typeof r!="string"||r===s.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const p=Ya(s.attribute,Object.assign({},i.settings.characterReferences,{subset:Xs.name[u][f]}));return r===!0||(r=Array.isArray(r)?(s.commaSeparated?s1:o1)(r,{padLeft:!i.settings.tightCommaSeparatedLists}):String(r),i.settings.collapseEmptyAttributes&&!r)?p:(i.settings.preferUnquoted&&(g=Ya(r,Object.assign({},i.settings.characterReferences,{attribute:!0,subset:Xs.unquoted[u][f]}))),g!==r&&(i.settings.quoteSmart&&og(r,d)>og(r,i.alternative)&&(d=i.alternative),g=d+Ya(r,Object.assign({},i.settings.characterReferences,{subset:(d==="'"?Xs.single:Xs.double)[u][f],attribute:!0}))+d),p+(g&&"="+g))}const w1=["<","&"];function m_(i,l,r,s){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?i.value:Ya(i.value,Object.assign({},s.settings.characterReferences,{subset:w1}))}function M1(i,l,r,s){return s.settings.allowDangerousHtml?i.value:m_(i,l,r,s)}function z1(i,l,r,s){return s.all(i)}const j1=HS("type",{invalid:U1,unknown:B1,handlers:{comment:i1,doctype:r1,element:L1,raw:M1,root:z1,text:m_}});function U1(i){throw new Error("Expected node, not `"+i+"`")}function B1(i){const l=i;throw new Error("Cannot compile unknown node `"+l.type+"`")}const H1={},V1={},G1=[];function I1(i,l){const r=H1,s=r.quote||'"',u=s==='"'?"'":'"';if(s!=='"'&&s!=="'")throw new Error("Invalid quote `"+s+"`, expected `'` or `\"`");return{one:q1,all:P1,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||DS,characterReferences:r.characterReferences||V1,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?u_:BS,quote:s,alternative:u}.one(Array.isArray(i)?{type:"root",children:i}:i,void 0,void 0)}function q1(i,l,r){return j1(i,l,r,this)}function P1(i){const l=[],r=i&&i.children||G1;let s=-1;for(;++s<r.length;)l[s]=this.one(r[s],s,i);return l.join("")}function Y1(i){return Array.isArray(i)?i:[i]}function _o(i,l=!1){var f;const r=i.split(/(\r?\n)/g);let s=0;const u=[];for(let d=0;d<r.length;d+=2){const g=l?r[d]+(r[d+1]||""):r[d];u.push([g,s]),s+=r[d].length,s+=((f=r[d+1])==null?void 0:f.length)||0}return u}function Lf(i){return!i||["plaintext","txt","text","plain"].includes(i)}function p_(i){return i==="ansi"||Lf(i)}function kf(i){return i==="none"}function g_(i){return kf(i)}function __(i,l){var s;if(!l)return i;i.properties||(i.properties={}),(s=i.properties).class||(s.class=[]),typeof i.properties.class=="string"&&(i.properties.class=i.properties.class.split(/\s+/g)),Array.isArray(i.properties.class)||(i.properties.class=[]);const r=Array.isArray(l)?l:l.split(/\s+/g);for(const u of r)u&&!i.properties.class.includes(u)&&i.properties.class.push(u);return i}function X1(i,l){let r=0;const s=[];for(const u of l)u>r&&s.push({...i,content:i.content.slice(r,u),offset:i.offset+r}),r=u;return r<i.content.length&&s.push({...i,content:i.content.slice(r),offset:i.offset+r}),s}function Q1(i,l){const r=Array.from(l instanceof Set?l:new Set(l)).sort((s,u)=>s-u);return r.length?i.map(s=>s.flatMap(u=>{const f=r.filter(d=>u.offset<d&&d<u.offset+u.content.length).map(d=>d-u.offset).sort((d,g)=>d-g);return f.length?X1(u,f):u})):i}async function y_(i){return Promise.resolve(typeof i=="function"?i():i).then(l=>l.default||l)}function so(i,l){const r=typeof i=="string"?{}:{...i.colorReplacements},s=typeof i=="string"?i:i.name;for(const[u,f]of Object.entries((l==null?void 0:l.colorReplacements)||{}))typeof f=="string"?r[u]=f:u===s&&Object.assign(r,f);return r}function ta(i,l){return i&&((l==null?void 0:l[i==null?void 0:i.toLowerCase()])||i)}function v_(i){const l={};return i.color&&(l.color=i.color),i.bgColor&&(l["background-color"]=i.bgColor),i.fontStyle&&(i.fontStyle&rl.Italic&&(l["font-style"]="italic"),i.fontStyle&rl.Bold&&(l["font-weight"]="bold"),i.fontStyle&rl.Underline&&(l["text-decoration"]="underline")),l}function Z1(i){return typeof i=="string"?i:Object.entries(i).map(([l,r])=>`${l}:${r}`).join(";")}function K1(i){const l=_o(i,!0).map(([u])=>u);function r(u){if(u===i.length)return{line:l.length-1,character:l[l.length-1].length};let f=u,d=0;for(const g of l){if(f<g.length)break;f-=g.length,d++}return{line:d,character:f}}function s(u,f){let d=0;for(let g=0;g<u;g++)d+=l[g].length;return d+=f,d}return{lines:l,indexToPos:r,posToIndex:s}}class Rt extends Error{constructor(l){super(l),this.name="ShikiError"}}const b_=new WeakMap;function yo(i,l){b_.set(i,l)}function mr(i){return b_.get(i)}class Ka{constructor(...l){w(this,"_stacks",{});w(this,"lang");if(l.length===2){const[r,s]=l;this.lang=s,this._stacks=r}else{const[r,s,u]=l;this.lang=s,this._stacks={[u]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(l,r){return new Ka(Object.fromEntries(Y1(r).map(s=>[s,rf])),l)}getInternalStack(l=this.theme){return this._stacks[l]}get scopes(){return dg(this._stacks[this.theme])}getScopes(l=this.theme){return dg(this._stacks[l])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function dg(i){const l=[],r=new Set;function s(u){var d;if(r.has(u))return;r.add(u);const f=(d=u==null?void 0:u.nameScopesList)==null?void 0:d.scopeName;f&&l.push(f),u.parent&&s(u.parent)}return s(i),l}function $1(i,l){if(!(i instanceof Ka))throw new Rt("Invalid grammar state");return i.getInternalStack(l)}function J1(){const i=new WeakMap;function l(r){if(!i.has(r.meta)){let s=function(d){if(typeof d=="number"){if(d<0||d>r.source.length)throw new Rt(`Invalid decoration offset: ${d}. Code length: ${r.source.length}`);return{...u.indexToPos(d),offset:d}}else{const g=u.lines[d.line];if(g===void 0)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Lines length: ${u.lines.length}`);if(d.character<0||d.character>g.length)throw new Rt(`Invalid decoration position ${JSON.stringify(d)}. Line ${d.line} length: ${g.length}`);return{...d,offset:u.posToIndex(d.line,d.character)}}};const u=K1(r.source),f=(r.options.decorations||[]).map(d=>({...d,start:s(d.start),end:s(d.end)}));W1(f),i.set(r.meta,{decorations:f,converter:u,source:r.source})}return i.get(r.meta)}return{name:"shiki:decorations",tokens(r){var d;if(!((d=this.options.decorations)!=null&&d.length))return;const u=l(this).decorations.flatMap(g=>[g.start.offset,g.end.offset]);return Q1(r,u)},code(r){var y;if(!((y=this.options.decorations)!=null&&y.length))return;const s=l(this),u=Array.from(r.children).filter(S=>S.type==="element"&&S.tagName==="span");if(u.length!==s.converter.lines.length)throw new Rt(`Number of lines in code element (${u.length}) does not match the number of lines in the source (${s.converter.lines.length}). Failed to apply decorations.`);function f(S,E,A,C){const B=u[S];let P="",U=-1,I=-1;if(E===0&&(U=0),A===0&&(I=0),A===Number.POSITIVE_INFINITY&&(I=B.children.length),U===-1||I===-1)for(let Z=0;Z<B.children.length;Z++)P+=S_(B.children[Z]),U===-1&&P.length===E&&(U=Z+1),I===-1&&P.length===A&&(I=Z+1);if(U===-1)throw new Rt(`Failed to find start index for decoration ${JSON.stringify(C.start)}`);if(I===-1)throw new Rt(`Failed to find end index for decoration ${JSON.stringify(C.end)}`);const Y=B.children.slice(U,I);if(!C.alwaysWrap&&Y.length===B.children.length)g(B,C,"line");else if(!C.alwaysWrap&&Y.length===1&&Y[0].type==="element")g(Y[0],C,"token");else{const Z={type:"element",tagName:"span",properties:{},children:Y};g(Z,C,"wrapper"),B.children.splice(U,Y.length,Z)}}function d(S,E){u[S]=g(u[S],E,"line")}function g(S,E,A){var P;const C=E.properties||{},B=E.transform||(U=>U);return S.tagName=E.tagName||"span",S.properties={...S.properties,...C,class:S.properties.class},(P=E.properties)!=null&&P.class&&__(S,E.properties.class),S=B(S,A)||S,S}const p=[],m=s.decorations.sort((S,E)=>E.start.offset-S.start.offset);for(const S of m){const{start:E,end:A}=S;if(E.line===A.line)f(E.line,E.character,A.character,S);else if(E.line<A.line){f(E.line,E.character,Number.POSITIVE_INFINITY,S);for(let C=E.line+1;C<A.line;C++)p.unshift(()=>d(C,S));f(A.line,0,A.character,S)}}p.forEach(S=>S())}}}function W1(i){for(let l=0;l<i.length;l++){const r=i[l];if(r.start.offset>r.end.offset)throw new Rt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let s=l+1;s<i.length;s++){const u=i[s],f=r.start.offset<u.start.offset&&u.start.offset<r.end.offset,d=r.start.offset<u.end.offset&&u.end.offset<r.end.offset,g=u.start.offset<r.start.offset&&r.start.offset<u.end.offset,p=u.start.offset<r.end.offset&&r.end.offset<u.end.offset;if(f||d||g||p){if(d&&d||g&&p)continue;throw new Rt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(u.start)} intersect.`)}}}}function S_(i){return i.type==="text"?i.value:i.type==="element"?i.children.map(S_).join(""):""}const F1=[J1()];function oo(i){return[...i.transformers||[],...F1]}var na=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Qc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function eE(i,l){const r=i.indexOf("\x1B[",l);if(r!==-1){const s=i.indexOf("m",r);return{sequence:i.substring(r+2,s).split(";"),startPosition:r,position:s+1}}return{position:i.length}}function hg(i,l){let r=1;const s=i[l+r++];let u;if(s==="2"){const f=[i[l+r++],i[l+r++],i[l+r]].map(d=>Number.parseInt(d));f.length===3&&!f.some(d=>Number.isNaN(d))&&(u={type:"rgb",rgb:f})}else if(s==="5"){const f=Number.parseInt(i[l+r]);Number.isNaN(f)||(u={type:"table",index:Number(f)})}return[r,u]}function tE(i){const l=[];for(let r=0;r<i.length;r++){const s=i[r],u=Number.parseInt(s);if(!Number.isNaN(u))if(u===0)l.push({type:"resetAll"});else if(u<=9)Qc[u]&&l.push({type:"setDecoration",value:Qc[u]});else if(u<=29){const f=Qc[u-20];f&&l.push({type:"resetDecoration",value:f})}else if(u<=37)l.push({type:"setForegroundColor",value:{type:"named",name:na[u-30]}});else if(u===38){const[f,d]=hg(i,r);d&&l.push({type:"setForegroundColor",value:d}),r+=f}else if(u===39)l.push({type:"resetForegroundColor"});else if(u<=47)l.push({type:"setBackgroundColor",value:{type:"named",name:na[u-40]}});else if(u===48){const[f,d]=hg(i,r);d&&l.push({type:"setBackgroundColor",value:d}),r+=f}else u===49?l.push({type:"resetBackgroundColor"}):u>=90&&u<=97?l.push({type:"setForegroundColor",value:{type:"named",name:na[u-90+8]}}):u>=100&&u<=107&&l.push({type:"setBackgroundColor",value:{type:"named",name:na[u-100+8]}})}return l}function nE(){let i=null,l=null,r=new Set;return{parse(s){const u=[];let f=0;do{const d=eE(s,f),g=d.sequence?s.substring(f,d.startPosition):s.substring(f);if(g.length>0&&u.push({value:g,foreground:i,background:l,decorations:new Set(r)}),d.sequence){const p=tE(d.sequence);for(const m of p)m.type==="resetAll"?(i=null,l=null,r.clear()):m.type==="resetForegroundColor"?i=null:m.type==="resetBackgroundColor"?l=null:m.type==="resetDecoration"&&r.delete(m.value);for(const m of p)m.type==="setForegroundColor"?i=m.value:m.type==="setBackgroundColor"?l=m.value:m.type==="setDecoration"&&r.add(m.value)}f=d.position}while(f<s.length);return u}}}var lE={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function aE(i=lE){function l(g){return i[g]}function r(g){return`#${g.map(p=>Math.max(0,Math.min(p,255)).toString(16).padStart(2,"0")).join("")}`}let s;function u(){if(s)return s;s=[];for(let m=0;m<na.length;m++)s.push(l(na[m]));let g=[0,95,135,175,215,255];for(let m=0;m<6;m++)for(let y=0;y<6;y++)for(let S=0;S<6;S++)s.push(r([g[m],g[y],g[S]]));let p=8;for(let m=0;m<24;m++,p+=10)s.push(r([p,p,p]));return s}function f(g){return u()[g]}function d(g){switch(g.type){case"named":return l(g.name);case"rgb":return r(g.rgb);case"table":return f(g.index)}}return{value:d}}function iE(i,l,r){const s=so(i,r),u=_o(l),f=aE(Object.fromEntries(na.map(g=>{var p;return[g,(p=i.colors)==null?void 0:p[`terminal.ansi${g[0].toUpperCase()}${g.substring(1)}`]]}))),d=nE();return u.map(g=>d.parse(g[0]).map(p=>{let m,y;p.decorations.has("reverse")?(m=p.background?f.value(p.background):i.bg,y=p.foreground?f.value(p.foreground):i.fg):(m=p.foreground?f.value(p.foreground):i.fg,y=p.background?f.value(p.background):void 0),m=ta(m,s),y=ta(y,s),p.decorations.has("dim")&&(m=rE(m));let S=rl.None;return p.decorations.has("bold")&&(S|=rl.Bold),p.decorations.has("italic")&&(S|=rl.Italic),p.decorations.has("underline")&&(S|=rl.Underline),{content:p.value,offset:g[1],color:m,bgColor:y,fontStyle:S}}))}function rE(i){const l=i.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(l)if(l[3]){const s=Math.round(Number.parseInt(l[3],16)/2).toString(16).padStart(2,"0");return`#${l[1]}${l[2]}${s}`}else return l[2]?`#${l[1]}${l[2]}80`:`#${Array.from(l[1]).map(s=>`${s}${s}`).join("")}80`;const r=i.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:i}function Nf(i,l,r={}){const{lang:s="text",theme:u=i.getLoadedThemes()[0]}=r;if(Lf(s)||kf(u))return _o(l).map(p=>[{content:p[0],offset:p[1]}]);const{theme:f,colorMap:d}=i.setTheme(u);if(s==="ansi")return iE(f,l,r);const g=i.getLanguage(s);if(r.grammarState){if(r.grammarState.lang!==g.name)throw new sl(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${g.name}"`);if(!r.grammarState.themes.includes(f.name))throw new sl(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${f.name}"`)}return oE(l,g,f,d,r)}function sE(...i){if(i.length===2)return mr(i[1]);const[l,r,s={}]=i,{lang:u="text",theme:f=l.getLoadedThemes()[0]}=s;if(Lf(u)||kf(f))throw new sl("Plain language does not have grammar state");if(u==="ansi")throw new sl("ANSI language does not have grammar state");const{theme:d,colorMap:g}=l.setTheme(f),p=l.getLanguage(u);return new Ka(uo(r,p,d,g,s).stateStack,p.name,d.name)}function oE(i,l,r,s,u){const f=uo(i,l,r,s,u),d=new Ka(uo(i,l,r,s,u).stateStack,l.name,r.name);return yo(f.tokens,d),f.tokens}function uo(i,l,r,s,u){const f=so(r,u),{tokenizeMaxLineLength:d=0,tokenizeTimeLimit:g=500}=u,p=_o(i);let m=u.grammarState?$1(u.grammarState,r.name)??rf:u.grammarContextCode!=null?uo(u.grammarContextCode,l,r,s,{...u,grammarState:void 0,grammarContextCode:void 0}).stateStack:rf,y=[];const S=[];for(let E=0,A=p.length;E<A;E++){const[C,B]=p[E];if(C===""){y=[],S.push([]);continue}if(d>0&&C.length>=d){y=[],S.push([{content:C,offset:B,color:"",fontStyle:0}]);continue}let P,U,I;u.includeExplanation&&(P=l.tokenizeLine(C,m),U=P.tokens,I=0);const Y=l.tokenizeLine2(C,m,g),Z=Y.tokens.length/2;for(let ae=0;ae<Z;ae++){const fe=Y.tokens[2*ae],te=ae+1<Z?Y.tokens[2*ae+2]:C.length;if(fe===te)continue;const Ue=Y.tokens[2*ae+1],pt=ta(s[Qa.getForeground(Ue)],f),Lt=Qa.getFontStyle(Ue),Re={content:C.substring(fe,te),offset:B+fe,color:pt,fontStyle:Lt};if(u.includeExplanation){const Ke=[];if(u.includeExplanation!=="scopeName")for(const Ye of r.settings){let Fe;switch(typeof Ye.scope){case"string":Fe=Ye.scope.split(/,/).map(z=>z.trim());break;case"object":Fe=Ye.scope;break;default:continue}Ke.push({settings:Ye,selectors:Fe.map(z=>z.split(/ /))})}Re.explanation=[];let kt=0;for(;fe+kt<te;){const Ye=U[I],Fe=C.substring(Ye.startIndex,Ye.endIndex);kt+=Fe.length,Re.explanation.push({content:Fe,scopes:u.includeExplanation==="scopeName"?uE(Ye.scopes):cE(Ke,Ye.scopes)}),I+=1}}y.push(Re)}S.push(y),y=[],m=Y.ruleStack}return{tokens:S,stateStack:m}}function uE(i){return i.map(l=>({scopeName:l}))}function cE(i,l){const r=[];for(let s=0,u=l.length;s<u;s++){const f=l[s];r[s]={scopeName:f,themeMatches:dE(i,f,l.slice(0,s))}}return r}function mg(i,l){return i===l||l.substring(0,i.length)===i&&l[i.length]==="."}function fE(i,l,r){if(!mg(i[i.length-1],l))return!1;let s=i.length-2,u=r.length-1;for(;s>=0&&u>=0;)mg(i[s],r[u])&&(s-=1),u-=1;return s===-1}function dE(i,l,r){const s=[];for(const{selectors:u,settings:f}of i)for(const d of u)if(fE(d,l,r)){s.push(f);break}return s}function E_(i,l,r){const s=Object.entries(r.themes).filter(p=>p[1]).map(p=>({color:p[0],theme:p[1]})),u=s.map(p=>{const m=Nf(i,l,{...r,theme:p.theme}),y=mr(m),S=typeof p.theme=="string"?p.theme:p.theme.name;return{tokens:m,state:y,theme:S}}),f=hE(...u.map(p=>p.tokens)),d=f[0].map((p,m)=>p.map((y,S)=>{const E={content:y.content,variants:{},offset:y.offset};return"includeExplanation"in r&&r.includeExplanation&&(E.explanation=y.explanation),f.forEach((A,C)=>{const{content:B,explanation:P,offset:U,...I}=A[m][S];E.variants[s[C].color]=I}),E})),g=u[0].state?new Ka(Object.fromEntries(u.map(p=>{var m;return[p.theme,(m=p.state)==null?void 0:m.getInternalStack(p.theme)]})),u[0].state.lang):void 0;return g&&yo(d,g),d}function hE(...i){const l=i.map(()=>[]),r=i.length;for(let s=0;s<i[0].length;s++){const u=i.map(p=>p[s]),f=l.map(()=>[]);l.forEach((p,m)=>p.push(f[m]));const d=u.map(()=>0),g=u.map(p=>p[0]);for(;g.every(p=>p);){const p=Math.min(...g.map(m=>m.content.length));for(let m=0;m<r;m++){const y=g[m];y.content.length===p?(f[m].push(y),d[m]+=1,g[m]=u[m][d[m]]):(f[m].push({...y,content:y.content.slice(0,p)}),g[m]={...y,content:y.content.slice(p),offset:y.offset+p})}}}return l}function co(i,l,r){let s,u,f,d,g,p;if("themes"in r){const{defaultColor:m="light",cssVariablePrefix:y="--shiki-"}=r,S=Object.entries(r.themes).filter(P=>P[1]).map(P=>({color:P[0],theme:P[1]})).sort((P,U)=>P.color===m?-1:U.color===m?1:0);if(S.length===0)throw new sl("`themes` option must not be empty");const E=E_(i,l,r);if(p=mr(E),m&&!S.find(P=>P.color===m))throw new sl(`\`themes\` option must contain the defaultColor key \`${m}\``);const A=S.map(P=>i.getTheme(P.theme)),C=S.map(P=>P.color);f=E.map(P=>P.map(U=>mE(U,C,y,m))),p&&yo(f,p);const B=S.map(P=>so(P.theme,r));u=S.map((P,U)=>(U===0&&m?"":`${y+P.color}:`)+(ta(A[U].fg,B[U])||"inherit")).join(";"),s=S.map((P,U)=>(U===0&&m?"":`${y+P.color}-bg:`)+(ta(A[U].bg,B[U])||"inherit")).join(";"),d=`shiki-themes ${A.map(P=>P.name).join(" ")}`,g=m?void 0:[u,s].join(";")}else if("theme"in r){const m=so(r.theme,r);f=Nf(i,l,r);const y=i.getTheme(r.theme);s=ta(y.bg,m),u=ta(y.fg,m),d=y.name,p=mr(f)}else throw new sl("Invalid options, either `theme` or `themes` must be provided");return{tokens:f,fg:u,bg:s,themeName:d,rootStyle:g,grammarState:p}}function mE(i,l,r,s){const u={content:i.content,explanation:i.explanation,offset:i.offset},f=l.map(p=>v_(i.variants[p])),d=new Set(f.flatMap(p=>Object.keys(p))),g={};return f.forEach((p,m)=>{for(const y of d){const S=p[y]||"inherit";if(m===0&&s)g[y]=S;else{const E=y==="color"?"":y==="background-color"?"-bg":`-${y}`,A=r+l[m]+(y==="color"?"":E);g[A]=S}}}),u.htmlStyle=g,u}function fo(i,l,r,s={meta:{},options:r,codeToHast:(u,f)=>fo(i,u,f),codeToTokens:(u,f)=>co(i,u,f)}){var A,C;let u=l;for(const B of oo(r))u=((A=B.preprocess)==null?void 0:A.call(s,u,r))||u;let{tokens:f,fg:d,bg:g,themeName:p,rootStyle:m,grammarState:y}=co(i,u,r);const{mergeWhitespaces:S=!0}=r;S===!0?f=gE(f):S==="never"&&(f=_E(f));const E={...s,get source(){return u}};for(const B of oo(r))f=((C=B.tokens)==null?void 0:C.call(E,f))||f;return pE(f,{...r,fg:d,bg:g,themeName:p,rootStyle:m},E,y)}function pE(i,l,r,s=mr(i)){var C,B,P;const u=oo(l),f=[],d={type:"root",children:[]},{structure:g="classic",tabindex:p="0"}=l;let m={type:"element",tagName:"pre",properties:{class:`shiki ${l.themeName||""}`,style:l.rootStyle||`background-color:${l.bg};color:${l.fg}`,...p!==!1&&p!=null?{tabindex:p.toString()}:{},...Object.fromEntries(Array.from(Object.entries(l.meta||{})).filter(([U])=>!U.startsWith("_")))},children:[]},y={type:"element",tagName:"code",properties:{},children:f};const S=[],E={...r,structure:g,addClassToHast:__,get source(){return r.source},get tokens(){return i},get options(){return l},get root(){return d},get pre(){return m},get code(){return y},get lines(){return S}};if(i.forEach((U,I)=>{var ae,fe;I&&(g==="inline"?d.children.push({type:"element",tagName:"br",properties:{},children:[]}):g==="classic"&&f.push({type:"text",value:`
|
|
117
|
+
`}));let Y={type:"element",tagName:"span",properties:{class:"line"},children:[]},Z=0;for(const te of U){let Ue={type:"element",tagName:"span",properties:{...te.htmlAttrs},children:[{type:"text",value:te.content}]};te.htmlStyle;const pt=Z1(te.htmlStyle||v_(te));pt&&(Ue.properties.style=pt);for(const Lt of u)Ue=((ae=Lt==null?void 0:Lt.span)==null?void 0:ae.call(E,Ue,I+1,Z,Y,te))||Ue;g==="inline"?d.children.push(Ue):g==="classic"&&Y.children.push(Ue),Z+=te.content.length}if(g==="classic"){for(const te of u)Y=((fe=te==null?void 0:te.line)==null?void 0:fe.call(E,Y,I+1))||Y;S.push(Y),f.push(Y)}}),g==="classic"){for(const U of u)y=((C=U==null?void 0:U.code)==null?void 0:C.call(E,y))||y;m.children.push(y);for(const U of u)m=((B=U==null?void 0:U.pre)==null?void 0:B.call(E,m))||m;d.children.push(m)}let A=d;for(const U of u)A=((P=U==null?void 0:U.root)==null?void 0:P.call(E,A))||A;return s&&yo(A,s),A}function gE(i){return i.map(l=>{const r=[];let s="",u=0;return l.forEach((f,d)=>{const p=!(f.fontStyle&&f.fontStyle&rl.Underline);p&&f.content.match(/^\s+$/)&&l[d+1]?(u||(u=f.offset),s+=f.content):s?(p?r.push({...f,offset:u,content:s+f.content}):r.push({content:s,offset:u},f),u=0,s=""):r.push(f)}),r})}function _E(i){return i.map(l=>l.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const s=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!s)return r;const[,u,f,d]=s;if(!u&&!d)return r;const g=[{...r,offset:r.offset+u.length,content:f}];return u&&g.unshift({content:u,offset:r.offset}),d&&g.push({content:d,offset:r.offset+u.length+f.length}),g}))}function yE(i,l,r){var f;const s={meta:{},options:r,codeToHast:(d,g)=>fo(i,d,g),codeToTokens:(d,g)=>co(i,d,g)};let u=I1(fo(i,l,r,s));for(const d of oo(r))u=((f=d.postprocess)==null?void 0:f.call(s,u,r))||u;return u}const pg={light:"#333333",dark:"#bbbbbb"},gg={light:"#fffffe",dark:"#1e1e1e"},_g="__shiki_resolved";function wf(i){var g,p,m,y,S;if(i!=null&&i[_g])return i;const l={...i};l.tokenColors&&!l.settings&&(l.settings=l.tokenColors,delete l.tokenColors),l.type||(l.type="dark"),l.colorReplacements={...l.colorReplacements},l.settings||(l.settings=[]);let{bg:r,fg:s}=l;if(!r||!s){const E=l.settings?l.settings.find(A=>!A.name&&!A.scope):void 0;(g=E==null?void 0:E.settings)!=null&&g.foreground&&(s=E.settings.foreground),(p=E==null?void 0:E.settings)!=null&&p.background&&(r=E.settings.background),!s&&((m=l==null?void 0:l.colors)!=null&&m["editor.foreground"])&&(s=l.colors["editor.foreground"]),!r&&((y=l==null?void 0:l.colors)!=null&&y["editor.background"])&&(r=l.colors["editor.background"]),s||(s=l.type==="light"?pg.light:pg.dark),r||(r=l.type==="light"?gg.light:gg.dark),l.fg=s,l.bg=r}l.settings[0]&&l.settings[0].settings&&!l.settings[0].scope||l.settings.unshift({settings:{foreground:l.fg,background:l.bg}});let u=0;const f=new Map;function d(E){var C;if(f.has(E))return f.get(E);u+=1;const A=`#${u.toString(16).padStart(8,"0").toLowerCase()}`;return(C=l.colorReplacements)!=null&&C[`#${A}`]?d(E):(f.set(E,A),A)}l.settings=l.settings.map(E=>{var P,U;const A=((P=E.settings)==null?void 0:P.foreground)&&!E.settings.foreground.startsWith("#"),C=((U=E.settings)==null?void 0:U.background)&&!E.settings.background.startsWith("#");if(!A&&!C)return E;const B={...E,settings:{...E.settings}};if(A){const I=d(E.settings.foreground);l.colorReplacements[I]=E.settings.foreground,B.settings.foreground=I}if(C){const I=d(E.settings.background);l.colorReplacements[I]=E.settings.background,B.settings.background=I}return B});for(const E of Object.keys(l.colors||{}))if((E==="editor.foreground"||E==="editor.background"||E.startsWith("terminal.ansi"))&&!((S=l.colors[E])!=null&&S.startsWith("#"))){const A=d(l.colors[E]);l.colorReplacements[A]=l.colors[E],l.colors[E]=A}return Object.defineProperty(l,_g,{enumerable:!1,writable:!1,value:!0}),l}async function x_(i){return Array.from(new Set((await Promise.all(i.filter(l=>!p_(l)).map(async l=>await y_(l).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function T_(i){return(await Promise.all(i.map(async r=>g_(r)?null:wf(await y_(r))))).filter(r=>!!r)}class vE extends CS{constructor(r,s,u,f={}){super(r);w(this,"_resolvedThemes",new Map);w(this,"_resolvedGrammars",new Map);w(this,"_langMap",new Map);w(this,"_langGraph",new Map);w(this,"_textmateThemeCache",new WeakMap);w(this,"_loadedThemesCache",null);w(this,"_loadedLanguagesCache",null);this._resolver=r,this._themes=s,this._langs=u,this._alias=f,this._themes.map(d=>this.loadTheme(d)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const s=wf(r);return s.name&&(this._resolvedThemes.set(s.name,s),this._loadedThemesCache=null),s}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let s=this._textmateThemeCache.get(r);s||(s=no.createFromRawTheme(r),this._textmateThemeCache.set(r,s)),this._syncRegistry.setTheme(s)}getGrammar(r){if(this._alias[r]){const s=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],s.has(r))throw new Rt(`Circular alias \`${Array.from(s).join(" -> ")} -> ${r}\``);s.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){var d,g,p,m;if(this.getGrammar(r.name))return;const s=new Set([...this._langMap.values()].filter(y=>{var S;return(S=y.embeddedLangsLazy)==null?void 0:S.includes(r.name)}));this._resolver.addLanguage(r);const u={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const f=this.loadGrammarWithConfiguration(r.scopeName,1,u);if(f.name=r.name,this._resolvedGrammars.set(r.name,f),r.aliases&&r.aliases.forEach(y=>{this._alias[y]=r.name}),this._loadedLanguagesCache=null,s.size)for(const y of s)this._resolvedGrammars.delete(y.name),this._loadedLanguagesCache=null,(g=(d=this._syncRegistry)==null?void 0:d._injectionGrammars)==null||g.delete(y.scopeName),(m=(p=this._syncRegistry)==null?void 0:p._grammars)==null||m.delete(y.scopeName),this.loadLanguage(this._langMap.get(y.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const f of r)this.resolveEmbeddedLanguages(f);const s=Array.from(this._langGraph.entries()),u=s.filter(([f,d])=>!d);if(u.length){const f=s.filter(([d,g])=>{var p;return g&&((p=g.embeddedLangs)==null?void 0:p.some(m=>u.map(([y])=>y).includes(m)))}).filter(d=>!u.includes(d));throw new Rt(`Missing languages ${u.map(([d])=>`\`${d}\``).join(", ")}, required by ${f.map(([d])=>`\`${d}\``).join(", ")}`)}for(const[f,d]of s)this._resolver.addLanguage(d);for(const[f,d]of s)this.loadLanguage(d)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const s of r.embeddedLangs)this._langGraph.set(s,this._langMap.get(s))}}class bE{constructor(l,r){w(this,"_langs",new Map);w(this,"_scopeToLang",new Map);w(this,"_injections",new Map);w(this,"_onigLib");this._onigLib={createOnigScanner:s=>l.createScanner(s),createOnigString:s=>l.createString(s)},r.forEach(s=>this.addLanguage(s))}get onigLib(){return this._onigLib}getLangRegistration(l){return this._langs.get(l)}loadGrammar(l){return this._scopeToLang.get(l)}addLanguage(l){this._langs.set(l.name,l),l.aliases&&l.aliases.forEach(r=>{this._langs.set(r,l)}),this._scopeToLang.set(l.scopeName,l),l.injectTo&&l.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(l.scopeName)})}getInjections(l){const r=l.split(".");let s=[];for(let u=1;u<=r.length;u++){const f=r.slice(0,u).join(".");s=[...s,...this._injections.get(f)||[]]}return s}}let ir=0;function SE(i){ir+=1,i.warnings!==!1&&ir>=10&&ir%10===0&&console.warn(`[Shiki] ${ir} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let l=!1;if(!i.engine)throw new Rt("`engine` option is required for synchronous mode");const r=(i.langs||[]).flat(1),s=(i.themes||[]).flat(1).map(wf),u=new bE(i.engine,r),f=new vE(u,s,r,i.langAlias);let d;function g(I){P();const Y=f.getGrammar(typeof I=="string"?I:I.name);if(!Y)throw new Rt(`Language \`${I}\` not found, you may need to load it first`);return Y}function p(I){if(I==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};P();const Y=f.getTheme(I);if(!Y)throw new Rt(`Theme \`${I}\` not found, you may need to load it first`);return Y}function m(I){P();const Y=p(I);d!==I&&(f.setTheme(Y),d=I);const Z=f.getColorMap();return{theme:Y,colorMap:Z}}function y(){return P(),f.getLoadedThemes()}function S(){return P(),f.getLoadedLanguages()}function E(...I){P(),f.loadLanguages(I.flat(1))}async function A(...I){return E(await x_(I))}function C(...I){P();for(const Y of I.flat(1))f.loadTheme(Y)}async function B(...I){return P(),C(await T_(I))}function P(){if(l)throw new Rt("Shiki instance has been disposed")}function U(){l||(l=!0,f.dispose(),ir-=1)}return{setTheme:m,getTheme:p,getLanguage:g,getLoadedThemes:y,getLoadedLanguages:S,loadLanguage:A,loadLanguageSync:E,loadTheme:B,loadThemeSync:C,dispose:U,[Symbol.dispose]:U}}async function EE(i={}){i.loadWasm;const[l,r,s]=await Promise.all([T_(i.themes||[]),x_(i.langs||[]),i.engine||Vg(i.loadWasm||Ib())]);return SE({...i,themes:l,langs:r,engine:s})}async function xE(i={}){const l=await EE(i);return{getLastGrammarState:(...r)=>sE(l,...r),codeToTokensBase:(r,s)=>Nf(l,r,s),codeToTokensWithThemes:(r,s)=>E_(l,r,s),codeToTokens:(r,s)=>co(l,r,s),codeToHast:(r,s)=>fo(l,r,s),codeToHtml:(r,s)=>yE(l,r,s),...l,getInternalContext:()=>l}}function TE(i,l,r){let s,u,f;{const g=i;s=g.langs,u=g.themes,f=g.engine}async function d(g){function p(A){if(typeof A=="string"){if(p_(A))return[];const C=s[A];if(!C)throw new sl(`Language \`${A}\` is not included in this bundle. You may want to load it from external source.`);return C}return A}function m(A){if(g_(A))return"none";if(typeof A=="string"){const C=u[A];if(!C)throw new sl(`Theme \`${A}\` is not included in this bundle. You may want to load it from external source.`);return C}return A}const y=(g.themes??[]).map(A=>m(A)),S=(g.langs??[]).map(A=>p(A)),E=await xE({engine:g.engine??f(),...g,themes:y,langs:S});return{...E,loadLanguage(...A){return E.loadLanguage(...A.map(p))},loadTheme(...A){return E.loadTheme(...A.map(m))}}}return d}function AE(i){let l;async function r(s={}){if(l){const u=await l;return await Promise.all([u.loadTheme(...s.themes||[]),u.loadLanguage(...s.langs||[])]),u}else return l=i({...s,themes:s.themes||[],langs:s.langs||[]}),l}return r}function RE(i){const l=AE(i);return{getSingletonHighlighter(r){return l(r)},async codeToHtml(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHtml(r,s)},async codeToHast(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToHast(r,s)},async codeToTokens(r,s){return(await l({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)})).codeToTokens(r,s)},async codeToTokensBase(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).codeToTokensBase(r,s)},async codeToTokensWithThemes(r,s){return(await l({langs:[s.lang],themes:Object.values(s.themes).filter(Boolean)})).codeToTokensWithThemes(r,s)},async getLastGrammarState(r,s){return(await l({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(r,s)}}}const OE=TE({langs:Eb,themes:Tb,engine:()=>Vg(b(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:CE}=RE(OE);let rr=null;async function DE(){if(rr)return rr;try{rr={attachmentBaseUrl:(await(await fetch("/api/config")).json()).fileAttachmentBaseUrl||""}}catch{rr={attachmentBaseUrl:""}}return rr}function LE(i,l){return l?i.replace(/attach:\/\/([^\s)]+)/g,(r,s)=>`${l}/${s}`):i}function kE(i){return i.toLowerCase().replace(/<[^>]+>/g,"").replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}const NE={heading({text:i,depth:l}){const r=kE(i),s=i.replace(/#([a-z0-9]+-[a-z0-9]+)/gi,(u,f)=>`<a href="#/detail/${f}">#${f}</a>`);return`<h${l} id="${r}">${s}</h${l}>`}};Te.use({renderer:NE});function wE(i){return i.split(`
|
|
118
|
+
`).map(l=>/^\s*#{1,6}\s/.test(l)?l:l.replace(new RegExp("(?<![[\\w/])#([a-z0-9]+-[a-z0-9]+)(?![(\\]\\w])","gi"),(r,s)=>`[#${s}](#/detail/${s})`)).join(`
|
|
119
|
+
`)}const yg=new Map;function ME({issue:i,style:l}){return v.jsxs("div",{className:"fixed z-50 rounded-lg shadow-lg text-sm max-w-xs pointer-events-none",style:{...l,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",padding:"10px 12px"},children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("span",{className:"inline-block w-2 h-2 rounded-full shrink-0",style:{background:i.status==="closed"?"#8b8b8b":i.status==="in_progress"?"#f59e0b":i.status==="blocked"?"#ef4444":"#3b82f6"}}),v.jsx("span",{className:"font-medium truncate",style:{color:"var(--text-primary)"},children:i.title})]}),v.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{color:"var(--text-tertiary)"},children:[v.jsx("span",{children:i.issue_type}),v.jsx("span",{children:"·"}),v.jsx("span",{children:i.status.replace("_"," ")}),i.assignee&&v.jsxs(v.Fragment,{children:[v.jsx("span",{children:"·"}),v.jsx("span",{children:i.assignee})]})]})]})}function vg({content:i}){const[l,r]=$.useState(""),[s,u]=$.useState(null),f=$.useRef(null),d=$.useRef(),g=ho(),p=$.useCallback(y=>{var C,B,P;const S=(B=(C=y.target).closest)==null?void 0:B.call(C,"a[href*='#/detail/']");if(!S)return;const E=(P=S.getAttribute("href"))==null?void 0:P.match(/#\/detail\/(.+)/);if(!E)return;const A=E[1];clearTimeout(d.current),d.current=setTimeout(async()=>{let U=yg.get(A)??null;if(U||(U=await g.fetchIssue(A),U&&yg.set(A,U)),U){const I=S.getBoundingClientRect();u({issue:U,x:I.left,y:I.bottom+6})}},300)},[g]),m=$.useCallback(y=>{var E,A;(A=(E=y.target).closest)!=null&&A.call(E,"a[href*='#/detail/']")&&(clearTimeout(d.current),u(null))},[]);return $.useEffect(()=>{const y=f.current;if(y)return y.addEventListener("mouseover",p),y.addEventListener("mouseout",m),()=>{y.removeEventListener("mouseover",p),y.removeEventListener("mouseout",m),clearTimeout(d.current)}},[p,m]),$.useEffect(()=>{if(!i){r("");return}let y=!1;async function S(){const E=await DE();let A=LE(i,E.attachmentBaseUrl);A=wE(A);const C=Te.lexer(A),B=[];Te.walkTokens(C,Z=>{Z.type==="code"&&B.push({code:Z.text,lang:Z.lang||"text"})});const P=await Promise.all(B.map(async Z=>{try{return await CE(Z.code,{lang:Z.lang,theme:"github-light"})}catch{return`<pre><code>${Zp.sanitize(Z.code)}</code></pre>`}}));let U=Te.parser(C),I=0;U=U.replace(/<pre><code[^>]*>[\s\S]*?<\/code><\/pre>/g,()=>P[I++]||"");const Y=Zp.sanitize(U,{ADD_TAGS:["span"],ADD_ATTR:["style","class","id"]});y||r(Y)}return S(),()=>{y=!0}},[i]),v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:f,className:`prose prose-stone prose-sm max-w-none
|
|
120
|
+
prose-pre:bg-stone-50 prose-pre:border prose-pre:border-stone-200 prose-pre:rounded
|
|
121
|
+
prose-code:text-sm prose-code:font-mono
|
|
122
|
+
prose-headings:font-semibold prose-headings:text-stone-900
|
|
123
|
+
prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline`,dangerouslySetInnerHTML:{__html:l}}),s&&v.jsx(ME,{issue:s.issue,style:{left:s.x,top:s.y}})]})}function Qs({label:i,value:l,placeholder:r,onSave:s}){const[u,f]=$.useState(!1),[d,g]=$.useState(l),[p,m]=$.useState("edit"),[y,S]=$.useState(!1);$.useEffect(()=>{u||g(l)},[l,u]);const E=$.useCallback(async()=>{S(!0);try{await s(d),f(!1),m("edit")}finally{S(!1)}},[d,s]),A=$.useCallback(()=>{g(l),f(!1),m("edit")},[l]),C=$.useCallback(B=>{B.key==="s"&&(B.metaKey||B.ctrlKey)&&(B.preventDefault(),E()),B.key==="Escape"&&(B.preventDefault(),A())},[E,A]);return u?v.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--accent)",boxShadow:"var(--shadow-card)"},onKeyDown:C,children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),v.jsxs("div",{className:"flex overflow-hidden text-xs rounded-md",style:{border:"1px solid var(--border-default)"},children:[v.jsx("button",{onClick:()=>m("edit"),className:"px-2.5 py-1 font-medium",style:{background:p==="edit"?"var(--bg-hover)":"var(--bg-elevated)",color:p==="edit"?"var(--text-primary)":"var(--text-secondary)"},children:"Edit"}),v.jsx("button",{onClick:()=>m("preview"),className:"px-2.5 py-1 font-medium",style:{background:p==="preview"?"var(--bg-hover)":"var(--bg-elevated)",color:p==="preview"?"var(--text-primary)":"var(--text-secondary)",borderLeft:"1px solid var(--border-default)"},children:"Preview"})]})]}),p==="edit"?v.jsx("textarea",{value:d,onChange:B=>g(B.target.value),rows:10,className:"w-full p-3 text-sm font-mono rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:B=>{B.currentTarget.style.borderColor="var(--accent)"},onBlur:B=>{B.currentTarget.style.borderColor="var(--border-default)"},autoFocus:!0}):v.jsx("div",{className:"p-3 rounded-md min-h-[160px]",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)"},children:v.jsx(vg,{content:d})}),v.jsxs("div",{className:"flex items-center justify-end gap-2 mt-3",children:[v.jsx("span",{className:"text-xs mr-auto",style:{color:"var(--text-tertiary)"},children:"Cmd+S to save, Esc to cancel"}),v.jsx("button",{onClick:A,className:"px-3 py-1.5 text-sm rounded-md transition-colors",style:{color:"var(--text-secondary)",border:"1px solid var(--border-default)",background:"var(--bg-elevated)"},onMouseEnter:B=>{B.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:B=>{B.currentTarget.style.background="var(--bg-elevated)"},children:"Cancel"}),v.jsx("button",{onClick:E,disabled:y,className:"px-3 py-1.5 text-sm rounded-md font-medium disabled:opacity-50 transition-colors",style:{background:"var(--accent)",color:"white"},onMouseEnter:B=>{B.currentTarget.style.opacity="0.9"},onMouseLeave:B=>{B.currentTarget.style.opacity="1"},children:y?"Saving...":"Save"})]})]}):v.jsxs("div",{id:i.toLowerCase().replace(/\s+/g,"-"),className:"group rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),v.jsx("button",{onClick:()=>f(!0),className:"opacity-0 group-hover:opacity-100 transition-opacity",style:{color:"var(--text-tertiary)"},onMouseEnter:B=>{B.currentTarget.style.color="var(--accent)"},onMouseLeave:B=>{B.currentTarget.style.color="var(--text-tertiary)"},title:`Edit ${i}`,children:v.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})})})]}),l?v.jsx(vg,{content:l}):v.jsx("p",{className:"text-sm italic",style:{color:"var(--text-tertiary)"},children:r||`Add ${i.toLowerCase()}...`})]})}function nl({label:i,children:l}){return v.jsxs("div",{className:"px-3 py-2.5 rounded-md",style:{border:"1px solid var(--border-subtle)"},children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider mb-1.5",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:i}),l]})}function zE({issue:i,onUpdate:l}){const r=i.parent_id||i.parent,s=i.parent_title||i.parent_title,u=i.parent_status||i.parent_status,f=new Date(i.updated_at).toLocaleDateString();return v.jsxs("aside",{className:"shrink-0 p-4 space-y-3 overflow-y-auto",style:{width:"280px",borderLeft:"1px solid var(--border-subtle)",background:"var(--bg-base)"},children:[v.jsx(nl,{label:"Status",children:v.jsxs("select",{value:i.status,onChange:d=>l.updateStatus(i.id,d.target.value),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[v.jsx("option",{value:"open",children:"Open"}),v.jsx("option",{value:"in_progress",children:"In Progress"}),v.jsx("option",{value:"closed",children:"Closed"})]})}),v.jsx(nl,{label:"Priority",children:v.jsx("select",{value:i.priority,onChange:d=>l.updatePriority(i.id,Number(d.target.value)),className:"w-full px-2 py-1 text-sm rounded-md outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-elevated)",color:"var(--text-primary)"},children:[0,1,2,3,4].map(d=>v.jsxs("option",{value:d,children:["P",d]},d))})}),v.jsx(nl,{label:"Type",children:v.jsx(hf,{type:i.issue_type})}),v.jsx(nl,{label:"Assignee",children:i.assignee?v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"flex items-center justify-center rounded-full text-[10px] font-bold shrink-0",style:{width:"24px",height:"24px",backgroundColor:pf(i.assignee),color:"var(--text-inverse)"},children:mf(i.assignee)}),v.jsx("span",{className:"text-sm",style:{color:"var(--text-primary)"},children:i.assignee})]}):v.jsx("span",{className:"text-sm",style:{color:"var(--text-tertiary)"},children:"Unassigned"})}),v.jsx(nl,{label:"Updated",children:v.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:f})}),i.labels&&i.labels.length>0&&v.jsx(nl,{label:"Labels",children:v.jsx("div",{className:"flex flex-wrap gap-1",children:i.labels.map(d=>v.jsx("span",{className:"px-2 py-0.5 text-xs rounded",style:{background:"var(--bg-hover)",color:"var(--text-secondary)"},children:d},d))})}),r&&v.jsx(nl,{label:"Parent",children:v.jsxs("a",{href:`#/detail/${r}`,className:"block rounded px-1 py-1 -mx-1 transition-colors",style:{color:"var(--text-primary)"},onMouseEnter:d=>{d.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.background="transparent"},children:[v.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[u&&v.jsx(cr,{status:u}),v.jsx("span",{className:"font-mono text-xs",style:{color:"var(--text-tertiary)"},children:r})]}),s&&v.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:s})]})}),(()=>{const d=(i.dependencies||[]).filter(g=>g.type==="blocks"&&g.issue_id===i.id);return d.length===0?null:v.jsx(nl,{label:"Blocked By",children:v.jsx("div",{className:"space-y-1",children:d.map(g=>v.jsx("a",{href:`#/detail/${g.depends_on_id}`,className:"block text-xs font-mono px-1 py-0.5 transition-colors",style:{color:"var(--accent)"},onMouseEnter:p=>{p.currentTarget.style.textDecoration="underline"},onMouseLeave:p=>{p.currentTarget.style.textDecoration="none"},children:g.depends_on_id},g.depends_on_id))})})})(),i.dependents&&i.dependents.length>0&&v.jsx(nl,{label:"Children / Dependents",children:v.jsx("div",{className:"space-y-1",children:i.dependents.map(d=>v.jsxs("a",{href:`#/detail/${d.id}`,className:"block text-xs rounded px-1 py-1.5 -mx-1 transition-colors",onMouseEnter:g=>{g.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:g=>{g.currentTarget.style.background="transparent"},children:[v.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[v.jsx(cr,{status:d.status}),v.jsx("span",{className:"font-mono",style:{color:"var(--text-tertiary)"},children:d.id})]}),d.title&&v.jsx("p",{className:"text-xs leading-snug pl-0.5 line-clamp-2",style:{color:"var(--text-secondary)"},children:d.title})]},d.id))})})]})}function jE({issueId:i}){const l=xg(),[r,s]=$.useState(""),u=async()=>{r.trim()&&(await l.addComment(i,r.trim()),s(""))};return v.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[v.jsx("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:"Comments"}),v.jsx("div",{className:"flex gap-2",children:v.jsx("textarea",{value:r,onChange:f=>s(f.target.value),placeholder:"Add a comment... (Ctrl+Enter to submit)",rows:3,className:"flex-1 p-2 text-sm rounded-md resize-y outline-none",style:{border:"1px solid var(--border-default)",background:"var(--bg-base)",color:"var(--text-primary)"},onFocus:f=>{f.currentTarget.style.borderColor="var(--accent)"},onBlur:f=>{f.currentTarget.style.borderColor="var(--border-default)"},onKeyDown:f=>{f.key==="Enter"&&(f.ctrlKey||f.metaKey)&&u()}})}),v.jsx("button",{onClick:u,className:"mt-2 px-3 py-1.5 text-sm rounded-md font-medium transition-colors",style:{background:"var(--bg-hover)",color:"var(--text-primary)",border:"1px solid var(--border-default)"},onMouseEnter:f=>{f.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:f=>{f.currentTarget.style.borderColor="var(--border-default)"},children:"Add Comment"})]})}function UE({issueId:i}){const{issues:l,loading:r}=Xa("issue-detail",{id:i}),s=xg(),u=l[0];return r?v.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Loading..."}):u?v.jsxs("div",{className:"flex h-full",style:{background:"var(--bg-base)"},children:[v.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-5",children:[v.jsxs("div",{className:"flex items-center gap-2 text-sm",style:{color:"var(--text-tertiary)"},children:[v.jsx("a",{href:"#/list",className:"flex items-center gap-1 transition-colors",style:{color:"var(--text-tertiary)"},onMouseEnter:f=>{f.currentTarget.style.color="var(--accent)"},onMouseLeave:f=>{f.currentTarget.style.color="var(--text-tertiary)"},children:"← List"}),v.jsx("span",{children:"/"}),v.jsx("span",{className:"font-mono",children:u.id})]}),v.jsx("h1",{className:"text-2xl font-bold",style:{color:"var(--text-primary)"},children:u.title}),v.jsx(Qs,{label:"Description",value:u.description||"",onSave:f=>s.editText({id:u.id,field:"description",value:f})}),v.jsx(Qs,{label:"Acceptance Criteria",value:u.acceptance||"",placeholder:"Add acceptance criteria...",onSave:f=>s.editText({id:u.id,field:"acceptance",value:f})}),v.jsx(Qs,{label:"Notes",value:u.notes||"",placeholder:"Add notes...",onSave:f=>s.editText({id:u.id,field:"notes",value:f})}),v.jsx(Qs,{label:"Design",value:u.design||"",placeholder:"Add design notes...",onSave:f=>s.editText({id:u.id,field:"design",value:f})}),u.issue_type==="epic"&&u.dependents&&u.dependents.length>0&&v.jsxs("div",{className:"rounded-lg p-4",style:{background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",boxShadow:"var(--shadow-card)"},children:[v.jsxs("h3",{className:"font-semibold uppercase tracking-wider mb-3",style:{fontSize:"11px",color:"var(--text-tertiary)"},children:["Children (",u.closed_children??0," / ",u.total_children??u.dependents.length,")"]}),v.jsx("div",{className:"space-y-0.5",children:u.dependents.map(f=>v.jsxs("a",{href:`#/detail/${f.id}`,className:"flex items-center gap-2.5 px-2 py-2 rounded-md transition-colors",style:{opacity:f.status==="closed"?.6:1},onMouseEnter:d=>{d.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.background="transparent"},children:[v.jsx(cr,{status:f.status}),v.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-tertiary)"},children:f.id}),v.jsx("span",{className:"text-sm truncate",style:{color:"var(--text-primary)"},children:f.title})]},f.id))})]}),v.jsx(jE,{issueId:u.id})]}),v.jsx(zE,{issue:u,onUpdate:s})]}):v.jsx("div",{className:"p-6",style:{color:"var(--text-tertiary)"},children:"Issue not found"})}function BE(i){const[l,r]=$.useState(""),s=$.useMemo(()=>{if(!l.trim())return i;const u=l.toLowerCase();return i.filter(f=>f.id.toLowerCase().includes(u)||f.title.toLowerCase().includes(u)||(f.description||"").toLowerCase().includes(u))},[i,l]);return{query:l,setQuery:r,results:s}}function HE(){const[i,l]=$.useState(!1),{issues:r}=Xa("all-issues"),{query:s,setQuery:u,results:f}=BE(r),[d,g]=$.useState(0),p=$.useRef(null);$.useEffect(()=>{const S=E=>{var C;const A=(C=E.target)==null?void 0:C.tagName;E.key==="k"&&(E.metaKey||E.ctrlKey)&&A!=="TEXTAREA"&&(E.preventDefault(),l(!0)),E.key==="Escape"&&i&&(E.preventDefault(),l(!1),u(""),g(0))};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[i,u]),$.useEffect(()=>{i&&setTimeout(()=>{var S;return(S=p.current)==null?void 0:S.focus()},0)},[i]),$.useEffect(()=>g(0),[f]);const m=S=>{const E=f.slice(0,20);S.key==="ArrowDown"&&(S.preventDefault(),g(A=>Math.min(A+1,E.length-1))),S.key==="ArrowUp"&&(S.preventDefault(),g(A=>Math.max(A-1,0))),S.key==="Enter"&&E[d]&&(window.location.hash=`#/detail/${E[d].id}`,l(!1),u(""))};if(!i)return null;const y=f.slice(0,20);return v.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>{l(!1),u("")},children:[v.jsx("div",{className:"absolute inset-0",style:{background:"var(--bg-overlay)"}}),v.jsxs("div",{className:"relative w-full max-w-lg overflow-hidden",style:{background:"var(--bg-elevated)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.15)"},onClick:S=>S.stopPropagation(),children:[v.jsx("input",{ref:p,type:"text",value:s,onChange:S=>u(S.target.value),onKeyDown:m,placeholder:"Search issues...",className:"w-full px-4 py-3 text-sm outline-none",style:{borderBottom:"1px solid var(--border-subtle)",background:"transparent",color:"var(--text-primary)"}}),v.jsxs("div",{className:"max-h-80 overflow-y-auto",children:[y.length===0&&s&&v.jsx("div",{className:"px-4 py-6 text-sm text-center",style:{color:"var(--text-tertiary)"},children:"No results"}),y.map((S,E)=>v.jsxs("button",{onClick:()=>{window.location.hash=`#/detail/${S.id}`,l(!1),u("")},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-left transition-colors",style:{background:E===d?"var(--bg-hover)":"transparent"},onMouseEnter:A=>{A.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:A=>{A.currentTarget.style.background=E===d?"var(--bg-hover)":"transparent"},children:[v.jsx("span",{className:"font-mono text-xs w-28 shrink-0",style:{color:"var(--text-tertiary)"},children:S.id}),v.jsx(cr,{status:S.status}),v.jsx("span",{className:"flex-1 truncate",style:{color:"var(--text-primary)"},children:S.title}),v.jsx(df,{priority:S.priority})]},S.id))]}),v.jsx("div",{className:"px-4 py-2 text-xs",style:{color:"var(--text-tertiary)",borderTop:"1px solid var(--border-subtle)"},children:"↑↓ navigate · ↵ open · esc close"})]})]})}function VE(){return v.jsxs(Qv,{children:[v.jsx(HE,{}),v.jsx(Jv,{children:i=>{if(i.startsWith("#/detail/")){const l=i.replace("#/detail/","");return v.jsx(UE,{issueId:l},l)}return i.startsWith("#/list")?v.jsx(m0,{}):i.startsWith("#/board")||i===""||i==="#/"||i==="#"?v.jsx(i0,{}):v.jsx("div",{className:"p-6 text-stone-400",children:"View not implemented yet"})}})]})}Pv.createRoot(document.getElementById("root")).render(v.jsx($.StrictMode,{children:v.jsx(VE,{})}));
|