anycodex 0.0.23 → 0.0.25

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.
@@ -0,0 +1,238 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DA-rfuFy.js","assets/html-pp8916En.js","assets/javascript-wDzz0qaB.js","assets/css-CLj8gQPS.js","assets/angular-ts-BrjP3tb8.js","assets/scss-D5BDwBP9.js","assets/apl-CORt7UWP.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-HNnZUWAn.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-BjGOyj-B.js","assets/html-derivative-DlHx6ybY.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nBiQ_Alo.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-DNxU26gB.js","assets/shellscript-Yzrsuije.js","assets/edge-FbVlp4U3.js","assets/elixir-CkH2-t6x.js","assets/elm-DbKCFpqz.js","assets/erb-BYCe7drp.js","assets/ruby-Wjq7vjNf.js","assets/haml-D5jkg6IW.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-ByusRIyA.js","assets/glimmer-ts-BfAWNZQY.js","assets/hack-i7_Ulhet.js","assets/handlebars-BpdQsYii.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-f2NsQr07.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-VxiPbLrw.js","assets/perl-NvoQZIq0.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-C0sCDyMI.js","assets/marko-DjSrsDqO.js","assets/less-B1dDrJ26.js","assets/mdc-DTYItulj.js","assets/nextflow-C-mBbutL.js","assets/nextflow-groovy-vE_lwT2v.js","assets/nginx-BpAMiNFr.js","assets/nim-BIad80T-.js","assets/php-R6g_5hLQ.js","assets/pug-DKIMFp6K.js","assets/qml-3beO22l8.js","assets/razor-BDqjjVU7.js","assets/csharp-COcwbKMJ.js","assets/rst-CRjBmOyv.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-8wufbnw4.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-Cy7k_4gC.js","assets/templ-DhtptRzy.js","assets/go-C27-OAKa.js","assets/ts-tags-DQrlYJgV.js","assets/twig-xg9kU7Mw.js","assets/vue-D2xRrEX4.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-BoDAl6tE.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2
+ var Pv=Object.defineProperty;var Gv=Object.getPrototypeOf;var Iv=Reflect.get;var U_=e=>{throw TypeError(e)};var Uv=(e,t,r)=>t in e?Pv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Y=(e,t,r)=>Uv(e,typeof t!="symbol"?t+"":t,r),A1=(e,t,r)=>t.has(e)||U_("Cannot "+r);var ii=(e,t,r)=>(A1(e,t,"read from private field"),r?r.call(e):t.get(e)),js=(e,t,r)=>t.has(e)?U_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Fi=(e,t,r,n)=>(A1(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),k1=(e,t,r)=>(A1(e,t,"access private method"),r);var j_=(e,t,r)=>Iv(Gv(e),r,t);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(l){if(l.ep)return;l.ep=!0;const o=r(l);fetch(l.href,o)}})();var T1={exports:{}},al={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var q_;function jv(){if(q_)return al;q_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,l,o){var u=null;if(o!==void 0&&(u=""+o),l.key!==void 0&&(u=""+l.key),"key"in l){o={};for(var f in l)f!=="key"&&(o[f]=l[f])}else o=l;return l=o.ref,{$$typeof:e,type:n,key:u,ref:l!==void 0?l:null,props:o}}return al.Fragment=t,al.jsx=r,al.jsxs=r,al}var $_;function qv(){return $_||($_=1,T1.exports=jv()),T1.exports}var E=qv(),R1={exports:{}},xe={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Z_;function $v(){if(Z_)return xe;Z_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function M(A,N,Z){this.props=A,this.context=N,this.refs=T,this.updater=Z||S}M.prototype.isReactComponent={},M.prototype.setState=function(A,N){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,N,"setState")},M.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function z(){}z.prototype=M.prototype;function O(A,N,Z){this.props=A,this.context=N,this.refs=T,this.updater=Z||S}var P=O.prototype=new z;P.constructor=O,x(P,M.prototype),P.isPureReactComponent=!0;var W=Array.isArray;function X(){}var ne={H:null,A:null,T:null,S:null},_e=Object.prototype.hasOwnProperty;function oe(A,N,Z){var se=Z.ref;return{$$typeof:e,type:A,key:N,ref:se!==void 0?se:null,props:Z}}function Ee(A,N){return oe(A.type,N,A.props)}function de(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function J(A){var N={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Z){return N[Z]})}var I=/\/+/g;function K(A,N){return typeof A=="object"&&A!==null&&A.key!=null?J(""+A.key):N.toString(36)}function re(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(X,X):(A.status="pending",A.then(function(N){A.status==="pending"&&(A.status="fulfilled",A.value=N)},function(N){A.status==="pending"&&(A.status="rejected",A.reason=N)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function R(A,N,Z,se,ue){var le=typeof A;(le==="undefined"||le==="boolean")&&(A=null);var fe=!1;if(A===null)fe=!0;else switch(le){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(A.$$typeof){case e:case t:fe=!0;break;case v:return fe=A._init,R(fe(A._payload),N,Z,se,ue)}}if(fe)return ue=ue(A),fe=se===""?"."+K(A,0):se,W(ue)?(Z="",fe!=null&&(Z=fe.replace(I,"$&/")+"/"),R(ue,N,Z,"",function(vt){return vt})):ue!=null&&(de(ue)&&(ue=Ee(ue,Z+(ue.key==null||A&&A.key===ue.key?"":(""+ue.key).replace(I,"$&/")+"/")+fe)),N.push(ue)),1;fe=0;var Pe=se===""?".":se+":";if(W(A))for(var Me=0;Me<A.length;Me++)se=A[Me],le=Pe+K(se,Me),fe+=R(se,N,Z,le,ue);else if(Me=b(A),typeof Me=="function")for(A=Me.call(A),Me=0;!(se=A.next()).done;)se=se.value,le=Pe+K(se,Me++),fe+=R(se,N,Z,le,ue);else if(le==="object"){if(typeof A.then=="function")return R(re(A),N,Z,se,ue);throw N=String(A),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return fe}function $(A,N,Z){if(A==null)return A;var se=[],ue=0;return R(A,se,"","",function(le){return N.call(Z,le,ue++)}),se}function q(A){if(A._status===-1){var N=A._result;N=N(),N.then(function(Z){(A._status===0||A._status===-1)&&(A._status=1,A._result=Z)},function(Z){(A._status===0||A._status===-1)&&(A._status=2,A._result=Z)}),A._status===-1&&(A._status=0,A._result=N)}if(A._status===1)return A._result.default;throw A._result}var me=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ye={map:$,forEach:function(A,N,Z){$(A,function(){N.apply(this,arguments)},Z)},count:function(A){var N=0;return $(A,function(){N++}),N},toArray:function(A){return $(A,function(N){return N})||[]},only:function(A){if(!de(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return xe.Activity=m,xe.Children=ye,xe.Component=M,xe.Fragment=r,xe.Profiler=l,xe.PureComponent=O,xe.StrictMode=n,xe.Suspense=p,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,xe.__COMPILER_RUNTIME={__proto__:null,c:function(A){return ne.H.useMemoCache(A)}},xe.cache=function(A){return function(){return A.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(A,N,Z){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var se=x({},A.props),ue=A.key;if(N!=null)for(le in N.key!==void 0&&(ue=""+N.key),N)!_e.call(N,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&N.ref===void 0||(se[le]=N[le]);var le=arguments.length-2;if(le===1)se.children=Z;else if(1<le){for(var fe=Array(le),Pe=0;Pe<le;Pe++)fe[Pe]=arguments[Pe+2];se.children=fe}return oe(A.type,ue,se)},xe.createContext=function(A){return A={$$typeof:u,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:o,_context:A},A},xe.createElement=function(A,N,Z){var se,ue={},le=null;if(N!=null)for(se in N.key!==void 0&&(le=""+N.key),N)_e.call(N,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ue[se]=N[se]);var fe=arguments.length-2;if(fe===1)ue.children=Z;else if(1<fe){for(var Pe=Array(fe),Me=0;Me<fe;Me++)Pe[Me]=arguments[Me+2];ue.children=Pe}if(A&&A.defaultProps)for(se in fe=A.defaultProps,fe)ue[se]===void 0&&(ue[se]=fe[se]);return oe(A,le,ue)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(A){return{$$typeof:f,render:A}},xe.isValidElement=de,xe.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:q}},xe.memo=function(A,N){return{$$typeof:d,type:A,compare:N===void 0?null:N}},xe.startTransition=function(A){var N=ne.T,Z={};ne.T=Z;try{var se=A(),ue=ne.S;ue!==null&&ue(Z,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(X,me)}catch(le){me(le)}finally{N!==null&&Z.types!==null&&(N.types=Z.types),ne.T=N}},xe.unstable_useCacheRefresh=function(){return ne.H.useCacheRefresh()},xe.use=function(A){return ne.H.use(A)},xe.useActionState=function(A,N,Z){return ne.H.useActionState(A,N,Z)},xe.useCallback=function(A,N){return ne.H.useCallback(A,N)},xe.useContext=function(A){return ne.H.useContext(A)},xe.useDebugValue=function(){},xe.useDeferredValue=function(A,N){return ne.H.useDeferredValue(A,N)},xe.useEffect=function(A,N){return ne.H.useEffect(A,N)},xe.useEffectEvent=function(A){return ne.H.useEffectEvent(A)},xe.useId=function(){return ne.H.useId()},xe.useImperativeHandle=function(A,N,Z){return ne.H.useImperativeHandle(A,N,Z)},xe.useInsertionEffect=function(A,N){return ne.H.useInsertionEffect(A,N)},xe.useLayoutEffect=function(A,N){return ne.H.useLayoutEffect(A,N)},xe.useMemo=function(A,N){return ne.H.useMemo(A,N)},xe.useOptimistic=function(A,N){return ne.H.useOptimistic(A,N)},xe.useReducer=function(A,N,Z){return ne.H.useReducer(A,N,Z)},xe.useRef=function(A){return ne.H.useRef(A)},xe.useState=function(A){return ne.H.useState(A)},xe.useSyncExternalStore=function(A,N,Z){return ne.H.useSyncExternalStore(A,N,Z)},xe.useTransition=function(){return ne.H.useTransition()},xe.version="19.2.4",xe}var W_;function pd(){return W_||(W_=1,R1.exports=$v()),R1.exports}var B=pd(),L1={exports:{}},ll={},M1={exports:{}},D1={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var F_;function Zv(){return F_||(F_=1,(function(e){function t(R,$){var q=R.length;R.push($);e:for(;0<q;){var me=q-1>>>1,ye=R[me];if(0<l(ye,$))R[me]=$,R[q]=ye,q=me;else break e}}function r(R){return R.length===0?null:R[0]}function n(R){if(R.length===0)return null;var $=R[0],q=R.pop();if(q!==$){R[0]=q;e:for(var me=0,ye=R.length,A=ye>>>1;me<A;){var N=2*(me+1)-1,Z=R[N],se=N+1,ue=R[se];if(0>l(Z,q))se<ye&&0>l(ue,Z)?(R[me]=ue,R[se]=q,me=se):(R[me]=Z,R[N]=q,me=N);else if(se<ye&&0>l(ue,q))R[me]=ue,R[se]=q,me=se;else break e}}return $}function l(R,$){var q=R.sortIndex-$.sortIndex;return q!==0?q:R.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],d=[],v=1,m=null,y=3,b=!1,S=!1,x=!1,T=!1,M=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function P(R){for(var $=r(d);$!==null;){if($.callback===null)n(d);else if($.startTime<=R)n(d),$.sortIndex=$.expirationTime,t(p,$);else break;$=r(d)}}function W(R){if(x=!1,P(R),!S)if(r(p)!==null)S=!0,X||(X=!0,J());else{var $=r(d);$!==null&&re(W,$.startTime-R)}}var X=!1,ne=-1,_e=5,oe=-1;function Ee(){return T?!0:!(e.unstable_now()-oe<_e)}function de(){if(T=!1,X){var R=e.unstable_now();oe=R;var $=!0;try{e:{S=!1,x&&(x=!1,z(ne),ne=-1),b=!0;var q=y;try{t:{for(P(R),m=r(p);m!==null&&!(m.expirationTime>R&&Ee());){var me=m.callback;if(typeof me=="function"){m.callback=null,y=m.priorityLevel;var ye=me(m.expirationTime<=R);if(R=e.unstable_now(),typeof ye=="function"){m.callback=ye,P(R),$=!0;break t}m===r(p)&&n(p),P(R)}else n(p);m=r(p)}if(m!==null)$=!0;else{var A=r(d);A!==null&&re(W,A.startTime-R),$=!1}}break e}finally{m=null,y=q,b=!1}$=void 0}}finally{$?J():X=!1}}}var J;if(typeof O=="function")J=function(){O(de)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,K=I.port2;I.port1.onmessage=de,J=function(){K.postMessage(null)}}else J=function(){M(de,0)};function re(R,$){ne=M(function(){R(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_e=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(R){switch(y){case 1:case 2:case 3:var $=3;break;default:$=y}var q=y;y=$;try{return R()}finally{y=q}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(R,$){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var q=y;y=R;try{return $()}finally{y=q}},e.unstable_scheduleCallback=function(R,$,q){var me=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?me+q:me):q=me,R){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=q+ye,R={id:v++,callback:$,priorityLevel:R,startTime:q,expirationTime:ye,sortIndex:-1},q>me?(R.sortIndex=q,t(d,R),r(p)===null&&R===r(d)&&(x?(z(ne),ne=-1):x=!0,re(W,q-me))):(R.sortIndex=ye,t(p,R),S||b||(S=!0,X||(X=!0,J()))),R},e.unstable_shouldYield=Ee,e.unstable_wrapCallback=function(R){var $=y;return function(){var q=y;y=$;try{return R.apply(this,arguments)}finally{y=q}}}})(D1)),D1}var Y_;function Wv(){return Y_||(Y_=1,M1.exports=Zv()),M1.exports}var O1={exports:{}},Yt={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var K_;function Fv(){if(K_)return Yt;K_=1;var e=pd();function t(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)d+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function o(p,d,v){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:m==null?null:""+m,children:p,containerInfo:d,implementation:v}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Yt.createPortal=function(p,d){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(p,d,null,v)},Yt.flushSync=function(p){var d=u.T,v=n.p;try{if(u.T=null,n.p=2,p)return p()}finally{u.T=d,n.p=v,n.d.f()}},Yt.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,n.d.C(p,d))},Yt.prefetchDNS=function(p){typeof p=="string"&&n.d.D(p)},Yt.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var v=d.as,m=f(v,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;v==="style"?n.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:b}):v==="script"&&n.d.X(p,{crossOrigin:m,integrity:y,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Yt.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var v=f(d.as,d.crossOrigin);n.d.M(p,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&n.d.M(p)},Yt.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var v=d.as,m=f(v,d.crossOrigin);n.d.L(p,v,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Yt.preloadModule=function(p,d){if(typeof p=="string")if(d){var v=f(d.as,d.crossOrigin);n.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else n.d.m(p)},Yt.requestFormReset=function(p){n.d.r(p)},Yt.unstable_batchedUpdates=function(p,d){return p(d)},Yt.useFormState=function(p,d,v){return u.H.useFormState(p,d,v)},Yt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Yt.version="19.2.4",Yt}var X_;function ig(){if(X_)return O1.exports;X_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),O1.exports=Fv(),O1.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var Q_;function Yv(){if(Q_)return ll;Q_=1;var e=Wv(),t=pd(),r=ig();function n(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var s=i,a=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(a=s.return),i=s.return;while(i)}return s.tag===3?a:null}function u(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function f(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function p(i){if(o(i)!==i)throw Error(n(188))}function d(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(n(188));return s!==i?null:i}for(var a=i,c=s;;){var h=a.return;if(h===null)break;var _=h.alternate;if(_===null){if(c=h.return,c!==null){a=c;continue}break}if(h.child===_.child){for(_=h.child;_;){if(_===a)return p(h),i;if(_===c)return p(h),s;_=_.sibling}throw Error(n(188))}if(a.return!==c.return)a=h,c=_;else{for(var g=!1,w=h.child;w;){if(w===a){g=!0,a=h,c=_;break}if(w===c){g=!0,c=h,a=_;break}w=w.sibling}if(!g){for(w=_.child;w;){if(w===a){g=!0,a=_,c=h;break}if(w===c){g=!0,c=_,a=h;break}w=w.sibling}if(!g)throw Error(n(189))}}if(a.alternate!==c)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?i:s}function v(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=v(i),s!==null)return s;i=i.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),Ee=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function J(i){return i===null||typeof i!="object"?null:(i=de&&i[de]||i["@@iterator"],typeof i=="function"?i:null)}var I=Symbol.for("react.client.reference");function K(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===I?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case x:return"Fragment";case M:return"Profiler";case T:return"StrictMode";case W:return"Suspense";case X:return"SuspenseList";case oe:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case S:return"Portal";case O:return i.displayName||"Context";case z:return(i._context.displayName||"Context")+".Consumer";case P:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case ne:return s=i.displayName||null,s!==null?s:K(i.type)||"Memo";case _e:s=i._payload,i=i._init;try{return K(i(s))}catch{}}return null}var re=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},me=[],ye=-1;function A(i){return{current:i}}function N(i){0>ye||(i.current=me[ye],me[ye]=null,ye--)}function Z(i,s){ye++,me[ye]=i.current,i.current=s}var se=A(null),ue=A(null),le=A(null),fe=A(null);function Pe(i,s){switch(Z(le,s),Z(ue,i),Z(se,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?h_(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=h_(s),i=f_(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}N(se),Z(se,i)}function Me(){N(se),N(ue),N(le)}function vt(i){i.memoizedState!==null&&Z(fe,i);var s=se.current,a=f_(s,i.type);s!==a&&(Z(ue,i),Z(se,a))}function dt(i){ue.current===i&&(N(se),N(ue)),fe.current===i&&(N(fe),il._currentValue=q)}var ot,Ne;function Ie(i){if(ot===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);ot=s&&s[1]||"",Ne=-1<a.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+ot+i+Ne}var Ai=!1;function ai(i,s){if(!i||Ai)return"";Ai=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(s){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(U){var G=U}Reflect.construct(i,[],ee)}else{try{ee.call()}catch(U){G=U}i.call(ee.prototype)}}else{try{throw Error()}catch(U){G=U}(ee=i())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(U){if(U&&G&&typeof U.stack=="string")return[U.stack,G.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=c.DetermineComponentFrameRoot(),g=_[0],w=_[1];if(g&&w){var k=g.split(`
45
+ `),V=w.split(`
46
+ `);for(h=c=0;c<k.length&&!k[c].includes("DetermineComponentFrameRoot");)c++;for(;h<V.length&&!V[h].includes("DetermineComponentFrameRoot");)h++;if(c===k.length||h===V.length)for(c=k.length-1,h=V.length-1;1<=c&&0<=h&&k[c]!==V[h];)h--;for(;1<=c&&0<=h;c--,h--)if(k[c]!==V[h]){if(c!==1||h!==1)do if(c--,h--,0>h||k[c]!==V[h]){var F=`
47
+ `+k[c].replace(" at new "," at ");return i.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",i.displayName)),F}while(1<=c&&0<=h);break}}}finally{Ai=!1,Error.prepareStackTrace=a}return(a=i?i.displayName||i.name:"")?Ie(a):""}function Gl(i,s){switch(i.tag){case 26:case 27:case 5:return Ie(i.type);case 16:return Ie("Lazy");case 13:return i.child!==s&&s!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return ai(i.type,!1);case 11:return ai(i.type.render,!1);case 1:return ai(i.type,!0);case 31:return Ie("Activity");default:return""}}function ca(i){try{var s="",a=null;do s+=Gl(i,a),a=i,i=i.return;while(i);return s}catch(c){return`
48
+ Error generating stack: `+c.message+`
49
+ `+c.stack}}var ua=Object.prototype.hasOwnProperty,ha=e.unstable_scheduleCallback,on=e.unstable_cancelCallback,Il=e.unstable_shouldYield,Ul=e.unstable_requestPaint,Jt=e.unstable_now,fu=e.unstable_getCurrentPriorityLevel,fa=e.unstable_ImmediatePriority,da=e.unstable_UserBlockingPriority,ws=e.unstable_NormalPriority,jl=e.unstable_LowPriority,pa=e.unstable_IdlePriority,ql=e.log,du=e.unstable_setDisableYieldValue,Cs=null,ei=null;function j(i){if(typeof ql=="function"&&du(i),ei&&typeof ei.setStrictMode=="function")try{ei.setStrictMode(Cs,i)}catch{}}var ie=Math.clz32?Math.clz32:Te,ge=Math.log,we=Math.LN2;function Te(i){return i>>>=0,i===0?32:31-(ge(i)/we|0)|0}var $e=256,Es=262144,$l=4194304;function xs(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Zl(i,s,a){var c=i.pendingLanes;if(c===0)return 0;var h=0,_=i.suspendedLanes,g=i.pingedLanes;i=i.warmLanes;var w=c&134217727;return w!==0?(c=w&~_,c!==0?h=xs(c):(g&=w,g!==0?h=xs(g):a||(a=w&~i,a!==0&&(h=xs(a))))):(w=c&~_,w!==0?h=xs(w):g!==0?h=xs(g):a||(a=c&~i,a!==0&&(h=xs(a)))),h===0?0:s!==0&&s!==h&&(s&_)===0&&(_=h&-h,a=s&-s,_>=a||_===32&&(a&4194048)!==0)?s:h}function _a(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function A5(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 Zd(){var i=$l;return $l<<=1,($l&62914560)===0&&($l=4194304),i}function pu(i){for(var s=[],a=0;31>a;a++)s.push(i);return s}function ma(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function k5(i,s,a,c,h,_){var g=i.pendingLanes;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=a,i.entangledLanes&=a,i.errorRecoveryDisabledLanes&=a,i.shellSuspendCounter=0;var w=i.entanglements,k=i.expirationTimes,V=i.hiddenUpdates;for(a=g&~a;0<a;){var F=31-ie(a),ee=1<<F;w[F]=0,k[F]=-1;var G=V[F];if(G!==null)for(V[F]=null,F=0;F<G.length;F++){var U=G[F];U!==null&&(U.lane&=-536870913)}a&=~ee}c!==0&&Wd(i,c,0),_!==0&&h===0&&i.tag!==0&&(i.suspendedLanes|=_&~(g&~s))}function Wd(i,s,a){i.pendingLanes|=s,i.suspendedLanes&=~s;var c=31-ie(s);i.entangledLanes|=s,i.entanglements[c]=i.entanglements[c]|1073741824|a&261930}function Fd(i,s){var a=i.entangledLanes|=s;for(i=i.entanglements;a;){var c=31-ie(a),h=1<<c;h&s|i[c]&s&&(i[c]|=s),a&=~h}}function Yd(i,s){var a=s&-s;return a=(a&42)!==0?1:_u(a),(a&(i.suspendedLanes|s))!==0?0:a}function _u(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function mu(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Kd(){var i=$.p;return i!==0?i:(i=window.event,i===void 0?32:B_(i.type))}function Xd(i,s){var a=$.p;try{return $.p=i,s()}finally{$.p=a}}var Hr=Math.random().toString(36).slice(2),Ut="__reactFiber$"+Hr,li="__reactProps$"+Hr,cn="__reactContainer$"+Hr,gu="__reactEvents$"+Hr,T5="__reactListeners$"+Hr,R5="__reactHandles$"+Hr,Qd="__reactResources$"+Hr,ga="__reactMarker$"+Hr;function vu(i){delete i[Ut],delete i[li],delete i[gu],delete i[T5],delete i[R5]}function un(i){var s=i[Ut];if(s)return s;for(var a=i.parentNode;a;){if(s=a[cn]||a[Ut]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(i=y_(i);i!==null;){if(a=i[Ut])return a;i=y_(i)}return s}i=a,a=i.parentNode}return null}function hn(i){if(i=i[Ut]||i[cn]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function va(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(n(33))}function fn(i){var s=i[Qd];return s||(s=i[Qd]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ot(i){i[ga]=!0}var Jd=new Set,e0={};function As(i,s){dn(i,s),dn(i+"Capture",s)}function dn(i,s){for(e0[i]=s,i=0;i<s.length;i++)Jd.add(s[i])}var L5=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]*$"),t0={},i0={};function M5(i){return ua.call(i0,i)?!0:ua.call(t0,i)?!1:L5.test(i)?i0[i]=!0:(t0[i]=!0,!1)}function Wl(i,s,a){if(M5(s))if(a===null)i.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var c=s.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+a)}}function Fl(i,s,a){if(a===null)i.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+a)}}function cr(i,s,a,c){if(c===null)i.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttributeNS(s,a,""+c)}}function ki(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function r0(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function D5(i,s,a){var c=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var h=c.get,_=c.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return h.call(this)},set:function(g){a=""+g,_.call(this,g)}}),Object.defineProperty(i,s,{enumerable:c.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function yu(i){if(!i._valueTracker){var s=r0(i)?"checked":"value";i._valueTracker=D5(i,s,""+i[s])}}function s0(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var a=s.getValue(),c="";return i&&(c=r0(i)?i.checked?"true":"false":i.value),i=c,i!==a?(s.setValue(i),!0):!1}function Yl(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var O5=/[\n"\\]/g;function Ti(i){return i.replace(O5,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Su(i,s,a,c,h,_,g,w){i.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?i.type=g:i.removeAttribute("type"),s!=null?g==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+ki(s)):i.value!==""+ki(s)&&(i.value=""+ki(s)):g!=="submit"&&g!=="reset"||i.removeAttribute("value"),s!=null?bu(i,g,ki(s)):a!=null?bu(i,g,ki(a)):c!=null&&i.removeAttribute("value"),h==null&&_!=null&&(i.defaultChecked=!!_),h!=null&&(i.checked=h&&typeof h!="function"&&typeof h!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?i.name=""+ki(w):i.removeAttribute("name")}function n0(i,s,a,c,h,_,g,w){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),s!=null||a!=null){if(!(_!=="submit"&&_!=="reset"||s!=null)){yu(i);return}a=a!=null?""+ki(a):"",s=s!=null?""+ki(s):a,w||s===i.value||(i.value=s),i.defaultValue=s}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,i.checked=w?i.checked:!!c,i.defaultChecked=!!c,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(i.name=g),yu(i)}function bu(i,s,a){s==="number"&&Yl(i.ownerDocument)===i||i.defaultValue===""+a||(i.defaultValue=""+a)}function pn(i,s,a,c){if(i=i.options,s){s={};for(var h=0;h<a.length;h++)s["$"+a[h]]=!0;for(a=0;a<i.length;a++)h=s.hasOwnProperty("$"+i[a].value),i[a].selected!==h&&(i[a].selected=h),h&&c&&(i[a].defaultSelected=!0)}else{for(a=""+ki(a),s=null,h=0;h<i.length;h++){if(i[h].value===a){i[h].selected=!0,c&&(i[h].defaultSelected=!0);return}s!==null||i[h].disabled||(s=i[h])}s!==null&&(s.selected=!0)}}function a0(i,s,a){if(s!=null&&(s=""+ki(s),s!==i.value&&(i.value=s),a==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=a!=null?""+ki(a):""}function l0(i,s,a,c){if(s==null){if(c!=null){if(a!=null)throw Error(n(92));if(re(c)){if(1<c.length)throw Error(n(93));c=c[0]}a=c}a==null&&(a=""),s=a}a=ki(s),i.defaultValue=a,c=i.textContent,c===a&&c!==""&&c!==null&&(i.value=c),yu(i)}function _n(i,s){if(s){var a=i.firstChild;if(a&&a===i.lastChild&&a.nodeType===3){a.nodeValue=s;return}}i.textContent=s}var N5=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 o0(i,s,a){var c=s.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?c?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":c?i.setProperty(s,a):typeof a!="number"||a===0||N5.has(s)?s==="float"?i.cssFloat=a:i[s]=(""+a).trim():i[s]=a+"px"}function c0(i,s,a){if(s!=null&&typeof s!="object")throw Error(n(62));if(i=i.style,a!=null){for(var c in a)!a.hasOwnProperty(c)||s!=null&&s.hasOwnProperty(c)||(c.indexOf("--")===0?i.setProperty(c,""):c==="float"?i.cssFloat="":i[c]="");for(var h in s)c=s[h],s.hasOwnProperty(h)&&a[h]!==c&&o0(i,h,c)}else for(var _ in s)s.hasOwnProperty(_)&&o0(i,_,s[_])}function wu(i){if(i.indexOf("-")===-1)return!1;switch(i){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 B5=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"]]),z5=/^[\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 Kl(i){return z5.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function ur(){}var Cu=null;function Eu(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var mn=null,gn=null;function u0(i){var s=hn(i);if(s&&(i=s.stateNode)){var a=i[li]||null;e:switch(i=s.stateNode,s.type){case"input":if(Su(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),s=a.name,a.type==="radio"&&s!=null){for(a=i;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ti(""+s)+'"][type="radio"]'),s=0;s<a.length;s++){var c=a[s];if(c!==i&&c.form===i.form){var h=c[li]||null;if(!h)throw Error(n(90));Su(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(s=0;s<a.length;s++)c=a[s],c.form===i.form&&s0(c)}break e;case"textarea":a0(i,a.value,a.defaultValue);break e;case"select":s=a.value,s!=null&&pn(i,!!a.multiple,s,!1)}}}var xu=!1;function h0(i,s,a){if(xu)return i(s,a);xu=!0;try{var c=i(s);return c}finally{if(xu=!1,(mn!==null||gn!==null)&&(Vo(),mn&&(s=mn,i=gn,gn=mn=null,u0(s),i)))for(s=0;s<i.length;s++)u0(i[s])}}function ya(i,s){var a=i.stateNode;if(a===null)return null;var c=a[li]||null;if(c===null)return null;a=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(i=i.type,c=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!c;break e;default:i=!1}if(i)return null;if(a&&typeof a!="function")throw Error(n(231,s,typeof a));return a}var hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Au=!1;if(hr)try{var Sa={};Object.defineProperty(Sa,"passive",{get:function(){Au=!0}}),window.addEventListener("test",Sa,Sa),window.removeEventListener("test",Sa,Sa)}catch{Au=!1}var Vr=null,ku=null,Xl=null;function f0(){if(Xl)return Xl;var i,s=ku,a=s.length,c,h="value"in Vr?Vr.value:Vr.textContent,_=h.length;for(i=0;i<a&&s[i]===h[i];i++);var g=a-i;for(c=1;c<=g&&s[a-c]===h[_-c];c++);return Xl=h.slice(i,1<c?1-c:void 0)}function Ql(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Jl(){return!0}function d0(){return!1}function oi(i){function s(a,c,h,_,g){this._reactName=a,this._targetInst=h,this.type=c,this.nativeEvent=_,this.target=g,this.currentTarget=null;for(var w in i)i.hasOwnProperty(w)&&(a=i[w],this[w]=a?a(_):_[w]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?Jl:d0,this.isPropagationStopped=d0,this}return m(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Jl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Jl)},persist:function(){},isPersistent:Jl}),s}var ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eo=oi(ks),ba=m({},ks,{view:0,detail:0}),H5=oi(ba),Tu,Ru,wa,to=m({},ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mu,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==wa&&(wa&&i.type==="mousemove"?(Tu=i.screenX-wa.screenX,Ru=i.screenY-wa.screenY):Ru=Tu=0,wa=i),Tu)},movementY:function(i){return"movementY"in i?i.movementY:Ru}}),p0=oi(to),V5=m({},to,{dataTransfer:0}),P5=oi(V5),G5=m({},ba,{relatedTarget:0}),Lu=oi(G5),I5=m({},ks,{animationName:0,elapsedTime:0,pseudoElement:0}),U5=oi(I5),j5=m({},ks,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),q5=oi(j5),$5=m({},ks,{data:0}),_0=oi($5),Z5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W5={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"},F5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y5(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=F5[i])?!!s[i]:!1}function Mu(){return Y5}var K5=m({},ba,{key:function(i){if(i.key){var s=Z5[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Ql(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?W5[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mu,charCode:function(i){return i.type==="keypress"?Ql(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Ql(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),X5=oi(K5),Q5=m({},to,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),m0=oi(Q5),J5=m({},ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mu}),e6=oi(J5),t6=m({},ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),i6=oi(t6),r6=m({},to,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),s6=oi(r6),n6=m({},ks,{newState:0,oldState:0}),a6=oi(n6),l6=[9,13,27,32],Du=hr&&"CompositionEvent"in window,Ca=null;hr&&"documentMode"in document&&(Ca=document.documentMode);var o6=hr&&"TextEvent"in window&&!Ca,g0=hr&&(!Du||Ca&&8<Ca&&11>=Ca),v0=" ",y0=!1;function S0(i,s){switch(i){case"keyup":return l6.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var vn=!1;function c6(i,s){switch(i){case"compositionend":return b0(s);case"keypress":return s.which!==32?null:(y0=!0,v0);case"textInput":return i=s.data,i===v0&&y0?null:i;default:return null}}function u6(i,s){if(vn)return i==="compositionend"||!Du&&S0(i,s)?(i=f0(),Xl=ku=Vr=null,vn=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return g0&&s.locale!=="ko"?null:s.data;default:return null}}var h6={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 w0(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!h6[i.type]:s==="textarea"}function C0(i,s,a,c){mn?gn?gn.push(c):gn=[c]:mn=c,s=$o(s,"onChange"),0<s.length&&(a=new eo("onChange","change",null,a,c),i.push({event:a,listeners:s}))}var Ea=null,xa=null;function f6(i){n_(i,0)}function io(i){var s=va(i);if(s0(s))return i}function E0(i,s){if(i==="change")return s}var x0=!1;if(hr){var Ou;if(hr){var Nu="oninput"in document;if(!Nu){var A0=document.createElement("div");A0.setAttribute("oninput","return;"),Nu=typeof A0.oninput=="function"}Ou=Nu}else Ou=!1;x0=Ou&&(!document.documentMode||9<document.documentMode)}function k0(){Ea&&(Ea.detachEvent("onpropertychange",T0),xa=Ea=null)}function T0(i){if(i.propertyName==="value"&&io(xa)){var s=[];C0(s,xa,i,Eu(i)),h0(f6,s)}}function d6(i,s,a){i==="focusin"?(k0(),Ea=s,xa=a,Ea.attachEvent("onpropertychange",T0)):i==="focusout"&&k0()}function p6(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return io(xa)}function _6(i,s){if(i==="click")return io(s)}function m6(i,s){if(i==="input"||i==="change")return io(s)}function g6(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var mi=typeof Object.is=="function"?Object.is:g6;function Aa(i,s){if(mi(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var a=Object.keys(i),c=Object.keys(s);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var h=a[c];if(!ua.call(s,h)||!mi(i[h],s[h]))return!1}return!0}function R0(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function L0(i,s){var a=R0(i);i=0;for(var c;a;){if(a.nodeType===3){if(c=i+a.textContent.length,i<=s&&c>=s)return{node:a,offset:s-i};i=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=R0(a)}}function M0(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?M0(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function D0(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Yl(i.document);s instanceof i.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)i=s.contentWindow;else break;s=Yl(i.document)}return s}function Bu(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var v6=hr&&"documentMode"in document&&11>=document.documentMode,yn=null,zu=null,ka=null,Hu=!1;function O0(i,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Hu||yn==null||yn!==Yl(c)||(c=yn,"selectionStart"in c&&Bu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),ka&&Aa(ka,c)||(ka=c,c=$o(zu,"onSelect"),0<c.length&&(s=new eo("onSelect","select",null,s,a),i.push({event:s,listeners:c}),s.target=yn)))}function Ts(i,s){var a={};return a[i.toLowerCase()]=s.toLowerCase(),a["Webkit"+i]="webkit"+s,a["Moz"+i]="moz"+s,a}var Sn={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionrun:Ts("Transition","TransitionRun"),transitionstart:Ts("Transition","TransitionStart"),transitioncancel:Ts("Transition","TransitionCancel"),transitionend:Ts("Transition","TransitionEnd")},Vu={},N0={};hr&&(N0=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);function Rs(i){if(Vu[i])return Vu[i];if(!Sn[i])return i;var s=Sn[i],a;for(a in s)if(s.hasOwnProperty(a)&&a in N0)return Vu[i]=s[a];return i}var B0=Rs("animationend"),z0=Rs("animationiteration"),H0=Rs("animationstart"),y6=Rs("transitionrun"),S6=Rs("transitionstart"),b6=Rs("transitioncancel"),V0=Rs("transitionend"),P0=new Map,Pu="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(" ");Pu.push("scrollEnd");function $i(i,s){P0.set(i,s),As(s,[i])}var ro=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Ri=[],bn=0,Gu=0;function so(){for(var i=bn,s=Gu=bn=0;s<i;){var a=Ri[s];Ri[s++]=null;var c=Ri[s];Ri[s++]=null;var h=Ri[s];Ri[s++]=null;var _=Ri[s];if(Ri[s++]=null,c!==null&&h!==null){var g=c.pending;g===null?h.next=h:(h.next=g.next,g.next=h),c.pending=h}_!==0&&G0(a,h,_)}}function no(i,s,a,c){Ri[bn++]=i,Ri[bn++]=s,Ri[bn++]=a,Ri[bn++]=c,Gu|=c,i.lanes|=c,i=i.alternate,i!==null&&(i.lanes|=c)}function Iu(i,s,a,c){return no(i,s,a,c),ao(i)}function Ls(i,s){return no(i,null,null,s),ao(i)}function G0(i,s,a){i.lanes|=a;var c=i.alternate;c!==null&&(c.lanes|=a);for(var h=!1,_=i.return;_!==null;)_.childLanes|=a,c=_.alternate,c!==null&&(c.childLanes|=a),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(h=!0)),i=_,_=_.return;return i.tag===3?(_=i.stateNode,h&&s!==null&&(h=31-ie(a),i=_.hiddenUpdates,c=i[h],c===null?i[h]=[s]:c.push(s),s.lane=a|536870912),_):null}function ao(i){if(50<Ya)throw Ya=0,Kh=null,Error(n(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var wn={};function w6(i,s,a,c){this.tag=i,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(i,s,a,c){return new w6(i,s,a,c)}function Uu(i){return i=i.prototype,!(!i||!i.isReactComponent)}function fr(i,s){var a=i.alternate;return a===null?(a=gi(i.tag,s,i.key,i.mode),a.elementType=i.elementType,a.type=i.type,a.stateNode=i.stateNode,a.alternate=i,i.alternate=a):(a.pendingProps=s,a.type=i.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=i.flags&65011712,a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,s=i.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=i.sibling,a.index=i.index,a.ref=i.ref,a.refCleanup=i.refCleanup,a}function I0(i,s){i.flags&=65011714;var a=i.alternate;return a===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,s=a.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function lo(i,s,a,c,h,_){var g=0;if(c=i,typeof i=="function")Uu(i)&&(g=1);else if(typeof i=="string")g=kv(i,a,se.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case oe:return i=gi(31,a,s,h),i.elementType=oe,i.lanes=_,i;case x:return Ms(a.children,h,_,s);case T:g=8,h|=24;break;case M:return i=gi(12,a,s,h|2),i.elementType=M,i.lanes=_,i;case W:return i=gi(13,a,s,h),i.elementType=W,i.lanes=_,i;case X:return i=gi(19,a,s,h),i.elementType=X,i.lanes=_,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case O:g=10;break e;case z:g=9;break e;case P:g=11;break e;case ne:g=14;break e;case _e:g=16,c=null;break e}g=29,a=Error(n(130,i===null?"null":typeof i,"")),c=null}return s=gi(g,a,s,h),s.elementType=i,s.type=c,s.lanes=_,s}function Ms(i,s,a,c){return i=gi(7,i,c,s),i.lanes=a,i}function ju(i,s,a){return i=gi(6,i,null,s),i.lanes=a,i}function U0(i){var s=gi(18,null,null,0);return s.stateNode=i,s}function qu(i,s,a){return s=gi(4,i.children!==null?i.children:[],i.key,s),s.lanes=a,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var j0=new WeakMap;function Li(i,s){if(typeof i=="object"&&i!==null){var a=j0.get(i);return a!==void 0?a:(s={value:i,source:s,stack:ca(s)},j0.set(i,s),s)}return{value:i,source:s,stack:ca(s)}}var Cn=[],En=0,oo=null,Ta=0,Mi=[],Di=0,Pr=null,Xi=1,Qi="";function dr(i,s){Cn[En++]=Ta,Cn[En++]=oo,oo=i,Ta=s}function q0(i,s,a){Mi[Di++]=Xi,Mi[Di++]=Qi,Mi[Di++]=Pr,Pr=i;var c=Xi;i=Qi;var h=32-ie(c)-1;c&=~(1<<h),a+=1;var _=32-ie(s)+h;if(30<_){var g=h-h%5;_=(c&(1<<g)-1).toString(32),c>>=g,h-=g,Xi=1<<32-ie(s)+h|a<<h|c,Qi=_+i}else Xi=1<<_|a<<h|c,Qi=i}function $u(i){i.return!==null&&(dr(i,1),q0(i,1,0))}function Zu(i){for(;i===oo;)oo=Cn[--En],Cn[En]=null,Ta=Cn[--En],Cn[En]=null;for(;i===Pr;)Pr=Mi[--Di],Mi[Di]=null,Qi=Mi[--Di],Mi[Di]=null,Xi=Mi[--Di],Mi[Di]=null}function $0(i,s){Mi[Di++]=Xi,Mi[Di++]=Qi,Mi[Di++]=Pr,Xi=s.id,Qi=s.overflow,Pr=i}var jt=null,tt=null,Ge=!1,Gr=null,Oi=!1,Wu=Error(n(519));function Ir(i){var s=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ra(Li(s,i)),Wu}function Z0(i){var s=i.stateNode,a=i.type,c=i.memoizedProps;switch(s[Ut]=i,s[li]=c,a){case"dialog":ze("cancel",s),ze("close",s);break;case"iframe":case"object":case"embed":ze("load",s);break;case"video":case"audio":for(a=0;a<Xa.length;a++)ze(Xa[a],s);break;case"source":ze("error",s);break;case"img":case"image":case"link":ze("error",s),ze("load",s);break;case"details":ze("toggle",s);break;case"input":ze("invalid",s),n0(s,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":ze("invalid",s);break;case"textarea":ze("invalid",s),l0(s,c.value,c.defaultValue,c.children)}a=c.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||s.textContent===""+a||c.suppressHydrationWarning===!0||c_(s.textContent,a)?(c.popover!=null&&(ze("beforetoggle",s),ze("toggle",s)),c.onScroll!=null&&ze("scroll",s),c.onScrollEnd!=null&&ze("scrollend",s),c.onClick!=null&&(s.onclick=ur),s=!0):s=!1,s||Ir(i,!0)}function W0(i){for(jt=i.return;jt;)switch(jt.tag){case 5:case 31:case 13:Oi=!1;return;case 27:case 3:Oi=!0;return;default:jt=jt.return}}function xn(i){if(i!==jt)return!1;if(!Ge)return W0(i),Ge=!0,!1;var s=i.tag,a;if((a=s!==3&&s!==27)&&((a=s===5)&&(a=i.type,a=!(a!=="form"&&a!=="button")||h1(i.type,i.memoizedProps)),a=!a),a&&tt&&Ir(i),W0(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));tt=v_(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));tt=v_(i)}else s===27?(s=tt,ts(i.type)?(i=m1,m1=null,tt=i):tt=s):tt=jt?Bi(i.stateNode.nextSibling):null;return!0}function Ds(){tt=jt=null,Ge=!1}function Fu(){var i=Gr;return i!==null&&(fi===null?fi=i:fi.push.apply(fi,i),Gr=null),i}function Ra(i){Gr===null?Gr=[i]:Gr.push(i)}var Yu=A(null),Os=null,pr=null;function Ur(i,s,a){Z(Yu,s._currentValue),s._currentValue=a}function _r(i){i._currentValue=Yu.current,N(Yu)}function Ku(i,s,a){for(;i!==null;){var c=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),i===a)break;i=i.return}}function Xu(i,s,a,c){var h=i.child;for(h!==null&&(h.return=i);h!==null;){var _=h.dependencies;if(_!==null){var g=h.child;_=_.firstContext;e:for(;_!==null;){var w=_;_=h;for(var k=0;k<s.length;k++)if(w.context===s[k]){_.lanes|=a,w=_.alternate,w!==null&&(w.lanes|=a),Ku(_.return,a,i),c||(g=null);break e}_=w.next}}else if(h.tag===18){if(g=h.return,g===null)throw Error(n(341));g.lanes|=a,_=g.alternate,_!==null&&(_.lanes|=a),Ku(g,a,i),g=null}else g=h.child;if(g!==null)g.return=h;else for(g=h;g!==null;){if(g===i){g=null;break}if(h=g.sibling,h!==null){h.return=g.return,g=h;break}g=g.return}h=g}}function An(i,s,a,c){i=null;for(var h=s,_=!1;h!==null;){if(!_){if((h.flags&524288)!==0)_=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var g=h.alternate;if(g===null)throw Error(n(387));if(g=g.memoizedProps,g!==null){var w=h.type;mi(h.pendingProps.value,g.value)||(i!==null?i.push(w):i=[w])}}else if(h===fe.current){if(g=h.alternate,g===null)throw Error(n(387));g.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(i!==null?i.push(il):i=[il])}h=h.return}i!==null&&Xu(s,i,a,c),s.flags|=262144}function co(i){for(i=i.firstContext;i!==null;){if(!mi(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ns(i){Os=i,pr=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function qt(i){return F0(Os,i)}function uo(i,s){return Os===null&&Ns(i),F0(i,s)}function F0(i,s){var a=s._currentValue;if(s={context:s,memoizedValue:a,next:null},pr===null){if(i===null)throw Error(n(308));pr=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else pr=pr.next=s;return a}var C6=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(a,c){i.push(c)}};this.abort=function(){s.aborted=!0,i.forEach(function(a){return a()})}},E6=e.unstable_scheduleCallback,x6=e.unstable_NormalPriority,yt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qu(){return{controller:new C6,data:new Map,refCount:0}}function La(i){i.refCount--,i.refCount===0&&E6(x6,function(){i.controller.abort()})}var Ma=null,Ju=0,kn=0,Tn=null;function A6(i,s){if(Ma===null){var a=Ma=[];Ju=0,kn=i1(),Tn={status:"pending",value:void 0,then:function(c){a.push(c)}}}return Ju++,s.then(Y0,Y0),s}function Y0(){if(--Ju===0&&Ma!==null){Tn!==null&&(Tn.status="fulfilled");var i=Ma;Ma=null,kn=0,Tn=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function k6(i,s){var a=[],c={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return i.then(function(){c.status="fulfilled",c.value=s;for(var h=0;h<a.length;h++)(0,a[h])(s)},function(h){for(c.status="rejected",c.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),c}var K0=R.S;R.S=function(i,s){Op=Jt(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&A6(i,s),K0!==null&&K0(i,s)};var Bs=A(null);function eh(){var i=Bs.current;return i!==null?i:Qe.pooledCache}function ho(i,s){s===null?Z(Bs,Bs.current):Z(Bs,s.pool)}function X0(){var i=eh();return i===null?null:{parent:yt._currentValue,pool:i}}var Rn=Error(n(460)),th=Error(n(474)),fo=Error(n(542)),po={then:function(){}};function Q0(i){return i=i.status,i==="fulfilled"||i==="rejected"}function J0(i,s,a){switch(a=i[a],a===void 0?i.push(s):a!==s&&(s.then(ur,ur),s=a),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,t2(i),i;default:if(typeof s.status=="string")s.then(ur,ur);else{if(i=Qe,i!==null&&100<i.shellSuspendCounter)throw Error(n(482));i=s,i.status="pending",i.then(function(c){if(s.status==="pending"){var h=s;h.status="fulfilled",h.value=c}},function(c){if(s.status==="pending"){var h=s;h.status="rejected",h.reason=c}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,t2(i),i}throw Hs=s,Rn}}function zs(i){try{var s=i._init;return s(i._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Hs=a,Rn):a}}var Hs=null;function e2(){if(Hs===null)throw Error(n(459));var i=Hs;return Hs=null,i}function t2(i){if(i===Rn||i===fo)throw Error(n(483))}var Ln=null,Da=0;function _o(i){var s=Da;return Da+=1,Ln===null&&(Ln=[]),J0(Ln,i,s)}function Oa(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function mo(i,s){throw s.$$typeof===y?Error(n(525)):(i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function i2(i){function s(D,L){if(i){var H=D.deletions;H===null?(D.deletions=[L],D.flags|=16):H.push(L)}}function a(D,L){if(!i)return null;for(;L!==null;)s(D,L),L=L.sibling;return null}function c(D){for(var L=new Map;D!==null;)D.key!==null?L.set(D.key,D):L.set(D.index,D),D=D.sibling;return L}function h(D,L){return D=fr(D,L),D.index=0,D.sibling=null,D}function _(D,L,H){return D.index=H,i?(H=D.alternate,H!==null?(H=H.index,H<L?(D.flags|=67108866,L):H):(D.flags|=67108866,L)):(D.flags|=1048576,L)}function g(D){return i&&D.alternate===null&&(D.flags|=67108866),D}function w(D,L,H,Q){return L===null||L.tag!==6?(L=ju(H,D.mode,Q),L.return=D,L):(L=h(L,H),L.return=D,L)}function k(D,L,H,Q){var Se=H.type;return Se===x?F(D,L,H.props.children,Q,H.key):L!==null&&(L.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===_e&&zs(Se)===L.type)?(L=h(L,H.props),Oa(L,H),L.return=D,L):(L=lo(H.type,H.key,H.props,null,D.mode,Q),Oa(L,H),L.return=D,L)}function V(D,L,H,Q){return L===null||L.tag!==4||L.stateNode.containerInfo!==H.containerInfo||L.stateNode.implementation!==H.implementation?(L=qu(H,D.mode,Q),L.return=D,L):(L=h(L,H.children||[]),L.return=D,L)}function F(D,L,H,Q,Se){return L===null||L.tag!==7?(L=Ms(H,D.mode,Q,Se),L.return=D,L):(L=h(L,H),L.return=D,L)}function ee(D,L,H){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=ju(""+L,D.mode,H),L.return=D,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return H=lo(L.type,L.key,L.props,null,D.mode,H),Oa(H,L),H.return=D,H;case S:return L=qu(L,D.mode,H),L.return=D,L;case _e:return L=zs(L),ee(D,L,H)}if(re(L)||J(L))return L=Ms(L,D.mode,H,null),L.return=D,L;if(typeof L.then=="function")return ee(D,_o(L),H);if(L.$$typeof===O)return ee(D,uo(D,L),H);mo(D,L)}return null}function G(D,L,H,Q){var Se=L!==null?L.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return Se!==null?null:w(D,L,""+H,Q);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case b:return H.key===Se?k(D,L,H,Q):null;case S:return H.key===Se?V(D,L,H,Q):null;case _e:return H=zs(H),G(D,L,H,Q)}if(re(H)||J(H))return Se!==null?null:F(D,L,H,Q,null);if(typeof H.then=="function")return G(D,L,_o(H),Q);if(H.$$typeof===O)return G(D,L,uo(D,H),Q);mo(D,H)}return null}function U(D,L,H,Q,Se){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return D=D.get(H)||null,w(L,D,""+Q,Se);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case b:return D=D.get(Q.key===null?H:Q.key)||null,k(L,D,Q,Se);case S:return D=D.get(Q.key===null?H:Q.key)||null,V(L,D,Q,Se);case _e:return Q=zs(Q),U(D,L,H,Q,Se)}if(re(Q)||J(Q))return D=D.get(H)||null,F(L,D,Q,Se,null);if(typeof Q.then=="function")return U(D,L,H,_o(Q),Se);if(Q.$$typeof===O)return U(D,L,H,uo(L,Q),Se);mo(L,Q)}return null}function pe(D,L,H,Q){for(var Se=null,Ue=null,ve=L,Re=L=0,Ve=null;ve!==null&&Re<H.length;Re++){ve.index>Re?(Ve=ve,ve=null):Ve=ve.sibling;var je=G(D,ve,H[Re],Q);if(je===null){ve===null&&(ve=Ve);break}i&&ve&&je.alternate===null&&s(D,ve),L=_(je,L,Re),Ue===null?Se=je:Ue.sibling=je,Ue=je,ve=Ve}if(Re===H.length)return a(D,ve),Ge&&dr(D,Re),Se;if(ve===null){for(;Re<H.length;Re++)ve=ee(D,H[Re],Q),ve!==null&&(L=_(ve,L,Re),Ue===null?Se=ve:Ue.sibling=ve,Ue=ve);return Ge&&dr(D,Re),Se}for(ve=c(ve);Re<H.length;Re++)Ve=U(ve,D,Re,H[Re],Q),Ve!==null&&(i&&Ve.alternate!==null&&ve.delete(Ve.key===null?Re:Ve.key),L=_(Ve,L,Re),Ue===null?Se=Ve:Ue.sibling=Ve,Ue=Ve);return i&&ve.forEach(function(as){return s(D,as)}),Ge&&dr(D,Re),Se}function be(D,L,H,Q){if(H==null)throw Error(n(151));for(var Se=null,Ue=null,ve=L,Re=L=0,Ve=null,je=H.next();ve!==null&&!je.done;Re++,je=H.next()){ve.index>Re?(Ve=ve,ve=null):Ve=ve.sibling;var as=G(D,ve,je.value,Q);if(as===null){ve===null&&(ve=Ve);break}i&&ve&&as.alternate===null&&s(D,ve),L=_(as,L,Re),Ue===null?Se=as:Ue.sibling=as,Ue=as,ve=Ve}if(je.done)return a(D,ve),Ge&&dr(D,Re),Se;if(ve===null){for(;!je.done;Re++,je=H.next())je=ee(D,je.value,Q),je!==null&&(L=_(je,L,Re),Ue===null?Se=je:Ue.sibling=je,Ue=je);return Ge&&dr(D,Re),Se}for(ve=c(ve);!je.done;Re++,je=H.next())je=U(ve,D,Re,je.value,Q),je!==null&&(i&&je.alternate!==null&&ve.delete(je.key===null?Re:je.key),L=_(je,L,Re),Ue===null?Se=je:Ue.sibling=je,Ue=je);return i&&ve.forEach(function(Vv){return s(D,Vv)}),Ge&&dr(D,Re),Se}function Ke(D,L,H,Q){if(typeof H=="object"&&H!==null&&H.type===x&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case b:e:{for(var Se=H.key;L!==null;){if(L.key===Se){if(Se=H.type,Se===x){if(L.tag===7){a(D,L.sibling),Q=h(L,H.props.children),Q.return=D,D=Q;break e}}else if(L.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===_e&&zs(Se)===L.type){a(D,L.sibling),Q=h(L,H.props),Oa(Q,H),Q.return=D,D=Q;break e}a(D,L);break}else s(D,L);L=L.sibling}H.type===x?(Q=Ms(H.props.children,D.mode,Q,H.key),Q.return=D,D=Q):(Q=lo(H.type,H.key,H.props,null,D.mode,Q),Oa(Q,H),Q.return=D,D=Q)}return g(D);case S:e:{for(Se=H.key;L!==null;){if(L.key===Se)if(L.tag===4&&L.stateNode.containerInfo===H.containerInfo&&L.stateNode.implementation===H.implementation){a(D,L.sibling),Q=h(L,H.children||[]),Q.return=D,D=Q;break e}else{a(D,L);break}else s(D,L);L=L.sibling}Q=qu(H,D.mode,Q),Q.return=D,D=Q}return g(D);case _e:return H=zs(H),Ke(D,L,H,Q)}if(re(H))return pe(D,L,H,Q);if(J(H)){if(Se=J(H),typeof Se!="function")throw Error(n(150));return H=Se.call(H),be(D,L,H,Q)}if(typeof H.then=="function")return Ke(D,L,_o(H),Q);if(H.$$typeof===O)return Ke(D,L,uo(D,H),Q);mo(D,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,L!==null&&L.tag===6?(a(D,L.sibling),Q=h(L,H),Q.return=D,D=Q):(a(D,L),Q=ju(H,D.mode,Q),Q.return=D,D=Q),g(D)):a(D,L)}return function(D,L,H,Q){try{Da=0;var Se=Ke(D,L,H,Q);return Ln=null,Se}catch(ve){if(ve===Rn||ve===fo)throw ve;var Ue=gi(29,ve,null,D.mode);return Ue.lanes=Q,Ue.return=D,Ue}finally{}}}var Vs=i2(!0),r2=i2(!1),jr=!1;function ih(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rh(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function qr(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function $r(i,s,a){var c=i.updateQueue;if(c===null)return null;if(c=c.shared,(qe&2)!==0){var h=c.pending;return h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s,s=ao(i),G0(i,null,a),s}return no(i,c,s,a),ao(i)}function Na(i,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194048)!==0)){var c=s.lanes;c&=i.pendingLanes,a|=c,s.lanes=a,Fd(i,a)}}function sh(i,s){var a=i.updateQueue,c=i.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var h=null,_=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};_===null?h=_=g:_=_.next=g,a=a.next}while(a!==null);_===null?h=_=s:_=_.next=s}else h=_=s;a={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:_,shared:c.shared,callbacks:c.callbacks},i.updateQueue=a;return}i=a.lastBaseUpdate,i===null?a.firstBaseUpdate=s:i.next=s,a.lastBaseUpdate=s}var nh=!1;function Ba(){if(nh){var i=Tn;if(i!==null)throw i}}function za(i,s,a,c){nh=!1;var h=i.updateQueue;jr=!1;var _=h.firstBaseUpdate,g=h.lastBaseUpdate,w=h.shared.pending;if(w!==null){h.shared.pending=null;var k=w,V=k.next;k.next=null,g===null?_=V:g.next=V,g=k;var F=i.alternate;F!==null&&(F=F.updateQueue,w=F.lastBaseUpdate,w!==g&&(w===null?F.firstBaseUpdate=V:w.next=V,F.lastBaseUpdate=k))}if(_!==null){var ee=h.baseState;g=0,F=V=k=null,w=_;do{var G=w.lane&-536870913,U=G!==w.lane;if(U?(He&G)===G:(c&G)===G){G!==0&&G===kn&&(nh=!0),F!==null&&(F=F.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var pe=i,be=w;G=s;var Ke=a;switch(be.tag){case 1:if(pe=be.payload,typeof pe=="function"){ee=pe.call(Ke,ee,G);break e}ee=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=be.payload,G=typeof pe=="function"?pe.call(Ke,ee,G):pe,G==null)break e;ee=m({},ee,G);break e;case 2:jr=!0}}G=w.callback,G!==null&&(i.flags|=64,U&&(i.flags|=8192),U=h.callbacks,U===null?h.callbacks=[G]:U.push(G))}else U={lane:G,tag:w.tag,payload:w.payload,callback:w.callback,next:null},F===null?(V=F=U,k=ee):F=F.next=U,g|=G;if(w=w.next,w===null){if(w=h.shared.pending,w===null)break;U=w,w=U.next,U.next=null,h.lastBaseUpdate=U,h.shared.pending=null}}while(!0);F===null&&(k=ee),h.baseState=k,h.firstBaseUpdate=V,h.lastBaseUpdate=F,_===null&&(h.shared.lanes=0),Kr|=g,i.lanes=g,i.memoizedState=ee}}function s2(i,s){if(typeof i!="function")throw Error(n(191,i));i.call(s)}function n2(i,s){var a=i.callbacks;if(a!==null)for(i.callbacks=null,i=0;i<a.length;i++)s2(a[i],s)}var Mn=A(null),go=A(0);function a2(i,s){i=Er,Z(go,i),Z(Mn,s),Er=i|s.baseLanes}function ah(){Z(go,Er),Z(Mn,Mn.current)}function lh(){Er=go.current,N(Mn),N(go)}var vi=A(null),Ni=null;function Zr(i){var s=i.alternate;Z(pt,pt.current&1),Z(vi,i),Ni===null&&(s===null||Mn.current!==null||s.memoizedState!==null)&&(Ni=i)}function oh(i){Z(pt,pt.current),Z(vi,i),Ni===null&&(Ni=i)}function l2(i){i.tag===22?(Z(pt,pt.current),Z(vi,i),Ni===null&&(Ni=i)):Wr()}function Wr(){Z(pt,pt.current),Z(vi,vi.current)}function yi(i){N(vi),Ni===i&&(Ni=null),N(pt)}var pt=A(0);function vo(i){for(var s=i;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||p1(a)||_1(a)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var mr=0,ke=null,Fe=null,St=null,yo=!1,Dn=!1,Ps=!1,So=0,Ha=0,On=null,T6=0;function ct(){throw Error(n(321))}function ch(i,s){if(s===null)return!1;for(var a=0;a<s.length&&a<i.length;a++)if(!mi(i[a],s[a]))return!1;return!0}function uh(i,s,a,c,h,_){return mr=_,ke=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,R.H=i===null||i.memoizedState===null?q2:xh,Ps=!1,_=a(c,h),Ps=!1,Dn&&(_=c2(s,a,c,h)),o2(i),_}function o2(i){R.H=Ga;var s=Fe!==null&&Fe.next!==null;if(mr=0,St=Fe=ke=null,yo=!1,Ha=0,On=null,s)throw Error(n(300));i===null||bt||(i=i.dependencies,i!==null&&co(i)&&(bt=!0))}function c2(i,s,a,c){ke=i;var h=0;do{if(Dn&&(On=null),Ha=0,Dn=!1,25<=h)throw Error(n(301));if(h+=1,St=Fe=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}R.H=$2,_=s(a,c)}while(Dn);return _}function R6(){var i=R.H,s=i.useState()[0];return s=typeof s.then=="function"?Va(s):s,i=i.useState()[0],(Fe!==null?Fe.memoizedState:null)!==i&&(ke.flags|=1024),s}function hh(){var i=So!==0;return So=0,i}function fh(i,s,a){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~a}function dh(i){if(yo){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}yo=!1}mr=0,St=Fe=ke=null,Dn=!1,Ha=So=0,On=null}function ti(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?ke.memoizedState=St=i:St=St.next=i,St}function _t(){if(Fe===null){var i=ke.alternate;i=i!==null?i.memoizedState:null}else i=Fe.next;var s=St===null?ke.memoizedState:St.next;if(s!==null)St=s,Fe=i;else{if(i===null)throw ke.alternate===null?Error(n(467)):Error(n(310));Fe=i,i={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},St===null?ke.memoizedState=St=i:St=St.next=i}return St}function bo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Va(i){var s=Ha;return Ha+=1,On===null&&(On=[]),i=J0(On,i,s),s=ke,(St===null?s.memoizedState:St.next)===null&&(s=s.alternate,R.H=s===null||s.memoizedState===null?q2:xh),i}function wo(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Va(i);if(i.$$typeof===O)return qt(i)}throw Error(n(438,String(i)))}function ph(i){var s=null,a=ke.updateQueue;if(a!==null&&(s=a.memoCache),s==null){var c=ke.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(s={data:c.data.map(function(h){return h.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),a===null&&(a=bo(),ke.updateQueue=a),a.memoCache=s,a=s.data[s.index],a===void 0)for(a=s.data[s.index]=Array(i),c=0;c<i;c++)a[c]=Ee;return s.index++,a}function gr(i,s){return typeof s=="function"?s(i):s}function Co(i){var s=_t();return _h(s,Fe,i)}function _h(i,s,a){var c=i.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=a;var h=i.baseQueue,_=c.pending;if(_!==null){if(h!==null){var g=h.next;h.next=_.next,_.next=g}s.baseQueue=h=_,c.pending=null}if(_=i.baseState,h===null)i.memoizedState=_;else{s=h.next;var w=g=null,k=null,V=s,F=!1;do{var ee=V.lane&-536870913;if(ee!==V.lane?(He&ee)===ee:(mr&ee)===ee){var G=V.revertLane;if(G===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),ee===kn&&(F=!0);else if((mr&G)===G){V=V.next,G===kn&&(F=!0);continue}else ee={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},k===null?(w=k=ee,g=_):k=k.next=ee,ke.lanes|=G,Kr|=G;ee=V.action,Ps&&a(_,ee),_=V.hasEagerState?V.eagerState:a(_,ee)}else G={lane:ee,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},k===null?(w=k=G,g=_):k=k.next=G,ke.lanes|=ee,Kr|=ee;V=V.next}while(V!==null&&V!==s);if(k===null?g=_:k.next=w,!mi(_,i.memoizedState)&&(bt=!0,F&&(a=Tn,a!==null)))throw a;i.memoizedState=_,i.baseState=g,i.baseQueue=k,c.lastRenderedState=_}return h===null&&(c.lanes=0),[i.memoizedState,c.dispatch]}function mh(i){var s=_t(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=i;var c=a.dispatch,h=a.pending,_=s.memoizedState;if(h!==null){a.pending=null;var g=h=h.next;do _=i(_,g.action),g=g.next;while(g!==h);mi(_,s.memoizedState)||(bt=!0),s.memoizedState=_,s.baseQueue===null&&(s.baseState=_),a.lastRenderedState=_}return[_,c]}function u2(i,s,a){var c=ke,h=_t(),_=Ge;if(_){if(a===void 0)throw Error(n(407));a=a()}else a=s();var g=!mi((Fe||h).memoizedState,a);if(g&&(h.memoizedState=a,bt=!0),h=h.queue,yh(d2.bind(null,c,h,i),[i]),h.getSnapshot!==s||g||St!==null&&St.memoizedState.tag&1){if(c.flags|=2048,Nn(9,{destroy:void 0},f2.bind(null,c,h,a,s),null),Qe===null)throw Error(n(349));_||(mr&127)!==0||h2(c,s,a)}return a}function h2(i,s,a){i.flags|=16384,i={getSnapshot:s,value:a},s=ke.updateQueue,s===null?(s=bo(),ke.updateQueue=s,s.stores=[i]):(a=s.stores,a===null?s.stores=[i]:a.push(i))}function f2(i,s,a,c){s.value=a,s.getSnapshot=c,p2(s)&&_2(i)}function d2(i,s,a){return a(function(){p2(s)&&_2(i)})}function p2(i){var s=i.getSnapshot;i=i.value;try{var a=s();return!mi(i,a)}catch{return!0}}function _2(i){var s=Ls(i,2);s!==null&&di(s,i,2)}function gh(i){var s=ti();if(typeof i=="function"){var a=i;if(i=a(),Ps){j(!0);try{a()}finally{j(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:i},s}function m2(i,s,a,c){return i.baseState=a,_h(i,Fe,typeof c=="function"?c:gr)}function L6(i,s,a,c,h){if(Ao(i))throw Error(n(485));if(i=s.action,i!==null){var _={payload:h,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){_.listeners.push(g)}};R.T!==null?a(!0):_.isTransition=!1,c(_),a=s.pending,a===null?(_.next=s.pending=_,g2(s,_)):(_.next=a.next,s.pending=a.next=_)}}function g2(i,s){var a=s.action,c=s.payload,h=i.state;if(s.isTransition){var _=R.T,g={};R.T=g;try{var w=a(h,c),k=R.S;k!==null&&k(g,w),v2(i,s,w)}catch(V){vh(i,s,V)}finally{_!==null&&g.types!==null&&(_.types=g.types),R.T=_}}else try{_=a(h,c),v2(i,s,_)}catch(V){vh(i,s,V)}}function v2(i,s,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(c){y2(i,s,c)},function(c){return vh(i,s,c)}):y2(i,s,a)}function y2(i,s,a){s.status="fulfilled",s.value=a,S2(s),i.state=a,s=i.pending,s!==null&&(a=s.next,a===s?i.pending=null:(a=a.next,s.next=a,g2(i,a)))}function vh(i,s,a){var c=i.pending;if(i.pending=null,c!==null){c=c.next;do s.status="rejected",s.reason=a,S2(s),s=s.next;while(s!==c)}i.action=null}function S2(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function b2(i,s){return s}function w2(i,s){if(Ge){var a=Qe.formState;if(a!==null){e:{var c=ke;if(Ge){if(tt){t:{for(var h=tt,_=Oi;h.nodeType!==8;){if(!_){h=null;break t}if(h=Bi(h.nextSibling),h===null){h=null;break t}}_=h.data,h=_==="F!"||_==="F"?h:null}if(h){tt=Bi(h.nextSibling),c=h.data==="F!";break e}}Ir(c)}c=!1}c&&(s=a[0])}}return a=ti(),a.memoizedState=a.baseState=s,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:b2,lastRenderedState:s},a.queue=c,a=I2.bind(null,ke,c),c.dispatch=a,c=gh(!1),_=Eh.bind(null,ke,!1,c.queue),c=ti(),h={state:s,dispatch:null,action:i,pending:null},c.queue=h,a=L6.bind(null,ke,h,_,a),h.dispatch=a,c.memoizedState=i,[s,a,!1]}function C2(i){var s=_t();return E2(s,Fe,i)}function E2(i,s,a){if(s=_h(i,s,b2)[0],i=Co(gr)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var c=Va(s)}catch(g){throw g===Rn?fo:g}else c=s;s=_t();var h=s.queue,_=h.dispatch;return a!==s.memoizedState&&(ke.flags|=2048,Nn(9,{destroy:void 0},M6.bind(null,h,a),null)),[c,_,i]}function M6(i,s){i.action=s}function x2(i){var s=_t(),a=Fe;if(a!==null)return E2(s,a,i);_t(),s=s.memoizedState,a=_t();var c=a.queue.dispatch;return a.memoizedState=i,[s,c,!1]}function Nn(i,s,a,c){return i={tag:i,create:a,deps:c,inst:s,next:null},s=ke.updateQueue,s===null&&(s=bo(),ke.updateQueue=s),a=s.lastEffect,a===null?s.lastEffect=i.next=i:(c=a.next,a.next=i,i.next=c,s.lastEffect=i),i}function A2(){return _t().memoizedState}function Eo(i,s,a,c){var h=ti();ke.flags|=i,h.memoizedState=Nn(1|s,{destroy:void 0},a,c===void 0?null:c)}function xo(i,s,a,c){var h=_t();c=c===void 0?null:c;var _=h.memoizedState.inst;Fe!==null&&c!==null&&ch(c,Fe.memoizedState.deps)?h.memoizedState=Nn(s,_,a,c):(ke.flags|=i,h.memoizedState=Nn(1|s,_,a,c))}function k2(i,s){Eo(8390656,8,i,s)}function yh(i,s){xo(2048,8,i,s)}function D6(i){ke.flags|=4;var s=ke.updateQueue;if(s===null)s=bo(),ke.updateQueue=s,s.events=[i];else{var a=s.events;a===null?s.events=[i]:a.push(i)}}function T2(i){var s=_t().memoizedState;return D6({ref:s,nextImpl:i}),function(){if((qe&2)!==0)throw Error(n(440));return s.impl.apply(void 0,arguments)}}function R2(i,s){return xo(4,2,i,s)}function L2(i,s){return xo(4,4,i,s)}function M2(i,s){if(typeof s=="function"){i=i();var a=s(i);return function(){typeof a=="function"?a():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function D2(i,s,a){a=a!=null?a.concat([i]):null,xo(4,4,M2.bind(null,s,i),a)}function Sh(){}function O2(i,s){var a=_t();s=s===void 0?null:s;var c=a.memoizedState;return s!==null&&ch(s,c[1])?c[0]:(a.memoizedState=[i,s],i)}function N2(i,s){var a=_t();s=s===void 0?null:s;var c=a.memoizedState;if(s!==null&&ch(s,c[1]))return c[0];if(c=i(),Ps){j(!0);try{i()}finally{j(!1)}}return a.memoizedState=[c,s],c}function bh(i,s,a){return a===void 0||(mr&1073741824)!==0&&(He&261930)===0?i.memoizedState=s:(i.memoizedState=a,i=Bp(),ke.lanes|=i,Kr|=i,a)}function B2(i,s,a,c){return mi(a,s)?a:Mn.current!==null?(i=bh(i,a,c),mi(i,s)||(bt=!0),i):(mr&42)===0||(mr&1073741824)!==0&&(He&261930)===0?(bt=!0,i.memoizedState=a):(i=Bp(),ke.lanes|=i,Kr|=i,s)}function z2(i,s,a,c,h){var _=$.p;$.p=_!==0&&8>_?_:8;var g=R.T,w={};R.T=w,Eh(i,!1,s,a);try{var k=h(),V=R.S;if(V!==null&&V(w,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var F=k6(k,c);Pa(i,s,F,wi(i))}else Pa(i,s,c,wi(i))}catch(ee){Pa(i,s,{then:function(){},status:"rejected",reason:ee},wi())}finally{$.p=_,g!==null&&w.types!==null&&(g.types=w.types),R.T=g}}function O6(){}function wh(i,s,a,c){if(i.tag!==5)throw Error(n(476));var h=H2(i).queue;z2(i,h,s,q,a===null?O6:function(){return V2(i),a(c)})}function H2(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:q},next:null};var a={};return s.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:a},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function V2(i){var s=H2(i);s.next===null&&(s=i.alternate.memoizedState),Pa(i,s.next.queue,{},wi())}function Ch(){return qt(il)}function P2(){return _t().memoizedState}function G2(){return _t().memoizedState}function N6(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var a=wi();i=qr(a);var c=$r(s,i,a);c!==null&&(di(c,s,a),Na(c,s,a)),s={cache:Qu()},i.payload=s;return}s=s.return}}function B6(i,s,a){var c=wi();a={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ao(i)?U2(s,a):(a=Iu(i,s,a,c),a!==null&&(di(a,i,c),j2(a,s,c)))}function I2(i,s,a){var c=wi();Pa(i,s,a,c)}function Pa(i,s,a,c){var h={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ao(i))U2(s,h);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var g=s.lastRenderedState,w=_(g,a);if(h.hasEagerState=!0,h.eagerState=w,mi(w,g))return no(i,s,h,0),Qe===null&&so(),!1}catch{}finally{}if(a=Iu(i,s,h,c),a!==null)return di(a,i,c),j2(a,s,c),!0}return!1}function Eh(i,s,a,c){if(c={lane:2,revertLane:i1(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Ao(i)){if(s)throw Error(n(479))}else s=Iu(i,a,c,2),s!==null&&di(s,i,2)}function Ao(i){var s=i.alternate;return i===ke||s!==null&&s===ke}function U2(i,s){Dn=yo=!0;var a=i.pending;a===null?s.next=s:(s.next=a.next,a.next=s),i.pending=s}function j2(i,s,a){if((a&4194048)!==0){var c=s.lanes;c&=i.pendingLanes,a|=c,s.lanes=a,Fd(i,a)}}var Ga={readContext:qt,use:wo,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};Ga.useEffectEvent=ct;var q2={readContext:qt,use:wo,useCallback:function(i,s){return ti().memoizedState=[i,s===void 0?null:s],i},useContext:qt,useEffect:k2,useImperativeHandle:function(i,s,a){a=a!=null?a.concat([i]):null,Eo(4194308,4,M2.bind(null,s,i),a)},useLayoutEffect:function(i,s){return Eo(4194308,4,i,s)},useInsertionEffect:function(i,s){Eo(4,2,i,s)},useMemo:function(i,s){var a=ti();s=s===void 0?null:s;var c=i();if(Ps){j(!0);try{i()}finally{j(!1)}}return a.memoizedState=[c,s],c},useReducer:function(i,s,a){var c=ti();if(a!==void 0){var h=a(s);if(Ps){j(!0);try{a(s)}finally{j(!1)}}}else h=s;return c.memoizedState=c.baseState=h,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:h},c.queue=i,i=i.dispatch=B6.bind(null,ke,i),[c.memoizedState,i]},useRef:function(i){var s=ti();return i={current:i},s.memoizedState=i},useState:function(i){i=gh(i);var s=i.queue,a=I2.bind(null,ke,s);return s.dispatch=a,[i.memoizedState,a]},useDebugValue:Sh,useDeferredValue:function(i,s){var a=ti();return bh(a,i,s)},useTransition:function(){var i=gh(!1);return i=z2.bind(null,ke,i.queue,!0,!1),ti().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,a){var c=ke,h=ti();if(Ge){if(a===void 0)throw Error(n(407));a=a()}else{if(a=s(),Qe===null)throw Error(n(349));(He&127)!==0||h2(c,s,a)}h.memoizedState=a;var _={value:a,getSnapshot:s};return h.queue=_,k2(d2.bind(null,c,_,i),[i]),c.flags|=2048,Nn(9,{destroy:void 0},f2.bind(null,c,_,a,s),null),a},useId:function(){var i=ti(),s=Qe.identifierPrefix;if(Ge){var a=Qi,c=Xi;a=(c&~(1<<32-ie(c)-1)).toString(32)+a,s="_"+s+"R_"+a,a=So++,0<a&&(s+="H"+a.toString(32)),s+="_"}else a=T6++,s="_"+s+"r_"+a.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:Ch,useFormState:w2,useActionState:w2,useOptimistic:function(i){var s=ti();s.memoizedState=s.baseState=i;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=a,s=Eh.bind(null,ke,!0,a),a.dispatch=s,[i,s]},useMemoCache:ph,useCacheRefresh:function(){return ti().memoizedState=N6.bind(null,ke)},useEffectEvent:function(i){var s=ti(),a={impl:i};return s.memoizedState=a,function(){if((qe&2)!==0)throw Error(n(440));return a.impl.apply(void 0,arguments)}}},xh={readContext:qt,use:wo,useCallback:O2,useContext:qt,useEffect:yh,useImperativeHandle:D2,useInsertionEffect:R2,useLayoutEffect:L2,useMemo:N2,useReducer:Co,useRef:A2,useState:function(){return Co(gr)},useDebugValue:Sh,useDeferredValue:function(i,s){var a=_t();return B2(a,Fe.memoizedState,i,s)},useTransition:function(){var i=Co(gr)[0],s=_t().memoizedState;return[typeof i=="boolean"?i:Va(i),s]},useSyncExternalStore:u2,useId:P2,useHostTransitionStatus:Ch,useFormState:C2,useActionState:C2,useOptimistic:function(i,s){var a=_t();return m2(a,Fe,i,s)},useMemoCache:ph,useCacheRefresh:G2};xh.useEffectEvent=T2;var $2={readContext:qt,use:wo,useCallback:O2,useContext:qt,useEffect:yh,useImperativeHandle:D2,useInsertionEffect:R2,useLayoutEffect:L2,useMemo:N2,useReducer:mh,useRef:A2,useState:function(){return mh(gr)},useDebugValue:Sh,useDeferredValue:function(i,s){var a=_t();return Fe===null?bh(a,i,s):B2(a,Fe.memoizedState,i,s)},useTransition:function(){var i=mh(gr)[0],s=_t().memoizedState;return[typeof i=="boolean"?i:Va(i),s]},useSyncExternalStore:u2,useId:P2,useHostTransitionStatus:Ch,useFormState:x2,useActionState:x2,useOptimistic:function(i,s){var a=_t();return Fe!==null?m2(a,Fe,i,s):(a.baseState=i,[i,a.queue.dispatch])},useMemoCache:ph,useCacheRefresh:G2};$2.useEffectEvent=T2;function Ah(i,s,a,c){s=i.memoizedState,a=a(c,s),a=a==null?s:m({},s,a),i.memoizedState=a,i.lanes===0&&(i.updateQueue.baseState=a)}var kh={enqueueSetState:function(i,s,a){i=i._reactInternals;var c=wi(),h=qr(c);h.payload=s,a!=null&&(h.callback=a),s=$r(i,h,c),s!==null&&(di(s,i,c),Na(s,i,c))},enqueueReplaceState:function(i,s,a){i=i._reactInternals;var c=wi(),h=qr(c);h.tag=1,h.payload=s,a!=null&&(h.callback=a),s=$r(i,h,c),s!==null&&(di(s,i,c),Na(s,i,c))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var a=wi(),c=qr(a);c.tag=2,s!=null&&(c.callback=s),s=$r(i,c,a),s!==null&&(di(s,i,a),Na(s,i,a))}};function Z2(i,s,a,c,h,_,g){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(c,_,g):s.prototype&&s.prototype.isPureReactComponent?!Aa(a,c)||!Aa(h,_):!0}function W2(i,s,a,c){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,c),s.state!==i&&kh.enqueueReplaceState(s,s.state,null)}function Gs(i,s){var a=s;if("ref"in s){a={};for(var c in s)c!=="ref"&&(a[c]=s[c])}if(i=i.defaultProps){a===s&&(a=m({},a));for(var h in i)a[h]===void 0&&(a[h]=i[h])}return a}function F2(i){ro(i)}function Y2(i){console.error(i)}function K2(i){ro(i)}function ko(i,s){try{var a=i.onUncaughtError;a(s.value,{componentStack:s.stack})}catch(c){setTimeout(function(){throw c})}}function X2(i,s,a){try{var c=i.onCaughtError;c(a.value,{componentStack:a.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Th(i,s,a){return a=qr(a),a.tag=3,a.payload={element:null},a.callback=function(){ko(i,s)},a}function Q2(i){return i=qr(i),i.tag=3,i}function J2(i,s,a,c){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var _=c.value;i.payload=function(){return h(_)},i.callback=function(){X2(s,a,c)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(i.callback=function(){X2(s,a,c),typeof h!="function"&&(Xr===null?Xr=new Set([this]):Xr.add(this));var w=c.stack;this.componentDidCatch(c.value,{componentStack:w!==null?w:""})})}function z6(i,s,a,c,h){if(a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(s=a.alternate,s!==null&&An(s,a,h,!0),a=vi.current,a!==null){switch(a.tag){case 31:case 13:return Ni===null?Po():a.alternate===null&&ut===0&&(ut=3),a.flags&=-257,a.flags|=65536,a.lanes=h,c===po?a.flags|=16384:(s=a.updateQueue,s===null?a.updateQueue=new Set([c]):s.add(c),Jh(i,c,h)),!1;case 22:return a.flags|=65536,c===po?a.flags|=16384:(s=a.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([c])},a.updateQueue=s):(a=s.retryQueue,a===null?s.retryQueue=new Set([c]):a.add(c)),Jh(i,c,h)),!1}throw Error(n(435,a.tag))}return Jh(i,c,h),Po(),!1}if(Ge)return s=vi.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=h,c!==Wu&&(i=Error(n(422),{cause:c}),Ra(Li(i,a)))):(c!==Wu&&(s=Error(n(423),{cause:c}),Ra(Li(s,a))),i=i.current.alternate,i.flags|=65536,h&=-h,i.lanes|=h,c=Li(c,a),h=Th(i.stateNode,c,h),sh(i,h),ut!==4&&(ut=2)),!1;var _=Error(n(520),{cause:c});if(_=Li(_,a),Fa===null?Fa=[_]:Fa.push(_),ut!==4&&(ut=2),s===null)return!0;c=Li(c,a),a=s;do{switch(a.tag){case 3:return a.flags|=65536,i=h&-h,a.lanes|=i,i=Th(a.stateNode,c,i),sh(a,i),!1;case 1:if(s=a.type,_=a.stateNode,(a.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Xr===null||!Xr.has(_))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Q2(h),J2(h,i,a,c),sh(a,h),!1}a=a.return}while(a!==null);return!1}var Rh=Error(n(461)),bt=!1;function $t(i,s,a,c){s.child=i===null?r2(s,null,a,c):Vs(s,i.child,a,c)}function ep(i,s,a,c,h){a=a.render;var _=s.ref;if("ref"in c){var g={};for(var w in c)w!=="ref"&&(g[w]=c[w])}else g=c;return Ns(s),c=uh(i,s,a,g,_,h),w=hh(),i!==null&&!bt?(fh(i,s,h),vr(i,s,h)):(Ge&&w&&$u(s),s.flags|=1,$t(i,s,c,h),s.child)}function tp(i,s,a,c,h){if(i===null){var _=a.type;return typeof _=="function"&&!Uu(_)&&_.defaultProps===void 0&&a.compare===null?(s.tag=15,s.type=_,ip(i,s,_,c,h)):(i=lo(a.type,null,c,s,s.mode,h),i.ref=s.ref,i.return=s,s.child=i)}if(_=i.child,!Hh(i,h)){var g=_.memoizedProps;if(a=a.compare,a=a!==null?a:Aa,a(g,c)&&i.ref===s.ref)return vr(i,s,h)}return s.flags|=1,i=fr(_,c),i.ref=s.ref,i.return=s,s.child=i}function ip(i,s,a,c,h){if(i!==null){var _=i.memoizedProps;if(Aa(_,c)&&i.ref===s.ref)if(bt=!1,s.pendingProps=c=_,Hh(i,h))(i.flags&131072)!==0&&(bt=!0);else return s.lanes=i.lanes,vr(i,s,h)}return Lh(i,s,a,c,h)}function rp(i,s,a,c){var h=c.children,_=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((s.flags&128)!==0){if(_=_!==null?_.baseLanes|a:a,i!==null){for(c=s.child=i.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~_}else c=0,s.child=null;return sp(i,s,_,a,c)}if((a&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&ho(s,_!==null?_.cachePool:null),_!==null?a2(s,_):ah(),l2(s);else return c=s.lanes=536870912,sp(i,s,_!==null?_.baseLanes|a:a,a,c)}else _!==null?(ho(s,_.cachePool),a2(s,_),Wr(),s.memoizedState=null):(i!==null&&ho(s,null),ah(),Wr());return $t(i,s,h,a),s.child}function Ia(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function sp(i,s,a,c,h){var _=eh();return _=_===null?null:{parent:yt._currentValue,pool:_},s.memoizedState={baseLanes:a,cachePool:_},i!==null&&ho(s,null),ah(),l2(s),i!==null&&An(i,s,c,!0),s.childLanes=h,null}function To(i,s){return s=Lo({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function np(i,s,a){return Vs(s,i.child,null,a),i=To(s,s.pendingProps),i.flags|=2,yi(s),s.memoizedState=null,i}function H6(i,s,a){var c=s.pendingProps,h=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(Ge){if(c.mode==="hidden")return i=To(s,c),s.lanes=536870912,Ia(null,i);if(oh(s),(i=tt)?(i=g_(i,Oi),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Pr!==null?{id:Xi,overflow:Qi}:null,retryLane:536870912,hydrationErrors:null},a=U0(i),a.return=s,s.child=a,jt=s,tt=null)):i=null,i===null)throw Ir(s);return s.lanes=536870912,null}return To(s,c)}var _=i.memoizedState;if(_!==null){var g=_.dehydrated;if(oh(s),h)if(s.flags&256)s.flags&=-257,s=np(i,s,a);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(n(558));else if(bt||An(i,s,a,!1),h=(a&i.childLanes)!==0,bt||h){if(c=Qe,c!==null&&(g=Yd(c,a),g!==0&&g!==_.retryLane))throw _.retryLane=g,Ls(i,g),di(c,i,g),Rh;Po(),s=np(i,s,a)}else i=_.treeContext,tt=Bi(g.nextSibling),jt=s,Ge=!0,Gr=null,Oi=!1,i!==null&&$0(s,i),s=To(s,c),s.flags|=4096;return s}return i=fr(i.child,{mode:c.mode,children:c.children}),i.ref=s.ref,s.child=i,i.return=s,i}function Ro(i,s){var a=s.ref;if(a===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(n(284));(i===null||i.ref!==a)&&(s.flags|=4194816)}}function Lh(i,s,a,c,h){return Ns(s),a=uh(i,s,a,c,void 0,h),c=hh(),i!==null&&!bt?(fh(i,s,h),vr(i,s,h)):(Ge&&c&&$u(s),s.flags|=1,$t(i,s,a,h),s.child)}function ap(i,s,a,c,h,_){return Ns(s),s.updateQueue=null,a=c2(s,c,a,h),o2(i),c=hh(),i!==null&&!bt?(fh(i,s,_),vr(i,s,_)):(Ge&&c&&$u(s),s.flags|=1,$t(i,s,a,_),s.child)}function lp(i,s,a,c,h){if(Ns(s),s.stateNode===null){var _=wn,g=a.contextType;typeof g=="object"&&g!==null&&(_=qt(g)),_=new a(c,_),s.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=kh,s.stateNode=_,_._reactInternals=s,_=s.stateNode,_.props=c,_.state=s.memoizedState,_.refs={},ih(s),g=a.contextType,_.context=typeof g=="object"&&g!==null?qt(g):wn,_.state=s.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Ah(s,a,g,c),_.state=s.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(g=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),g!==_.state&&kh.enqueueReplaceState(_,_.state,null),za(s,c,_,h),Ba(),_.state=s.memoizedState),typeof _.componentDidMount=="function"&&(s.flags|=4194308),c=!0}else if(i===null){_=s.stateNode;var w=s.memoizedProps,k=Gs(a,w);_.props=k;var V=_.context,F=a.contextType;g=wn,typeof F=="object"&&F!==null&&(g=qt(F));var ee=a.getDerivedStateFromProps;F=typeof ee=="function"||typeof _.getSnapshotBeforeUpdate=="function",w=s.pendingProps!==w,F||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(w||V!==g)&&W2(s,_,c,g),jr=!1;var G=s.memoizedState;_.state=G,za(s,c,_,h),Ba(),V=s.memoizedState,w||G!==V||jr?(typeof ee=="function"&&(Ah(s,a,ee,c),V=s.memoizedState),(k=jr||Z2(s,a,k,c,G,V,g))?(F||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=V),_.props=c,_.state=V,_.context=g,c=k):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{_=s.stateNode,rh(i,s),g=s.memoizedProps,F=Gs(a,g),_.props=F,ee=s.pendingProps,G=_.context,V=a.contextType,k=wn,typeof V=="object"&&V!==null&&(k=qt(V)),w=a.getDerivedStateFromProps,(V=typeof w=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(g!==ee||G!==k)&&W2(s,_,c,k),jr=!1,G=s.memoizedState,_.state=G,za(s,c,_,h),Ba();var U=s.memoizedState;g!==ee||G!==U||jr||i!==null&&i.dependencies!==null&&co(i.dependencies)?(typeof w=="function"&&(Ah(s,a,w,c),U=s.memoizedState),(F=jr||Z2(s,a,F,c,G,U,k)||i!==null&&i.dependencies!==null&&co(i.dependencies))?(V||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,U,k),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,U,k)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||g===i.memoizedProps&&G===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||g===i.memoizedProps&&G===i.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=U),_.props=c,_.state=U,_.context=k,c=F):(typeof _.componentDidUpdate!="function"||g===i.memoizedProps&&G===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||g===i.memoizedProps&&G===i.memoizedState||(s.flags|=1024),c=!1)}return _=c,Ro(i,s),c=(s.flags&128)!==0,_||c?(_=s.stateNode,a=c&&typeof a.getDerivedStateFromError!="function"?null:_.render(),s.flags|=1,i!==null&&c?(s.child=Vs(s,i.child,null,h),s.child=Vs(s,null,a,h)):$t(i,s,a,h),s.memoizedState=_.state,i=s.child):i=vr(i,s,h),i}function op(i,s,a,c){return Ds(),s.flags|=256,$t(i,s,a,c),s.child}var Mh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dh(i){return{baseLanes:i,cachePool:X0()}}function Oh(i,s,a){return i=i!==null?i.childLanes&~a:0,s&&(i|=bi),i}function cp(i,s,a){var c=s.pendingProps,h=!1,_=(s.flags&128)!==0,g;if((g=_)||(g=i!==null&&i.memoizedState===null?!1:(pt.current&2)!==0),g&&(h=!0,s.flags&=-129),g=(s.flags&32)!==0,s.flags&=-33,i===null){if(Ge){if(h?Zr(s):Wr(),(i=tt)?(i=g_(i,Oi),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Pr!==null?{id:Xi,overflow:Qi}:null,retryLane:536870912,hydrationErrors:null},a=U0(i),a.return=s,s.child=a,jt=s,tt=null)):i=null,i===null)throw Ir(s);return _1(i)?s.lanes=32:s.lanes=536870912,null}var w=c.children;return c=c.fallback,h?(Wr(),h=s.mode,w=Lo({mode:"hidden",children:w},h),c=Ms(c,h,a,null),w.return=s,c.return=s,w.sibling=c,s.child=w,c=s.child,c.memoizedState=Dh(a),c.childLanes=Oh(i,g,a),s.memoizedState=Mh,Ia(null,c)):(Zr(s),Nh(s,w))}var k=i.memoizedState;if(k!==null&&(w=k.dehydrated,w!==null)){if(_)s.flags&256?(Zr(s),s.flags&=-257,s=Bh(i,s,a)):s.memoizedState!==null?(Wr(),s.child=i.child,s.flags|=128,s=null):(Wr(),w=c.fallback,h=s.mode,c=Lo({mode:"visible",children:c.children},h),w=Ms(w,h,a,null),w.flags|=2,c.return=s,w.return=s,c.sibling=w,s.child=c,Vs(s,i.child,null,a),c=s.child,c.memoizedState=Dh(a),c.childLanes=Oh(i,g,a),s.memoizedState=Mh,s=Ia(null,c));else if(Zr(s),_1(w)){if(g=w.nextSibling&&w.nextSibling.dataset,g)var V=g.dgst;g=V,c=Error(n(419)),c.stack="",c.digest=g,Ra({value:c,source:null,stack:null}),s=Bh(i,s,a)}else if(bt||An(i,s,a,!1),g=(a&i.childLanes)!==0,bt||g){if(g=Qe,g!==null&&(c=Yd(g,a),c!==0&&c!==k.retryLane))throw k.retryLane=c,Ls(i,c),di(g,i,c),Rh;p1(w)||Po(),s=Bh(i,s,a)}else p1(w)?(s.flags|=192,s.child=i.child,s=null):(i=k.treeContext,tt=Bi(w.nextSibling),jt=s,Ge=!0,Gr=null,Oi=!1,i!==null&&$0(s,i),s=Nh(s,c.children),s.flags|=4096);return s}return h?(Wr(),w=c.fallback,h=s.mode,k=i.child,V=k.sibling,c=fr(k,{mode:"hidden",children:c.children}),c.subtreeFlags=k.subtreeFlags&65011712,V!==null?w=fr(V,w):(w=Ms(w,h,a,null),w.flags|=2),w.return=s,c.return=s,c.sibling=w,s.child=c,Ia(null,c),c=s.child,w=i.child.memoizedState,w===null?w=Dh(a):(h=w.cachePool,h!==null?(k=yt._currentValue,h=h.parent!==k?{parent:k,pool:k}:h):h=X0(),w={baseLanes:w.baseLanes|a,cachePool:h}),c.memoizedState=w,c.childLanes=Oh(i,g,a),s.memoizedState=Mh,Ia(i.child,c)):(Zr(s),a=i.child,i=a.sibling,a=fr(a,{mode:"visible",children:c.children}),a.return=s,a.sibling=null,i!==null&&(g=s.deletions,g===null?(s.deletions=[i],s.flags|=16):g.push(i)),s.child=a,s.memoizedState=null,a)}function Nh(i,s){return s=Lo({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Lo(i,s){return i=gi(22,i,null,s),i.lanes=0,i}function Bh(i,s,a){return Vs(s,i.child,null,a),i=Nh(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function up(i,s,a){i.lanes|=s;var c=i.alternate;c!==null&&(c.lanes|=s),Ku(i.return,s,a)}function zh(i,s,a,c,h,_){var g=i.memoizedState;g===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:h,treeForkCount:_}:(g.isBackwards=s,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=a,g.tailMode=h,g.treeForkCount=_)}function hp(i,s,a){var c=s.pendingProps,h=c.revealOrder,_=c.tail;c=c.children;var g=pt.current,w=(g&2)!==0;if(w?(g=g&1|2,s.flags|=128):g&=1,Z(pt,g),$t(i,s,c,a),c=Ge?Ta:0,!w&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&up(i,a,s);else if(i.tag===19)up(i,a,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(h){case"forwards":for(a=s.child,h=null;a!==null;)i=a.alternate,i!==null&&vo(i)===null&&(h=a),a=a.sibling;a=h,a===null?(h=s.child,s.child=null):(h=a.sibling,a.sibling=null),zh(s,!1,h,a,_,c);break;case"backwards":case"unstable_legacy-backwards":for(a=null,h=s.child,s.child=null;h!==null;){if(i=h.alternate,i!==null&&vo(i)===null){s.child=h;break}i=h.sibling,h.sibling=a,a=h,h=i}zh(s,!0,a,null,_,c);break;case"together":zh(s,!1,null,null,void 0,c);break;default:s.memoizedState=null}return s.child}function vr(i,s,a){if(i!==null&&(s.dependencies=i.dependencies),Kr|=s.lanes,(a&s.childLanes)===0)if(i!==null){if(An(i,s,a,!1),(a&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,a=fr(i,i.pendingProps),s.child=a,a.return=s;i.sibling!==null;)i=i.sibling,a=a.sibling=fr(i,i.pendingProps),a.return=s;a.sibling=null}return s.child}function Hh(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&co(i)))}function V6(i,s,a){switch(s.tag){case 3:Pe(s,s.stateNode.containerInfo),Ur(s,yt,i.memoizedState.cache),Ds();break;case 27:case 5:vt(s);break;case 4:Pe(s,s.stateNode.containerInfo);break;case 10:Ur(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,oh(s),null;break;case 13:var c=s.memoizedState;if(c!==null)return c.dehydrated!==null?(Zr(s),s.flags|=128,null):(a&s.child.childLanes)!==0?cp(i,s,a):(Zr(s),i=vr(i,s,a),i!==null?i.sibling:null);Zr(s);break;case 19:var h=(i.flags&128)!==0;if(c=(a&s.childLanes)!==0,c||(An(i,s,a,!1),c=(a&s.childLanes)!==0),h){if(c)return hp(i,s,a);s.flags|=128}if(h=s.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Z(pt,pt.current),c)break;return null;case 22:return s.lanes=0,rp(i,s,a,s.pendingProps);case 24:Ur(s,yt,i.memoizedState.cache)}return vr(i,s,a)}function fp(i,s,a){if(i!==null)if(i.memoizedProps!==s.pendingProps)bt=!0;else{if(!Hh(i,a)&&(s.flags&128)===0)return bt=!1,V6(i,s,a);bt=(i.flags&131072)!==0}else bt=!1,Ge&&(s.flags&1048576)!==0&&q0(s,Ta,s.index);switch(s.lanes=0,s.tag){case 16:e:{var c=s.pendingProps;if(i=zs(s.elementType),s.type=i,typeof i=="function")Uu(i)?(c=Gs(i,c),s.tag=1,s=lp(null,s,i,c,a)):(s.tag=0,s=Lh(null,s,i,c,a));else{if(i!=null){var h=i.$$typeof;if(h===P){s.tag=11,s=ep(null,s,i,c,a);break e}else if(h===ne){s.tag=14,s=tp(null,s,i,c,a);break e}}throw s=K(i)||i,Error(n(306,s,""))}}return s;case 0:return Lh(i,s,s.type,s.pendingProps,a);case 1:return c=s.type,h=Gs(c,s.pendingProps),lp(i,s,c,h,a);case 3:e:{if(Pe(s,s.stateNode.containerInfo),i===null)throw Error(n(387));c=s.pendingProps;var _=s.memoizedState;h=_.element,rh(i,s),za(s,c,null,a);var g=s.memoizedState;if(c=g.cache,Ur(s,yt,c),c!==_.cache&&Xu(s,[yt],a,!0),Ba(),c=g.element,_.isDehydrated)if(_={element:c,isDehydrated:!1,cache:g.cache},s.updateQueue.baseState=_,s.memoizedState=_,s.flags&256){s=op(i,s,c,a);break e}else if(c!==h){h=Li(Error(n(424)),s),Ra(h),s=op(i,s,c,a);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(tt=Bi(i.firstChild),jt=s,Ge=!0,Gr=null,Oi=!0,a=r2(s,null,c,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ds(),c===h){s=vr(i,s,a);break e}$t(i,s,c,a)}s=s.child}return s;case 26:return Ro(i,s),i===null?(a=C_(s.type,null,s.pendingProps,null))?s.memoizedState=a:Ge||(a=s.type,i=s.pendingProps,c=Zo(le.current).createElement(a),c[Ut]=s,c[li]=i,Zt(c,a,i),Ot(c),s.stateNode=c):s.memoizedState=C_(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return vt(s),i===null&&Ge&&(c=s.stateNode=S_(s.type,s.pendingProps,le.current),jt=s,Oi=!0,h=tt,ts(s.type)?(m1=h,tt=Bi(c.firstChild)):tt=h),$t(i,s,s.pendingProps.children,a),Ro(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&Ge&&((h=c=tt)&&(c=pv(c,s.type,s.pendingProps,Oi),c!==null?(s.stateNode=c,jt=s,tt=Bi(c.firstChild),Oi=!1,h=!0):h=!1),h||Ir(s)),vt(s),h=s.type,_=s.pendingProps,g=i!==null?i.memoizedProps:null,c=_.children,h1(h,_)?c=null:g!==null&&h1(h,g)&&(s.flags|=32),s.memoizedState!==null&&(h=uh(i,s,R6,null,null,a),il._currentValue=h),Ro(i,s),$t(i,s,c,a),s.child;case 6:return i===null&&Ge&&((i=a=tt)&&(a=_v(a,s.pendingProps,Oi),a!==null?(s.stateNode=a,jt=s,tt=null,i=!0):i=!1),i||Ir(s)),null;case 13:return cp(i,s,a);case 4:return Pe(s,s.stateNode.containerInfo),c=s.pendingProps,i===null?s.child=Vs(s,null,c,a):$t(i,s,c,a),s.child;case 11:return ep(i,s,s.type,s.pendingProps,a);case 7:return $t(i,s,s.pendingProps,a),s.child;case 8:return $t(i,s,s.pendingProps.children,a),s.child;case 12:return $t(i,s,s.pendingProps.children,a),s.child;case 10:return c=s.pendingProps,Ur(s,s.type,c.value),$t(i,s,c.children,a),s.child;case 9:return h=s.type._context,c=s.pendingProps.children,Ns(s),h=qt(h),c=c(h),s.flags|=1,$t(i,s,c,a),s.child;case 14:return tp(i,s,s.type,s.pendingProps,a);case 15:return ip(i,s,s.type,s.pendingProps,a);case 19:return hp(i,s,a);case 31:return H6(i,s,a);case 22:return rp(i,s,a,s.pendingProps);case 24:return Ns(s),c=qt(yt),i===null?(h=eh(),h===null&&(h=Qe,_=Qu(),h.pooledCache=_,_.refCount++,_!==null&&(h.pooledCacheLanes|=a),h=_),s.memoizedState={parent:c,cache:h},ih(s),Ur(s,yt,h)):((i.lanes&a)!==0&&(rh(i,s),za(s,null,null,a),Ba()),h=i.memoizedState,_=s.memoizedState,h.parent!==c?(h={parent:c,cache:c},s.memoizedState=h,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=h),Ur(s,yt,c)):(c=_.cache,Ur(s,yt,c),c!==h.cache&&Xu(s,[yt],a,!0))),$t(i,s,s.pendingProps.children,a),s.child;case 29:throw s.pendingProps}throw Error(n(156,s.tag))}function yr(i){i.flags|=4}function Vh(i,s,a,c,h){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(h&335544128)===h)if(i.stateNode.complete)i.flags|=8192;else if(Pp())i.flags|=8192;else throw Hs=po,th}else i.flags&=-16777217}function dp(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!T_(s))if(Pp())i.flags|=8192;else throw Hs=po,th}function Mo(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?Zd():536870912,i.lanes|=s,Vn|=s)}function Ua(i,s){if(!Ge)switch(i.tailMode){case"hidden":s=i.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?i.tail=null:a.sibling=null;break;case"collapsed":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:c.sibling=null}}function it(i){var s=i.alternate!==null&&i.alternate.child===i.child,a=0,c=0;if(s)for(var h=i.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=i,h=h.sibling;else for(h=i.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=i,h=h.sibling;return i.subtreeFlags|=c,i.childLanes=a,s}function P6(i,s,a){var c=s.pendingProps;switch(Zu(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(s),null;case 1:return it(s),null;case 3:return a=s.stateNode,c=null,i!==null&&(c=i.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),_r(yt),Me(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(i===null||i.child===null)&&(xn(s)?yr(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Fu())),it(s),null;case 26:var h=s.type,_=s.memoizedState;return i===null?(yr(s),_!==null?(it(s),dp(s,_)):(it(s),Vh(s,h,null,c,a))):_?_!==i.memoizedState?(yr(s),it(s),dp(s,_)):(it(s),s.flags&=-16777217):(i=i.memoizedProps,i!==c&&yr(s),it(s),Vh(s,h,i,c,a)),null;case 27:if(dt(s),a=le.current,h=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==c&&yr(s);else{if(!c){if(s.stateNode===null)throw Error(n(166));return it(s),null}i=se.current,xn(s)?Z0(s):(i=S_(h,c,a),s.stateNode=i,yr(s))}return it(s),null;case 5:if(dt(s),h=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==c&&yr(s);else{if(!c){if(s.stateNode===null)throw Error(n(166));return it(s),null}if(_=se.current,xn(s))Z0(s);else{var g=Zo(le.current);switch(_){case 1:_=g.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:_=g.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":_=g.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":_=g.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":_=g.createElement("div"),_.innerHTML="<script><\/script>",_=_.removeChild(_.firstChild);break;case"select":_=typeof c.is=="string"?g.createElement("select",{is:c.is}):g.createElement("select"),c.multiple?_.multiple=!0:c.size&&(_.size=c.size);break;default:_=typeof c.is=="string"?g.createElement(h,{is:c.is}):g.createElement(h)}}_[Ut]=s,_[li]=c;e:for(g=s.child;g!==null;){if(g.tag===5||g.tag===6)_.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===s)break e;for(;g.sibling===null;){if(g.return===null||g.return===s)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}s.stateNode=_;e:switch(Zt(_,h,c),h){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&yr(s)}}return it(s),Vh(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,a),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==c&&yr(s);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(i=le.current,xn(s)){if(i=s.stateNode,a=s.memoizedProps,c=null,h=jt,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}i[Ut]=s,i=!!(i.nodeValue===a||c!==null&&c.suppressHydrationWarning===!0||c_(i.nodeValue,a)),i||Ir(s,!0)}else i=Zo(i).createTextNode(c),i[Ut]=s,s.stateNode=i}return it(s),null;case 31:if(a=s.memoizedState,i===null||i.memoizedState!==null){if(c=xn(s),a!==null){if(i===null){if(!c)throw Error(n(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(557));i[Ut]=s}else Ds(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;it(s),i=!1}else a=Fu(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=a),i=!0;if(!i)return s.flags&256?(yi(s),s):(yi(s),null);if((s.flags&128)!==0)throw Error(n(558))}return it(s),null;case 13:if(c=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(h=xn(s),c!==null&&c.dehydrated!==null){if(i===null){if(!h)throw Error(n(318));if(h=s.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));h[Ut]=s}else Ds(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;it(s),h=!1}else h=Fu(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=h),h=!0;if(!h)return s.flags&256?(yi(s),s):(yi(s),null)}return yi(s),(s.flags&128)!==0?(s.lanes=a,s):(a=c!==null,i=i!==null&&i.memoizedState!==null,a&&(c=s.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),_=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(_=c.memoizedState.cachePool.pool),_!==h&&(c.flags|=2048)),a!==i&&a&&(s.child.flags|=8192),Mo(s,s.updateQueue),it(s),null);case 4:return Me(),i===null&&a1(s.stateNode.containerInfo),it(s),null;case 10:return _r(s.type),it(s),null;case 19:if(N(pt),c=s.memoizedState,c===null)return it(s),null;if(h=(s.flags&128)!==0,_=c.rendering,_===null)if(h)Ua(c,!1);else{if(ut!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(_=vo(i),_!==null){for(s.flags|=128,Ua(c,!1),i=_.updateQueue,s.updateQueue=i,Mo(s,i),s.subtreeFlags=0,i=a,a=s.child;a!==null;)I0(a,i),a=a.sibling;return Z(pt,pt.current&1|2),Ge&&dr(s,c.treeForkCount),s.child}i=i.sibling}c.tail!==null&&Jt()>zo&&(s.flags|=128,h=!0,Ua(c,!1),s.lanes=4194304)}else{if(!h)if(i=vo(_),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,Mo(s,i),Ua(c,!0),c.tail===null&&c.tailMode==="hidden"&&!_.alternate&&!Ge)return it(s),null}else 2*Jt()-c.renderingStartTime>zo&&a!==536870912&&(s.flags|=128,h=!0,Ua(c,!1),s.lanes=4194304);c.isBackwards?(_.sibling=s.child,s.child=_):(i=c.last,i!==null?i.sibling=_:s.child=_,c.last=_)}return c.tail!==null?(i=c.tail,c.rendering=i,c.tail=i.sibling,c.renderingStartTime=Jt(),i.sibling=null,a=pt.current,Z(pt,h?a&1|2:a&1),Ge&&dr(s,c.treeForkCount),i):(it(s),null);case 22:case 23:return yi(s),lh(),c=s.memoizedState!==null,i!==null?i.memoizedState!==null!==c&&(s.flags|=8192):c&&(s.flags|=8192),c?(a&536870912)!==0&&(s.flags&128)===0&&(it(s),s.subtreeFlags&6&&(s.flags|=8192)):it(s),a=s.updateQueue,a!==null&&Mo(s,a.retryQueue),a=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==a&&(s.flags|=2048),i!==null&&N(Bs),null;case 24:return a=null,i!==null&&(a=i.memoizedState.cache),s.memoizedState.cache!==a&&(s.flags|=2048),_r(yt),it(s),null;case 25:return null;case 30:return null}throw Error(n(156,s.tag))}function G6(i,s){switch(Zu(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return _r(yt),Me(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return dt(s),null;case 31:if(s.memoizedState!==null){if(yi(s),s.alternate===null)throw Error(n(340));Ds()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(yi(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Ds()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return N(pt),null;case 4:return Me(),null;case 10:return _r(s.type),null;case 22:case 23:return yi(s),lh(),i!==null&&N(Bs),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return _r(yt),null;case 25:return null;default:return null}}function pp(i,s){switch(Zu(s),s.tag){case 3:_r(yt),Me();break;case 26:case 27:case 5:dt(s);break;case 4:Me();break;case 31:s.memoizedState!==null&&yi(s);break;case 13:yi(s);break;case 19:N(pt);break;case 10:_r(s.type);break;case 22:case 23:yi(s),lh(),i!==null&&N(Bs);break;case 24:_r(yt)}}function ja(i,s){try{var a=s.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var h=c.next;a=h;do{if((a.tag&i)===i){c=void 0;var _=a.create,g=a.inst;c=_(),g.destroy=c}a=a.next}while(a!==h)}}catch(w){We(s,s.return,w)}}function Fr(i,s,a){try{var c=s.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var _=h.next;c=_;do{if((c.tag&i)===i){var g=c.inst,w=g.destroy;if(w!==void 0){g.destroy=void 0,h=s;var k=a,V=w;try{V()}catch(F){We(h,k,F)}}}c=c.next}while(c!==_)}}catch(F){We(s,s.return,F)}}function _p(i){var s=i.updateQueue;if(s!==null){var a=i.stateNode;try{n2(s,a)}catch(c){We(i,i.return,c)}}}function mp(i,s,a){a.props=Gs(i.type,i.memoizedProps),a.state=i.memoizedState;try{a.componentWillUnmount()}catch(c){We(i,s,c)}}function qa(i,s){try{var a=i.ref;if(a!==null){switch(i.tag){case 26:case 27:case 5:var c=i.stateNode;break;case 30:c=i.stateNode;break;default:c=i.stateNode}typeof a=="function"?i.refCleanup=a(c):a.current=c}}catch(h){We(i,s,h)}}function Ji(i,s){var a=i.ref,c=i.refCleanup;if(a!==null)if(typeof c=="function")try{c()}catch(h){We(i,s,h)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){We(i,s,h)}else a.current=null}function gp(i){var s=i.type,a=i.memoizedProps,c=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":a.autoFocus&&c.focus();break e;case"img":a.src?c.src=a.src:a.srcSet&&(c.srcset=a.srcSet)}}catch(h){We(i,i.return,h)}}function Ph(i,s,a){try{var c=i.stateNode;ov(c,i.type,a,s),c[li]=s}catch(h){We(i,i.return,h)}}function vp(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ts(i.type)||i.tag===4}function Gh(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||vp(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&ts(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Ih(i,s,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,s?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(i,s):(s=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.appendChild(i),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=ur));else if(c!==4&&(c===27&&ts(i.type)&&(a=i.stateNode,s=null),i=i.child,i!==null))for(Ih(i,s,a),i=i.sibling;i!==null;)Ih(i,s,a),i=i.sibling}function Do(i,s,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,s?a.insertBefore(i,s):a.appendChild(i);else if(c!==4&&(c===27&&ts(i.type)&&(a=i.stateNode),i=i.child,i!==null))for(Do(i,s,a),i=i.sibling;i!==null;)Do(i,s,a),i=i.sibling}function yp(i){var s=i.stateNode,a=i.memoizedProps;try{for(var c=i.type,h=s.attributes;h.length;)s.removeAttributeNode(h[0]);Zt(s,c,a),s[Ut]=i,s[li]=a}catch(_){We(i,i.return,_)}}var Sr=!1,wt=!1,Uh=!1,Sp=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function I6(i,s){if(i=i.containerInfo,c1=Jo,i=D0(i),Bu(i)){if("selectionStart"in i)var a={start:i.selectionStart,end:i.selectionEnd};else e:{a=(a=i.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var h=c.anchorOffset,_=c.focusNode;c=c.focusOffset;try{a.nodeType,_.nodeType}catch{a=null;break e}var g=0,w=-1,k=-1,V=0,F=0,ee=i,G=null;t:for(;;){for(var U;ee!==a||h!==0&&ee.nodeType!==3||(w=g+h),ee!==_||c!==0&&ee.nodeType!==3||(k=g+c),ee.nodeType===3&&(g+=ee.nodeValue.length),(U=ee.firstChild)!==null;)G=ee,ee=U;for(;;){if(ee===i)break t;if(G===a&&++V===h&&(w=g),G===_&&++F===c&&(k=g),(U=ee.nextSibling)!==null)break;ee=G,G=ee.parentNode}ee=U}a=w===-1||k===-1?null:{start:w,end:k}}else a=null}a=a||{start:0,end:0}}else a=null;for(u1={focusedElem:i,selectionRange:a},Jo=!1,Nt=s;Nt!==null;)if(s=Nt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Nt=i;else for(;Nt!==null;){switch(s=Nt,_=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(a=0;a<i.length;a++)h=i[a],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,a=s,h=_.memoizedProps,_=_.memoizedState,c=a.stateNode;try{var pe=Gs(a.type,h);i=c.getSnapshotBeforeUpdate(pe,_),c.__reactInternalSnapshotBeforeUpdate=i}catch(be){We(a,a.return,be)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,a=i.nodeType,a===9)d1(i);else if(a===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":d1(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(n(163))}if(i=s.sibling,i!==null){i.return=s.return,Nt=i;break}Nt=s.return}}function bp(i,s,a){var c=a.flags;switch(a.tag){case 0:case 11:case 15:wr(i,a),c&4&&ja(5,a);break;case 1:if(wr(i,a),c&4)if(i=a.stateNode,s===null)try{i.componentDidMount()}catch(g){We(a,a.return,g)}else{var h=Gs(a.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(h,s,i.__reactInternalSnapshotBeforeUpdate)}catch(g){We(a,a.return,g)}}c&64&&_p(a),c&512&&qa(a,a.return);break;case 3:if(wr(i,a),c&64&&(i=a.updateQueue,i!==null)){if(s=null,a.child!==null)switch(a.child.tag){case 27:case 5:s=a.child.stateNode;break;case 1:s=a.child.stateNode}try{n2(i,s)}catch(g){We(a,a.return,g)}}break;case 27:s===null&&c&4&&yp(a);case 26:case 5:wr(i,a),s===null&&c&4&&gp(a),c&512&&qa(a,a.return);break;case 12:wr(i,a);break;case 31:wr(i,a),c&4&&Ep(i,a);break;case 13:wr(i,a),c&4&&xp(i,a),c&64&&(i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(a=K6.bind(null,a),mv(i,a))));break;case 22:if(c=a.memoizedState!==null||Sr,!c){s=s!==null&&s.memoizedState!==null||wt,h=Sr;var _=wt;Sr=c,(wt=s)&&!_?Cr(i,a,(a.subtreeFlags&8772)!==0):wr(i,a),Sr=h,wt=_}break;case 30:break;default:wr(i,a)}}function wp(i){var s=i.alternate;s!==null&&(i.alternate=null,wp(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&vu(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var st=null,ci=!1;function br(i,s,a){for(a=a.child;a!==null;)Cp(i,s,a),a=a.sibling}function Cp(i,s,a){if(ei&&typeof ei.onCommitFiberUnmount=="function")try{ei.onCommitFiberUnmount(Cs,a)}catch{}switch(a.tag){case 26:wt||Ji(a,s),br(i,s,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:wt||Ji(a,s);var c=st,h=ci;ts(a.type)&&(st=a.stateNode,ci=!1),br(i,s,a),Ja(a.stateNode),st=c,ci=h;break;case 5:wt||Ji(a,s);case 6:if(c=st,h=ci,st=null,br(i,s,a),st=c,ci=h,st!==null)if(ci)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(a.stateNode)}catch(_){We(a,s,_)}else try{st.removeChild(a.stateNode)}catch(_){We(a,s,_)}break;case 18:st!==null&&(ci?(i=st,__(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.stateNode),Zn(i)):__(st,a.stateNode));break;case 4:c=st,h=ci,st=a.stateNode.containerInfo,ci=!0,br(i,s,a),st=c,ci=h;break;case 0:case 11:case 14:case 15:Fr(2,a,s),wt||Fr(4,a,s),br(i,s,a);break;case 1:wt||(Ji(a,s),c=a.stateNode,typeof c.componentWillUnmount=="function"&&mp(a,s,c)),br(i,s,a);break;case 21:br(i,s,a);break;case 22:wt=(c=wt)||a.memoizedState!==null,br(i,s,a),wt=c;break;default:br(i,s,a)}}function Ep(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Zn(i)}catch(a){We(s,s.return,a)}}}function xp(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Zn(i)}catch(a){We(s,s.return,a)}}function U6(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new Sp),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new Sp),s;default:throw Error(n(435,i.tag))}}function Oo(i,s){var a=U6(i);s.forEach(function(c){if(!a.has(c)){a.add(c);var h=X6.bind(null,i,c);c.then(h,h)}})}function ui(i,s){var a=s.deletions;if(a!==null)for(var c=0;c<a.length;c++){var h=a[c],_=i,g=s,w=g;e:for(;w!==null;){switch(w.tag){case 27:if(ts(w.type)){st=w.stateNode,ci=!1;break e}break;case 5:st=w.stateNode,ci=!1;break e;case 3:case 4:st=w.stateNode.containerInfo,ci=!0;break e}w=w.return}if(st===null)throw Error(n(160));Cp(_,g,h),st=null,ci=!1,_=h.alternate,_!==null&&(_.return=null),h.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)Ap(s,i),s=s.sibling}var Zi=null;function Ap(i,s){var a=i.alternate,c=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:ui(s,i),hi(i),c&4&&(Fr(3,i,i.return),ja(3,i),Fr(5,i,i.return));break;case 1:ui(s,i),hi(i),c&512&&(wt||a===null||Ji(a,a.return)),c&64&&Sr&&(i=i.updateQueue,i!==null&&(c=i.callbacks,c!==null&&(a=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=a===null?c:a.concat(c))));break;case 26:var h=Zi;if(ui(s,i),hi(i),c&512&&(wt||a===null||Ji(a,a.return)),c&4){var _=a!==null?a.memoizedState:null;if(c=i.memoizedState,a===null)if(c===null)if(i.stateNode===null){e:{c=i.type,a=i.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":_=h.getElementsByTagName("title")[0],(!_||_[ga]||_[Ut]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=h.createElement(c),h.head.insertBefore(_,h.querySelector("head > title"))),Zt(_,c,a),_[Ut]=i,Ot(_),c=_;break e;case"link":var g=A_("link","href",h).get(c+(a.href||""));if(g){for(var w=0;w<g.length;w++)if(_=g[w],_.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&_.getAttribute("rel")===(a.rel==null?null:a.rel)&&_.getAttribute("title")===(a.title==null?null:a.title)&&_.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(w,1);break t}}_=h.createElement(c),Zt(_,c,a),h.head.appendChild(_);break;case"meta":if(g=A_("meta","content",h).get(c+(a.content||""))){for(w=0;w<g.length;w++)if(_=g[w],_.getAttribute("content")===(a.content==null?null:""+a.content)&&_.getAttribute("name")===(a.name==null?null:a.name)&&_.getAttribute("property")===(a.property==null?null:a.property)&&_.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&_.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(w,1);break t}}_=h.createElement(c),Zt(_,c,a),h.head.appendChild(_);break;default:throw Error(n(468,c))}_[Ut]=i,Ot(_),c=_}i.stateNode=c}else k_(h,i.type,i.stateNode);else i.stateNode=x_(h,c,i.memoizedProps);else _!==c?(_===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):_.count--,c===null?k_(h,i.type,i.stateNode):x_(h,c,i.memoizedProps)):c===null&&i.stateNode!==null&&Ph(i,i.memoizedProps,a.memoizedProps)}break;case 27:ui(s,i),hi(i),c&512&&(wt||a===null||Ji(a,a.return)),a!==null&&c&4&&Ph(i,i.memoizedProps,a.memoizedProps);break;case 5:if(ui(s,i),hi(i),c&512&&(wt||a===null||Ji(a,a.return)),i.flags&32){h=i.stateNode;try{_n(h,"")}catch(pe){We(i,i.return,pe)}}c&4&&i.stateNode!=null&&(h=i.memoizedProps,Ph(i,h,a!==null?a.memoizedProps:h)),c&1024&&(Uh=!0);break;case 6:if(ui(s,i),hi(i),c&4){if(i.stateNode===null)throw Error(n(162));c=i.memoizedProps,a=i.stateNode;try{a.nodeValue=c}catch(pe){We(i,i.return,pe)}}break;case 3:if(Yo=null,h=Zi,Zi=Wo(s.containerInfo),ui(s,i),Zi=h,hi(i),c&4&&a!==null&&a.memoizedState.isDehydrated)try{Zn(s.containerInfo)}catch(pe){We(i,i.return,pe)}Uh&&(Uh=!1,kp(i));break;case 4:c=Zi,Zi=Wo(i.stateNode.containerInfo),ui(s,i),hi(i),Zi=c;break;case 12:ui(s,i),hi(i);break;case 31:ui(s,i),hi(i),c&4&&(c=i.updateQueue,c!==null&&(i.updateQueue=null,Oo(i,c)));break;case 13:ui(s,i),hi(i),i.child.flags&8192&&i.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Bo=Jt()),c&4&&(c=i.updateQueue,c!==null&&(i.updateQueue=null,Oo(i,c)));break;case 22:h=i.memoizedState!==null;var k=a!==null&&a.memoizedState!==null,V=Sr,F=wt;if(Sr=V||h,wt=F||k,ui(s,i),wt=F,Sr=V,hi(i),c&8192)e:for(s=i.stateNode,s._visibility=h?s._visibility&-2:s._visibility|1,h&&(a===null||k||Sr||wt||Is(i)),a=null,s=i;;){if(s.tag===5||s.tag===26){if(a===null){k=a=s;try{if(_=k.stateNode,h)g=_.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{w=k.stateNode;var ee=k.memoizedProps.style,G=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;w.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(pe){We(k,k.return,pe)}}}else if(s.tag===6){if(a===null){k=s;try{k.stateNode.nodeValue=h?"":k.memoizedProps}catch(pe){We(k,k.return,pe)}}}else if(s.tag===18){if(a===null){k=s;try{var U=k.stateNode;h?m_(U,!0):m_(k.stateNode,!1)}catch(pe){We(k,k.return,pe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;a===s&&(a=null),s=s.return}a===s&&(a=null),s.sibling.return=s.return,s=s.sibling}c&4&&(c=i.updateQueue,c!==null&&(a=c.retryQueue,a!==null&&(c.retryQueue=null,Oo(i,a))));break;case 19:ui(s,i),hi(i),c&4&&(c=i.updateQueue,c!==null&&(i.updateQueue=null,Oo(i,c)));break;case 30:break;case 21:break;default:ui(s,i),hi(i)}}function hi(i){var s=i.flags;if(s&2){try{for(var a,c=i.return;c!==null;){if(vp(c)){a=c;break}c=c.return}if(a==null)throw Error(n(160));switch(a.tag){case 27:var h=a.stateNode,_=Gh(i);Do(i,_,h);break;case 5:var g=a.stateNode;a.flags&32&&(_n(g,""),a.flags&=-33);var w=Gh(i);Do(i,w,g);break;case 3:case 4:var k=a.stateNode.containerInfo,V=Gh(i);Ih(i,V,k);break;default:throw Error(n(161))}}catch(F){We(i,i.return,F)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function kp(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;kp(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function wr(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)bp(i,s.alternate,s),s=s.sibling}function Is(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Fr(4,s,s.return),Is(s);break;case 1:Ji(s,s.return);var a=s.stateNode;typeof a.componentWillUnmount=="function"&&mp(s,s.return,a),Is(s);break;case 27:Ja(s.stateNode);case 26:case 5:Ji(s,s.return),Is(s);break;case 22:s.memoizedState===null&&Is(s);break;case 30:Is(s);break;default:Is(s)}i=i.sibling}}function Cr(i,s,a){for(a=a&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var c=s.alternate,h=i,_=s,g=_.flags;switch(_.tag){case 0:case 11:case 15:Cr(h,_,a),ja(4,_);break;case 1:if(Cr(h,_,a),c=_,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(V){We(c,c.return,V)}if(c=_,h=c.updateQueue,h!==null){var w=c.stateNode;try{var k=h.shared.hiddenCallbacks;if(k!==null)for(h.shared.hiddenCallbacks=null,h=0;h<k.length;h++)s2(k[h],w)}catch(V){We(c,c.return,V)}}a&&g&64&&_p(_),qa(_,_.return);break;case 27:yp(_);case 26:case 5:Cr(h,_,a),a&&c===null&&g&4&&gp(_),qa(_,_.return);break;case 12:Cr(h,_,a);break;case 31:Cr(h,_,a),a&&g&4&&Ep(h,_);break;case 13:Cr(h,_,a),a&&g&4&&xp(h,_);break;case 22:_.memoizedState===null&&Cr(h,_,a),qa(_,_.return);break;case 30:break;default:Cr(h,_,a)}s=s.sibling}}function jh(i,s){var a=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==a&&(i!=null&&i.refCount++,a!=null&&La(a))}function qh(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&La(i))}function Wi(i,s,a,c){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Tp(i,s,a,c),s=s.sibling}function Tp(i,s,a,c){var h=s.flags;switch(s.tag){case 0:case 11:case 15:Wi(i,s,a,c),h&2048&&ja(9,s);break;case 1:Wi(i,s,a,c);break;case 3:Wi(i,s,a,c),h&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&La(i)));break;case 12:if(h&2048){Wi(i,s,a,c),i=s.stateNode;try{var _=s.memoizedProps,g=_.id,w=_.onPostCommit;typeof w=="function"&&w(g,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(k){We(s,s.return,k)}}else Wi(i,s,a,c);break;case 31:Wi(i,s,a,c);break;case 13:Wi(i,s,a,c);break;case 23:break;case 22:_=s.stateNode,g=s.alternate,s.memoizedState!==null?_._visibility&2?Wi(i,s,a,c):$a(i,s):_._visibility&2?Wi(i,s,a,c):(_._visibility|=2,Bn(i,s,a,c,(s.subtreeFlags&10256)!==0||!1)),h&2048&&jh(g,s);break;case 24:Wi(i,s,a,c),h&2048&&qh(s.alternate,s);break;default:Wi(i,s,a,c)}}function Bn(i,s,a,c,h){for(h=h&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var _=i,g=s,w=a,k=c,V=g.flags;switch(g.tag){case 0:case 11:case 15:Bn(_,g,w,k,h),ja(8,g);break;case 23:break;case 22:var F=g.stateNode;g.memoizedState!==null?F._visibility&2?Bn(_,g,w,k,h):$a(_,g):(F._visibility|=2,Bn(_,g,w,k,h)),h&&V&2048&&jh(g.alternate,g);break;case 24:Bn(_,g,w,k,h),h&&V&2048&&qh(g.alternate,g);break;default:Bn(_,g,w,k,h)}s=s.sibling}}function $a(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var a=i,c=s,h=c.flags;switch(c.tag){case 22:$a(a,c),h&2048&&jh(c.alternate,c);break;case 24:$a(a,c),h&2048&&qh(c.alternate,c);break;default:$a(a,c)}s=s.sibling}}var Za=8192;function zn(i,s,a){if(i.subtreeFlags&Za)for(i=i.child;i!==null;)Rp(i,s,a),i=i.sibling}function Rp(i,s,a){switch(i.tag){case 26:zn(i,s,a),i.flags&Za&&i.memoizedState!==null&&Tv(a,Zi,i.memoizedState,i.memoizedProps);break;case 5:zn(i,s,a);break;case 3:case 4:var c=Zi;Zi=Wo(i.stateNode.containerInfo),zn(i,s,a),Zi=c;break;case 22:i.memoizedState===null&&(c=i.alternate,c!==null&&c.memoizedState!==null?(c=Za,Za=16777216,zn(i,s,a),Za=c):zn(i,s,a));break;default:zn(i,s,a)}}function Lp(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Wa(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var c=s[a];Nt=c,Dp(c,i)}Lp(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Mp(i),i=i.sibling}function Mp(i){switch(i.tag){case 0:case 11:case 15:Wa(i),i.flags&2048&&Fr(9,i,i.return);break;case 3:Wa(i);break;case 12:Wa(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,No(i)):Wa(i);break;default:Wa(i)}}function No(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var c=s[a];Nt=c,Dp(c,i)}Lp(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Fr(8,s,s.return),No(s);break;case 22:a=s.stateNode,a._visibility&2&&(a._visibility&=-3,No(s));break;default:No(s)}i=i.sibling}}function Dp(i,s){for(;Nt!==null;){var a=Nt;switch(a.tag){case 0:case 11:case 15:Fr(8,a,s);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var c=a.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:La(a.memoizedState.cache)}if(c=a.child,c!==null)c.return=a,Nt=c;else e:for(a=i;Nt!==null;){c=Nt;var h=c.sibling,_=c.return;if(wp(c),c===a){Nt=null;break e}if(h!==null){h.return=_,Nt=h;break e}Nt=_}}}var j6={getCacheForType:function(i){var s=qt(yt),a=s.data.get(i);return a===void 0&&(a=i(),s.data.set(i,a)),a},cacheSignal:function(){return qt(yt).controller.signal}},q6=typeof WeakMap=="function"?WeakMap:Map,qe=0,Qe=null,Be=null,He=0,Ze=0,Si=null,Yr=!1,Hn=!1,$h=!1,Er=0,ut=0,Kr=0,Us=0,Zh=0,bi=0,Vn=0,Fa=null,fi=null,Wh=!1,Bo=0,Op=0,zo=1/0,Ho=null,Xr=null,At=0,Qr=null,Pn=null,xr=0,Fh=0,Yh=null,Np=null,Ya=0,Kh=null;function wi(){return(qe&2)!==0&&He!==0?He&-He:R.T!==null?i1():Kd()}function Bp(){if(bi===0)if((He&536870912)===0||Ge){var i=Es;Es<<=1,(Es&3932160)===0&&(Es=262144),bi=i}else bi=536870912;return i=vi.current,i!==null&&(i.flags|=32),bi}function di(i,s,a){(i===Qe&&(Ze===2||Ze===9)||i.cancelPendingCommit!==null)&&(Gn(i,0),Jr(i,He,bi,!1)),ma(i,a),((qe&2)===0||i!==Qe)&&(i===Qe&&((qe&2)===0&&(Us|=a),ut===4&&Jr(i,He,bi,!1)),er(i))}function zp(i,s,a){if((qe&6)!==0)throw Error(n(327));var c=!a&&(s&127)===0&&(s&i.expiredLanes)===0||_a(i,s),h=c?W6(i,s):Qh(i,s,!0),_=c;do{if(h===0){Hn&&!c&&Jr(i,s,0,!1);break}else{if(a=i.current.alternate,_&&!$6(a)){h=Qh(i,s,!1),_=!1;continue}if(h===2){if(_=s,i.errorRecoveryDisabledLanes&_)var g=0;else g=i.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){s=g;e:{var w=i;h=Fa;var k=w.current.memoizedState.isDehydrated;if(k&&(Gn(w,g).flags|=256),g=Qh(w,g,!1),g!==2){if($h&&!k){w.errorRecoveryDisabledLanes|=_,Us|=_,h=4;break e}_=fi,fi=h,_!==null&&(fi===null?fi=_:fi.push.apply(fi,_))}h=g}if(_=!1,h!==2)continue}}if(h===1){Gn(i,0),Jr(i,s,0,!0);break}e:{switch(c=i,_=h,_){case 0:case 1:throw Error(n(345));case 4:if((s&4194048)!==s)break;case 6:Jr(c,s,bi,!Yr);break e;case 2:fi=null;break;case 3:case 5:break;default:throw Error(n(329))}if((s&62914560)===s&&(h=Bo+300-Jt(),10<h)){if(Jr(c,s,bi,!Yr),Zl(c,0,!0)!==0)break e;xr=s,c.timeoutHandle=d_(Hp.bind(null,c,a,fi,Ho,Wh,s,bi,Us,Vn,Yr,_,"Throttled",-0,0),h);break e}Hp(c,a,fi,Ho,Wh,s,bi,Us,Vn,Yr,_,null,-0,0)}}break}while(!0);er(i)}function Hp(i,s,a,c,h,_,g,w,k,V,F,ee,G,U){if(i.timeoutHandle=-1,ee=s.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ur},Rp(s,_,ee);var pe=(_&62914560)===_?Bo-Jt():(_&4194048)===_?Op-Jt():0;if(pe=Rv(ee,pe),pe!==null){xr=_,i.cancelPendingCommit=pe($p.bind(null,i,s,_,a,c,h,g,w,k,F,ee,null,G,U)),Jr(i,_,g,!V);return}}$p(i,s,_,a,c,h,g,w,k)}function $6(i){for(var s=i;;){var a=s.tag;if((a===0||a===11||a===15)&&s.flags&16384&&(a=s.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var c=0;c<a.length;c++){var h=a[c],_=h.getSnapshot;h=h.value;try{if(!mi(_(),h))return!1}catch{return!1}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Jr(i,s,a,c){s&=~Zh,s&=~Us,i.suspendedLanes|=s,i.pingedLanes&=~s,c&&(i.warmLanes|=s),c=i.expirationTimes;for(var h=s;0<h;){var _=31-ie(h),g=1<<_;c[_]=-1,h&=~g}a!==0&&Wd(i,a,s)}function Vo(){return(qe&6)===0?(Ka(0),!1):!0}function Xh(){if(Be!==null){if(Ze===0)var i=Be.return;else i=Be,pr=Os=null,dh(i),Ln=null,Da=0,i=Be;for(;i!==null;)pp(i.alternate,i),i=i.return;Be=null}}function Gn(i,s){var a=i.timeoutHandle;a!==-1&&(i.timeoutHandle=-1,hv(a)),a=i.cancelPendingCommit,a!==null&&(i.cancelPendingCommit=null,a()),xr=0,Xh(),Qe=i,Be=a=fr(i.current,null),He=s,Ze=0,Si=null,Yr=!1,Hn=_a(i,s),$h=!1,Vn=bi=Zh=Us=Kr=ut=0,fi=Fa=null,Wh=!1,(s&8)!==0&&(s|=s&32);var c=i.entangledLanes;if(c!==0)for(i=i.entanglements,c&=s;0<c;){var h=31-ie(c),_=1<<h;s|=i[h],c&=~_}return Er=s,so(),a}function Vp(i,s){ke=null,R.H=Ga,s===Rn||s===fo?(s=e2(),Ze=3):s===th?(s=e2(),Ze=4):Ze=s===Rh?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Si=s,Be===null&&(ut=1,ko(i,Li(s,i.current)))}function Pp(){var i=vi.current;return i===null?!0:(He&4194048)===He?Ni===null:(He&62914560)===He||(He&536870912)!==0?i===Ni:!1}function Gp(){var i=R.H;return R.H=Ga,i===null?Ga:i}function Ip(){var i=R.A;return R.A=j6,i}function Po(){ut=4,Yr||(He&4194048)!==He&&vi.current!==null||(Hn=!0),(Kr&134217727)===0&&(Us&134217727)===0||Qe===null||Jr(Qe,He,bi,!1)}function Qh(i,s,a){var c=qe;qe|=2;var h=Gp(),_=Ip();(Qe!==i||He!==s)&&(Ho=null,Gn(i,s)),s=!1;var g=ut;e:do try{if(Ze!==0&&Be!==null){var w=Be,k=Si;switch(Ze){case 8:Xh(),g=6;break e;case 3:case 2:case 9:case 6:vi.current===null&&(s=!0);var V=Ze;if(Ze=0,Si=null,In(i,w,k,V),a&&Hn){g=0;break e}break;default:V=Ze,Ze=0,Si=null,In(i,w,k,V)}}Z6(),g=ut;break}catch(F){Vp(i,F)}while(!0);return s&&i.shellSuspendCounter++,pr=Os=null,qe=c,R.H=h,R.A=_,Be===null&&(Qe=null,He=0,so()),g}function Z6(){for(;Be!==null;)Up(Be)}function W6(i,s){var a=qe;qe|=2;var c=Gp(),h=Ip();Qe!==i||He!==s?(Ho=null,zo=Jt()+500,Gn(i,s)):Hn=_a(i,s);e:do try{if(Ze!==0&&Be!==null){s=Be;var _=Si;t:switch(Ze){case 1:Ze=0,Si=null,In(i,s,_,1);break;case 2:case 9:if(Q0(_)){Ze=0,Si=null,jp(s);break}s=function(){Ze!==2&&Ze!==9||Qe!==i||(Ze=7),er(i)},_.then(s,s);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:Q0(_)?(Ze=0,Si=null,jp(s)):(Ze=0,Si=null,In(i,s,_,7));break;case 5:var g=null;switch(Be.tag){case 26:g=Be.memoizedState;case 5:case 27:var w=Be;if(g?T_(g):w.stateNode.complete){Ze=0,Si=null;var k=w.sibling;if(k!==null)Be=k;else{var V=w.return;V!==null?(Be=V,Go(V)):Be=null}break t}}Ze=0,Si=null,In(i,s,_,5);break;case 6:Ze=0,Si=null,In(i,s,_,6);break;case 8:Xh(),ut=6;break e;default:throw Error(n(462))}}F6();break}catch(F){Vp(i,F)}while(!0);return pr=Os=null,R.H=c,R.A=h,qe=a,Be!==null?0:(Qe=null,He=0,so(),ut)}function F6(){for(;Be!==null&&!Il();)Up(Be)}function Up(i){var s=fp(i.alternate,i,Er);i.memoizedProps=i.pendingProps,s===null?Go(i):Be=s}function jp(i){var s=i,a=s.alternate;switch(s.tag){case 15:case 0:s=ap(a,s,s.pendingProps,s.type,void 0,He);break;case 11:s=ap(a,s,s.pendingProps,s.type.render,s.ref,He);break;case 5:dh(s);default:pp(a,s),s=Be=I0(s,Er),s=fp(a,s,Er)}i.memoizedProps=i.pendingProps,s===null?Go(i):Be=s}function In(i,s,a,c){pr=Os=null,dh(s),Ln=null,Da=0;var h=s.return;try{if(z6(i,h,s,a,He)){ut=1,ko(i,Li(a,i.current)),Be=null;return}}catch(_){if(h!==null)throw Be=h,_;ut=1,ko(i,Li(a,i.current)),Be=null;return}s.flags&32768?(Ge||c===1?i=!0:Hn||(He&536870912)!==0?i=!1:(Yr=i=!0,(c===2||c===9||c===3||c===6)&&(c=vi.current,c!==null&&c.tag===13&&(c.flags|=16384))),qp(s,i)):Go(s)}function Go(i){var s=i;do{if((s.flags&32768)!==0){qp(s,Yr);return}i=s.return;var a=P6(s.alternate,s,Er);if(a!==null){Be=a;return}if(s=s.sibling,s!==null){Be=s;return}Be=s=i}while(s!==null);ut===0&&(ut=5)}function qp(i,s){do{var a=G6(i.alternate,i);if(a!==null){a.flags&=32767,Be=a;return}if(a=i.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!s&&(i=i.sibling,i!==null)){Be=i;return}Be=i=a}while(i!==null);ut=6,Be=null}function $p(i,s,a,c,h,_,g,w,k){i.cancelPendingCommit=null;do Io();while(At!==0);if((qe&6)!==0)throw Error(n(327));if(s!==null){if(s===i.current)throw Error(n(177));if(_=s.lanes|s.childLanes,_|=Gu,k5(i,a,_,g,w,k),i===Qe&&(Be=Qe=null,He=0),Pn=s,Qr=i,xr=a,Fh=_,Yh=h,Np=c,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Q6(ws,function(){return Kp(),null})):(i.callbackNode=null,i.callbackPriority=0),c=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||c){c=R.T,R.T=null,h=$.p,$.p=2,g=qe,qe|=4;try{I6(i,s,a)}finally{qe=g,$.p=h,R.T=c}}At=1,Zp(),Wp(),Fp()}}function Zp(){if(At===1){At=0;var i=Qr,s=Pn,a=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var c=$.p;$.p=2;var h=qe;qe|=4;try{Ap(s,i);var _=u1,g=D0(i.containerInfo),w=_.focusedElem,k=_.selectionRange;if(g!==w&&w&&w.ownerDocument&&M0(w.ownerDocument.documentElement,w)){if(k!==null&&Bu(w)){var V=k.start,F=k.end;if(F===void 0&&(F=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min(F,w.value.length);else{var ee=w.ownerDocument||document,G=ee&&ee.defaultView||window;if(G.getSelection){var U=G.getSelection(),pe=w.textContent.length,be=Math.min(k.start,pe),Ke=k.end===void 0?be:Math.min(k.end,pe);!U.extend&&be>Ke&&(g=Ke,Ke=be,be=g);var D=L0(w,be),L=L0(w,Ke);if(D&&L&&(U.rangeCount!==1||U.anchorNode!==D.node||U.anchorOffset!==D.offset||U.focusNode!==L.node||U.focusOffset!==L.offset)){var H=ee.createRange();H.setStart(D.node,D.offset),U.removeAllRanges(),be>Ke?(U.addRange(H),U.extend(L.node,L.offset)):(H.setEnd(L.node,L.offset),U.addRange(H))}}}}for(ee=[],U=w;U=U.parentNode;)U.nodeType===1&&ee.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<ee.length;w++){var Q=ee[w];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Jo=!!c1,u1=c1=null}finally{qe=h,$.p=c,R.T=a}}i.current=s,At=2}}function Wp(){if(At===2){At=0;var i=Qr,s=Pn,a=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var c=$.p;$.p=2;var h=qe;qe|=4;try{bp(i,s.alternate,s)}finally{qe=h,$.p=c,R.T=a}}At=3}}function Fp(){if(At===4||At===3){At=0,Ul();var i=Qr,s=Pn,a=xr,c=Np;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?At=5:(At=0,Pn=Qr=null,Yp(i,i.pendingLanes));var h=i.pendingLanes;if(h===0&&(Xr=null),mu(a),s=s.stateNode,ei&&typeof ei.onCommitFiberRoot=="function")try{ei.onCommitFiberRoot(Cs,s,void 0,(s.current.flags&128)===128)}catch{}if(c!==null){s=R.T,h=$.p,$.p=2,R.T=null;try{for(var _=i.onRecoverableError,g=0;g<c.length;g++){var w=c[g];_(w.value,{componentStack:w.stack})}}finally{R.T=s,$.p=h}}(xr&3)!==0&&Io(),er(i),h=i.pendingLanes,(a&261930)!==0&&(h&42)!==0?i===Kh?Ya++:(Ya=0,Kh=i):Ya=0,Ka(0)}}function Yp(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,La(s)))}function Io(){return Zp(),Wp(),Fp(),Kp()}function Kp(){if(At!==5)return!1;var i=Qr,s=Fh;Fh=0;var a=mu(xr),c=R.T,h=$.p;try{$.p=32>a?32:a,R.T=null,a=Yh,Yh=null;var _=Qr,g=xr;if(At=0,Pn=Qr=null,xr=0,(qe&6)!==0)throw Error(n(331));var w=qe;if(qe|=4,Mp(_.current),Tp(_,_.current,g,a),qe=w,Ka(0,!1),ei&&typeof ei.onPostCommitFiberRoot=="function")try{ei.onPostCommitFiberRoot(Cs,_)}catch{}return!0}finally{$.p=h,R.T=c,Yp(i,s)}}function Xp(i,s,a){s=Li(a,s),s=Th(i.stateNode,s,2),i=$r(i,s,2),i!==null&&(ma(i,2),er(i))}function We(i,s,a){if(i.tag===3)Xp(i,i,a);else for(;s!==null;){if(s.tag===3){Xp(s,i,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Xr===null||!Xr.has(c))){i=Li(a,i),a=Q2(2),c=$r(s,a,2),c!==null&&(J2(a,c,s,i),ma(c,2),er(c));break}}s=s.return}}function Jh(i,s,a){var c=i.pingCache;if(c===null){c=i.pingCache=new q6;var h=new Set;c.set(s,h)}else h=c.get(s),h===void 0&&(h=new Set,c.set(s,h));h.has(a)||($h=!0,h.add(a),i=Y6.bind(null,i,s,a),s.then(i,i))}function Y6(i,s,a){var c=i.pingCache;c!==null&&c.delete(s),i.pingedLanes|=i.suspendedLanes&a,i.warmLanes&=~a,Qe===i&&(He&a)===a&&(ut===4||ut===3&&(He&62914560)===He&&300>Jt()-Bo?(qe&2)===0&&Gn(i,0):Zh|=a,Vn===He&&(Vn=0)),er(i)}function Qp(i,s){s===0&&(s=Zd()),i=Ls(i,s),i!==null&&(ma(i,s),er(i))}function K6(i){var s=i.memoizedState,a=0;s!==null&&(a=s.retryLane),Qp(i,a)}function X6(i,s){var a=0;switch(i.tag){case 31:case 13:var c=i.stateNode,h=i.memoizedState;h!==null&&(a=h.retryLane);break;case 19:c=i.stateNode;break;case 22:c=i.stateNode._retryCache;break;default:throw Error(n(314))}c!==null&&c.delete(s),Qp(i,a)}function Q6(i,s){return ha(i,s)}var Uo=null,Un=null,e1=!1,jo=!1,t1=!1,es=0;function er(i){i!==Un&&i.next===null&&(Un===null?Uo=Un=i:Un=Un.next=i),jo=!0,e1||(e1=!0,ev())}function Ka(i,s){if(!t1&&jo){t1=!0;do for(var a=!1,c=Uo;c!==null;){if(i!==0){var h=c.pendingLanes;if(h===0)var _=0;else{var g=c.suspendedLanes,w=c.pingedLanes;_=(1<<31-ie(42|i)+1)-1,_&=h&~(g&~w),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(a=!0,i_(c,_))}else _=He,_=Zl(c,c===Qe?_:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(_&3)===0||_a(c,_)||(a=!0,i_(c,_));c=c.next}while(a);t1=!1}}function J6(){Jp()}function Jp(){jo=e1=!1;var i=0;es!==0&&uv()&&(i=es);for(var s=Jt(),a=null,c=Uo;c!==null;){var h=c.next,_=e_(c,s);_===0?(c.next=null,a===null?Uo=h:a.next=h,h===null&&(Un=a)):(a=c,(i!==0||(_&3)!==0)&&(jo=!0)),c=h}At!==0&&At!==5||Ka(i),es!==0&&(es=0)}function e_(i,s){for(var a=i.suspendedLanes,c=i.pingedLanes,h=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var g=31-ie(_),w=1<<g,k=h[g];k===-1?((w&a)===0||(w&c)!==0)&&(h[g]=A5(w,s)):k<=s&&(i.expiredLanes|=w),_&=~w}if(s=Qe,a=He,a=Zl(i,i===s?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),c=i.callbackNode,a===0||i===s&&(Ze===2||Ze===9)||i.cancelPendingCommit!==null)return c!==null&&c!==null&&on(c),i.callbackNode=null,i.callbackPriority=0;if((a&3)===0||_a(i,a)){if(s=a&-a,s===i.callbackPriority)return s;switch(c!==null&&on(c),mu(a)){case 2:case 8:a=da;break;case 32:a=ws;break;case 268435456:a=pa;break;default:a=ws}return c=t_.bind(null,i),a=ha(a,c),i.callbackPriority=s,i.callbackNode=a,s}return c!==null&&c!==null&&on(c),i.callbackPriority=2,i.callbackNode=null,2}function t_(i,s){if(At!==0&&At!==5)return i.callbackNode=null,i.callbackPriority=0,null;var a=i.callbackNode;if(Io()&&i.callbackNode!==a)return null;var c=He;return c=Zl(i,i===Qe?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),c===0?null:(zp(i,c,s),e_(i,Jt()),i.callbackNode!=null&&i.callbackNode===a?t_.bind(null,i):null)}function i_(i,s){if(Io())return null;zp(i,s,!0)}function ev(){fv(function(){(qe&6)!==0?ha(fa,J6):Jp()})}function i1(){if(es===0){var i=kn;i===0&&(i=$e,$e<<=1,($e&261888)===0&&($e=256)),es=i}return es}function r_(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Kl(""+i)}function s_(i,s){var a=s.ownerDocument.createElement("input");return a.name=s.name,a.value=s.value,i.id&&a.setAttribute("form",i.id),s.parentNode.insertBefore(a,s),i=new FormData(i),a.parentNode.removeChild(a),i}function tv(i,s,a,c,h){if(s==="submit"&&a&&a.stateNode===h){var _=r_((h[li]||null).action),g=c.submitter;g&&(s=(s=g[li]||null)?r_(s.formAction):g.getAttribute("formAction"),s!==null&&(_=s,g=null));var w=new eo("action","action",null,c,h);i.push({event:w,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(es!==0){var k=g?s_(h,g):new FormData(h);wh(a,{pending:!0,data:k,method:h.method,action:_},null,k)}}else typeof _=="function"&&(w.preventDefault(),k=g?s_(h,g):new FormData(h),wh(a,{pending:!0,data:k,method:h.method,action:_},_,k))},currentTarget:h}]})}}for(var r1=0;r1<Pu.length;r1++){var s1=Pu[r1],iv=s1.toLowerCase(),rv=s1[0].toUpperCase()+s1.slice(1);$i(iv,"on"+rv)}$i(B0,"onAnimationEnd"),$i(z0,"onAnimationIteration"),$i(H0,"onAnimationStart"),$i("dblclick","onDoubleClick"),$i("focusin","onFocus"),$i("focusout","onBlur"),$i(y6,"onTransitionRun"),$i(S6,"onTransitionStart"),$i(b6,"onTransitionCancel"),$i(V0,"onTransitionEnd"),dn("onMouseEnter",["mouseout","mouseover"]),dn("onMouseLeave",["mouseout","mouseover"]),dn("onPointerEnter",["pointerout","pointerover"]),dn("onPointerLeave",["pointerout","pointerover"]),As("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),As("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),As("onBeforeInput",["compositionend","keypress","textInput","paste"]),As("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),As("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),As("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xa="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(" "),sv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xa));function n_(i,s){s=(s&4)!==0;for(var a=0;a<i.length;a++){var c=i[a],h=c.event;c=c.listeners;e:{var _=void 0;if(s)for(var g=c.length-1;0<=g;g--){var w=c[g],k=w.instance,V=w.currentTarget;if(w=w.listener,k!==_&&h.isPropagationStopped())break e;_=w,h.currentTarget=V;try{_(h)}catch(F){ro(F)}h.currentTarget=null,_=k}else for(g=0;g<c.length;g++){if(w=c[g],k=w.instance,V=w.currentTarget,w=w.listener,k!==_&&h.isPropagationStopped())break e;_=w,h.currentTarget=V;try{_(h)}catch(F){ro(F)}h.currentTarget=null,_=k}}}}function ze(i,s){var a=s[gu];a===void 0&&(a=s[gu]=new Set);var c=i+"__bubble";a.has(c)||(a_(s,i,2,!1),a.add(c))}function n1(i,s,a){var c=0;s&&(c|=4),a_(a,i,c,s)}var qo="_reactListening"+Math.random().toString(36).slice(2);function a1(i){if(!i[qo]){i[qo]=!0,Jd.forEach(function(a){a!=="selectionchange"&&(sv.has(a)||n1(a,!1,i),n1(a,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[qo]||(s[qo]=!0,n1("selectionchange",!1,s))}}function a_(i,s,a,c){switch(B_(s)){case 2:var h=Dv;break;case 8:h=Ov;break;default:h=b1}a=h.bind(null,s,a,i),h=void 0,!Au||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(h=!0),c?h!==void 0?i.addEventListener(s,a,{capture:!0,passive:h}):i.addEventListener(s,a,!0):h!==void 0?i.addEventListener(s,a,{passive:h}):i.addEventListener(s,a,!1)}function l1(i,s,a,c,h){var _=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var g=c.tag;if(g===3||g===4){var w=c.stateNode.containerInfo;if(w===h)break;if(g===4)for(g=c.return;g!==null;){var k=g.tag;if((k===3||k===4)&&g.stateNode.containerInfo===h)return;g=g.return}for(;w!==null;){if(g=un(w),g===null)return;if(k=g.tag,k===5||k===6||k===26||k===27){c=_=g;continue e}w=w.parentNode}}c=c.return}h0(function(){var V=_,F=Eu(a),ee=[];e:{var G=P0.get(i);if(G!==void 0){var U=eo,pe=i;switch(i){case"keypress":if(Ql(a)===0)break e;case"keydown":case"keyup":U=X5;break;case"focusin":pe="focus",U=Lu;break;case"focusout":pe="blur",U=Lu;break;case"beforeblur":case"afterblur":U=Lu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=p0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=P5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=e6;break;case B0:case z0:case H0:U=U5;break;case V0:U=i6;break;case"scroll":case"scrollend":U=H5;break;case"wheel":U=s6;break;case"copy":case"cut":case"paste":U=q5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=m0;break;case"toggle":case"beforetoggle":U=a6}var be=(s&4)!==0,Ke=!be&&(i==="scroll"||i==="scrollend"),D=be?G!==null?G+"Capture":null:G;be=[];for(var L=V,H;L!==null;){var Q=L;if(H=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||H===null||D===null||(Q=ya(L,D),Q!=null&&be.push(Qa(L,Q,H))),Ke)break;L=L.return}0<be.length&&(G=new U(G,pe,null,a,F),ee.push({event:G,listeners:be}))}}if((s&7)===0){e:{if(G=i==="mouseover"||i==="pointerover",U=i==="mouseout"||i==="pointerout",G&&a!==Cu&&(pe=a.relatedTarget||a.fromElement)&&(un(pe)||pe[cn]))break e;if((U||G)&&(G=F.window===F?F:(G=F.ownerDocument)?G.defaultView||G.parentWindow:window,U?(pe=a.relatedTarget||a.toElement,U=V,pe=pe?un(pe):null,pe!==null&&(Ke=o(pe),be=pe.tag,pe!==Ke||be!==5&&be!==27&&be!==6)&&(pe=null)):(U=null,pe=V),U!==pe)){if(be=p0,Q="onMouseLeave",D="onMouseEnter",L="mouse",(i==="pointerout"||i==="pointerover")&&(be=m0,Q="onPointerLeave",D="onPointerEnter",L="pointer"),Ke=U==null?G:va(U),H=pe==null?G:va(pe),G=new be(Q,L+"leave",U,a,F),G.target=Ke,G.relatedTarget=H,Q=null,un(F)===V&&(be=new be(D,L+"enter",pe,a,F),be.target=H,be.relatedTarget=Ke,Q=be),Ke=Q,U&&pe)t:{for(be=nv,D=U,L=pe,H=0,Q=D;Q;Q=be(Q))H++;Q=0;for(var Se=L;Se;Se=be(Se))Q++;for(;0<H-Q;)D=be(D),H--;for(;0<Q-H;)L=be(L),Q--;for(;H--;){if(D===L||L!==null&&D===L.alternate){be=D;break t}D=be(D),L=be(L)}be=null}else be=null;U!==null&&l_(ee,G,U,be,!1),pe!==null&&Ke!==null&&l_(ee,Ke,pe,be,!0)}}e:{if(G=V?va(V):window,U=G.nodeName&&G.nodeName.toLowerCase(),U==="select"||U==="input"&&G.type==="file")var Ue=E0;else if(w0(G))if(x0)Ue=m6;else{Ue=p6;var ve=d6}else U=G.nodeName,!U||U.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?V&&wu(V.elementType)&&(Ue=E0):Ue=_6;if(Ue&&(Ue=Ue(i,V))){C0(ee,Ue,a,F);break e}ve&&ve(i,G,V),i==="focusout"&&V&&G.type==="number"&&V.memoizedProps.value!=null&&bu(G,"number",G.value)}switch(ve=V?va(V):window,i){case"focusin":(w0(ve)||ve.contentEditable==="true")&&(yn=ve,zu=V,ka=null);break;case"focusout":ka=zu=yn=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,O0(ee,a,F);break;case"selectionchange":if(v6)break;case"keydown":case"keyup":O0(ee,a,F)}var Re;if(Du)e:{switch(i){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else vn?S0(i,a)&&(Ve="onCompositionEnd"):i==="keydown"&&a.keyCode===229&&(Ve="onCompositionStart");Ve&&(g0&&a.locale!=="ko"&&(vn||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&vn&&(Re=f0()):(Vr=F,ku="value"in Vr?Vr.value:Vr.textContent,vn=!0)),ve=$o(V,Ve),0<ve.length&&(Ve=new _0(Ve,i,null,a,F),ee.push({event:Ve,listeners:ve}),Re?Ve.data=Re:(Re=b0(a),Re!==null&&(Ve.data=Re)))),(Re=o6?c6(i,a):u6(i,a))&&(Ve=$o(V,"onBeforeInput"),0<Ve.length&&(ve=new _0("onBeforeInput","beforeinput",null,a,F),ee.push({event:ve,listeners:Ve}),ve.data=Re)),tv(ee,i,V,a,F)}n_(ee,s)})}function Qa(i,s,a){return{instance:i,listener:s,currentTarget:a}}function $o(i,s){for(var a=s+"Capture",c=[];i!==null;){var h=i,_=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||_===null||(h=ya(i,a),h!=null&&c.unshift(Qa(i,h,_)),h=ya(i,s),h!=null&&c.push(Qa(i,h,_))),i.tag===3)return c;i=i.return}return[]}function nv(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function l_(i,s,a,c,h){for(var _=s._reactName,g=[];a!==null&&a!==c;){var w=a,k=w.alternate,V=w.stateNode;if(w=w.tag,k!==null&&k===c)break;w!==5&&w!==26&&w!==27||V===null||(k=V,h?(V=ya(a,_),V!=null&&g.unshift(Qa(a,V,k))):h||(V=ya(a,_),V!=null&&g.push(Qa(a,V,k)))),a=a.return}g.length!==0&&i.push({event:s,listeners:g})}var av=/\r\n?/g,lv=/\u0000|\uFFFD/g;function o_(i){return(typeof i=="string"?i:""+i).replace(av,`
50
+ `).replace(lv,"")}function c_(i,s){return s=o_(s),o_(i)===s}function Ye(i,s,a,c,h,_){switch(a){case"children":typeof c=="string"?s==="body"||s==="textarea"&&c===""||_n(i,c):(typeof c=="number"||typeof c=="bigint")&&s!=="body"&&_n(i,""+c);break;case"className":Fl(i,"class",c);break;case"tabIndex":Fl(i,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Fl(i,a,c);break;case"style":c0(i,c,_);break;case"data":if(s!=="object"){Fl(i,"data",c);break}case"src":case"href":if(c===""&&(s!=="a"||a!=="href")){i.removeAttribute(a);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){i.removeAttribute(a);break}c=Kl(""+c),i.setAttribute(a,c);break;case"action":case"formAction":if(typeof c=="function"){i.setAttribute(a,"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 _=="function"&&(a==="formAction"?(s!=="input"&&Ye(i,s,"name",h.name,h,null),Ye(i,s,"formEncType",h.formEncType,h,null),Ye(i,s,"formMethod",h.formMethod,h,null),Ye(i,s,"formTarget",h.formTarget,h,null)):(Ye(i,s,"encType",h.encType,h,null),Ye(i,s,"method",h.method,h,null),Ye(i,s,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){i.removeAttribute(a);break}c=Kl(""+c),i.setAttribute(a,c);break;case"onClick":c!=null&&(i.onclick=ur);break;case"onScroll":c!=null&&ze("scroll",i);break;case"onScrollEnd":c!=null&&ze("scrollend",i);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(n(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(n(60));i.innerHTML=a}}break;case"multiple":i.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":i.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){i.removeAttribute("xlink:href");break}a=Kl(""+c),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?i.setAttribute(a,""+c):i.removeAttribute(a);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":c&&typeof c!="function"&&typeof c!="symbol"?i.setAttribute(a,""):i.removeAttribute(a);break;case"capture":case"download":c===!0?i.setAttribute(a,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?i.setAttribute(a,c):i.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?i.setAttribute(a,c):i.removeAttribute(a);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?i.removeAttribute(a):i.setAttribute(a,c);break;case"popover":ze("beforetoggle",i),ze("toggle",i),Wl(i,"popover",c);break;case"xlinkActuate":cr(i,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":cr(i,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":cr(i,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":cr(i,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":cr(i,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":cr(i,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":cr(i,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":cr(i,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":cr(i,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Wl(i,"is",c);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=B5.get(a)||a,Wl(i,a,c))}}function o1(i,s,a,c,h,_){switch(a){case"style":c0(i,c,_);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(n(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(n(60));i.innerHTML=a}}break;case"children":typeof c=="string"?_n(i,c):(typeof c=="number"||typeof c=="bigint")&&_n(i,""+c);break;case"onScroll":c!=null&&ze("scroll",i);break;case"onScrollEnd":c!=null&&ze("scrollend",i);break;case"onClick":c!=null&&(i.onclick=ur);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!e0.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),s=a.slice(2,h?a.length-7:void 0),_=i[li]||null,_=_!=null?_[a]:null,typeof _=="function"&&i.removeEventListener(s,_,h),typeof c=="function")){typeof _!="function"&&_!==null&&(a in i?i[a]=null:i.hasAttribute(a)&&i.removeAttribute(a)),i.addEventListener(s,c,h);break e}a in i?i[a]=c:c===!0?i.setAttribute(a,""):Wl(i,a,c)}}}function Zt(i,s,a){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",i),ze("load",i);var c=!1,h=!1,_;for(_ in a)if(a.hasOwnProperty(_)){var g=a[_];if(g!=null)switch(_){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,s));default:Ye(i,s,_,g,a,null)}}h&&Ye(i,s,"srcSet",a.srcSet,a,null),c&&Ye(i,s,"src",a.src,a,null);return;case"input":ze("invalid",i);var w=_=g=h=null,k=null,V=null;for(c in a)if(a.hasOwnProperty(c)){var F=a[c];if(F!=null)switch(c){case"name":h=F;break;case"type":g=F;break;case"checked":k=F;break;case"defaultChecked":V=F;break;case"value":_=F;break;case"defaultValue":w=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(n(137,s));break;default:Ye(i,s,c,F,a,null)}}n0(i,_,w,k,V,g,h,!1);return;case"select":ze("invalid",i),c=g=_=null;for(h in a)if(a.hasOwnProperty(h)&&(w=a[h],w!=null))switch(h){case"value":_=w;break;case"defaultValue":g=w;break;case"multiple":c=w;default:Ye(i,s,h,w,a,null)}s=_,a=g,i.multiple=!!c,s!=null?pn(i,!!c,s,!1):a!=null&&pn(i,!!c,a,!0);return;case"textarea":ze("invalid",i),_=h=c=null;for(g in a)if(a.hasOwnProperty(g)&&(w=a[g],w!=null))switch(g){case"value":c=w;break;case"defaultValue":h=w;break;case"children":_=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(n(91));break;default:Ye(i,s,g,w,a,null)}l0(i,c,h,_);return;case"option":for(k in a)if(a.hasOwnProperty(k)&&(c=a[k],c!=null))switch(k){case"selected":i.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ye(i,s,k,c,a,null)}return;case"dialog":ze("beforetoggle",i),ze("toggle",i),ze("cancel",i),ze("close",i);break;case"iframe":case"object":ze("load",i);break;case"video":case"audio":for(c=0;c<Xa.length;c++)ze(Xa[c],i);break;case"image":ze("error",i),ze("load",i);break;case"details":ze("toggle",i);break;case"embed":case"source":case"link":ze("error",i),ze("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in a)if(a.hasOwnProperty(V)&&(c=a[V],c!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,s));default:Ye(i,s,V,c,a,null)}return;default:if(wu(s)){for(F in a)a.hasOwnProperty(F)&&(c=a[F],c!==void 0&&o1(i,s,F,c,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(c=a[w],c!=null&&Ye(i,s,w,c,a,null))}function ov(i,s,a,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,_=null,g=null,w=null,k=null,V=null,F=null;for(U in a){var ee=a[U];if(a.hasOwnProperty(U)&&ee!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":k=ee;default:c.hasOwnProperty(U)||Ye(i,s,U,null,c,ee)}}for(var G in c){var U=c[G];if(ee=a[G],c.hasOwnProperty(G)&&(U!=null||ee!=null))switch(G){case"type":_=U;break;case"name":h=U;break;case"checked":V=U;break;case"defaultChecked":F=U;break;case"value":g=U;break;case"defaultValue":w=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(n(137,s));break;default:U!==ee&&Ye(i,s,G,U,c,ee)}}Su(i,g,w,k,V,F,_,h);return;case"select":U=g=w=G=null;for(_ in a)if(k=a[_],a.hasOwnProperty(_)&&k!=null)switch(_){case"value":break;case"multiple":U=k;default:c.hasOwnProperty(_)||Ye(i,s,_,null,c,k)}for(h in c)if(_=c[h],k=a[h],c.hasOwnProperty(h)&&(_!=null||k!=null))switch(h){case"value":G=_;break;case"defaultValue":w=_;break;case"multiple":g=_;default:_!==k&&Ye(i,s,h,_,c,k)}s=w,a=g,c=U,G!=null?pn(i,!!a,G,!1):!!c!=!!a&&(s!=null?pn(i,!!a,s,!0):pn(i,!!a,a?[]:"",!1));return;case"textarea":U=G=null;for(w in a)if(h=a[w],a.hasOwnProperty(w)&&h!=null&&!c.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ye(i,s,w,null,c,h)}for(g in c)if(h=c[g],_=a[g],c.hasOwnProperty(g)&&(h!=null||_!=null))switch(g){case"value":G=h;break;case"defaultValue":U=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(n(91));break;default:h!==_&&Ye(i,s,g,h,c,_)}a0(i,G,U);return;case"option":for(var pe in a)if(G=a[pe],a.hasOwnProperty(pe)&&G!=null&&!c.hasOwnProperty(pe))switch(pe){case"selected":i.selected=!1;break;default:Ye(i,s,pe,null,c,G)}for(k in c)if(G=c[k],U=a[k],c.hasOwnProperty(k)&&G!==U&&(G!=null||U!=null))switch(k){case"selected":i.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:Ye(i,s,k,G,c,U)}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 be in a)G=a[be],a.hasOwnProperty(be)&&G!=null&&!c.hasOwnProperty(be)&&Ye(i,s,be,null,c,G);for(V in c)if(G=c[V],U=a[V],c.hasOwnProperty(V)&&G!==U&&(G!=null||U!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(n(137,s));break;default:Ye(i,s,V,G,c,U)}return;default:if(wu(s)){for(var Ke in a)G=a[Ke],a.hasOwnProperty(Ke)&&G!==void 0&&!c.hasOwnProperty(Ke)&&o1(i,s,Ke,void 0,c,G);for(F in c)G=c[F],U=a[F],!c.hasOwnProperty(F)||G===U||G===void 0&&U===void 0||o1(i,s,F,G,c,U);return}}for(var D in a)G=a[D],a.hasOwnProperty(D)&&G!=null&&!c.hasOwnProperty(D)&&Ye(i,s,D,null,c,G);for(ee in c)G=c[ee],U=a[ee],!c.hasOwnProperty(ee)||G===U||G==null&&U==null||Ye(i,s,ee,G,c,U)}function u_(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cv(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,a=performance.getEntriesByType("resource"),c=0;c<a.length;c++){var h=a[c],_=h.transferSize,g=h.initiatorType,w=h.duration;if(_&&w&&u_(g)){for(g=0,w=h.responseEnd,c+=1;c<a.length;c++){var k=a[c],V=k.startTime;if(V>w)break;var F=k.transferSize,ee=k.initiatorType;F&&u_(ee)&&(k=k.responseEnd,g+=F*(k<w?1:(w-V)/(k-V)))}if(--c,s+=8*(_+g)/(h.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var c1=null,u1=null;function Zo(i){return i.nodeType===9?i:i.ownerDocument}function h_(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function f_(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function h1(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var f1=null;function uv(){var i=window.event;return i&&i.type==="popstate"?i===f1?!1:(f1=i,!0):(f1=null,!1)}var d_=typeof setTimeout=="function"?setTimeout:void 0,hv=typeof clearTimeout=="function"?clearTimeout:void 0,p_=typeof Promise=="function"?Promise:void 0,fv=typeof queueMicrotask=="function"?queueMicrotask:typeof p_<"u"?function(i){return p_.resolve(null).then(i).catch(dv)}:d_;function dv(i){setTimeout(function(){throw i})}function ts(i){return i==="head"}function __(i,s){var a=s,c=0;do{var h=a.nextSibling;if(i.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"||a==="/&"){if(c===0){i.removeChild(h),Zn(s);return}c--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")c++;else if(a==="html")Ja(i.ownerDocument.documentElement);else if(a==="head"){a=i.ownerDocument.head,Ja(a);for(var _=a.firstChild;_;){var g=_.nextSibling,w=_.nodeName;_[ga]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&_.rel.toLowerCase()==="stylesheet"||a.removeChild(_),_=g}}else a==="body"&&Ja(i.ownerDocument.body);a=h}while(a);Zn(s)}function m_(i,s){var a=i;i=0;do{var c=a.nextSibling;if(a.nodeType===1?s?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(s?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(i===0)break;i--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||i++;a=c}while(a)}function d1(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var a=s;switch(s=s.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":d1(a),vu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}i.removeChild(a)}}function pv(i,s,a,c){for(;i.nodeType===1;){var h=a;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!c&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(c){if(!i[ga])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==h.rel||i.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||i.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||i.getAttribute("title")!==(h.title==null?null:h.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(h.src==null?null:h.src)||i.getAttribute("type")!==(h.type==null?null:h.type)||i.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var _=h.name==null?null:""+h.name;if(h.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=Bi(i.nextSibling),i===null)break}return null}function _v(i,s,a){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=Bi(i.nextSibling),i===null))return null;return i}function g_(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=Bi(i.nextSibling),i===null))return null;return i}function p1(i){return i.data==="$?"||i.data==="$~"}function _1(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function mv(i,s){var a=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||a.readyState!=="loading")s();else{var c=function(){s(),a.removeEventListener("DOMContentLoaded",c)};a.addEventListener("DOMContentLoaded",c),i._reactRetry=c}}function Bi(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}var m1=null;function v_(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="/$"||a==="/&"){if(s===0)return Bi(i.nextSibling);s--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||s++}i=i.nextSibling}return null}function y_(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(s===0)return i;s--}else a!=="/$"&&a!=="/&"||s++}i=i.previousSibling}return null}function S_(i,s,a){switch(s=Zo(a),i){case"html":if(i=s.documentElement,!i)throw Error(n(452));return i;case"head":if(i=s.head,!i)throw Error(n(453));return i;case"body":if(i=s.body,!i)throw Error(n(454));return i;default:throw Error(n(451))}}function Ja(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);vu(i)}var zi=new Map,b_=new Set;function Wo(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ar=$.d;$.d={f:gv,r:vv,D:yv,C:Sv,L:bv,m:wv,X:Ev,S:Cv,M:xv};function gv(){var i=Ar.f(),s=Vo();return i||s}function vv(i){var s=hn(i);s!==null&&s.tag===5&&s.type==="form"?V2(s):Ar.r(i)}var jn=typeof document>"u"?null:document;function w_(i,s,a){var c=jn;if(c&&typeof s=="string"&&s){var h=Ti(s);h='link[rel="'+i+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),b_.has(h)||(b_.add(h),i={rel:i,crossOrigin:a,href:s},c.querySelector(h)===null&&(s=c.createElement("link"),Zt(s,"link",i),Ot(s),c.head.appendChild(s)))}}function yv(i){Ar.D(i),w_("dns-prefetch",i,null)}function Sv(i,s){Ar.C(i,s),w_("preconnect",i,s)}function bv(i,s,a){Ar.L(i,s,a);var c=jn;if(c&&i&&s){var h='link[rel="preload"][as="'+Ti(s)+'"]';s==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+Ti(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+Ti(a.imageSizes)+'"]')):h+='[href="'+Ti(i)+'"]';var _=h;switch(s){case"style":_=qn(i);break;case"script":_=$n(i)}zi.has(_)||(i=m({rel:"preload",href:s==="image"&&a&&a.imageSrcSet?void 0:i,as:s},a),zi.set(_,i),c.querySelector(h)!==null||s==="style"&&c.querySelector(el(_))||s==="script"&&c.querySelector(tl(_))||(s=c.createElement("link"),Zt(s,"link",i),Ot(s),c.head.appendChild(s)))}}function wv(i,s){Ar.m(i,s);var a=jn;if(a&&i){var c=s&&typeof s.as=="string"?s.as:"script",h='link[rel="modulepreload"][as="'+Ti(c)+'"][href="'+Ti(i)+'"]',_=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=$n(i)}if(!zi.has(_)&&(i=m({rel:"modulepreload",href:i},s),zi.set(_,i),a.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(tl(_)))return}c=a.createElement("link"),Zt(c,"link",i),Ot(c),a.head.appendChild(c)}}}function Cv(i,s,a){Ar.S(i,s,a);var c=jn;if(c&&i){var h=fn(c).hoistableStyles,_=qn(i);s=s||"default";var g=h.get(_);if(!g){var w={loading:0,preload:null};if(g=c.querySelector(el(_)))w.loading=5;else{i=m({rel:"stylesheet",href:i,"data-precedence":s},a),(a=zi.get(_))&&g1(i,a);var k=g=c.createElement("link");Ot(k),Zt(k,"link",i),k._p=new Promise(function(V,F){k.onload=V,k.onerror=F}),k.addEventListener("load",function(){w.loading|=1}),k.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Fo(g,s,c)}g={type:"stylesheet",instance:g,count:1,state:w},h.set(_,g)}}}function Ev(i,s){Ar.X(i,s);var a=jn;if(a&&i){var c=fn(a).hoistableScripts,h=$n(i),_=c.get(h);_||(_=a.querySelector(tl(h)),_||(i=m({src:i,async:!0},s),(s=zi.get(h))&&v1(i,s),_=a.createElement("script"),Ot(_),Zt(_,"link",i),a.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},c.set(h,_))}}function xv(i,s){Ar.M(i,s);var a=jn;if(a&&i){var c=fn(a).hoistableScripts,h=$n(i),_=c.get(h);_||(_=a.querySelector(tl(h)),_||(i=m({src:i,async:!0,type:"module"},s),(s=zi.get(h))&&v1(i,s),_=a.createElement("script"),Ot(_),Zt(_,"link",i),a.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},c.set(h,_))}}function C_(i,s,a,c){var h=(h=le.current)?Wo(h):null;if(!h)throw Error(n(446));switch(i){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(s=qn(a.href),a=fn(h).hoistableStyles,c=a.get(s),c||(c={type:"style",instance:null,count:0,state:null},a.set(s,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){i=qn(a.href);var _=fn(h).hoistableStyles,g=_.get(i);if(g||(h=h.ownerDocument||h,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,g),(_=h.querySelector(el(i)))&&!_._p&&(g.instance=_,g.state.loading=5),zi.has(i)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},zi.set(i,a),_||Av(h,i,a,g.state))),s&&c===null)throw Error(n(528,""));return g}if(s&&c!==null)throw Error(n(529,""));return null;case"script":return s=a.async,a=a.src,typeof a=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=$n(a),a=fn(h).hoistableScripts,c=a.get(s),c||(c={type:"script",instance:null,count:0,state:null},a.set(s,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,i))}}function qn(i){return'href="'+Ti(i)+'"'}function el(i){return'link[rel="stylesheet"]['+i+"]"}function E_(i){return m({},i,{"data-precedence":i.precedence,precedence:null})}function Av(i,s,a,c){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?c.loading=1:(s=i.createElement("link"),c.preload=s,s.addEventListener("load",function(){return c.loading|=1}),s.addEventListener("error",function(){return c.loading|=2}),Zt(s,"link",a),Ot(s),i.head.appendChild(s))}function $n(i){return'[src="'+Ti(i)+'"]'}function tl(i){return"script[async]"+i}function x_(i,s,a){if(s.count++,s.instance===null)switch(s.type){case"style":var c=i.querySelector('style[data-href~="'+Ti(a.href)+'"]');if(c)return s.instance=c,Ot(c),c;var h=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return c=(i.ownerDocument||i).createElement("style"),Ot(c),Zt(c,"style",h),Fo(c,a.precedence,i),s.instance=c;case"stylesheet":h=qn(a.href);var _=i.querySelector(el(h));if(_)return s.state.loading|=4,s.instance=_,Ot(_),_;c=E_(a),(h=zi.get(h))&&g1(c,h),_=(i.ownerDocument||i).createElement("link"),Ot(_);var g=_;return g._p=new Promise(function(w,k){g.onload=w,g.onerror=k}),Zt(_,"link",c),s.state.loading|=4,Fo(_,a.precedence,i),s.instance=_;case"script":return _=$n(a.src),(h=i.querySelector(tl(_)))?(s.instance=h,Ot(h),h):(c=a,(h=zi.get(_))&&(c=m({},a),v1(c,h)),i=i.ownerDocument||i,h=i.createElement("script"),Ot(h),Zt(h,"link",c),i.head.appendChild(h),s.instance=h);case"void":return null;default:throw Error(n(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(c=s.instance,s.state.loading|=4,Fo(c,a.precedence,i));return s.instance}function Fo(i,s,a){for(var c=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,_=h,g=0;g<c.length;g++){var w=c[g];if(w.dataset.precedence===s)_=w;else if(_!==h)break}_?_.parentNode.insertBefore(i,_.nextSibling):(s=a.nodeType===9?a.head:a,s.insertBefore(i,s.firstChild))}function g1(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function v1(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var Yo=null;function A_(i,s,a){if(Yo===null){var c=new Map,h=Yo=new Map;h.set(a,c)}else h=Yo,c=h.get(a),c||(c=new Map,h.set(a,c));if(c.has(i))return c;for(c.set(i,null),a=a.getElementsByTagName(i),h=0;h<a.length;h++){var _=a[h];if(!(_[ga]||_[Ut]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var g=_.getAttribute(s)||"";g=i+g;var w=c.get(g);w?w.push(_):c.set(g,[_])}}return c}function k_(i,s,a){i=i.ownerDocument||i,i.head.insertBefore(a,s==="title"?i.querySelector("head > title"):null)}function kv(i,s,a){if(a===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function T_(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function Tv(i,s,a,c){if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=qn(c.href),_=s.querySelector(el(h));if(_){s=_._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=Ko.bind(i),s.then(i,i)),a.state.loading|=4,a.instance=_,Ot(_);return}_=s.ownerDocument||s,c=E_(c),(h=zi.get(h))&&g1(c,h),_=_.createElement("link"),Ot(_);var g=_;g._p=new Promise(function(w,k){g.onload=w,g.onerror=k}),Zt(_,"link",c),a.instance=_}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(a,s),(s=a.state.preload)&&(a.state.loading&3)===0&&(i.count++,a=Ko.bind(i),s.addEventListener("load",a),s.addEventListener("error",a))}}var y1=0;function Rv(i,s){return i.stylesheets&&i.count===0&&Qo(i,i.stylesheets),0<i.count||0<i.imgCount?function(a){var c=setTimeout(function(){if(i.stylesheets&&Qo(i,i.stylesheets),i.unsuspend){var _=i.unsuspend;i.unsuspend=null,_()}},6e4+s);0<i.imgBytes&&y1===0&&(y1=62500*cv());var h=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Qo(i,i.stylesheets),i.unsuspend)){var _=i.unsuspend;i.unsuspend=null,_()}},(i.imgBytes>y1?50:800)+s);return i.unsuspend=a,function(){i.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function Ko(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qo(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Xo=null;function Qo(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Xo=new Map,s.forEach(Lv,i),Xo=null,Ko.call(i))}function Lv(i,s){if(!(s.state.loading&4)){var a=Xo.get(i);if(a)var c=a.get(null);else{a=new Map,Xo.set(i,a);for(var h=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<h.length;_++){var g=h[_];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),c=g)}c&&a.set(null,c)}h=s.instance,g=h.getAttribute("data-precedence"),_=a.get(g)||c,_===c&&a.set(null,h),a.set(g,h),this.count++,c=Ko.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),_?_.parentNode.insertBefore(h,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(h,i.firstChild)),s.state.loading|=4}}var il={$$typeof:O,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Mv(i,s,a,c,h,_,g,w,k){this.tag=1,this.containerInfo=i,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=pu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.hiddenUpdates=pu(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=_,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function R_(i,s,a,c,h,_,g,w,k,V,F,ee){return i=new Mv(i,s,a,g,k,V,F,ee,w),s=1,_===!0&&(s|=24),_=gi(3,null,null,s),i.current=_,_.stateNode=i,s=Qu(),s.refCount++,i.pooledCache=s,s.refCount++,_.memoizedState={element:c,isDehydrated:a,cache:s},ih(_),i}function L_(i){return i?(i=wn,i):wn}function M_(i,s,a,c,h,_){h=L_(h),c.context===null?c.context=h:c.pendingContext=h,c=qr(s),c.payload={element:a},_=_===void 0?null:_,_!==null&&(c.callback=_),a=$r(i,c,s),a!==null&&(di(a,i,s),Na(a,i,s))}function D_(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var a=i.retryLane;i.retryLane=a!==0&&a<s?a:s}}function S1(i,s){D_(i,s),(i=i.alternate)&&D_(i,s)}function O_(i){if(i.tag===13||i.tag===31){var s=Ls(i,67108864);s!==null&&di(s,i,67108864),S1(i,67108864)}}function N_(i){if(i.tag===13||i.tag===31){var s=wi();s=_u(s);var a=Ls(i,s);a!==null&&di(a,i,s),S1(i,s)}}var Jo=!0;function Dv(i,s,a,c){var h=R.T;R.T=null;var _=$.p;try{$.p=2,b1(i,s,a,c)}finally{$.p=_,R.T=h}}function Ov(i,s,a,c){var h=R.T;R.T=null;var _=$.p;try{$.p=8,b1(i,s,a,c)}finally{$.p=_,R.T=h}}function b1(i,s,a,c){if(Jo){var h=w1(c);if(h===null)l1(i,s,c,ec,a),z_(i,c);else if(Bv(h,i,s,a,c))c.stopPropagation();else if(z_(i,c),s&4&&-1<Nv.indexOf(i)){for(;h!==null;){var _=hn(h);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var g=xs(_.pendingLanes);if(g!==0){var w=_;for(w.pendingLanes|=2,w.entangledLanes|=2;g;){var k=1<<31-ie(g);w.entanglements[1]|=k,g&=~k}er(_),(qe&6)===0&&(zo=Jt()+500,Ka(0))}}break;case 31:case 13:w=Ls(_,2),w!==null&&di(w,_,2),Vo(),S1(_,2)}if(_=w1(c),_===null&&l1(i,s,c,ec,a),_===h)break;h=_}h!==null&&c.stopPropagation()}else l1(i,s,c,null,a)}}function w1(i){return i=Eu(i),C1(i)}var ec=null;function C1(i){if(ec=null,i=un(i),i!==null){var s=o(i);if(s===null)i=null;else{var a=s.tag;if(a===13){if(i=u(s),i!==null)return i;i=null}else if(a===31){if(i=f(s),i!==null)return i;i=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return ec=i,null}function B_(i){switch(i){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(fu()){case fa:return 2;case da:return 8;case ws:case jl:return 32;case pa:return 268435456;default:return 32}default:return 32}}var E1=!1,is=null,rs=null,ss=null,rl=new Map,sl=new Map,ns=[],Nv="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 z_(i,s){switch(i){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":rs=null;break;case"mouseover":case"mouseout":ss=null;break;case"pointerover":case"pointerout":rl.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(s.pointerId)}}function nl(i,s,a,c,h,_){return i===null||i.nativeEvent!==_?(i={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:_,targetContainers:[h]},s!==null&&(s=hn(s),s!==null&&O_(s)),i):(i.eventSystemFlags|=c,s=i.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),i)}function Bv(i,s,a,c,h){switch(s){case"focusin":return is=nl(is,i,s,a,c,h),!0;case"dragenter":return rs=nl(rs,i,s,a,c,h),!0;case"mouseover":return ss=nl(ss,i,s,a,c,h),!0;case"pointerover":var _=h.pointerId;return rl.set(_,nl(rl.get(_)||null,i,s,a,c,h)),!0;case"gotpointercapture":return _=h.pointerId,sl.set(_,nl(sl.get(_)||null,i,s,a,c,h)),!0}return!1}function H_(i){var s=un(i.target);if(s!==null){var a=o(s);if(a!==null){if(s=a.tag,s===13){if(s=u(a),s!==null){i.blockedOn=s,Xd(i.priority,function(){N_(a)});return}}else if(s===31){if(s=f(a),s!==null){i.blockedOn=s,Xd(i.priority,function(){N_(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){i.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}i.blockedOn=null}function tc(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var a=w1(i.nativeEvent);if(a===null){a=i.nativeEvent;var c=new a.constructor(a.type,a);Cu=c,a.target.dispatchEvent(c),Cu=null}else return s=hn(a),s!==null&&O_(s),i.blockedOn=a,!1;s.shift()}return!0}function V_(i,s,a){tc(i)&&a.delete(s)}function zv(){E1=!1,is!==null&&tc(is)&&(is=null),rs!==null&&tc(rs)&&(rs=null),ss!==null&&tc(ss)&&(ss=null),rl.forEach(V_),sl.forEach(V_)}function ic(i,s){i.blockedOn===s&&(i.blockedOn=null,E1||(E1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,zv)))}var rc=null;function P_(i){rc!==i&&(rc=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){rc===i&&(rc=null);for(var s=0;s<i.length;s+=3){var a=i[s],c=i[s+1],h=i[s+2];if(typeof c!="function"){if(C1(c||a)===null)continue;break}var _=hn(a);_!==null&&(i.splice(s,3),s-=3,wh(_,{pending:!0,data:h,method:a.method,action:c},c,h))}}))}function Zn(i){function s(k){return ic(k,i)}is!==null&&ic(is,i),rs!==null&&ic(rs,i),ss!==null&&ic(ss,i),rl.forEach(s),sl.forEach(s);for(var a=0;a<ns.length;a++){var c=ns[a];c.blockedOn===i&&(c.blockedOn=null)}for(;0<ns.length&&(a=ns[0],a.blockedOn===null);)H_(a),a.blockedOn===null&&ns.shift();if(a=(i.ownerDocument||i).$$reactFormReplay,a!=null)for(c=0;c<a.length;c+=3){var h=a[c],_=a[c+1],g=h[li]||null;if(typeof _=="function")g||P_(a);else if(g){var w=null;if(_&&_.hasAttribute("formAction")){if(h=_,g=_[li]||null)w=g.formAction;else if(C1(h)!==null)continue}else w=g.action;typeof w=="function"?a[c+1]=w:(a.splice(c,3),c-=3),P_(a)}}}function G_(){function i(_){_.canIntercept&&_.info==="react-transition"&&_.intercept({handler:function(){return new Promise(function(g){return h=g})},focusReset:"manual",scroll:"manual"})}function s(){h!==null&&(h(),h=null),c||setTimeout(a,20)}function a(){if(!c&&!navigation.transition){var _=navigation.currentEntry;_&&_.url!=null&&navigation.navigate(_.url,{state:_.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(a,100),function(){c=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),h!==null&&(h(),h=null)}}}function x1(i){this._internalRoot=i}sc.prototype.render=x1.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));var a=s.current,c=wi();M_(a,c,i,s,null,null)},sc.prototype.unmount=x1.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;M_(i.current,2,null,i,null,null),Vo(),s[cn]=null}};function sc(i){this._internalRoot=i}sc.prototype.unstable_scheduleHydration=function(i){if(i){var s=Kd();i={blockedOn:null,target:i,priority:s};for(var a=0;a<ns.length&&s!==0&&s<ns[a].priority;a++);ns.splice(a,0,i),a===0&&H_(i)}};var I_=t.version;if(I_!=="19.2.4")throw Error(n(527,I_,"19.2.4"));$.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=d(s),i=i!==null?v(i):null,i=i===null?null:i.stateNode,i};var Hv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{Cs=nc.inject(Hv),ei=nc}catch{}}return ll.createRoot=function(i,s){if(!l(i))throw Error(n(299));var a=!1,c="",h=F2,_=Y2,g=K2;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(g=s.onRecoverableError)),s=R_(i,1,!1,null,null,a,c,null,h,_,g,G_),i[cn]=s.current,a1(i),new x1(s)},ll.hydrateRoot=function(i,s,a){if(!l(i))throw Error(n(299));var c=!1,h="",_=F2,g=Y2,w=K2,k=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(_=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.formState!==void 0&&(k=a.formState)),s=R_(i,1,!0,s,a??null,c,h,k,_,g,w,G_),s.context=L_(null),a=s.current,c=wi(),c=_u(c),h=qr(c),h.callback=null,$r(a,h,c),a=c,s.current.lanes=a,ma(s,a),er(s),i[cn]=s.current,a1(i),new sc(s)},ll.version="19.2.4",ll}var J_;function Kv(){if(J_)return L1.exports;J_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),L1.exports=Yv(),L1.exports}var Xv=Kv();const rg="anycode_server_url";function vs(){return localStorage.getItem(rg)??""}function _d(e){const t=e.replace(/\/+$/,"");localStorage.setItem(rg,t)}function ms(){return vs()}function sg(e){const t=vs();return t?`${t.replace(/^http/,"ws")}${e}`:`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}${e}`}function Qv(){return vs()!==""}class Jv{constructor(t){Y(this,"ws");Y(this,"heartbeatTimer",null);Y(this,"lastReceived",Date.now());Y(this,"onopen",null);Y(this,"onmessage",null);Y(this,"onclose",null);this.ws=new WebSocket(t),this.ws.onopen=()=>{var r;this.startHeartbeat(),(r=this.onopen)==null||r.call(this)},this.ws.onmessage=r=>{var n;this.lastReceived=Date.now();try{const l=JSON.parse(r.data);if(l.type==="pong")return;(n=this.onmessage)==null||n.call(this,l)}catch{}},this.ws.onclose=()=>{var r;this.stopHeartbeat(),(r=this.onclose)==null||r.call(this)},this.ws.onerror=()=>{}}get readyState(){return this.ws.readyState}send(t){this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify(t))}close(){this.stopHeartbeat(),this.ws.close()}startHeartbeat(){this.lastReceived=Date.now(),this.heartbeatTimer=setInterval(()=>{if(Date.now()-this.lastReceived>1e4){this.ws.close();return}this.send({type:"ping"})},5e3)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}}function e7(e){return new Jv(sg(`/?sessionId=${e}`))}function t7({size:e=18,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"9",y:"2",width:"6",height:"12",rx:"3"}),E.jsx("path",{d:"M5 10a7 7 0 0 0 14 0"}),E.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"22"}),E.jsx("line",{x1:"8",y1:"22",x2:"16",y2:"22"})]})}function i7({size:e=18,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),E.jsx("line",{x1:"6",y1:"9",x2:"6",y2:"9"}),E.jsx("line",{x1:"10",y1:"9",x2:"10",y2:"9"}),E.jsx("line",{x1:"14",y1:"9",x2:"14",y2:"9"}),E.jsx("line",{x1:"18",y1:"9",x2:"18",y2:"9"}),E.jsx("line",{x1:"6",y1:"13",x2:"6",y2:"13"}),E.jsx("line",{x1:"18",y1:"13",x2:"18",y2:"13"}),E.jsx("line",{x1:"9",y1:"13",x2:"15",y2:"13"})]})}function em({size:e=14,color:t="currentColor"}){return E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,stroke:"none",children:E.jsx("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})})}function hf({size:e=14,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",children:[E.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),E.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"})]})}function ng({size:e=18,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"3"}),E.jsx("polygon",{points:"10 8 16 12 10 16"})]})}function r7({size:e=18,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"3"}),E.jsx("line",{x1:"7",y1:"8",x2:"17",y2:"8"}),E.jsx("line",{x1:"7",y1:"12",x2:"14",y2:"12"}),E.jsx("line",{x1:"7",y1:"16",x2:"17",y2:"16"})]})}function s7({size:e=18,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"3"}),E.jsx("path",{d:"M12 8v8"}),E.jsx("path",{d:"M8 12h8"})]})}function n7({size:e=10,color:t="currentColor"}){return E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("polyline",{points:"9 6 15 12 9 18"})})}function a7({size:e=14,color:t="currentColor"}){return E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function ag({size:e=18,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"2",y:"2",width:"20",height:"20",rx:"3"}),E.jsx("polyline",{points:"7 9 10 12 7 15"}),E.jsx("line",{x1:"13",y1:"15",x2:"17",y2:"15"})]})}function tm({size:e=14,color:t="currentColor"}){return E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,stroke:"none",children:E.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}function l7({size:e=10,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",stroke:t,strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"1",y:"1",width:"14",height:"14",rx:"1.5"}),E.jsx("line",{x1:"10",y1:"1",x2:"10",y2:"15"})]})}function o7({size:e=10,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",stroke:t,strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"1",y:"4",width:"11",height:"11",rx:"1.5"}),E.jsx("polyline",{points:"8 4 8 1 15 1 15 8 12 8"})]})}function c7({size:e=14,color:t="currentColor"}){return E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("circle",{cx:"12",cy:"12",r:"3"}),E.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})}function u7({activeTab:e,onTabChange:t,changeCount:r}){return E.jsxs("nav",{className:"tab-bar",children:[E.jsx("div",{className:"tab-spacer"}),E.jsxs("button",{className:`tab-item ${e==="preview"?"active":""}`,onClick:()=>t("preview"),children:[E.jsx("span",{className:"tab-icon",children:E.jsx(ng,{})}),E.jsx("span",{className:"tab-label",children:"预览"})]}),E.jsxs("button",{className:`tab-item ${e==="terminal"?"active":""}`,onClick:()=>t("terminal"),children:[E.jsx("span",{className:"tab-icon",children:E.jsx(ag,{})}),E.jsx("span",{className:"tab-label",children:"终端"})]}),E.jsxs("button",{className:`tab-item ${e==="files"?"active":""}`,onClick:()=>t("files"),children:[E.jsx("span",{className:"tab-icon",children:E.jsx(r7,{})}),E.jsx("span",{className:"tab-label",children:"文件"})]}),E.jsxs("button",{className:`tab-item ${e==="changes"?"active":""}`,onClick:()=>t("changes"),children:[E.jsxs("span",{className:"tab-icon",children:[E.jsx(s7,{}),r!==void 0&&r>0&&E.jsx("span",{className:"tab-badge",children:r})]}),E.jsx("span",{className:"tab-label",children:"变更"})]})]})}const h7=Object.freeze({left:0,top:0,width:16,height:16}),Dc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),lg=Object.freeze({...h7,...Dc}),f7=Object.freeze({...lg,body:"",hidden:!1}),d7=Object.freeze({width:null,height:null}),p7=Object.freeze({...d7,...Dc});function _7(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function im(e,t){const r=_7(e,t);for(const n in f7)n in Dc?n in e&&!(n in r)&&(r[n]=Dc[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function m7(e,t){const r=e.icons,n=e.aliases||Object.create(null),l=Object.create(null);function o(u){if(r[u])return l[u]=[];if(!(u in l)){l[u]=null;const f=n[u]&&n[u].parent,p=f&&o(f);p&&(l[u]=[f].concat(p))}return l[u]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),l}function rm(e,t,r){const n=e.icons,l=e.aliases||Object.create(null);let o={};function u(f){o=im(n[f]||l[f],o)}return u(t),r.forEach(u),im(e,o)}function sm(e,t){if(e.icons[t])return rm(e,t,[]);const r=m7(e,[t])[t];return r?rm(e,t,r):null}const g7=/(-?[0-9.]*[0-9]+[0-9.]*)/g,v7=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function nm(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(g7);if(n===null||!n.length)return e;const l=[];let o=n.shift(),u=v7.test(o);for(;;){if(u){const f=parseFloat(o);isNaN(f)?l.push(o):l.push(Math.ceil(f*t*r)/r)}else l.push(o);if(o=n.shift(),o===void 0)return l.join("");u=!u}}function y7(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const l=e.indexOf(">",n),o=e.indexOf("</"+t);if(l===-1||o===-1)break;const u=e.indexOf(">",o);if(u===-1)break;r+=e.slice(l+1,o).trim(),e=e.slice(0,n).trim()+e.slice(u+1)}return{defs:r,content:e}}function S7(e,t){return e?"<defs>"+e+"</defs>"+t:t}function b7(e,t,r){const n=y7(e);return S7(n.defs,t+n.content+r)}const w7=e=>e==="unset"||e==="undefined"||e==="none";function am(e,t){const r={...lg,...e},n={...p7,...t},l={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(x=>{const T=[],M=x.hFlip,z=x.vFlip;let O=x.rotate;M?z?O+=2:(T.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),T.push("scale(-1 1)"),l.top=l.left=0):z&&(T.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),T.push("scale(1 -1)"),l.top=l.left=0);let P;switch(O<0&&(O-=Math.floor(O/4)*4),O=O%4,O){case 1:P=l.height/2+l.top,T.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:T.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:P=l.width/2+l.left,T.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}O%2===1&&(l.left!==l.top&&(P=l.left,l.left=l.top,l.top=P),l.width!==l.height&&(P=l.width,l.width=l.height,l.height=P)),T.length&&(o=b7(o,'<g transform="'+T.join(" ")+'">',"</g>"))});const u=n.width,f=n.height,p=l.width,d=l.height;let v,m;u===null?(m=f===null?"1em":f==="auto"?d:f,v=nm(m,p/d)):(v=u==="auto"?p:u,m=f===null?nm(v,d/p):f==="auto"?d:f);const y={},b=(x,T)=>{w7(T)||(y[x]=T.toString())};b("width",v),b("height",m);const S=[l.left,l.top,p,d];return y.viewBox=S.join(" "),{attributes:y,viewBox:S,body:o}}function lm(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}const C7="vscode-icons",E7=JSON.parse('{"file-type-typescript":{"body":"<path fill=\\"#007acc\\" d=\\"M23.827 8.243a4.4 4.4 0 0 1 2.223 1.281a6 6 0 0 1 .852 1.143c.011.045-1.534 1.083-2.471 1.662c-.034.023-.169-.124-.322-.35a2.01 2.01 0 0 0-1.67-1c-1.077-.074-1.771.49-1.766 1.433a1.3 1.3 0 0 0 .153.666c.237.49.677.784 2.059 1.383c2.544 1.095 3.636 1.817 4.31 2.843a5.16 5.16 0 0 1 .416 4.333a4.76 4.76 0 0 1-3.932 2.815a11 11 0 0 1-2.708-.028a6.53 6.53 0 0 1-3.616-1.884a6.3 6.3 0 0 1-.926-1.371a3 3 0 0 1 .327-.208c.158-.09.756-.434 1.32-.761l1.024-.6l.214.312a4.8 4.8 0 0 0 1.35 1.292a3.3 3.3 0 0 0 3.458-.175a1.545 1.545 0 0 0 .2-1.974c-.276-.395-.84-.727-2.443-1.422a8.8 8.8 0 0 1-3.349-2.055a4.7 4.7 0 0 1-.976-1.777a7.1 7.1 0 0 1-.062-2.268a4.33 4.33 0 0 1 3.644-3.374a9 9 0 0 1 2.691.084m-8.343 1.483l.011 1.454h-4.63v13.148H7.6V11.183H2.97V9.755a14 14 0 0 1 .04-1.466c.017-.023 2.832-.034 6.245-.028l6.211.017Z\\"/>"},"file-type-reactts":{"body":"<circle cx=\\"16\\" cy=\\"15.974\\" r=\\"2.5\\" fill=\\"#007acc\\"/><path fill=\\"#007acc\\" d=\\"M16 21.706a28.4 28.4 0 0 1-8.88-1.2a11.3 11.3 0 0 1-3.657-1.958A3.54 3.54 0 0 1 2 15.974c0-1.653 1.816-3.273 4.858-4.333A28.8 28.8 0 0 1 16 10.293a28.7 28.7 0 0 1 9.022 1.324a11.4 11.4 0 0 1 3.538 1.866A3.4 3.4 0 0 1 30 15.974c0 1.718-2.03 3.459-5.3 4.541a28.8 28.8 0 0 1-8.7 1.191m0-10.217a28 28 0 0 0-8.749 1.282c-2.8.977-4.055 2.313-4.055 3.2c0 .928 1.349 2.387 4.311 3.4A27.2 27.2 0 0 0 16 20.51a27.6 27.6 0 0 0 8.325-1.13C27.4 18.361 28.8 16.9 28.8 15.974a2.33 2.33 0 0 0-1.01-1.573a10.2 10.2 0 0 0-3.161-1.654A27.5 27.5 0 0 0 16 11.489\\"/><path fill=\\"#007acc\\" d=\\"M10.32 28.443a2.64 2.64 0 0 1-1.336-.328c-1.432-.826-1.928-3.208-1.327-6.373a28.8 28.8 0 0 1 3.4-8.593a28.7 28.7 0 0 1 5.653-7.154a11.4 11.4 0 0 1 3.384-2.133a3.4 3.4 0 0 1 2.878 0c1.489.858 1.982 3.486 1.287 6.859a28.8 28.8 0 0 1-3.316 8.133a28.4 28.4 0 0 1-5.476 7.093a11.3 11.3 0 0 1-3.523 2.189a4.9 4.9 0 0 1-1.624.307m1.773-14.7a28 28 0 0 0-3.26 8.219c-.553 2.915-.022 4.668.75 5.114c.8.463 2.742.024 5.1-2.036a27.2 27.2 0 0 0 5.227-6.79a27.6 27.6 0 0 0 3.181-7.776c.654-3.175.089-5.119-.713-5.581a2.33 2.33 0 0 0-1.868.089A10.2 10.2 0 0 0 17.5 6.9a27.5 27.5 0 0 0-5.4 6.849Z\\"/><path fill=\\"#007acc\\" d=\\"M21.677 28.456c-1.355 0-3.076-.82-4.868-2.361a28.8 28.8 0 0 1-5.747-7.237a28.7 28.7 0 0 1-3.374-8.471a11.4 11.4 0 0 1-.158-4A3.4 3.4 0 0 1 8.964 3.9c1.487-.861 4.01.024 6.585 2.31a28.8 28.8 0 0 1 5.39 6.934a28.4 28.4 0 0 1 3.41 8.287a11.3 11.3 0 0 1 .137 4.146a3.54 3.54 0 0 1-1.494 2.555a2.6 2.6 0 0 1-1.315.324m-9.58-10.2a28 28 0 0 0 5.492 6.929c2.249 1.935 4.033 2.351 4.8 1.9c.8-.465 1.39-2.363.782-5.434A27.2 27.2 0 0 0 19.9 13.74a27.6 27.6 0 0 0-5.145-6.64c-2.424-2.152-4.39-2.633-5.191-2.169a2.33 2.33 0 0 0-.855 1.662a10.2 10.2 0 0 0 .153 3.565a27.5 27.5 0 0 0 3.236 8.1Z\\"/>"},"file-type-js":{"body":"<path fill=\\"#f5de19\\" d=\\"M18.774 19.7a3.73 3.73 0 0 0 3.376 2.078c1.418 0 2.324-.709 2.324-1.688c0-1.173-.931-1.589-2.491-2.272l-.856-.367c-2.469-1.052-4.11-2.37-4.11-5.156c0-2.567 1.956-4.52 5.012-4.52A5.06 5.06 0 0 1 26.9 10.52l-2.665 1.711a2.33 2.33 0 0 0-2.2-1.467a1.49 1.49 0 0 0-1.638 1.467c0 1.027.636 1.442 2.1 2.078l.856.366c2.908 1.247 4.549 2.518 4.549 5.376c0 3.081-2.42 4.769-5.671 4.769a6.58 6.58 0 0 1-6.236-3.5ZM6.686 20c.538.954 1.027 1.76 2.2 1.76c1.124 0 1.834-.44 1.834-2.15V7.975h3.422v11.683c0 3.543-2.078 5.156-5.11 5.156A5.31 5.31 0 0 1 3.9 21.688Z\\"/>"},"file-type-reactjs":{"body":"<circle cx=\\"16\\" cy=\\"15.974\\" r=\\"2.5\\" fill=\\"#00d8ff\\"/><path fill=\\"#00d8ff\\" d=\\"M16 21.706a28.4 28.4 0 0 1-8.88-1.2a11.3 11.3 0 0 1-3.657-1.958A3.54 3.54 0 0 1 2 15.974c0-1.653 1.816-3.273 4.858-4.333A28.8 28.8 0 0 1 16 10.293a28.7 28.7 0 0 1 9.022 1.324a11.4 11.4 0 0 1 3.538 1.866A3.4 3.4 0 0 1 30 15.974c0 1.718-2.03 3.459-5.3 4.541a28.8 28.8 0 0 1-8.7 1.191m0-10.217a28 28 0 0 0-8.749 1.282c-2.8.977-4.055 2.313-4.055 3.2c0 .928 1.349 2.387 4.311 3.4A27.2 27.2 0 0 0 16 20.51a27.6 27.6 0 0 0 8.325-1.13C27.4 18.361 28.8 16.9 28.8 15.974a2.33 2.33 0 0 0-1.01-1.573a10.2 10.2 0 0 0-3.161-1.654A27.5 27.5 0 0 0 16 11.489\\"/><path fill=\\"#00d8ff\\" d=\\"M10.32 28.443a2.64 2.64 0 0 1-1.336-.328c-1.432-.826-1.928-3.208-1.327-6.373a28.8 28.8 0 0 1 3.4-8.593a28.7 28.7 0 0 1 5.653-7.154a11.4 11.4 0 0 1 3.384-2.133a3.4 3.4 0 0 1 2.878 0c1.489.858 1.982 3.486 1.287 6.859a28.8 28.8 0 0 1-3.316 8.133a28.4 28.4 0 0 1-5.476 7.093a11.3 11.3 0 0 1-3.523 2.189a4.9 4.9 0 0 1-1.624.307m1.773-14.7a28 28 0 0 0-3.26 8.219c-.553 2.915-.022 4.668.75 5.114c.8.463 2.742.024 5.1-2.036a27.2 27.2 0 0 0 5.227-6.79a27.6 27.6 0 0 0 3.181-7.776c.654-3.175.089-5.119-.713-5.581a2.33 2.33 0 0 0-1.868.089A10.2 10.2 0 0 0 17.5 6.9a27.5 27.5 0 0 0-5.4 6.849Z\\"/><path fill=\\"#00d8ff\\" d=\\"M21.677 28.456c-1.355 0-3.076-.82-4.868-2.361a28.8 28.8 0 0 1-5.747-7.237a28.7 28.7 0 0 1-3.374-8.471a11.4 11.4 0 0 1-.158-4A3.4 3.4 0 0 1 8.964 3.9c1.487-.861 4.01.024 6.585 2.31a28.8 28.8 0 0 1 5.39 6.934a28.4 28.4 0 0 1 3.41 8.287a11.3 11.3 0 0 1 .137 4.146a3.54 3.54 0 0 1-1.494 2.555a2.6 2.6 0 0 1-1.315.324m-9.58-10.2a28 28 0 0 0 5.492 6.929c2.249 1.935 4.033 2.351 4.8 1.9c.8-.465 1.39-2.363.782-5.434A27.2 27.2 0 0 0 19.9 13.74a27.6 27.6 0 0 0-5.145-6.64c-2.424-2.152-4.39-2.633-5.191-2.169a2.33 2.33 0 0 0-.855 1.662a10.2 10.2 0 0 0 .153 3.565a27.5 27.5 0 0 0 3.236 8.1Z\\"/>"},"file-type-json":{"body":"<path fill=\\"#f5de19\\" d=\\"M4.014 14.976a2.5 2.5 0 0 0 1.567-.518a2.38 2.38 0 0 0 .805-1.358a15.3 15.3 0 0 0 .214-2.944q.012-2.085.075-2.747a5.2 5.2 0 0 1 .418-1.686a3 3 0 0 1 .755-1.018A3.05 3.05 0 0 1 9 4.125A6.8 6.8 0 0 1 10.544 4h.7v1.96h-.387a2.34 2.34 0 0 0-1.723.468a3.4 3.4 0 0 0-.425 2.092a36 36 0 0 1-.137 4.133a4.7 4.7 0 0 1-.768 2.06A4.6 4.6 0 0 1 6.1 16a3.8 3.8 0 0 1 1.992 1.754a8.9 8.9 0 0 1 .618 3.865q0 2.435.05 2.9a1.76 1.76 0 0 0 .504 1.181a2.64 2.64 0 0 0 1.592.337h.387V28h-.7a5.7 5.7 0 0 1-1.773-.2a2.97 2.97 0 0 1-1.324-.93a3.35 3.35 0 0 1-.681-1.63a24 24 0 0 1-.165-3.234a16.5 16.5 0 0 0-.214-3.106a2.4 2.4 0 0 0-.805-1.361a2.5 2.5 0 0 0-1.567-.524Zm23.972 2.035a2.5 2.5 0 0 0-1.567.524a2.4 2.4 0 0 0-.805 1.361a16.5 16.5 0 0 0-.212 3.109a24 24 0 0 1-.169 3.234a3.35 3.35 0 0 1-.681 1.63a2.97 2.97 0 0 1-1.324.93a5.7 5.7 0 0 1-1.773.2h-.7V26.04h.387a2.64 2.64 0 0 0 1.592-.337a1.76 1.76 0 0 0 .506-1.186q.05-.462.05-2.9a8.9 8.9 0 0 1 .618-3.865A3.8 3.8 0 0 1 25.9 16a4.6 4.6 0 0 1-1.7-1.286a4.7 4.7 0 0 1-.768-2.06a36 36 0 0 1-.137-4.133a3.4 3.4 0 0 0-.425-2.092a2.34 2.34 0 0 0-1.723-.468h-.387V4h.7a6.8 6.8 0 0 1 1.54.125a3.05 3.05 0 0 1 1.149.581a3 3 0 0 1 .755 1.018a5.2 5.2 0 0 1 .418 1.686q.062.662.075 2.747a15.3 15.3 0 0 0 .212 2.947a2.38 2.38 0 0 0 .805 1.355a2.5 2.5 0 0 0 1.567.518Z\\"/>"},"file-type-html":{"body":"<path fill=\\"#e44f26\\" d=\\"M5.902 27.201L3.655 2h24.69l-2.25 25.197L15.985 30z\\"/><path fill=\\"#f1662a\\" d=\\"m16 27.858l8.17-2.265l1.922-21.532H16z\\"/><path fill=\\"#ebebeb\\" d=\\"M16 13.407h-4.09l-.282-3.165H16V7.151H8.25l.074.83l.759 8.517H16zm0 8.027l-.014.004l-3.442-.929l-.22-2.465H9.221l.433 4.852l6.332 1.758l.014-.004z\\"/><path fill=\\"#fff\\" d=\\"M15.989 13.407v3.091h3.806l-.358 4.009l-3.448.93v3.216l6.337-1.757l.046-.522l.726-8.137l.076-.83zm0-6.256v3.091h7.466l.062-.694l.141-1.567l.074-.83z\\"/>"},"file-type-css":{"body":"<path fill=\\"#639\\" d=\\"M1.995 1.994h23.52a4.48 4.48 0 0 1 4.48 4.48v19.04a4.48 4.48 0 0 1-4.48 4.48H6.475a4.48 4.48 0 0 1-4.48-4.48Z\\"/><path fill=\\"#fff\\" d=\\"M9.079 24.87v-4.704c0-1.876 1.204-2.884 3.024-2.884c1.792-.028 2.912 1.148 2.856 3.136h-2.072c.056-.756-.28-1.316-.84-1.288c-.7 0-.896.476-.896 1.372v4.088c0 .868.28 1.288.896 1.316c.644 0 .896-.644.84-1.372h2.072c.112 2.044-1.176 3.248-2.996 3.22c-1.764 0-2.884-.98-2.884-2.884m6.636-.336h1.932c.028.896.308 1.456.924 1.456s.84-.364.84-1.204c0-.7-.308-1.092-1.064-1.456l-.728-.336c-1.288-.616-1.82-1.372-1.82-2.884c0-1.68 1.064-2.856 2.8-2.856s2.66 1.204 2.688 3.164h-1.876c0-.812-.168-1.372-.784-1.372c-.56 0-.84.28-.84.98s.252.98.924 1.26l.672.308c1.428.672 2.044 1.54 2.044 3.164c0 1.932-1.092 2.996-2.884 2.996s-2.8-1.232-2.828-3.22m6.328 0h1.96c0 .896.308 1.456.896 1.456s.84-.364.84-1.204c0-.7-.28-1.092-1.064-1.456l-.728-.336c-1.288-.616-1.792-1.372-1.792-2.884c0-1.68 1.036-2.856 2.8-2.856s2.632 1.204 2.688 3.164h-1.876c-.028-.812-.196-1.372-.812-1.372c-.56 0-.812.28-.812.98s.224.98.896 1.26l.7.308c1.4.672 2.016 1.54 2.016 3.164c0 1.932-1.092 2.996-2.884 2.996s-2.8-1.232-2.828-3.22\\"/>"},"file-type-scss":{"body":"<path fill=\\"#cd6799\\" d=\\"M16.171 18.7c-.481.221-1.008.509-2.063 1.088c-.4.225-.818.45-1.207.662c-.027-.027-.055-.061-.082-.089c-2.087-2.23-5.947-3.805-5.783-6.8c.061-1.091.436-3.955 7.413-7.433c5.742-2.83 10.311-2.046 11.1-.307c1.134 2.479-2.449 7.092-8.379 7.761a4.47 4.47 0 0 1-3.751-.948c-.314-.341-.361-.361-.477-.293c-.191.1-.068.409 0 .586a3.5 3.5 0 0 0 2.141 1.684a11.4 11.4 0 0 0 6.956-.689c3.594-1.391 6.4-5.258 5.578-8.5c-.825-3.287-6.281-4.371-11.443-2.537a26 26 0 0 0-8.79 5.047c-2.844 2.66-3.294 4.972-3.11 5.94c.662 3.437 5.4 5.674 7.3 7.331q-.148.08-.259.143c-.948.471-4.562 2.36-5.463 4.358c-1.023 2.264.164 3.887.948 4.105a5.83 5.83 0 0 0 6.281-2.544a6.3 6.3 0 0 0 .559-5.8a5 5 0 0 1 .716-.477c.484-.286.945-.568 1.354-.786a10.5 10.5 0 0 1 4.475-.989c3.246.382 3.887 2.407 3.764 3.26a2.16 2.16 0 0 1-1.03 1.459c-.225.143-.3.191-.28.293c.027.15.136.143.327.116a2.535 2.535 0 0 0 1.766-2.257c.1-2-1.807-4.194-5.183-4.174a7.8 7.8 0 0 0-2.946.587q-.225.093-.437.2Zm-4.825 7.839c-1.078 1.173-2.578 1.616-3.226 1.241c-.7-.4-.423-2.135.9-3.376a17 17 0 0 1 2.53-1.889c.157-.1.389-.232.668-.4l.075-.041l.164-.1a4.66 4.66 0 0 1-1.111 4.565\\"/>"},"file-type-less":{"body":"<defs><linearGradient id=\\"SVGuo7SIeew\\" x1=\\"-3.609\\" x2=\\"-3.609\\" y1=\\"-492.685\\" y2=\\"-480.271\\" gradientTransform=\\"translate(19.712 502.891)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\".15\\" stop-color=\\"#2a4f84\\"/><stop offset=\\".388\\" stop-color=\\"#294e82\\"/><stop offset=\\"1\\" stop-color=\\"#172e4e\\"/></linearGradient></defs><path fill=\\"url(#SVGuo7SIeew)\\" d=\\"M28.559 20.226a2.4 2.4 0 0 1-2.394 2.394H6.04a2.4 2.4 0 0 1-2.394-2.394V12.6a2.4 2.4 0 0 1 2.394-2.394h20.125a2.4 2.4 0 0 1 2.394 2.394Z\\"/><path fill=\\"#f6f6f6\\" d=\\"M24.349 16.25a1.97 1.97 0 0 1 1.578 1.891a1.69 1.69 0 0 1-.653 1.4a2.93 2.93 0 0 1-1.862.559a4.56 4.56 0 0 1-2.241-.618a2 2 0 0 1 .16-.669a1.8 1.8 0 0 1 .35-.576a3.7 3.7 0 0 0 1.649.493a.97.97 0 0 0 .51-.112a.34.34 0 0 0 .178-.3q0-.353-.546-.529l-.653-.247q-1.482-.54-1.482-1.762a1.75 1.75 0 0 1 .623-1.416a2.6 2.6 0 0 1 1.678-.648a5 5 0 0 1 1.15.147a4.6 4.6 0 0 1 1.032.472a1.7 1.7 0 0 1-.13.722a1.2 1.2 0 0 1-.38.558a4.3 4.3 0 0 0-1.66-.446a.54.54 0 0 0-.362.106a.34.34 0 0 0-.124.27q0 .282.451.446l.736.259Zm-5.249 0a1.97 1.97 0 0 1 1.577 1.891a1.69 1.69 0 0 1-.652 1.4a2.94 2.94 0 0 1-1.862.559a4.56 4.56 0 0 1-2.241-.618a2 2 0 0 1 .16-.669a1.8 1.8 0 0 1 .35-.576a3.7 3.7 0 0 0 1.649.493a.96.96 0 0 0 .51-.112a.34.34 0 0 0 .178-.3q0-.353-.546-.529l-.653-.247q-1.482-.54-1.482-1.762a1.75 1.75 0 0 1 .623-1.416a2.6 2.6 0 0 1 1.677-.648a5 5 0 0 1 1.15.147a4.6 4.6 0 0 1 1.032.472a1.7 1.7 0 0 1-.13.722a1.2 1.2 0 0 1-.38.558a4.3 4.3 0 0 0-1.661-.446a.54.54 0 0 0-.362.106a.34.34 0 0 0-.124.27q0 .282.451.446zm-3.836.083a2.8 2.8 0 0 0-.172-1a2.2 2.2 0 0 0-.492-.787a2.3 2.3 0 0 0-.777-.517a2.7 2.7 0 0 0-1.026-.314a2.8 2.8 0 0 0-1.18.361a2.26 2.26 0 0 0-.83.646a2.8 2.8 0 0 0-.487.969a4.4 4.4 0 0 0-.16 1.216a5.7 5.7 0 0 0 .13 1.257a2.6 2.6 0 0 0 .445 1a2.1 2.1 0 0 0 .818.657a2.9 2.9 0 0 0 1.251.277a3.95 3.95 0 0 0 2.324-.712a1.87 1.87 0 0 0-.484-1.081a6 6 0 0 1-.857.262a3.2 3.2 0 0 1-.656.079a1.02 1.02 0 0 1-.815-.29a1.2 1.2 0 0 1-.271-.77h3.083a4.5 4.5 0 0 0 .156-1.253m-3.248.081a2.4 2.4 0 0 1 .218-1a.63.63 0 0 1 .559-.264a.66.66 0 0 1 .582.282a1.75 1.75 0 0 1 .194.856v.13h-1.553Z\\"/><path fill=\\"#f6f6f6\\" stroke=\\"#404040\\" stroke-miterlimit=\\"10\\" stroke-width=\\".25\\" d=\\"M29.18 17.2a1.6 1.6 0 0 0-.53 1.265v2.051a1.81 1.81 0 0 1-.683 1.557a2.8 2.8 0 0 1-1.654.549h-.373v-1.028a1.24 1.24 0 0 0 .595-.334a1.37 1.37 0 0 0 .419-1.047v-1.657a2.55 2.55 0 0 1 .257-1.323a2.5 2.5 0 0 1 1.2-.838a2.53 2.53 0 0 1-1.324-1.179a3 3 0 0 1-.135-1.165v-1.518a1.46 1.46 0 0 0-.366-1.054a1.15 1.15 0 0 0-.648-.314v-.96h.928a1.68 1.68 0 0 1 1.023.442a2 2 0 0 1 .673 1.009a2.3 2.3 0 0 1 .086.7v1.757a1.85 1.85 0 0 0 .5 1.383a2.1 2.1 0 0 0 .854.479v.794a1.94 1.94 0 0 0-.82.426ZM5.594 10.206H5.26a1.67 1.67 0 0 0-1.023.442a1.7 1.7 0 0 0-.673 1.009a3.5 3.5 0 0 0-.038.7v1.757a1.87 1.87 0 0 1-.545 1.386a2.9 2.9 0 0 1-.981.477v.793a2.55 2.55 0 0 1 .947.426a1.64 1.64 0 0 1 .577 1.265v2.051a1.78 1.78 0 0 0 .636 1.558a2.8 2.8 0 0 0 1.654.55h.421v-1.026a1.5 1.5 0 0 1-.643-.334a1.36 1.36 0 0 1-.371-1.047v-1.656a2.5 2.5 0 0 0-.305-1.323a2.5 2.5 0 0 0-1.2-.838a2.53 2.53 0 0 0 1.324-1.178a2.9 2.9 0 0 0 .183-1.165v-1.519a1.46 1.46 0 0 1 .317-1.054a1.3 1.3 0 0 1 .575-.271h.428v-1.003z\\"/><path fill=\\"#f6f6f6\\" d=\\"M9.537 18.529h-.32c-.348 0-.479-.183-.479-.551v-6.759a1.26 1.26 0 0 0-.268-.856c-.15-.164-.411-.162-.783-.162h-.808v8.106a1.88 1.88 0 0 0 .352 1.24a1.44 1.44 0 0 0 1.145.393a8 8 0 0 0 1.269-.118a2.2 2.2 0 0 0 .036-.509a2.3 2.3 0 0 0-.142-.782Z\\"/>"},"file-type-svg":{"body":"<path fill=\\"#ffb13b\\" stroke=\\"#000\\" stroke-width=\\"3.73\\" d=\\"M7.674 14.488a2.218 2.218 0 1 0 0 3.137h16.652a2.218 2.218 0 1 0 0-3.137Z\\"/><path fill=\\"#ffb13b\\" stroke=\\"#000\\" stroke-width=\\"3.73\\" d=\\"M11.222 9.06A2.218 2.218 0 1 0 9 11.278l11.778 11.774A2.218 2.218 0 1 0 23 20.834Z\\"/><path fill=\\"#ffb13b\\" stroke=\\"#000\\" stroke-width=\\"3.73\\" d=\\"M17.568 7.73a2.218 2.218 0 1 0-3.137 0v16.652a2.218 2.218 0 1 0 3.137 0Z\\"/><path fill=\\"#ffb13b\\" stroke=\\"#000\\" stroke-width=\\"3.73\\" d=\\"M23 11.278a2.218 2.218 0 1 0-2.222-2.218L9 20.834a2.218 2.218 0 1 0 2.218 2.218Z\\"/><path fill=\\"#ffb13b\\" d=\\"M7.674 14.488a2.218 2.218 0 1 0 0 3.137h16.652a2.218 2.218 0 1 0 0-3.137Z\\"/><path fill=\\"#ffb13b\\" d=\\"M11.222 9.06A2.218 2.218 0 1 0 9 11.278l11.778 11.774A2.218 2.218 0 1 0 23 20.834Z\\"/><path fill=\\"#ffb13b\\" d=\\"M17.568 7.73a2.218 2.218 0 1 0-3.137 0v16.652a2.218 2.218 0 1 0 3.137 0Z\\"/><path fill=\\"#ffb13b\\" d=\\"M23 11.278a2.218 2.218 0 1 0-2.222-2.218L9 20.834a2.218 2.218 0 1 0 2.218 2.218Z\\"/><path d=\\"M2 16.056h28v9.894a4.035 4.035 0 0 1-4.106 4.106H6.106A4.035 4.035 0 0 1 2 25.95Z\\"/><path fill=\\"#fff\\" d=\\"M6.2 23.045a3.628 3.628 0 1 1 6.2-2.565h-2.13a1.5 1.5 0 1 0-2.57 1.061a1.6 1.6 0 0 0 1.062.441a4.12 4.12 0 0 1 2.566 1.063a3.628 3.628 0 1 1-6.194 2.565h2.13a1.5 1.5 0 1 0 2.566-1.06a1.95 1.95 0 0 0-1.063-.44A4.47 4.47 0 0 1 6.2 23.045m13.451-6.193L17.085 29.24H14.96L12.4 16.852h2.12l1.5 7.255l1.5-7.255Zm3.629 5.131h3.628v3.628a3.628 3.628 0 1 1-7.257 0V20.48a3.628 3.628 0 0 1 7.257 0h-2.125a1.5 1.5 0 1 0-3.005 0v5.13a1.5 1.5 0 0 0 3.005 0v-1.5h-1.5v-2.127Z\\"/>"},"file-type-vue":{"body":"<path fill=\\"#41b883\\" d=\\"M24.4 3.925H30l-14 24.15L2 3.925h10.71l3.29 5.6l3.22-5.6Z\\"/><path fill=\\"#41b883\\" d=\\"m2 3.925l14 24.15l14-24.15h-5.6L16 18.415L7.53 3.925Z\\"/><path fill=\\"#35495e\\" d=\\"M7.53 3.925L16 18.485l8.4-14.56h-5.18L16 9.525l-3.29-5.6Z\\"/>"},"file-type-svelte":{"body":"<path fill=\\"#ff3e00\\" d=\\"M26.47 5.7a8.973 8.973 0 0 0-11.793-2.454L7.96 7.4a7.46 7.46 0 0 0-3.481 5.009a7.7 7.7 0 0 0 .8 5.058a7.4 7.4 0 0 0-1.151 2.8a7.8 7.8 0 0 0 1.4 6.028a8.977 8.977 0 0 0 11.794 2.458L24.04 24.6a7.47 7.47 0 0 0 3.481-5.009a7.67 7.67 0 0 0-.8-5.062a7.35 7.35 0 0 0 1.152-2.8A7.8 7.8 0 0 0 26.47 5.7\\"/><path fill=\\"#fff\\" d=\\"M14.022 26.64A5.41 5.41 0 0 1 8.3 24.581a4.68 4.68 0 0 1-.848-3.625a4 4 0 0 1 .159-.61l.127-.375l.344.238a8.8 8.8 0 0 0 2.628 1.274l.245.073l-.025.237a1.44 1.44 0 0 0 .271.968a1.63 1.63 0 0 0 1.743.636a1.5 1.5 0 0 0 .411-.175l6.7-4.154a1.37 1.37 0 0 0 .633-.909a1.4 1.4 0 0 0-.244-1.091a1.63 1.63 0 0 0-1.726-.622a1.5 1.5 0 0 0-.413.176l-2.572 1.584a5 5 0 0 1-1.364.582a5.415 5.415 0 0 1-5.727-2.06a4.68 4.68 0 0 1-.831-3.628A4.5 4.5 0 0 1 9.9 10.09l6.708-4.154a5 5 0 0 1 1.364-.581A5.41 5.41 0 0 1 23.7 7.414a4.68 4.68 0 0 1 .848 3.625a4 4 0 0 1-.159.61l-.127.375l-.344-.237a8.7 8.7 0 0 0-2.628-1.274l-.245-.074l.025-.237a1.44 1.44 0 0 0-.272-.968a1.63 1.63 0 0 0-1.725-.622a1.5 1.5 0 0 0-.411.176l-6.722 4.14a1.35 1.35 0 0 0-.631.908a1.4 1.4 0 0 0 .244 1.092a1.63 1.63 0 0 0 1.726.621a1.5 1.5 0 0 0 .413-.175l2.562-1.585a4.9 4.9 0 0 1 1.364-.581a5.42 5.42 0 0 1 5.728 2.059a4.68 4.68 0 0 1 .843 3.625a4.5 4.5 0 0 1-2.089 3.013l-6.707 4.154a4.9 4.9 0 0 1-1.364.581\\"/>"},"file-type-astro":{"body":"<path fill=\\"url(#SVGjSGnPd0t)\\" d=\\"M11.025 20.499c-.532 1.75-.154 4.184 1.105 5.331v-.042l.042-.112c.154-.741.756-1.203 1.526-1.175c.713.014 1.12.392 1.217 1.217c.042.308.042.616.056.938v.098c0 .7.196 1.371.588 1.959c.35.56.84.993 1.497 1.287l-.028-.056l-.028-.112c-.49-1.469-.14-2.49 1.147-3.358l.392-.266l.868-.573a4.25 4.25 0 0 0 1.791-3.037c.07-.532 0-1.05-.154-1.553l-.21.14c-1.945 1.035-4.17 1.4-6.325.98c-1.301-.197-2.56-.56-3.498-1.652z\\"/><path fill=\\"#fff\\" d=\\"M4.925 20.191s3.736-1.82 7.486-1.82l2.84-8.759c.098-.42.406-.7.756-.7s.644.28.756.714l2.826 8.746c4.45 0 7.487 1.82 7.487 1.82L20.709 2.84c-.168-.518-.49-.84-.896-.84h-7.612c-.406 0-.7.322-.896.84z\\"/><defs><linearGradient id=\\"SVGjSGnPd0t\\" x1=\\"8.19\\" x2=\\"16.91\\" y1=\\"23\\" y2=\\"18.89\\" gradientTransform=\\"translate(-.673 -2.198)scale(1.3993)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#d83333\\"/><stop offset=\\"1\\" stop-color=\\"#f041ff\\"/></linearGradient></defs>"},"file-type-yaml":{"body":"<path fill=\\"#ffe885\\" d=\\"M2 12.218c.755 0 1.51-.008 2.264 0l.053.038l2.761 2.758c.891-.906 1.8-1.794 2.7-2.7c.053-.052.11-.113.192-.1h1.823a1.4 1.4 0 0 1 .353.019c-.7.67-1.377 1.369-2.069 2.05L5.545 18.8c-.331.324-.648.663-.989.975c-.754.022-1.511.007-2.266.007c1.223-1.209 2.431-2.433 3.658-3.637c-1.321-1.304-2.63-2.62-3.948-3.927m10.7 0h1.839v7.566c-.611 0-1.222.012-1.832-.008v-4.994c-1.6 1.607-3.209 3.2-4.811 4.8c-.089.08-.166.217-.305.194c-.824-.006-1.649 0-2.474 0Q8.916 16 12.7 12.218m2.258.002c.47-.009.939 0 1.409 0c.836.853 1.69 1.689 2.536 2.532q1.268-1.267 2.539-2.532h1.4q-.008 3.784 0 7.567c-.471 0-.943.006-1.414 0q.008-2.387 0-4.773c-.844.843-1.676 1.7-2.526 2.536c-.856-.835-1.687-1.695-2.532-2.541c0 1.594-.006 3.188.006 4.781c-.472 0-.943.005-1.415 0q-.003-3.79-.003-7.57m8.301-.003c.472 0 .944-.007 1.416 0q-.007 3.083 0 6.166h3.782c.063.006.144-.012.191.045c.448.454.907.9 1.353 1.354q-3.371.007-6.741 0q.007-3.782-.001-7.565\\"/>"},"file-type-toml":{"body":"<path fill=\\"#7f7f7f\\" d=\\"M22.76 6.83v3.25h-5v15.09h-3.5V10.08h-5V6.83Z\\"/><path fill=\\"#bfbfbf\\" d=\\"M2 2h6.2v3.09H5.34v21.8H8.2V30H2Zm28 28h-6.2v-3.09h2.86V5.11H23.8V2H30Z\\"/>"},"file-type-xml":{"body":"<path fill=\\"#f1662a\\" d=\\"m20.42 21.157l2.211 2.211L30 16l-7.369-7.369l-2.211 2.212L25.58 16Zm-8.84-10.314L9.369 8.631L2 16l7.369 7.369l2.211-2.211L6.42 16Zm5.831-3.166l1.6.437l-4.42 16.209l-1.6-.437z\\"/>"},"file-type-dotenv":{"body":"<g fill-rule=\\"evenodd\\"><path d=\\"M3.167 3.167h25.667v25.667H3.167z\\"/><path fill=\\"#ecd53f\\" fill-rule=\\"nonzero\\" d=\\"M30 2v28H2V2zM14.757 20.539H9.98v6.44h4.898v-1.085h-3.597V24.14h3.232v-1.085H11.28v-1.428h3.475v-1.09zm2.503 0h-1.264v6.44h1.207v-4.2l2.597 4.2h1.305v-6.44h-1.21v4.3zm5.97 0h-1.41l2.303 6.44h1.388l2.306-6.44h-1.38l-1.577 4.766l-1.63-4.767zM8.3 24.96H6.34v1.96H8.3z\\"/></g>"},"file-type-ini":{"body":"<path fill=\\"#99b8c4\\" d=\\"m23.265 24.381l.9-.894c4.164.136 4.228-.01 4.411-.438l1.144-2.785l.085-.264l-.093-.231c-.049-.122-.2-.486-2.8-2.965V15.5c3-2.89 2.936-3.038 2.765-3.461l-1.139-2.814c-.171-.422-.236-.587-4.37-.474l-.9-.93a20 20 0 0 0-.141-4.106l-.116-.263l-2.974-1.3c-.438-.2-.592-.272-3.4 2.786l-1.262-.019c-2.891-3.086-3.028-3.03-3.461-2.855L9.149 3.182c-.433.175-.586.237-.418 4.437l-.893.89c-4.162-.136-4.226.012-4.407.438l-1.146 2.786l-.09.267l.094.232c.049.12.194.48 2.8 2.962v1.3c-3 2.89-2.935 3.038-2.763 3.462l1.138 2.817c.174.431.236.584 4.369.476l.9.935a20.2 20.2 0 0 0 .137 4.1l.116.265l2.993 1.308c.435.182.586.247 3.386-2.8l1.262.016c2.895 3.09 3.043 3.03 3.466 2.859l2.759-1.115c.436-.173.588-.234.413-4.436m-11.858-6.524a4.957 4.957 0 1 1 6.488 2.824a5.014 5.014 0 0 1-6.488-2.824\\"/>"},"file-type-python":{"body":"<defs><linearGradient id=\\"SVGg4rxgcri\\" x1=\\"-133.268\\" x2=\\"-133.198\\" y1=\\"-202.91\\" y2=\\"-202.84\\" gradientTransform=\\"matrix(189.38 0 0 189.81 25243.061 38519.17)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#387eb8\\"/><stop offset=\\"1\\" stop-color=\\"#366994\\"/></linearGradient><linearGradient id=\\"SVG5ouQmWbV\\" x1=\\"-133.575\\" x2=\\"-133.495\\" y1=\\"-203.203\\" y2=\\"-203.133\\" gradientTransform=\\"matrix(189.38 0 0 189.81 25309.061 38583.42)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#ffe052\\"/><stop offset=\\"1\\" stop-color=\\"#ffc331\\"/></linearGradient></defs><path fill=\\"url(#SVGg4rxgcri)\\" d=\\"M15.885 2.1c-7.1 0-6.651 3.07-6.651 3.07v3.19h6.752v1H6.545S2 8.8 2 16.005s4.013 6.912 4.013 6.912H8.33v-3.361s-.13-4.013 3.9-4.013h6.762s3.772.06 3.772-3.652V5.8s.572-3.712-6.842-3.712Zm-3.732 2.137a1.214 1.214 0 1 1-1.183 1.244v-.02a1.214 1.214 0 0 1 1.214-1.214Z\\"/><path fill=\\"url(#SVG5ouQmWbV)\\" d=\\"M16.085 29.91c7.1 0 6.651-3.08 6.651-3.08v-3.18h-6.751v-1h9.47S30 23.158 30 15.995s-4.013-6.912-4.013-6.912H23.64V12.4s.13 4.013-3.9 4.013h-6.765S9.2 16.356 9.2 20.068V26.2s-.572 3.712 6.842 3.712h.04Zm3.732-2.147A1.214 1.214 0 1 1 21 26.519v.03a1.214 1.214 0 0 1-1.214 1.214z\\"/>"},"file-type-ruby":{"body":"<defs><linearGradient id=\\"SVGiqgdicjk\\" x1=\\"-235.957\\" x2=\\"-235.986\\" y1=\\"-308.579\\" y2=\\"-308.527\\" gradientTransform=\\"matrix(202.935 0 0 -202.78 47910.461 -62541.16)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fb7655\\"/><stop offset=\\".41\\" stop-color=\\"#e42b1e\\"/><stop offset=\\".99\\" stop-color=\\"#900\\"/><stop offset=\\"1\\" stop-color=\\"#900\\"/></linearGradient><linearGradient id=\\"SVGF9aq9cWt\\" x1=\\"-235.571\\" x2=\\"-235.697\\" y1=\\"-309.087\\" y2=\\"-309.041\\" gradientTransform=\\"matrix(60.308 0 0 -111.778 14236.351 -34525.395)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#871101\\"/><stop offset=\\".99\\" stop-color=\\"#911209\\"/><stop offset=\\"1\\" stop-color=\\"#911209\\"/></linearGradient><linearGradient id=\\"SVG0HSePCnb\\" x1=\\"-235.896\\" x2=\\"-235.937\\" y1=\\"-313.362\\" y2=\\"-313.129\\" gradientTransform=\\"matrix(188.32 0 0 -21.986 44447.302 -6856.882)\\" href=\\"#SVGF9aq9cWt\\"/><linearGradient id=\\"SVGvb2glb6k\\" x1=\\"-233.515\\" x2=\\"-233.497\\" y1=\\"-309.082\\" y2=\\"-309.161\\" gradientTransform=\\"matrix(65.222 0 0 -97.1 15237.802 -29991.814)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fff\\"/><stop offset=\\".23\\" stop-color=\\"#e57252\\"/><stop offset=\\".46\\" stop-color=\\"#de3b20\\"/><stop offset=\\".99\\" stop-color=\\"#a60003\\"/><stop offset=\\"1\\" stop-color=\\"#a60003\\"/></linearGradient><linearGradient id=\\"SVG6loDUcxZ\\" x1=\\"-235.314\\" x2=\\"-235.31\\" y1=\\"-309.534\\" y2=\\"-309.607\\" gradientTransform=\\"matrix(105.32 0 0 -106.825 24798.925 -33053.152)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fff\\"/><stop offset=\\".23\\" stop-color=\\"#e4714e\\"/><stop offset=\\".56\\" stop-color=\\"#be1a0d\\"/><stop offset=\\".99\\" stop-color=\\"#a80d00\\"/><stop offset=\\"1\\" stop-color=\\"#a80d00\\"/></linearGradient><linearGradient id=\\"SVG6FPKXbvK\\" x1=\\"-235.882\\" x2=\\"-235.869\\" y1=\\"-311.851\\" y2=\\"-311.935\\" gradientTransform=\\"matrix(94.321 0 0 -66.418 22271.499 -20707.004)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fff\\"/><stop offset=\\".18\\" stop-color=\\"#e46342\\"/><stop offset=\\".4\\" stop-color=\\"#c82410\\"/><stop offset=\\".99\\" stop-color=\\"#a80d00\\"/><stop offset=\\"1\\" stop-color=\\"#a80d00\\"/></linearGradient><linearGradient id=\\"SVGLCWrsbYP\\" x1=\\"-235.412\\" x2=\\"-235.333\\" y1=\\"-321.074\\" y2=\\"-320.958\\" gradientTransform=\\"matrix(70.767 0 0 -24.301 16678.116 -7798.647)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fff\\"/><stop offset=\\".54\\" stop-color=\\"#c81f11\\"/><stop offset=\\".99\\" stop-color=\\"#bf0905\\"/><stop offset=\\"1\\" stop-color=\\"#bf0905\\"/></linearGradient><linearGradient id=\\"SVGf5jZBbJL\\" x1=\\"-223.821\\" x2=\\"-223.796\\" y1=\\"-310.116\\" y2=\\"-310.18\\" gradientTransform=\\"matrix(18.177 0 0 -72.645 4071.017 -22510.233)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fff\\"/><stop offset=\\".31\\" stop-color=\\"#de4024\\"/><stop offset=\\".99\\" stop-color=\\"#bf190b\\"/><stop offset=\\"1\\" stop-color=\\"#bf190b\\"/></linearGradient><linearGradient id=\\"SVGQfUwFbKt\\" x1=\\"-235.561\\" x2=\\"-235.424\\" y1=\\"-309.258\\" y2=\\"-309.116\\" gradientTransform=\\"matrix(158.162 0 0 -157.937 37256.313 -48819.382)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#bd0012\\"/><stop offset=\\".07\\" stop-color=\\"#fff\\"/><stop offset=\\".17\\" stop-color=\\"#fff\\"/><stop offset=\\".27\\" stop-color=\\"#c82f1c\\"/><stop offset=\\".33\\" stop-color=\\"#820c01\\"/><stop offset=\\".46\\" stop-color=\\"#a31601\\"/><stop offset=\\".72\\" stop-color=\\"#b31301\\"/><stop offset=\\".99\\" stop-color=\\"#e82609\\"/><stop offset=\\"1\\" stop-color=\\"#e82609\\"/></linearGradient><linearGradient id=\\"SVGSsKSoh4f\\" x1=\\"-235.424\\" x2=\\"-235.476\\" y1=\\"-309.143\\" y2=\\"-309.126\\" gradientTransform=\\"matrix(127.074 0 0 -97.409 29932.229 -30086.947)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#8c0c01\\"/><stop offset=\\".54\\" stop-color=\\"#990c00\\"/><stop offset=\\".99\\" stop-color=\\"#a80d0e\\"/><stop offset=\\"1\\" stop-color=\\"#a80d0e\\"/></linearGradient><linearGradient id=\\"SVG9U0cHUGc\\" x1=\\"-235.839\\" x2=\\"-235.901\\" y1=\\"-309.604\\" y2=\\"-309.555\\" gradientTransform=\\"matrix(94.011 0 0 -105.603 22198.743 -32676.856)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#7e110b\\"/><stop offset=\\".99\\" stop-color=\\"#9e0c00\\"/><stop offset=\\"1\\" stop-color=\\"#9e0c00\\"/></linearGradient><linearGradient id=\\"SVGdb3on5po\\" x1=\\"-235.854\\" x2=\\"-235.891\\" y1=\\"-311.24\\" y2=\\"-311.202\\" gradientTransform=\\"matrix(79.702 0 0 -81.791 18827.397 -25447.905)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#79130d\\"/><stop offset=\\".99\\" stop-color=\\"#9e120b\\"/><stop offset=\\"1\\" stop-color=\\"#9e120b\\"/></linearGradient><linearGradient id=\\"SVGkA2IRbug\\" x1=\\"-231.241\\" x2=\\"-231.299\\" y1=\\"-309.435\\" y2=\\"-309.337\\" gradientTransform=\\"matrix(40.137 0 0 -81.143 9286.998 -25078.589)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#8b2114\\"/><stop offset=\\".43\\" stop-color=\\"#9e100a\\"/><stop offset=\\".99\\" stop-color=\\"#b3100c\\"/><stop offset=\\"1\\" stop-color=\\"#b3100c\\"/></linearGradient><linearGradient id=\\"SVGLvLZ24gI\\" x1=\\"-235.898\\" x2=\\"-235.831\\" y1=\\"-317.466\\" y2=\\"-317.537\\" gradientTransform=\\"matrix(78.099 0 0 -32.624 18447.361 -10353.553)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#b31000\\"/><stop offset=\\".44\\" stop-color=\\"#910f08\\"/><stop offset=\\".99\\" stop-color=\\"#791c12\\"/><stop offset=\\"1\\" stop-color=\\"#791c12\\"/></linearGradient><radialGradient id=\\"SVGfvaUndTF\\" cx=\\"-235.882\\" cy=\\"-312.543\\" r=\\".076\\" gradientTransform=\\"matrix(93.113 0 0 -48.655 21986.073 -15193.61)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#a80d00\\"/><stop offset=\\".99\\" stop-color=\\"#7e0e08\\"/><stop offset=\\"1\\" stop-color=\\"#7e0e08\\"/></radialGradient><radialGradient id=\\"SVGv1rGLeXK\\" cx=\\"-235.282\\" cy=\\"-309.704\\" r=\\".097\\" gradientTransform=\\"matrix(97.434 0 0 -75.848 22937.057 -23467.84)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#a30c00\\"/><stop offset=\\".99\\" stop-color=\\"#800e08\\"/><stop offset=\\"1\\" stop-color=\\"#800e08\\"/></radialGradient></defs><path fill=\\"url(#SVGiqgdicjk)\\" d=\\"M23.693 20.469L7.707 29.961l20.7-1.4L30 7.685Z\\"/><path fill=\\"url(#SVGF9aq9cWt)\\" d=\\"m28.44 28.542l-1.779-12.279l-4.846 6.4Z\\"/><path fill=\\"url(#SVG0HSePCnb)\\" d=\\"M28.464 28.542L15.43 27.519l-7.654 2.415Z\\"/><path fill=\\"url(#SVGvb2glb6k)\\" d=\\"M7.794 29.937L11.05 19.27L3.885 20.8Z\\"/><path fill=\\"url(#SVG6loDUcxZ)\\" d=\\"m21.813 22.7l-3-11.735L10.243 19Z\\"/><path fill=\\"url(#SVG6FPKXbvK)\\" d=\\"m29.32 11.127l-8.1-6.619l-2.257 7.3Z\\"/><path fill=\\"url(#SVGLCWrsbYP)\\" d=\\"m25.53 2.148l-4.767 2.634l-3.007-2.67Z\\"/><path fill=\\"url(#SVGf5jZBbJL)\\" d=\\"m2 24.38l2-3.642L2.382 16.4Z\\"/><path fill=\\"#fff\\" d=\\"m2.274 16.263l1.626 4.61l7.062-1.584l8.062-7.489L21.3 4.569l-3.583-2.53l-6.091 2.28C9.706 6.1 5.982 9.635 5.848 9.7s-2.459 4.464-3.574 6.562Z\\"/><path fill=\\"url(#SVGQfUwFbKt)\\" d=\\"M7.981 7.981C12.14 3.858 17.5 1.421 19.559 3.5s-.124 7.121-4.283 11.244s-9.455 6.69-11.511 4.614s.057-7.258 4.216-11.377\\"/><path fill=\\"url(#SVGSsKSoh4f)\\" d=\\"m7.794 29.933l3.231-10.7l10.729 3.447c-3.879 3.638-8.194 6.713-13.96 7.254Z\\"/><path fill=\\"url(#SVG9U0cHUGc)\\" d=\\"m19.038 11.774l2.754 10.91c3.24-3.407 6.149-7.07 7.573-11.6z\\"/><path fill=\\"url(#SVGdb3on5po)\\" d=\\"M29.337 11.139c1.1-3.327 1.357-8.1-3.841-8.985l-4.265 2.355z\\"/><path fill=\\"#9e1209\\" d=\\"M2 24.332c.153 5.49 4.114 5.572 5.8 5.62l-3.9-9.1z\\"/><path fill=\\"url(#SVGfvaUndTF)\\" d=\\"M19.053 11.791c2.49 1.531 7.509 4.6 7.61 4.661a17.6 17.6 0 0 0 2.619-5.343z\\"/><path fill=\\"url(#SVGv1rGLeXK)\\" d=\\"m11.021 19.232l4.319 8.332a28 28 0 0 0 6.385-4.88l-10.7-3.452Z\\"/><path fill=\\"url(#SVGkA2IRbug)\\" d=\\"m3.887 20.861l-.612 7.287c1.155 1.577 2.743 1.714 4.409 1.591c-1.205-3-3.614-9-3.8-8.878Z\\"/><path fill=\\"url(#SVGLvLZ24gI)\\" d=\\"m21.206 4.528l8.58 1.2c-.458-1.94-1.864-3.192-4.261-3.584l-4.319 2.38Z\\"/>"},"file-type-go":{"body":"<path fill=\\"#00acd7\\" d=\\"M-46.926 89c-.621 0-.777-.311-.466-.777l3.262-4.194a2.23 2.23 0 0 1 1.708-.777h55.448c.621 0 .777.466.466.932l-2.64 4.038a2.37 2.37 0 0 1-1.553.932Zm-23.453 14.285c-.621 0-.777-.311-.466-.777l3.262-4.194a2.23 2.23 0 0 1 1.708-.777H4.95a.714.714 0 0 1 .777.932L4.484 102.2a1.36 1.36 0 0 1-1.4.932Zm37.587 14.289c-.621 0-.777-.466-.466-.932l2.174-3.883a2.06 2.06 0 0 1 1.553-.932H1.533c.621 0 .932.466.932 1.087l-.311 3.728a1.17 1.17 0 0 1-1.087 1.087ZM128.426 86.2c-9.785 2.485-16.464 4.349-26.093 6.834c-2.33.621-2.485.777-4.5-1.553c-2.33-2.64-4.038-4.349-7.3-5.9c-9.785-4.815-19.259-3.417-28.112 2.33c-10.561 6.834-16 16.929-15.842 29.51c.155 12.425 8.7 22.676 20.968 24.385c10.561 1.4 19.414-2.33 26.4-10.251c1.4-1.708 2.64-3.572 4.194-5.747H68.163c-3.262 0-4.038-2.019-2.951-4.659c2.019-4.815 5.747-12.891 7.921-16.929a4.19 4.19 0 0 1 3.883-2.485h56.535c-.311 4.194-.311 8.387-.932 12.581a66.24 66.24 0 0 1-12.736 30.442c-11.183 14.752-25.783 23.915-44.265 26.4c-15.221 2.019-29.355-.932-41.78-10.251a48.8 48.8 0 0 1-19.725-34.48c-2.019-16.929 2.951-32.15 13.2-45.508C38.342 66.475 52.942 57.312 70.8 54.05c14.6-2.64 28.578-.932 41.159 7.61a48.7 48.7 0 0 1 18.017 21.9c.935 1.398.313 2.175-1.55 2.64\\"/><path fill=\\"#00acd7\\" d=\\"M179.835 172.09c-14.134-.311-27.025-4.349-37.9-13.668a48.7 48.7 0 0 1-16.774-29.976c-2.8-17.551 2.019-33.082 12.581-46.905c11.338-14.91 25.006-22.676 43.488-25.938c15.842-2.8 30.753-1.243 44.265 7.921c12.27 8.387 19.88 19.725 21.9 34.635c2.64 20.968-3.417 38.052-17.861 52.652a71.17 71.17 0 0 1-37.276 19.88c-4.191.778-8.384.933-12.423 1.399m36.965-62.747a45 45 0 0 0-.466-5.125c-2.8-15.376-16.929-24.074-31.684-20.657c-14.444 3.262-23.763 12.425-27.18 27.025a25.58 25.58 0 0 0 14.289 29.355c8.542 3.728 17.085 3.262 25.317-.932c12.269-6.369 18.948-16.309 19.724-29.666\\"/>","width":254.5,"height":225},"file-type-rust":{"body":"<defs><radialGradient id=\\"SVGZmFlvcVj\\" cx=\\"-492.035\\" cy=\\"-883.37\\" r=\\"13.998\\" gradientTransform=\\"matrix(.866 -.5 -.3 -.52 177.106 -689.033)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#7d7d7d\\"/><stop offset=\\".267\\" stop-color=\\"#7e7c7a\\"/><stop offset=\\".45\\" stop-color=\\"#817871\\"/><stop offset=\\".608\\" stop-color=\\"#867162\\"/><stop offset=\\".753\\" stop-color=\\"#8d684c\\"/><stop offset=\\".886\\" stop-color=\\"#965c30\\"/><stop offset=\\"1\\" stop-color=\\"#a04f12\\"/></radialGradient></defs><path fill=\\"url(#SVGZmFlvcVj)\\" d=\\"M15.124 5.3a.832.832 0 1 1 .832.832a.83.83 0 0 1-.832-.832M5.2 12.834a.832.832 0 1 1 .832.832a.83.83 0 0 1-.832-.832m19.856.039a.832.832 0 1 1 .832.832a.83.83 0 0 1-.832-.832m-17.451 1.14a.76.76 0 0 0 .386-1l-.369-.835h1.452v6.545h-2.93a10.3 10.3 0 0 1-.332-3.911Zm6.074.161v-1.929h3.458c.179 0 1.261.206 1.261 1.016c0 .672-.83.913-1.513.913ZM8.958 24.561a.832.832 0 1 1 .832.832a.83.83 0 0 1-.832-.832m12.331.039a.832.832 0 1 1 .832.832a.83.83 0 0 1-.832-.832m.257-1.887a.76.76 0 0 0-.9.584l-.418 1.949a10.25 10.25 0 0 1-8.545-.041l-.417-1.949a.76.76 0 0 0-.9-.583l-1.721.37a10 10 0 0 1-.89-1.049h8.374c.095 0 .158-.017.158-.1v-2.966c0-.086-.063-.1-.158-.1h-2.45v-1.881h2.649a1.665 1.665 0 0 1 1.629 1.412c.105.413.336 1.757.494 2.187c.157.483.8 1.447 1.482 1.447h4.323a10 10 0 0 1-.949 1.1Zm4.65-7.821a10.3 10.3 0 0 1 .022 1.779h-1.051c-.105 0-.148.069-.148.172v.483c0 1.136-.641 1.384-1.2 1.447c-.535.06-1.128-.224-1.2-.551a3.62 3.62 0 0 0-1.671-2.808c1.03-.654 2.1-1.619 2.1-2.911A3.29 3.29 0 0 0 21.44 9.8a4.56 4.56 0 0 0-2.2-.724H8.367A10.25 10.25 0 0 1 14.1 5.84l1.282 1.344a.76.76 0 0 0 1.072.026l1.434-1.372a10.25 10.25 0 0 1 7.015 5l-.982 2.217a.76.76 0 0 0 .386 1Zm2.448.036l-.033-.343l1.011-.943a.42.42 0 0 0-.013-.595a.4.4 0 0 0-.121-.081l-1.288-.483l-.1-.334l.806-1.12a.42.42 0 0 0-.13-.581a.4.4 0 0 0-.133-.055l-1.363-.222l-.164-.306l.573-1.257a.42.42 0 0 0-.236-.544a.4.4 0 0 0-.146-.029l-1.383.048l-.224-.264l.318-1.347a.42.42 0 0 0-.343-.487a.4.4 0 0 0-.144 0l-1.348.315l-.266-.219l.049-1.381a.42.42 0 0 0-.431-.411a.4.4 0 0 0-.141.028l-1.257.573l-.306-.164l-.222-1.363a.42.42 0 0 0-.5-.318a.4.4 0 0 0-.133.055l-1.121.806l-.333-.1l-.483-1.293a.42.42 0 0 0-.555-.215a.4.4 0 0 0-.12.08l-.946 1.012l-.343-.033l-.728-1.177a.42.42 0 0 0-.688 0l-.728 1.177l-.343.033l-.943-1.012a.42.42 0 0 0-.595.015a.4.4 0 0 0-.08.12L12.483 3.8l-.333.1l-1.12-.8a.42.42 0 0 0-.581.13a.4.4 0 0 0-.055.133l-.222 1.363l-.306.164l-1.258-.573a.42.42 0 0 0-.544.239a.4.4 0 0 0-.028.144l.048 1.383l-.266.217l-1.347-.316a.42.42 0 0 0-.487.343a.4.4 0 0 0 0 .144L6.3 7.819l-.218.265L4.7 8.036a.422.422 0 0 0-.383.573l.573 1.257l-.164.306l-1.363.222a.42.42 0 0 0-.318.5a.4.4 0 0 0 .055.133l.806 1.12l-.1.334l-1.293.483a.42.42 0 0 0-.215.555a.4.4 0 0 0 .081.121l1.011.943l-.033.343l-1.177.728a.42.42 0 0 0 0 .688l1.177.728l.033.343l-1.011.943a.42.42 0 0 0 .015.595a.4.4 0 0 0 .119.08l1.293.483l.1.334l-.806 1.124a.42.42 0 0 0 .131.581a.4.4 0 0 0 .133.055l1.363.222l.164.307l-.573 1.257a.42.42 0 0 0 .24.545a.4.4 0 0 0 .143.028l1.383-.048l.219.266l-.317 1.348a.42.42 0 0 0 .341.486a.4.4 0 0 0 .146 0l1.345-.319l.266.218l-.049 1.382a.42.42 0 0 0 .429.41a.4.4 0 0 0 .143-.028l1.257-.573l.306.164l.222 1.362a.42.42 0 0 0 .5.319a.4.4 0 0 0 .133-.055l1.12-.807l.334.1l.483 1.292a.42.42 0 0 0 .556.214a.4.4 0 0 0 .119-.08l.943-1.011l.343.034l.728 1.177a.42.42 0 0 0 .588.1a.4.4 0 0 0 .1-.1l.728-1.177l.343-.034l.943 1.011a.42.42 0 0 0 .595-.015a.4.4 0 0 0 .08-.119l.483-1.292l.334-.1l1.12.807a.42.42 0 0 0 .581-.131a.4.4 0 0 0 .055-.133l.222-1.362l.306-.164l1.257.573a.42.42 0 0 0 .544-.239a.4.4 0 0 0 .028-.143l-.048-1.384l.265-.218l1.347.317a.42.42 0 0 0 .487-.34a.5.5 0 0 0 0-.146l-.309-1.346l.218-.266l1.383.048a.42.42 0 0 0 .41-.431a.4.4 0 0 0-.028-.142l-.573-1.257l.164-.307l1.363-.222a.42.42 0 0 0 .319-.5a.4.4 0 0 0-.056-.135l-.806-1.12l.1-.334l1.293-.483a.42.42 0 0 0 .215-.554a.4.4 0 0 0-.081-.121l-1.011-.943l.033-.343l1.177-.728a.42.42 0 0 0 0-.688Z\\"/>"},"file-type-java":{"body":"<path fill=\\"#5382a1\\" d=\\"M12.7 23.56s-1.07.622.761.833a16 16 0 0 0 5.8-.246a10 10 0 0 0 1.539.753c-5.481 2.349-12.405-.136-8.1-1.339m-.674-3.067s-1.2.888.633 1.078a22.6 22.6 0 0 0 7.481-.359a3.3 3.3 0 0 0 1.152.7c-6.627 1.938-14.009.153-9.266-1.421\\"/><path fill=\\"#e76f00\\" d=\\"M17.673 15.294a2.05 2.05 0 0 1-.355 2.954s3.429-1.77 1.854-3.987c-1.471-2.067-2.6-3.095 3.508-6.636c0 0-9.586 2.394-5.007 7.669\\"/><path fill=\\"#5382a1\\" d=\\"M24.922 25.827s.792.652-.872 1.157c-3.164.958-13.168 1.248-15.948.038c-1-.435.874-1.038 1.464-1.164a3.8 3.8 0 0 1 .966-.108c-1.111-.783-7.181 1.537-3.083 2.2c11.176 1.812 20.372-.816 17.473-2.124m-11.711-8.508s-5.089 1.209-1.8 1.648a38 38 0 0 0 6.731-.072a53 53 0 0 0 4.221-.555a9 9 0 0 0-1.28.685c-5.17 1.358-15.153.726-12.283-.665a9.6 9.6 0 0 1 4.407-1.042m9.133 5.104c5.253-2.73 2.824-5.353 1.129-5a4 4 0 0 0-.6.161a.96.96 0 0 1 .449-.346c3.354-1.179 5.933 3.478-1.083 5.322a.5.5 0 0 0 .106-.138\\"/><path fill=\\"#e76f00\\" d=\\"M19.172 1.906s2.909 2.91-2.759 7.386c-4.546 3.59-1.037 5.637 0 7.975c-2.653-2.394-4.6-4.5-3.294-6.463c1.917-2.879 7.229-4.275 6.056-8.9\\"/><path fill=\\"#5382a1\\" d=\\"M13.727 29.818c5.042.323 12.786-.179 12.969-2.565c0 0-.353.9-4.167 1.623a41.5 41.5 0 0 1-12.76.2s.645.533 3.959.746\\"/>"},"file-type-kotlin":{"body":"<g fill=\\"none\\"><path fill=\\"url(#SVG5NiZhbGj)\\" d=\\"M30 30H2V2h28L15.711 15.794z\\"/><defs><radialGradient id=\\"SVG5NiZhbGj\\" cx=\\"0\\" cy=\\"0\\" r=\\"1\\" gradientTransform=\\"matrix(-28 0 0 -28 30 2)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#e44857\\"/><stop offset=\\".504\\" stop-color=\\"#c711e1\\"/><stop offset=\\"1\\" stop-color=\\"#7f52ff\\"/></radialGradient></defs></g>"},"file-type-swift":{"body":"<defs><linearGradient id=\\"SVGkG5neddW\\" x1=\\"-134.494\\" x2=\\"-134.497\\" y1=\\"-171.82\\" y2=\\"-171.89\\" gradientTransform=\\"matrix(240 0 0 -205.6 32295 -35312.585)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#f88535\\"/><stop offset=\\"1\\" stop-color=\\"#fd2221\\"/></linearGradient></defs><path fill=\\"url(#SVGkG5neddW)\\" d=\\"M19.422 4.007s6.217 3.554 7.844 9.2c1.466 5.1.292 7.534.292 7.534a8.9 8.9 0 0 1 1.742 2.8a4.83 4.83 0 0 1 .29 4.453s-.1-2.08-3.2-2.511c-2.841-.4-3.874 2.366-9.3 2.232A18.43 18.43 0 0 1 2 19.354C4.651 20.8 8.124 23.045 12.449 22.7s5.228-1.674 5.228-1.674A67 67 0 0 1 4.891 7.643c3.4 2.845 11.822 8.507 11.626 8.363A76 76 0 0 1 8.092 6.24s12.636 10.389 13.653 10.323c.418-.861 2.579-5.318-2.324-12.557Z\\"/>"},"file-type-c":{"body":"<path fill=\\"#005f91\\" d=\\"M10.676 15.973a10.05 10.05 0 0 0 1.175 5.151a5.446 5.446 0 0 0 6.306 2.408a4.28 4.28 0 0 0 3.09-3.6l.109-.61c1.737.251 4.537.658 6.274.906l-.11.44a11.26 11.26 0 0 1-2.7 5.39a9.44 9.44 0 0 1-5.366 2.688a14.6 14.6 0 0 1-8.277-.819a10.15 10.15 0 0 1-5.777-6.24a16.23 16.23 0 0 1 .019-11.45a10.54 10.54 0 0 1 8.963-7.054a13.35 13.35 0 0 1 6.666.555a9.57 9.57 0 0 1 6.167 6.9c.094.352.114.417.114.417c-1.932.351-4.319.8-6.238 1.215c-.362-1.915-1.265-3.428-3.2-3.9a5.263 5.263 0 0 0-6.616 3.57a10.5 10.5 0 0 0-.385 1.439a12.3 12.3 0 0 0-.214 2.594\\"/>"},"file-type-cpp":{"body":"<path fill=\\"#984c93\\" d=\\"M14.742 24.047a10.24 10.24 0 0 1-4.673.919a7.63 7.63 0 0 1-5.914-2.346A8.88 8.88 0 0 1 2 16.369a9.48 9.48 0 0 1 2.422-6.748a8.22 8.22 0 0 1 6.285-2.588a11.2 11.2 0 0 1 4.035.641v3.761A6.84 6.84 0 0 0 11 10.395a4.81 4.81 0 0 0-3.712 1.535a5.9 5.9 0 0 0-1.413 4.159A5.8 5.8 0 0 0 7.209 20.1a4.57 4.57 0 0 0 3.59 1.493a7.3 7.3 0 0 0 3.943-1.113Zm2.37-9.218v-2.344h2.344v2.344H21.8v2.343h-2.344v2.343h-2.344v-2.343H14.77v-2.344zm8.201 0v-2.344h2.344v2.344H30v2.343h-2.343v2.343h-2.344v-2.343h-2.342v-2.344z\\"/>"},"file-type-csharp":{"body":"<path fill=\\"#368832\\" d=\\"M19.792 7.071h2.553v2.553H24.9V7.071h2.552v2.553H30v2.552h-2.55v2.551H30v2.553h-2.551v2.552H24.9v-2.55h-2.55v2.552h-2.557v-2.55H17.24v-2.559h2.553v-2.546H17.24V9.622h2.554Zm2.553 7.658H24.9v-2.553h-2.555Zm-7.656 9.284a10.2 10.2 0 0 1-4.653.915a7.6 7.6 0 0 1-5.89-2.336A8.84 8.84 0 0 1 2 16.367a9.44 9.44 0 0 1 2.412-6.719a8.18 8.18 0 0 1 6.259-2.577a11.1 11.1 0 0 1 4.018.638v3.745a6.8 6.8 0 0 0-3.723-1.036a4.8 4.8 0 0 0-3.7 1.529a5.88 5.88 0 0 0-1.407 4.142a5.77 5.77 0 0 0 1.328 3.992a4.55 4.55 0 0 0 3.575 1.487a7.3 7.3 0 0 0 3.927-1.108Z\\"/>"},"file-type-php":{"body":"<defs><radialGradient id=\\"SVGQRCVdbYF\\" cx=\\"-16.114\\" cy=\\"20.532\\" r=\\"18.384\\" gradientTransform=\\"translate(26.52 -9.307)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fff\\"/><stop offset=\\".5\\" stop-color=\\"#4c6b96\\"/><stop offset=\\"1\\" stop-color=\\"#231f20\\"/></radialGradient></defs><ellipse cx=\\"16\\" cy=\\"16\\" fill=\\"url(#SVGQRCVdbYF)\\" rx=\\"14\\" ry=\\"7.365\\"/><ellipse cx=\\"16\\" cy=\\"16\\" fill=\\"#6280b6\\" rx=\\"13.453\\" ry=\\"6.818\\"/><path fill=\\"#fff\\" d=\\"m18.725 18.2l.667-3.434a1.75 1.75 0 0 0-.372-1.719a2.93 2.93 0 0 0-2-.525h-1.153l.331-1.7a.22.22 0 0 0-.215-.26h-1.6a.22.22 0 0 0-.215.177l-.709 3.646a2.05 2.05 0 0 0-.477-1.054a2.78 2.78 0 0 0-2.2-.807H7.7a.22.22 0 0 0-.215.177l-1.434 7.38a.22.22 0 0 0 .215.26h1.603a.22.22 0 0 0 .215-.177l.347-1.785h1.2a5.2 5.2 0 0 0 1.568-.2a3.1 3.1 0 0 0 1.15-.689a3.5 3.5 0 0 0 .68-.844l-.287 1.475a.22.22 0 0 0 .215.26h1.6a.22.22 0 0 0 .215-.177l.787-4.051h1.094c.466 0 .6.093.64.133s.1.165.025.569l-.635 3.265a.22.22 0 0 0 .215.26h1.62a.22.22 0 0 0 .207-.18m-7.395-2.834a1.75 1.75 0 0 1-.561 1.092a2.17 2.17 0 0 1-1.315.321h-.712l.515-2.651h.921c.677 0 .949.145 1.059.266a1.18 1.18 0 0 1 .093.972m14.216-2.034a2.78 2.78 0 0 0-2.2-.807h-3.091a.22.22 0 0 0-.215.177l-1.434 7.38a.22.22 0 0 0 .215.26h1.608a.22.22 0 0 0 .215-.177l.347-1.785h1.2a5.2 5.2 0 0 0 1.568-.2a3.1 3.1 0 0 0 1.15-.689a3.43 3.43 0 0 0 1.076-1.927a2.51 2.51 0 0 0-.439-2.232m-1.667 2.034a1.75 1.75 0 0 1-.561 1.092a2.17 2.17 0 0 1-1.318.32h-.71l.515-2.651h.921c.677 0 .949.145 1.059.266a1.18 1.18 0 0 1 .094.973\\"/><path fill=\\"#000004\\" d=\\"M10.178 13.908a1.65 1.65 0 0 1 1.221.338a1.34 1.34 0 0 1 .145 1.161a1.95 1.95 0 0 1-.642 1.223a2.36 2.36 0 0 1-1.448.37h-.978l.6-3.089Zm-3.917 6.216h1.608l.381-1.962h1.377a5 5 0 0 0 1.5-.191a2.84 2.84 0 0 0 1.07-.642a3.2 3.2 0 0 0 1.01-1.808a2.3 2.3 0 0 0-.385-2.044a2.57 2.57 0 0 0-2.035-.732H7.7Zm8.126-9.342h1.6l-.387 1.962h1.421a2.77 2.77 0 0 1 1.85.468a1.55 1.55 0 0 1 .305 1.516l-.667 3.434H16.89l.635-3.265a.89.89 0 0 0-.08-.76a1.12 1.12 0 0 0-.8-.2H15.37l-.822 4.228h-1.6Zm8.34 3.126a1.65 1.65 0 0 1 1.221.338a1.34 1.34 0 0 1 .145 1.161a1.95 1.95 0 0 1-.642 1.223A2.36 2.36 0 0 1 22 17h-.978l.6-3.089Zm-3.917 6.216h1.608l.381-1.962h1.377a5 5 0 0 0 1.5-.191a2.84 2.84 0 0 0 1.07-.642a3.2 3.2 0 0 0 1.01-1.808a2.3 2.3 0 0 0-.385-2.044a2.57 2.57 0 0 0-2.035-.732h-3.092Z\\"/>"},"file-type-lua":{"body":"<path fill=\\"gray\\" d=\\"m16.5 30l-.011-.321c.4-.014.8-.045 1.19-.094l.039.319c-.406.048-.818.08-1.218.096m-1.222-.011c-.4-.021-.814-.061-1.216-.118l.045-.318c.393.055.793.094 1.188.115Zm3.642-.289l-.067-.314c.387-.083.776-.184 1.155-.3l.094.307c-.388.118-.786.222-1.182.307m-6.063-.053q-.599-.137-1.177-.326l.1-.306c.377.122.764.23 1.15.319Zm8.4-.665l-.121-.3c.364-.148.728-.314 1.08-.493h.006l.145.286q-.553.28-1.114.507Zm-10.718-.088a14 14 0 0 1-1.1-.524l.15-.284c.35.186.713.358 1.078.512Zm12.893-1.021l-.17-.273c.337-.21.668-.437.984-.675l.193.257q-.494.367-1.011.691Zm-15.053-.122c-.341-.22-.676-.459-1-.708l.2-.253c.312.243.64.476.972.691Zm17-1.346l-.215-.239q.443-.4.851-.836l.235.219c-.278.297-.571.585-.872.851Zm-18.925-.153c-.3-.276-.585-.569-.856-.87l.239-.215c.265.294.547.58.836.85Zm20.587-1.632l-.253-.2c.244-.312.476-.639.692-.972l.27.175q-.333.516-.709.997M4.82 24.439a14 14 0 0 1-.692-1.007l.272-.17c.21.337.438.668.676.984Zm23.547-1.867l-.284-.151c.186-.35.358-.713.513-1.078l.3.125a15 15 0 0 1-.528 1.104Zm-24.841-.2l-.006-.012a13 13 0 0 1-.5-1.1l.3-.121c.147.362.312.724.491 1.074l.006.012Zm25.794-2.047l-.306-.1c.122-.377.23-.764.319-1.15l.313.072c-.091.396-.2.792-.326 1.178m-26.712-.218c-.12-.388-.223-.786-.308-1.182l.314-.067c.083.387.184.776.3 1.155Zm27.262-2.161l-.318-.045c.056-.393.094-.793.115-1.188l.321.017a14 14 0 0 1-.118 1.216M2.1 17.72c-.05-.4-.082-.812-.1-1.218l.321-.011c.014.4.046.8.094 1.19Zm27.582-2.2c-.014-.4-.045-.8-.093-1.19l.319-.039c.049.4.082.813.1 1.218ZM2.331 15.3l-.321-.02c.021-.405.061-.814.117-1.216l.318.045c-.055.391-.093.791-.114 1.191m27.057-2.144a14 14 0 0 0-.3-1.155l.312-.101c.119.388.223.786.307 1.183Zm-26.725-.222l-.313-.072q.137-.599.326-1.177l.306.1c-.123.376-.23.763-.319 1.149m26.026-2.062a13 13 0 0 0-.5-1.086l.286-.146c.185.363.355.736.507 1.111ZM3.4 10.665l-.3-.125c.158-.374.334-.745.524-1.1l.284.15c-.184.347-.356.71-.508 1.075m1.113-2.108l-.27-.174q.332-.513.707-1l.254.2q-.367.475-.691.974m1.464-1.881l-.235-.219c.276-.3.569-.585.87-.857l.215.239c-.294.261-.58.547-.85.837m1.77-1.6l-.193-.257c.323-.244.662-.477 1.007-.692l.17.272c-.337.215-.668.442-.984.68Zm15.705-.558l-.018-.012l.175-.27l.018.011Zm-1.047-.616a13 13 0 0 0-1.078-.512l.125-.3c.374.158.745.334 1.1.524ZM9.769 3.815l-.146-.286l.018-.009c.356-.181.724-.349 1.093-.5l.121.3c-.361.147-.72.311-1.068.488Zm10.44-.838a13 13 0 0 0-1.151-.317l.072-.313q.6.137 1.178.325Zm-8.229-.06l-.094-.307a14 14 0 0 1 1.182-.308l.067.314a14 14 0 0 0-1.155.301m5.9-.473a14 14 0 0 0-1.188-.113l.016-.321c.405.021.814.059 1.216.115Zm-3.572-.026l-.04-.319c.4-.05.812-.083 1.218-.1l.012.321c-.392.017-.793.049-1.186.098Z\\"/><circle cx=\\"16\\" cy=\\"15.998\\" r=\\"10.708\\" fill=\\"navy\\"/><circle cx=\\"20.435\\" cy=\\"11.562\\" r=\\"3.136\\" fill=\\"#fff\\"/><circle cx=\\"26.708\\" cy=\\"5.29\\" r=\\"3.137\\" fill=\\"navy\\"/><path fill=\\"#fff\\" d=\\"M13.1 21.352v-.79H9.629v-6.236h-.9v7.026zm4.816 0V16.3h-.8v2.785c0 1.031-.54 1.706-1.378 1.706A.95.95 0 0 1 14.7 19.8v-3.5h-.8v3.817c0 .838.626 1.378 1.609 1.378a1.86 1.86 0 0 0 1.687-.925v.781h.723m5.872-.018v-.607a.7.7 0 0 1-.173.019c-.279 0-.434-.145-.434-.4v-2.809c0-.9-.655-1.378-1.9-1.378c-1.224 0-1.976.472-2.024 1.638h.81c.067-.617.434-.9 1.185-.9c.723 0 1.128.27 1.128.752v.212c0 .337-.2.482-.838.559a5.8 5.8 0 0 0-1.619.308a1.33 1.33 0 0 0-.887 1.311c0 .916.636 1.455 1.658 1.455a2.36 2.36 0 0 0 1.715-.742a.855.855 0 0 0 .829.665a2 2 0 0 0 .549-.087m-1.407-1.725a1.366 1.366 0 0 1-1.513 1.185c-.626 0-.993-.222-.993-.771c0-.53.357-.761 1.214-.887a4 4 0 0 0 1.291-.279v.752\\"/>"},"file-type-elixir":{"body":"<defs><linearGradient id=\\"SVGSwnCKblo\\" x1=\\"17.249\\" x2=\\"14.973\\" y1=\\"-335.597\\" y2=\\"-309.994\\" gradientTransform=\\"matrix(1 0 0 -1 0 -306)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fff\\" stop-opacity=\\"0\\"/><stop offset=\\".01\\" stop-color=\\"#f7f6f8\\" stop-opacity=\\".04\\"/><stop offset=\\".09\\" stop-color=\\"#aa9cb3\\" stop-opacity=\\".39\\"/><stop offset=\\".2\\" stop-color=\\"#6f567e\\" stop-opacity=\\".66\\"/><stop offset=\\".32\\" stop-color=\\"#452459\\" stop-opacity=\\".86\\"/><stop offset=\\".5\\" stop-color=\\"#2d0843\\" stop-opacity=\\".97\\"/><stop offset=\\"1\\" stop-color=\\"#26003d\\"/></linearGradient></defs><path fill=\\"#7c648f\\" d=\\"M17.8 8.591c2.079 4.584 7.64 6.5 7.141 12.474c-.582 7.017-5.551 8.784-8.316 8.909a8.815 8.815 0 0 1-9.4-7.485C5.618 15.046 12.655 3.632 16.709 2A15.1 15.1 0 0 0 17.8 8.591m-.166 18.857a.42.42 0 0 0-.057-.327c-.593-1.1-5.81-1.645-6.907-1.752a8.3 8.3 0 0 0 1.635 1.3a7.8 7.8 0 0 0 2.814 1.041c.803.121 2.348.223 2.516-.263Z\\"/><path fill=\\"#26003d\\" d=\\"M18.248 10.618c4.47 4.823 6.445 4.979 6.237 10.478c-.249 6.476-4.543 8.191-7.058 8.42c-4.2.551-7.495-1.528-8.358-5.686c-1.757-6.767 3.909-17.807 7.568-19.47a15.3 15.3 0 0 0 1.621 6.24Z\\" opacity=\\".25\\"/><path fill=\\"url(#SVGSwnCKblo)\\" d=\\"M17.385 9.921C20.369 14 24.319 13.7 25 19.641c.094 6.923-3.6 9.283-6.237 9.948c-4.5 1.279-8.514-.645-10.094-5c-3.035-7 2.651-18.514 6.31-20.915a15.1 15.1 0 0 0 2.37 6.237Z\\" opacity=\\".75\\"/>"},"file-type-erlang":{"body":"<path fill=\\"#a2003e\\" d=\\"M6.388 23.867a11 11 0 0 1-3.441-8.234a10.77 10.77 0 0 1 2.864-7.5H2v15.73Zm20.066 0a16.4 16.4 0 0 0 2.537-3.136l-4.218-1.873a8.3 8.3 0 0 1-6.641 4.12c-4.359-.014-6.072-3.329-6.063-7.584H28.36a6.5 6.5 0 0 0 0-.935a9.06 9.06 0 0 0-2.029-6.326H30v15.73h-3.544ZM12.332 11.742a3.723 3.723 0 0 1 3.9-3.23a3.29 3.29 0 0 1 3.532 3.23Z\\"/>"},"file-type-zig":{"body":"<path fill=\\"#f7a41d\\" d=\\"M5.733 19.731v-7.467h2.8V8.531H2v14.933h3.547l3.36-3.733zm20.72-11.2l-3.36 3.733h3.174v7.467h-2.8v3.733H30V8.531z\\"/><path fill=\\"#f7a41d\\" d=\\"m26.875 6.707l-6.362 1.824H9.467v3.733h7.38L5.115 25.293l6.382-1.829h11.036v-3.733h-7.385z\\"/>"},"file-type-nim":{"body":"<path fill=\\"#f3d400\\" d=\\"M16.111 6.405s-1.073.847-2.167 1.69a15.4 15.4 0 0 0-4.527.651c-1.1-.7-2.07-1.469-2.07-1.469S6.52 8.7 6 9.535a11.4 11.4 0 0 0-2.236 1.482C2.961 10.7 2.03 10.31 2 10.3c1.063 2.145 1.778 4.292 3.722 5.583c3.1-4.889 17.48-4.439 20.639-.028C28.4 14.787 29.2 12.5 30 10.38c-.088.029-1.181.395-1.889.665a11.5 11.5 0 0 0-1.986-1.51c-.537-.984-1.319-2.313-1.319-2.313s-.927.689-2 1.44a21.3 21.3 0 0 0-4.681-.512c-1-.826-2.014-1.746-2.014-1.746Z\\"/><path fill=\\"#ffe953\\" d=\\"m3.1 14.854l2.554 6.185c4.435 5.85 15.759 6.257 20.7.113a584 584 0 0 0 2.745-6.333a13.4 13.4 0 0 1-4.6 3.869a12.2 12.2 0 0 1-2.983.793l-5.465-2.832l-5.5 2.775a15.7 15.7 0 0 1-2.983-.764A14.1 14.1 0 0 1 3.1 14.854\\"/>"},"file-type-shell":{"body":"<path fill=\\"#d9b400\\" d=\\"M29.4 27.6H2.5V4.5h26.9Zm-25.9-1h24.9V5.5H3.5Z\\"/><path fill=\\"#d9b400\\" d=\\"m6.077 19.316l-.555-.832l4.844-3.229l-4.887-4.071l.641-.768l5.915 4.928zM12.7 18.2h7.8v1h-7.8zM2.5 5.5h26.9v1.9H2.5z\\"/>"},"file-type-powershell":{"body":"<defs><linearGradient id=\\"SVGaVba93Vn\\" x1=\\"23.325\\" x2=\\"7.26\\" y1=\\"-118.543\\" y2=\\"-104.193\\" gradientTransform=\\"matrix(1 0 0 -1 0 -96)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#5391fe\\"/><stop offset=\\"1\\" stop-color=\\"#3e6dbf\\"/></linearGradient><linearGradient id=\\"SVG7XRbSdmK\\" x1=\\"7.1\\" x2=\\"23.001\\" y1=\\"-104.002\\" y2=\\"-118.292\\" href=\\"#SVGaVba93Vn\\"/></defs><path fill=\\"url(#SVGaVba93Vn)\\" fill-rule=\\"evenodd\\" d=\\"M3.174 26.589a1.15 1.15 0 0 1-.928-.423a1.23 1.23 0 0 1-.21-1.052L6.233 6.78a1.8 1.8 0 0 1 1.681-1.37h20.912a1.16 1.16 0 0 1 .928.423a1.24 1.24 0 0 1 .21 1.052l-4.2 18.335a1.8 1.8 0 0 1-1.681 1.37H3.174Z\\"/><path fill=\\"url(#SVG7XRbSdmK)\\" fill-rule=\\"evenodd\\" d=\\"M7.914 5.646h20.912a.913.913 0 0 1 .908 1.187l-4.2 18.334a1.575 1.575 0 0 1-1.451 1.187H3.174a.913.913 0 0 1-.908-1.187l4.2-18.334a1.57 1.57 0 0 1 1.448-1.187\\"/><path fill=\\"#2c5591\\" fill-rule=\\"evenodd\\" d=\\"M16.04 21.544h5.086a1.118 1.118 0 0 1 0 2.234H16.04a1.118 1.118 0 0 1 0-2.234m3.299-4.966a1.76 1.76 0 0 1-.591.6l-9.439 6.775a1.224 1.224 0 0 1-1.438-1.977l8.512-6.164v-.126L11.035 10a1.224 1.224 0 0 1 1.782-1.672l6.418 6.827a1.166 1.166 0 0 1 .104 1.423\\"/><path fill=\\"#fff\\" fill-rule=\\"evenodd\\" d=\\"M19.1 16.342a1.75 1.75 0 0 1-.59.6l-9.436 6.776a1.225 1.225 0 0 1-1.439-1.977l8.513-6.164v-.127L10.8 9.761a1.224 1.224 0 0 1 1.783-1.672L19 14.916a1.16 1.16 0 0 1 .1 1.426m-3.2 5.07h5.086a1.059 1.059 0 1 1 0 2.118H15.9a1.059 1.059 0 1 1 0-2.118\\"/>"},"file-type-bat":{"body":"<defs><radialGradient id=\\"SVGfu08OdHs\\" cx=\\"22.737\\" cy=\\"22.737\\" r=\\"3.628\\" gradientTransform=\\"rotate(-81.5 21.8 23.545)scale(1 1.071)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#bedcdc\\"/><stop offset=\\".5\\" stop-color=\\"#8e9e9e\\" stop-opacity=\\".74\\"/><stop offset=\\"1\\" stop-color=\\"#404f5c\\" stop-opacity=\\".84\\"/></radialGradient><radialGradient id=\\"SVGzAKlmcFE\\" cx=\\"11.336\\" cy=\\"11.336\\" r=\\"5.201\\" gradientTransform=\\"rotate(-81.5 10.869 11.738)scale(1 1.071)\\" href=\\"#SVGfu08OdHs\\"/></defs><path fill=\\"silver\\" d=\\"m24.811 27.318l2.404-2.404l1.202 2.404l-1.202 1.202zm-3.847.125h3.401l-.85 2.55h-1.7zm-2.807-2.632l2.404 2.404l-2.404 1.202l-1.203-1.202zm-.125-3.847v3.401l-2.55-.85v-1.7zm2.632-2.807l-2.404 2.404l-1.202-2.404l1.202-1.203zm3.846-.125h-3.4l.85-2.55h1.7zm2.808 2.632l-2.404-2.404l2.404-1.202l1.202 1.202zm.125 3.846v-3.4l2.55.85v1.7z\\"/><path fill=\\"silver\\" d=\\"M27.776 22.737a5.039 5.039 0 1 1-1.476-3.562a5.02 5.02 0 0 1 1.476 3.562m-5.039-1.9a1.9 1.9 0 1 0 1.344.557a1.9 1.9 0 0 0-1.344-.557\\"/><path fill=\\"#a9a9a9\\" d=\\"M22.656 18.074a4.664 4.664 0 1 0 4.744 4.582a4.664 4.664 0 0 0-4.744-4.582m.15 8.61a3.947 3.947 0 1 1 3.877-4.015a3.947 3.947 0 0 1-3.877 4.015\\"/><path fill=\\"url(#SVGfu08OdHs)\\" d=\\"M22.674 19.11a3.628 3.628 0 1 0 3.69 3.564a3.63 3.63 0 0 0-3.69-3.564m.1 5.7a2.073 2.073 0 1 1 2.037-2.11a2.073 2.073 0 0 1-2.037 2.11\\"/><path fill=\\"#a9a9a9\\" d=\\"M22.7 20.665a2.073 2.073 0 1 0 2.11 2.035a2.073 2.073 0 0 0-2.11-2.035m.067 3.826a1.754 1.754 0 1 1 1.723-1.784a1.754 1.754 0 0 1-1.722 1.784Z\\"/><path fill=\\"silver\\" d=\\"m6.563 16.976l2.275 1.262l-1.464 1.568l-1.365-.757zm-2.181-3.142l1.34 2.23l-2.052.626l-.804-1.338zm-.317-3.811l.045 2.601l-2.09-.484l-.027-1.561zm1.631-3.46L4.434 8.838L2.866 7.374l.757-1.365zm3.142-2.181l-2.23 1.34l-.626-2.052l1.338-.804zm3.812-.317l-2.602.045l.484-2.09l1.561-.027zm3.459 1.631l-2.275-1.262l1.464-1.568l1.365.757zm2.181 3.142l-1.34-2.23l2.052-.626l.804 1.338zm.317 3.812l-.045-2.602l2.09.484l.027 1.561zm-1.631 3.459l1.262-2.275l1.568 1.464l-.757 1.365zm-3.142 2.181l2.23-1.34l.626 2.052l-1.338.804zm-3.811.317l2.601-.045l-.484 2.09l-1.561.027z\\"/><path fill=\\"silver\\" d=\\"M11.467 18.831a7.5 7.5 0 1 1 5.261-2.288a7.47 7.47 0 0 1-5.261 2.288m2.682-7.544a2.814 2.814 0 1 0-.789 2a2.8 2.8 0 0 0 .789-2\\"/><path fill=\\"#a9a9a9\\" d=\\"M11.218 4.6a6.737 6.737 0 1 0 6.854 6.619A6.737 6.737 0 0 0 11.218 4.6m.217 12.436a5.7 5.7 0 1 1 5.6-5.8a5.7 5.7 0 0 1-5.599 5.8Z\\"/><path fill=\\"url(#SVGzAKlmcFE)\\" d=\\"M11.245 6.136a5.2 5.2 0 1 0 5.29 5.109a5.2 5.2 0 0 0-5.29-5.109m.14 8.036a2.837 2.837 0 1 1 2.787-2.886a2.837 2.837 0 0 1-2.786 2.886Z\\"/><path fill=\\"#a9a9a9\\" d=\\"M11.282 8.227a3.109 3.109 0 1 0 3.163 3.055a3.11 3.11 0 0 0-3.163-3.055m.1 5.74a2.631 2.631 0 1 1 2.585-2.677a2.63 2.63 0 0 1-2.585 2.677\\"/>"},"file-type-markdown":{"body":"<path fill=\\"none\\" stroke=\\"#755838\\" d=\\"M2.5 7.955h27v16.091h-27z\\"/><path fill=\\"#755838\\" d=\\"M5.909 20.636v-9.272h2.727l2.728 3.409l2.727-3.409h2.727v9.272h-2.727v-5.318l-2.727 3.409l-2.728-3.409v5.318zm17.046 0l-4.091-4.5h2.727v-4.772h2.727v4.772h2.727z\\"/>"},"file-type-mdx":{"body":"<path fill=\\"#d2d2d2\\" d=\\"m20.3 16.5l-3.9 3.9l-4-3.9l1.1-1.1l2.1 2.1v-5.7h1.5v5.8l2.1-2.1Zm-16.8-.8l2.7 2.7L9 15.7v4.4h1.5V12l-4.3 4.3L2 12v8.1h1.5Z\\"/><path fill=\\"#f9ac00\\" d=\\"m28.8 20l-3.1-3.1l-3.1 3.1l-1-1.1l3.1-3.1l-3.2-3.2l1.1-1l3.1 3.2l3.2-3.2l1.1 1l-3.2 3.2l3.1 3.1Z\\"/>"},"file-type-text":{"body":"<path fill=\\"#c2c2c2\\" d=\\"M22.038 2H6.375a1.755 1.755 0 0 0-1.75 1.75v24.5A1.755 1.755 0 0 0 6.375 30h19.25a1.755 1.755 0 0 0 1.75-1.75V6.856Zm.525 2.844l1.663 1.531h-1.663ZM6.375 28.25V3.75h14.438v4.375h4.813V28.25Z\\"/><path fill=\\"#829ec2\\" d=\\"M8.125 15.097h13.076v1.75H8.125zm0 9.342h9.762v1.75H8.125zm0-4.676h15.75v1.75H8.125zm0-9.533h15.75v1.75H8.125z\\"/>"},"file-type-tex":{"body":"<path fill=\\"#cfcfcf\\" d=\\"M11.333 13.122c-.128-1.562-.241-2.756-2.287-2.756H7.91v8.4h2.145v.611l-3.083-.029l-3.082.029v-.611h2.144v-8.4h-1.15c-2.046 0-2.159 1.208-2.287 2.756H2l.284-3.367h9.362l.284 3.367h-.6Z\\"/><path fill=\\"#cfcfcf\\" d=\\"M19.289 22.53H10.41v-.61h1.506v-8.453H10.41v-.611h8.637l.412 3.367h-.6c-.213-1.833-.682-2.756-2.855-2.756h-2.213V17.2h.838c1.364 0 1.505-.6 1.505-1.662h.6v3.935h-.6c0-1.08-.142-1.662-1.505-1.662h-.838v4.106h2.216c2.472 0 3-1.108 3.3-3.225h.6Z\\"/><path fill=\\"#cfcfcf\\" d=\\"M27.727 19.186c-.54 0-1.96 0-2.415.029V18.6h1.179l-2.557-3.552l-2.529 3.381a4.1 4.1 0 0 0 1.295.171v.611c-.355-.029-1.576-.029-2.017-.029c-.4 0-1.548 0-1.875.029V18.6h.383a8 8 0 0 0 .824-.043c.5-.043.54-.085.667-.256l2.854-3.801l-3.153-4.418H19V9.47c.384.028 1.79.028 2.273.028c.582 0 1.918 0 2.429-.028v.611h-1.174l2.117 2.955l2.074-2.784a4.1 4.1 0 0 0-1.293-.17V9.47c.356.028 1.591.028 2.032.028c.4 0 1.534 0 1.861-.028v.611h-.369a5 5 0 0 0-.838.043c-.469.043-.526.071-.667.256l-2.4 3.21l3.591 5.01H30v.611c-.355-.025-1.818-.025-2.273-.025\\"/>"},"file-type-rest":{"body":"<path fill=\\"#ce3f31\\" d=\\"M16 30A13.86 13.86 0 0 1 2.286 16A14.15 14.15 0 0 1 6.3 6.1a13.517 13.517 0 0 1 19.4 0a14.15 14.15 0 0 1 4.014 9.9A13.86 13.86 0 0 1 16 30\\"/><path fill=\\"#fff\\" d=\\"M11.869 23.015h-.4a4.3 4.3 0 0 1-1.048-.113a1.4 1.4 0 0 1-.767-.548a2.2 2.2 0 0 1-.409-1.026a13 13 0 0 1-.086-1.728a13 13 0 0 0-.08-1.687a1.77 1.77 0 0 0-.405-.924a1.33 1.33 0 0 0-1.026-.391V15.4a1.33 1.33 0 0 0 1.026-.391a1.77 1.77 0 0 0 .405-.924a13 13 0 0 0 .08-1.687a13 13 0 0 1 .084-1.731a2.2 2.2 0 0 1 .409-1.026a1.4 1.4 0 0 1 .767-.548a4.3 4.3 0 0 1 1.048-.113h.4v1.14h-.226q-.76 0-.931.4a7.7 7.7 0 0 0-.172 2.17a4.9 4.9 0 0 1-.416 2.316A2.12 2.12 0 0 1 8.859 16a2.1 2.1 0 0 1 1.264.986a4.9 4.9 0 0 1 .417 2.314a7.7 7.7 0 0 0 .172 2.17q.172.4.931.4h.226Zm1.6-3.141h1.035V16.42h1.459l1.97 3.454h1.184l-2.077-3.566a2.24 2.24 0 0 0 1.833-2.319c0-1.7-1.2-2.294-2.855-2.294h-2.544Zm1.035-4.3V12.53h1.359c1.272 0 1.97.386 1.97 1.459s-.7 1.583-1.97 1.583Zm5.557-6.591h.4a4.3 4.3 0 0 1 1.048.113a1.4 1.4 0 0 1 .767.548a2.2 2.2 0 0 1 .409 1.026a13 13 0 0 1 .084 1.731a13 13 0 0 0 .08 1.687a1.77 1.77 0 0 0 .405.924a1.33 1.33 0 0 0 1.026.391v1.191a1.33 1.33 0 0 0-1.026.391a1.77 1.77 0 0 0-.405.924a13 13 0 0 0-.08 1.687a13 13 0 0 1-.084 1.731a2.2 2.2 0 0 1-.409 1.026a1.4 1.4 0 0 1-.767.548a4.3 4.3 0 0 1-1.048.113h-.4v-1.14h.226q.76 0 .931-.4A7.7 7.7 0 0 0 21.4 19.3a4.9 4.9 0 0 1 .416-2.316A2.1 2.1 0 0 1 23.075 16a2.12 2.12 0 0 1-1.264-.994a4.9 4.9 0 0 1-.416-2.316a7.7 7.7 0 0 0-.172-2.17q-.172-.4-.931-.4h-.226Z\\"/>"},"file-type-image":{"body":"<path fill=\\"#2dcc9f\\" d=\\"M30 5.851v20.298H2V5.851z\\"/><path fill=\\"#fff\\" d=\\"M24.232 8.541a2.2 2.2 0 1 0 1.127.623a2.2 2.2 0 0 0-1.127-.623M18.111 20.1q-2.724-3.788-5.45-7.575L4.579 23.766h10.9q1.316-1.832 2.634-3.663M22.057 16q-2.793 3.882-5.584 7.765h11.169Q24.851 19.882 22.057 16\\"/>"},"file-type-video":{"body":"<path fill=\\"#e75749\\" d=\\"M4.5 2.375A2.56 2.56 0 0 1 5.861 2h20.366a2.545 2.545 0 0 1 2.423 1.951a3.4 3.4 0 0 1 .072.862v11.176h-1.573a2 2 0 0 0-.22.022a5 5 0 0 0-.581-.011c-.3.007-.61-.014-.914.014a2.3 2.3 0 0 0-.4-.02h-4.739c-.2 0-.392.008-.587-.01l.1-.065l-6.353-3.813v3.889c-2.213-.005-4.427 0-6.64 0a2 2 0 0 0-.251.021c-.212-.032-.427-.016-.642-.016c-.284.006-.57-.015-.853.015a2 2 0 0 0-.253-.022H3.275c.006-3.635 0-7.27 0-10.9a4.8 4.8 0 0 1 .071-1.131A2.54 2.54 0 0 1 4.5 2.375m.54 2.188a.64.64 0 0 0-.489.606v1.316a.64.64 0 0 0 .627.6h1.309a.64.64 0 0 0 .6-.608c.005-.426 0-.853 0-1.279a.64.64 0 0 0-.329-.575a.7.7 0 0 0-.358-.078H5.264a1 1 0 0 0-.224.018m20.341 0a.64.64 0 0 0-.474.607v1.306a.64.64 0 0 0 .6.608c.436.005.872 0 1.308 0a.64.64 0 0 0 .627-.606c.006-.438 0-.876 0-1.314a.64.64 0 0 0-.594-.621c-.348-.009-.7 0-1.045 0a2 2 0 0 0-.422.024ZM5.042 8.38a.64.64 0 0 0-.452.4a1.1 1.1 0 0 0-.041.386v1.135a.637.637 0 0 0 .6.6c.4.008.795 0 1.192 0a.8.8 0 0 0 .395-.065a.64.64 0 0 0 .36-.574V8.983a.64.64 0 0 0-.6-.624c-.338-.008-.677 0-1.016 0a2.4 2.4 0 0 0-.438.021m20.338 0a.64.64 0 0 0-.433.4a1.1 1.1 0 0 0-.041.387v1.131a.64.64 0 0 0 .608.607c.406.006.812 0 1.218 0a.74.74 0 0 0 .38-.078a.64.64 0 0 0 .335-.558V8.985a.637.637 0 0 0-.593-.622c-.349-.009-.7 0-1.047 0a2 2 0 0 0-.428.022ZM5.041 12.2a.64.64 0 0 0-.491.608c0 .438-.005.877 0 1.315a.64.64 0 0 0 .627.6h1.3a.64.64 0 0 0 .608-.607v-1.307a.64.64 0 0 0-.605-.626c-.348-.007-.7 0-1.045 0a2 2 0 0 0-.394.017m20.335.006a.64.64 0 0 0-.43.394a1.1 1.1 0 0 0-.041.386v1.131a.64.64 0 0 0 .607.608c.435.005.87 0 1.306 0a.64.64 0 0 0 .628-.605c.006-.438 0-.876 0-1.313a.637.637 0 0 0-.592-.622c-.349-.01-.7 0-1.046 0a2 2 0 0 0-.431.015Z\\"/><path fill=\\"#fff\\" d=\\"M13.458 12.1q3.176 1.908 6.353 3.813l-.1.065q-3.127 1.872-6.251 3.748V15.99q-.003-1.941-.002-3.89\\"/><path fill=\\"#c0392b\\" d=\\"M3.275 15.988h1.541a2 2 0 0 1 .253.022a.65.65 0 0 0-.409.273a.9.9 0 0 0-.111.518v1.045a.686.686 0 0 0 .685.689h1.192a.68.68 0 0 0 .657-.569c.008-.447 0-.9 0-1.343a.63.63 0 0 0-.521-.613a2 2 0 0 1 .251-.021h6.64v3.736q3.127-1.871 6.251-3.748c.2.018.391.007.587.01h4.741a2.3 2.3 0 0 1 .4.02a.64.64 0 0 0-.475.385a1 1 0 0 0-.045.407v1.014a.677.677 0 0 0 .691.719h1.16a.684.684 0 0 0 .686-.658v-.984a1.07 1.07 0 0 0-.1-.589a.64.64 0 0 0-.42-.292a2 2 0 0 1 .22-.022h1.573c.011 1.721 0 3.443 0 5.165v6.293a2.57 2.57 0 0 1-.612 1.651a2.54 2.54 0 0 1-1.563.868a8 8 0 0 1-.981.033H6.724a9 9 0 0 1-1.368-.048a2.56 2.56 0 0 1-2-1.846a2.8 2.8 0 0 1-.09-.746V16.891c.007-.3-.002-.602.009-.903m1.795 3.843a.6.6 0 0 0-.386.234a.76.76 0 0 0-.134.464v1.162a.685.685 0 0 0 .686.658h1.283a.687.687 0 0 0 .568-.716v-1.191a.62.62 0 0 0-.2-.458a.7.7 0 0 0-.487-.17H5.264a1 1 0 0 0-.194.017m20.366 0a.62.62 0 0 0-.522.58v1.222a.676.676 0 0 0 .69.718c.428 0 .857.005 1.285 0a.7.7 0 0 0 .562-.684v-1.013a.9.9 0 0 0-.123-.568a.66.66 0 0 0-.532-.267h-.954a2.3 2.3 0 0 0-.406.011ZM5.071 23.648a.6.6 0 0 0-.4.249a.77.77 0 0 0-.124.448v1.132a.7.7 0 0 0 .6.688h1.376a.687.687 0 0 0 .567-.717v-1.189a.62.62 0 0 0-.2-.459a.7.7 0 0 0-.484-.17H5.265a1 1 0 0 0-.194.018m20.362 0a.62.62 0 0 0-.492.427a1 1 0 0 0-.029.33V25.6a.68.68 0 0 0 .656.567h1.193a.69.69 0 0 0 .686-.719v-1.164a.66.66 0 0 0-.286-.545a1.46 1.46 0 0 0-.787-.11c-.312.01-.629-.02-.94.018Z\\"/>"},"file-type-audio":{"body":"<path fill=\\"#00007f\\" d=\\"M17.229 4a.9.9 0 0 0-.569.232l-7.6 6.32a1.16 1.16 0 0 1-.955.328H3.208A1.2 1.2 0 0 0 2 12.088v7.826a1.2 1.2 0 0 0 1.208 1.206H8.1a1.16 1.16 0 0 1 .955.328l7.6 6.32c.521.433 1.081.224 1.081-.289V4.522A.494.494 0 0 0 17.229 4M27 6.3l-1.791 1.793a14.71 14.71 0 0 1 0 15.844l1.785 1.776A17.19 17.19 0 0 0 27 6.3m-4.333 4.323L20.905 12.4a6.035 6.035 0 0 1 0 7.237l1.756 1.756a8.554 8.554 0 0 0 .01-10.769Z\\"/>"},"file-type-docker":{"body":"<path fill=\\"#3a4e55\\" d=\\"M18.191 13.071H20.7v2.566h1.27a5.5 5.5 0 0 0 1.744-.292a4.5 4.5 0 0 0 .848-.383a3.15 3.15 0 0 1-.589-1.623a3.43 3.43 0 0 1 .616-2.416l.264-.305l.314.253a4 4 0 0 1 1.575 2.538a3.84 3.84 0 0 1 2.913.271l.345.2l-.181.354a3.63 3.63 0 0 1-3.648 1.74c-2.173 5.413-6.9 7.976-12.642 7.976A7.96 7.96 0 0 1 6.3 20.211l-.025-.043l-.226-.459a7.3 7.3 0 0 1-.579-3.693l.035-.38h2.143v-2.565h2.51v-2.51h5.02v-2.51h3.012v5.02Z\\"/><path fill=\\"#00aada\\" d=\\"M26.324 14.021a3.31 3.31 0 0 0-1.418-2.821a3.07 3.07 0 0 0 .289 3.821a5.28 5.28 0 0 1-3.225 1.037H5.883a6.8 6.8 0 0 0 .667 3.737l.183.335a6 6 0 0 0 .379.569q.992.064 1.829.045a9 9 0 0 0 2.669-.389a.193.193 0 1 1 .126.365q-.135.047-.281.088a8.4 8.4 0 0 1-1.845.3c.044 0-.046.007-.046.007l-.082.007a22 22 0 0 1-2.008-.006l-.01.007a7.88 7.88 0 0 0 6.063 2.41c5.56 0 10.276-2.465 12.365-8c1.482.152 2.906-.226 3.553-1.49a3.5 3.5 0 0 0-3.122-.022\\"/><path fill=\\"#27b9ec\\" d=\\"M26.324 14.021a3.31 3.31 0 0 0-1.418-2.821a3.07 3.07 0 0 0 .289 3.821a5.28 5.28 0 0 1-3.225 1.037H6.836a5.22 5.22 0 0 0 2.106 4.686a9 9 0 0 0 2.669-.389a.193.193 0 1 1 .126.365q-.135.047-.281.088a9 9 0 0 1-1.894.314l-.019-.022c1.892.971 4.636.967 7.782-.241a21.87 21.87 0 0 0 9.1-6.889l-.1.048\\"/><path fill=\\"#088cb9\\" d=\\"M5.913 17.732a6.4 6.4 0 0 0 .637 2.061l.183.335a6 6 0 0 0 .379.569q.992.064 1.829.045a9 9 0 0 0 2.669-.389a.193.193 0 1 1 .126.365q-.135.047-.281.088a8.8 8.8 0 0 1-1.891.307h-.1q-.438.025-.922.026c-.351 0-.709-.007-1.1-.026a7.9 7.9 0 0 0 6.076 2.413c4.76 0 8.9-1.807 11.3-5.8Z\\"/><path fill=\\"#039cc7\\" d=\\"M6.98 17.732a4.83 4.83 0 0 0 1.961 3.01a9 9 0 0 0 2.669-.389a.193.193 0 1 1 .126.365q-.135.047-.281.088a9 9 0 0 1-1.9.307c1.892.971 4.628.957 7.773-.252a20.6 20.6 0 0 0 5.377-3.13Z\\"/><path fill=\\"#00acd3\\" d=\\"M9.889 13.671h.172v1.813h-.172zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813H9.23v-1.813Zm-.33 0h.179v1.813H8.9v-1.813Zm-.33 0h.179v1.813H8.57zm-.323 0h.172v1.813h-.17v-1.813Zm-.181-.181h2.175v2.176H8.066V13.49Zm4.335-2.329h.172v1.813H12.4zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.178v1.813h-.178zm-.323 0h.172v1.813h-.172zm-.181-.181h2.176v2.176h-2.175z\\"/><path fill=\\"#26c2ee\\" d=\\"M12.4 13.671h.172v1.813H12.4zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.178v1.813h-.178zm-.323 0h.172v1.813h-.172zm-.181-.181h2.176v2.176h-2.175z\\"/><path fill=\\"#00acd3\\" d=\\"M14.909 13.671h.172v1.813h-.172zm-.33 0h.179v1.813h-.178zm-.33 0h.179v1.813h-.178zm-.33 0h.181v1.813h-.179v-1.813Zm-.33 0h.179v1.813h-.179zm-.323 0h.172v1.813h-.172zm-.181-.181h2.176v2.176h-2.174V13.49Z\\"/><path fill=\\"#26c2ee\\" d=\\"M14.909 11.161h.172v1.813h-.172zm-.33 0h.179v1.813h-.178zm-.33 0h.179v1.813h-.178zm-.33 0h.181v1.813h-.179v-1.813Zm-.33 0h.179v1.813h-.179zm-.323 0h.172v1.813h-.172zm-.181-.181h2.176v2.176h-2.174v-2.177Zm4.335 2.691h.172v1.813h-.172zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813H16.1zm-.323 0h.172v1.813h-.172zm-.177-.181h2.176v2.176H15.6z\\"/><path fill=\\"#00acd3\\" d=\\"M17.42 11.161h.172v1.813h-.172zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813H16.1zm-.323 0h.172v1.813h-.172zm-.181-.181h2.176v2.176H15.6v-2.177Z\\"/><path fill=\\"#26c2ee\\" d=\\"M17.42 8.65h.172v1.813h-.172zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813H16.1zm-.323 0h.172v1.813h-.172zm-.177-.181h2.176v2.176H15.6z\\"/><path fill=\\"#00acd3\\" d=\\"M19.93 13.671h.17v1.813h-.17zm-.33 0h.178v1.813H19.6zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.33 0h.179v1.813h-.179zm-.323 0h.172v1.813h-.172zm-.181-.181h2.176v2.176h-2.175z\\"/><path fill=\\"#d5eef2\\" d=\\"M12.616 19.193a.6.6 0 1 1-.6.6a.6.6 0 0 1 .6-.6\\"/><path fill=\\"#3a4e55\\" d=\\"M12.616 19.363a.4.4 0 0 1 .156.029a.175.175 0 1 0 .241.236a.43.43 0 1 1-.4-.265M2 17.949h27.92c-.608-.154-1.923-.362-1.707-1.159c-1.105 1.279-3.771.9-4.444.267c-.749 1.087-5.111.674-5.415-.173c-.939 1.1-3.85 1.1-4.789 0c-.3.847-4.666 1.26-5.415.173c-.673.631-3.338 1.012-4.444-.267c.217.8-1.1 1.005-1.707 1.159\\"/><path fill=\\"#c0dbe1\\" d=\\"M14.211 23.518a5.3 5.3 0 0 1-2.756-2.711a9.2 9.2 0 0 1-1.987.3q-.436.024-.917.025q-.554 0-1.168-.033a7.94 7.94 0 0 0 6.145 2.43q.344 0 .683-.013\\"/><path fill=\\"#d5eef2\\" d=\\"M12.007 21.773a5.2 5.2 0 0 1-.552-.966a9.2 9.2 0 0 1-1.987.3a6.3 6.3 0 0 0 2.539.664\\"/>"},"file-type-sql":{"body":"<path fill=\\"#ffda44\\" d=\\"M8.562 15.256A21.2 21.2 0 0 0 16 16.449a21.2 21.2 0 0 0 7.438-1.194c1.864-.727 2.525-1.535 2.525-2V9.7a10.4 10.4 0 0 1-2.084 1.076A22.3 22.3 0 0 1 16 12.078a22.4 22.4 0 0 1-7.879-1.3A10.3 10.3 0 0 1 6.037 9.7v3.55c0 .474.663 1.278 2.525 2.006m0 6.705a15.6 15.6 0 0 0 2.6.741a25 25 0 0 0 4.838.453a25 25 0 0 0 4.838-.452a15.6 15.6 0 0 0 2.6-.741c1.864-.727 2.525-1.535 2.525-2v-3.39a10.7 10.7 0 0 1-1.692.825A23.5 23.5 0 0 1 16 18.74a23.5 23.5 0 0 1-8.271-1.348a11 11 0 0 1-1.692-.825v3.393c0 .466.663 1.271 2.525 2.001M16 30c5.5 0 9.963-1.744 9.963-3.894v-2.837a10.5 10.5 0 0 1-1.535.762l-.157.063A23.5 23.5 0 0 1 16 25.445a23.4 23.4 0 0 1-8.271-1.351l-.157-.063a10.5 10.5 0 0 1-1.535-.762v2.837C6.037 28.256 10.5 30 16 30\\"/><ellipse cx=\\"16\\" cy=\\"5.894\\" fill=\\"#ffda44\\" rx=\\"9.963\\" ry=\\"3.894\\"/>"},"file-type-graphql":{"body":"<path fill=\\"#e10098\\" d=\\"M4.781 22.746L16.232 2.914l1.028.593L5.81 23.34z\\"/><path fill=\\"#e10098\\" d=\\"M4.545 21.162h22.902v1.187H4.545z\\"/><path fill=\\"#e10098\\" d=\\"m4.999 21.828l.593-1.028l11.455 6.614l-.594 1.028zM14.95 4.59l.594-1.027l11.455 6.614l-.594 1.028z\\"/><path fill=\\"#e10098\\" d=\\"M5.002 10.174L16.456 3.56l.594 1.028l-11.455 6.614z\\"/><path fill=\\"#e10098\\" d=\\"m14.743 3.508l1.028-.594l11.45 19.833l-1.027.593zM5.454 9.386h1.187v13.228H5.454z\\"/><path fill=\\"#e10098\\" d=\\"M25.36 9.386h1.187v13.228H25.36z\\"/><path fill=\\"#e10098\\" d=\\"m15.734 27.042l9.962-5.752l.519.898l-9.963 5.752z\\"/><path fill=\\"#e10098\\" d=\\"M28.12 23a2.5 2.5 0 1 1-.915-3.411A2.5 2.5 0 0 1 28.12 23M8.2 11.5a2.5 2.5 0 1 1-.915-3.411A2.5 2.5 0 0 1 8.2 11.5M3.88 23a2.5 2.5 0 1 1 3.411.915A2.5 2.5 0 0 1 3.88 23M23.8 11.5a2.5 2.5 0 1 1 3.411.915A2.5 2.5 0 0 1 23.8 11.5M16 30a2.5 2.5 0 1 1 2.5-2.5A2.493 2.493 0 0 1 16 30m0-23.009a2.5 2.5 0 1 1 2.5-2.5a2.493 2.493 0 0 1-2.5 2.5\\"/>"},"file-type-prisma":{"body":"<path fill=\\"#d2d2d2\\" fill-rule=\\"evenodd\\" d=\\"m25.21 24.21l-12.471 3.718a.525.525 0 0 1-.667-.606l4.456-21.511a.43.43 0 0 1 .809-.094l8.249 17.661a.6.6 0 0 1-.376.832m2.139-.878L17.8 2.883A1.53 1.53 0 0 0 16.491 2a1.51 1.51 0 0 0-1.4.729L4.736 19.648a1.59 1.59 0 0 0 .018 1.7l5.064 7.909a1.63 1.63 0 0 0 1.83.678l14.7-4.383a1.6 1.6 0 0 0 1-2.218Z\\"/>"},"file-type-log":{"body":"<path fill=\\"#00bd02\\" d=\\"M29.4 27.6H2.5V4.5h26.9Zm-25.9-1h24.9V5.5H3.5Z\\"/><path fill=\\"#00bd02\\" d=\\"M2.5 5.5h26.9v1.9H2.5zm8.833 4H19.5v1h-8.167zm0 2.583h12.5v1h-12.5zm0 2.667H21.95v1H11.333zm0 2.833H25.5v1H11.333zm0 2.917h9.834v1h-9.834zm.167 2.583h12.167v1H11.5zM5.5 9.5h4.333v1H5.5zm0 2.583h4.333v1H5.5z\\"/><path fill=\\"#00bd02\\" d=\\"M5.5 12.083h4.333v1H5.5zm0 2.584h4.333v1H5.5zm0 2.583h4.333v1H5.5zm0 3.25h4.333v1H5.5zm0 2.583h4.333v1H5.5z\\"/>"},"file-type-wasm":{"body":"<path fill=\\"#654ff0\\" d=\\"M19.153 2.35v.15a3.2 3.2 0 1 1-6.4 0v-.15H2v27.919h27.919V2.35Z\\"/><path fill=\\"#fff\\" d=\\"M8.485 17.4h1.85l1.265 6.723h.023L13.14 17.4h1.731l1.371 6.81h.027l1.44-6.81h1.815l-2.358 9.885h-1.837l-1.36-6.728h-.036l-1.456 6.728h-1.87Zm13.124 0h2.917l2.9 9.885h-1.911l-.63-2.2h-3.323l-.486 2.2h-1.859Zm1.11 2.437l-.807 3.627h2.512l-.924-3.632Z\\"/>"},"file-type-zip":{"body":"<defs><linearGradient id=\\"SVGXr4mrHrF\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"26.056\\" y2=\\"26.056\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#4d4d4d\\"/><stop offset=\\".5\\" stop-color=\\"#fff\\"/><stop offset=\\"1\\" stop-color=\\"#4d4d4d\\"/></linearGradient><linearGradient id=\\"SVG5oyStdai\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"23.756\\" y2=\\"23.756\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVG9QsNwcZU\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"21.456\\" y2=\\"21.456\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVG1kIgneZE\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"19.156\\" y2=\\"19.156\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGp2oQjdFa\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"16.857\\" y2=\\"16.857\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGAFV8AN5B\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"14.557\\" y2=\\"14.557\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGRkU6lbfc\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"12.257\\" y2=\\"12.257\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGWUBOGcFP\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"9.957\\" y2=\\"9.957\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGFcdVfdXh\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"7.657\\" y2=\\"7.657\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGLioYKc8j\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"27.217\\" y2=\\"27.217\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGIx7REdei\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"24.918\\" y2=\\"24.918\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGownHpeLf\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"22.618\\" y2=\\"22.618\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGZ4gzmcVN\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"20.318\\" y2=\\"20.318\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGhAblbd0u\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"18.018\\" y2=\\"18.018\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGBzD5PbgA\\" x1=\\"17.65\\" x2=\\"21.099\\" y1=\\"28.356\\" y2=\\"28.356\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGcXb6lbYS\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"15.718\\" y2=\\"15.718\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGKF6nobvx\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"13.419\\" y2=\\"13.419\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGrU8zSORM\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"11.119\\" y2=\\"11.119\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGuFw9gbIu\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"8.819\\" y2=\\"8.819\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGXh7zWblD\\" x1=\\"16.237\\" x2=\\"19.686\\" y1=\\"29.514\\" y2=\\"29.514\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGmzaoUw6y\\" x1=\\"16.985\\" x2=\\"20.446\\" y1=\\"11.196\\" y2=\\"11.196\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGkZYaOeHC\\" x1=\\"18.096\\" x2=\\"19.336\\" y1=\\"5.329\\" y2=\\"5.329\\" href=\\"#SVGXr4mrHrF\\"/><linearGradient id=\\"SVGVKO9QdOI\\" x1=\\"16.029\\" x2=\\"21.403\\" y1=\\"5.591\\" y2=\\"5.591\\" href=\\"#SVGXr4mrHrF\\"/></defs><path fill=\\"#c09553\\" d=\\"M27.667 27.667V17.333L23 15V2H4.333v28h23.334Zm-4.667 0v-9.111l2.333 1.222v7.889Z\\"/><path fill=\\"url(#SVGXr4mrHrF)\\" d=\\"M17.65 25.559h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVG5oyStdai)\\" d=\\"M17.65 23.26h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVG9QsNwcZU)\\" d=\\"M17.65 20.96h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVG1kIgneZE)\\" d=\\"M17.65 18.66h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGp2oQjdFa)\\" d=\\"M17.65 16.36h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGAFV8AN5B)\\" d=\\"M17.65 14.06h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGRkU6lbfc)\\" d=\\"M17.65 11.76h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGWUBOGcFP)\\" d=\\"M17.65 9.461h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGFcdVfdXh)\\" d=\\"M17.65 7.161h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGLioYKc8j)\\" d=\\"M16.237 26.721h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGIx7REdei)\\" d=\\"M16.237 24.421h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGownHpeLf)\\" d=\\"M16.237 22.121h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGZ4gzmcVN)\\" d=\\"M16.237 19.821h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGhAblbd0u)\\" d=\\"M16.237 17.522h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGBzD5PbgA)\\" d=\\"M17.65 27.859h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGcXb6lbYS)\\" d=\\"M16.237 15.222h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGKF6nobvx)\\" d=\\"M16.237 12.922h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGrU8zSORM)\\" d=\\"M16.237 10.622h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGuFw9gbIu)\\" d=\\"M16.237 8.322h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGXh7zWblD)\\" d=\\"M16.237 29.018h3.45v.993h-3.45z\\"/><path fill=\\"url(#SVGmzaoUw6y)\\" d=\\"M20.1 5.911a.554.554 0 0 0-.548-.53h-.009v.557h.092l.206 2.514h-2.252l.211-2.514h.094v-.557h-.044a.55.55 0 0 0-.547.53l-.314 10.569a.513.513 0 0 0 .515.531h2.432a.51.51 0 0 0 .513-.531Zm-1.384 10.5a1.171 1.171 0 1 1 1.171-1.171a1.17 1.17 0 0 1-1.171 1.168Z\\"/><path fill=\\"url(#SVGkZYaOeHC)\\" d=\\"M18.096 3.802h1.24v3.054h-1.24z\\"/><path fill=\\"url(#SVGVKO9QdOI)\\" d=\\"M21.4 4.56a2.55 2.55 0 0 0-2.549-2.549h-.276a2.55 2.55 0 0 0-2.436 3.3v.006a8 8 0 0 1 .261 2.561a1.8 1.8 0 0 0 .641 1.271l.109-3.441a.593.593 0 0 1 .6-.551h.135v-1.57h1.653v1.57h.1a.6.6 0 0 1 .605.551l.121 3.462a1.8 1.8 0 0 0 .666-1.292V7.72a7.7 7.7 0 0 1 .236-2.359a2.5 2.5 0 0 0 .134-.801\\"/>"},"file-type-npm":{"body":"<path fill=\\"#c12127\\" d=\\"M2 2h28v28H2\\"/><path fill=\\"#fff\\" d=\\"M7.25 7.25h17.5v17.5h-3.5v-14H16v14H7.25\\"/>"},"file-type-tsconfig":{"body":"<path fill=\\"#007acc\\" d=\\"M23.827 8.243a4.4 4.4 0 0 1 2.223 1.281a6 6 0 0 1 .852 1.143c.011.045-1.534 1.083-2.471 1.662c-.034.023-.169-.124-.322-.35a2.01 2.01 0 0 0-1.67-1c-1.077-.074-1.771.49-1.766 1.433a1.3 1.3 0 0 0 .153.666c.237.49.677.784 2.059 1.383c2.544 1.1 3.636 1.817 4.31 2.843a5.16 5.16 0 0 1 .416 4.333a4.76 4.76 0 0 1-3.932 2.815a11 11 0 0 1-2.708-.028a6.53 6.53 0 0 1-3.616-1.884a6.3 6.3 0 0 1-.926-1.371a3 3 0 0 1 .327-.208c.158-.09.756-.434 1.32-.761l1.024-.6l.214.312a4.8 4.8 0 0 0 1.35 1.292a3.3 3.3 0 0 0 3.458-.175a1.545 1.545 0 0 0 .2-1.974c-.276-.4-.84-.727-2.443-1.422a8.8 8.8 0 0 1-3.349-2.055a4.7 4.7 0 0 1-.976-1.777a7.1 7.1 0 0 1-.062-2.268a4.33 4.33 0 0 1 3.644-3.374a9 9 0 0 1 2.691.084m-8.343 1.483l.011 1.454h-4.63v13.148H7.6V11.183H2.97V9.755a14 14 0 0 1 .04-1.466c.017-.023 2.832-.034 6.245-.028l6.211.017Z\\"/><path fill=\\"#99b8c4\\" d=\\"m27.075 25.107l.363-.361c1.68.055 1.706 0 1.78-.177l.462-1.124l.034-.107l-.038-.093c-.02-.049-.081-.2-1.13-1.2v-.526c1.211-1.166 1.185-1.226 1.116-1.4l-.46-1.136c-.069-.17-.1-.237-1.763-.191l-.364-.367a8 8 0 0 0-.057-1.657l-.047-.106l-1.2-.525c-.177-.081-.239-.11-1.372 1.124l-.509-.008c-1.167-1.245-1.222-1.223-1.4-1.152l-1.115.452c-.175.071-.236.1-.169 1.79l-.36.359c-1.68-.055-1.7 0-1.778.177L18.606 20l-.036.108l.038.094c.02.048.078.194 1.13 1.2v.525c-1.211 1.166-1.184 1.226-1.115 1.4l.459 1.137c.07.174.1.236 1.763.192l.363.377a8 8 0 0 0 .055 1.654l.047.107l1.208.528c.176.073.236.1 1.366-1.13l.509.006c1.168 1.247 1.228 1.223 1.4 1.154l1.113-.45c.176-.075.237-.102.169-1.795m-4.788-2.632a2 2 0 1 1 2.618 1.14a2.023 2.023 0 0 1-2.618-1.14\\"/>"},"file-type-vite":{"body":"<mask id=\\"SVGgudELdDz\\"><path fill=\\"#fff\\" d=\\"M40.05 45.7c-.67.85-2.02.38-2.02-.69v-10.3a2.26 2.26 0 0 0-2.27-2.26H24.4a1.13 1.13 0 0 1-.92-1.8l7.48-10.46c1.07-1.5 0-3.58-1.84-3.58H15.34a1.13 1.13 0 0 1-.92-1.79l9.7-13.57c.2-.3.55-.48.92-.48h28.89c.92 0 1.46 1.04.92 1.79l-7.48 10.47a2.26 2.26 0 0 0 1.84 3.58H60.6c.94 0 1.47 1.09.89 1.83z\\"/></mask><g fill=\\"none\\"><g mask=\\"url(#SVGgudELdDz)\\" transform=\\"translate(1 6.8)scale(.393)\\"><path fill=\\"#9135ff\\" d=\\"M0 0h62v47H0z\\"/><g filter=\\"url(#SVGNp06lekD)\\"><ellipse cx=\\"24.46\\" cy=\\"37.75\\" fill=\\"#eee6ff\\" rx=\\"5.51\\" ry=\\"14.7\\" transform=\\"rotate(89.8 24.46 37.75)\\"/></g><g filter=\\"url(#SVGNp06lekD)\\"><ellipse cx=\\"4.76\\" cy=\\"18.96\\" fill=\\"#eee6ff\\" rx=\\"10.4\\" ry=\\"29.85\\" transform=\\"rotate(89.8 4.76 18.96)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"4.24\\" cy=\\"17.5\\" fill=\\"#8900ff\\" rx=\\"5.51\\" ry=\\"30.49\\" transform=\\"rotate(89.8 4.24 17.5)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"8.95\\" cy=\\"35.5\\" fill=\\"#8900ff\\" rx=\\"5.51\\" ry=\\"30.6\\" transform=\\"rotate(89.8 8.95 35.5)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"10.48\\" cy=\\"36.65\\" fill=\\"#8900ff\\" rx=\\"5.51\\" ry=\\"30.6\\" transform=\\"rotate(89.8 10.48 36.65)\\"/></g><g filter=\\"url(#SVGNp06lekD)\\"><ellipse cx=\\"67.34\\" cy=\\"12.3\\" fill=\\"#eee6ff\\" rx=\\"14.07\\" ry=\\"22.08\\" transform=\\"rotate(-86.7 67.34 12.3)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"68.44\\" cy=\\"15.74\\" fill=\\"#8900ff\\" rx=\\"3.47\\" ry=\\"21.5\\" transform=\\"rotate(-91 68.44 15.74)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"68.44\\" cy=\\"15.74\\" fill=\\"#8900ff\\" rx=\\"3.47\\" ry=\\"21.5\\" transform=\\"rotate(-91 68.44 15.74)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"14.59\\" cy=\\"9.74\\" fill=\\"#8900ff\\" rx=\\"4.41\\" ry=\\"29.11\\" transform=\\"rotate(39.5 14.6 9.74)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"61.73\\" cy=\\"-5.32\\" fill=\\"#8900ff\\" rx=\\"4.41\\" ry=\\"29.11\\" transform=\\"rotate(37.9 61.73 -5.32)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"55.62\\" cy=\\"7.1\\" fill=\\"#00c2ff\\" rx=\\"5.97\\" ry=\\"9.67\\" transform=\\"rotate(37.9 55.62 7.1)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"12.33\\" cy=\\"39.1\\" fill=\\"#8900ff\\" rx=\\"4.41\\" ry=\\"29.11\\" transform=\\"rotate(37.9 12.33 39.1)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"12.33\\" cy=\\"39.1\\" fill=\\"#8900ff\\" rx=\\"4.41\\" ry=\\"29.11\\" transform=\\"rotate(37.9 12.33 39.1)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"49.86\\" cy=\\"30.68\\" fill=\\"#8900ff\\" rx=\\"4.41\\" ry=\\"29.11\\" transform=\\"rotate(37.9 49.86 30.68)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"52.62\\" cy=\\"33.17\\" fill=\\"#00c2ff\\" rx=\\"5.97\\" ry=\\"15.3\\" transform=\\"rotate(37.9 52.62 33.17)\\"/></g></g><path fill=\\"#fff\\" d=\\"M3.72 6.8C.1 11.98.08 20 3.72 25.2h2.45c-3.64-5.2-3.62-13.22 0-18.4zm24.56 0h-2.45c3.62 5.18 3.64 13.2 0 18.4h2.45c3.64-5.2 3.62-13.22 0-18.4\\"/><defs><filter id=\\"SVGNp06lekD\\" width=\\"4\\" height=\\"4\\" x=\\"-2\\" y=\\"-2\\" color-interpolation-filters=\\"sRGB\\"><feGaussianBlur stdDeviation=\\"7.66\\"/></filter><filter id=\\"SVGQv8P6csY\\" width=\\"4\\" height=\\"4\\" x=\\"-2\\" y=\\"-2\\" color-interpolation-filters=\\"sRGB\\"><feGaussianBlur stdDeviation=\\"4.6\\"/></filter></defs></g>"},"file-type-git":{"body":"<path fill=\\"#dd4c35\\" d=\\"M29.472 14.753L17.247 2.528a1.8 1.8 0 0 0-2.55 0l-2.539 2.539l3.22 3.22a2.141 2.141 0 0 1 2.712 2.73l3.1 3.1a2.143 2.143 0 1 1-1.285 1.21l-2.895-2.895v7.617a2.141 2.141 0 1 1-1.764-.062V12.3a2.146 2.146 0 0 1-1.165-2.814l-3.17-3.172L2.528 14.7a1.8 1.8 0 0 0 0 2.551l12.225 12.221a1.8 1.8 0 0 0 2.55 0L29.472 17.3a1.8 1.8 0 0 0 0-2.551\\"/><path fill=\\"#fff\\" d=\\"m12.158 5.067l3.22 3.22a2.141 2.141 0 0 1 2.712 2.73l3.1 3.1a2.143 2.143 0 1 1-1.285 1.21l-2.895-2.895v7.617a2.141 2.141 0 1 1-1.764-.062V12.3a2.146 2.146 0 0 1-1.165-2.814l-3.17-3.172\\"/>"},"file-type-eslint":{"body":"<path fill=\\"#4b32c3\\" d=\\"m29.832 16.7l-6.354 10.717A1.26 1.26 0 0 1 22.36 28H9.647a1.26 1.26 0 0 1-1.118-.59l-6.356-10.7a1.26 1.26 0 0 1 0-1.272L8.527 4.676A1.34 1.34 0 0 1 9.647 4h12.709a1.34 1.34 0 0 1 1.118.678l6.354 10.786a1.2 1.2 0 0 1 0 1.238Zm-5.262 4.2v-9.614L16 6.466l-8.56 4.82V20.9L16 25.719Z\\"/><path fill=\\"#8080f2\\" d=\\"m21.802 19.188l-5.747 3.235l-5.742-3.235v-6.47l5.742-3.236l5.747 3.236z\\"/>"},"file-type-prettier":{"body":"<g stroke-linecap=\\"round\\" stroke-width=\\"1.33\\"><path stroke=\\"#56b3b4\\" d=\\"M2.45 2.45h16.3M2.45 7.87h9.48m10.8 0h1.35m-16.3 2.71h1.35M13.19 16h10.8m-21.7 2.71h5.42m-5.42 8.13H5\\"/><path stroke=\\"#ea5e5e\\" d=\\"M2.45 5.16h4.06m12.2 5.42h6.77M2.48 16h1.35m6.77 2.71h5.42m-13.5 10.8h6.77\\"/><path stroke=\\"#f7b93e\\" d=\\"M9.23 5.16h13.5m-20.3 5.42h2.71m13.5 2.71h6.77M6.41 16h4.06m-4.06 5.42h12.2m-10.8 5.42h1.35\\"/><path stroke=\\"#bf85bf\\" d=\\"M14.6 7.87h5.42m-17.6 5.42h6.77m9.48 5.42h4.06m-20.3 2.71h1.35m-1.35 2.71H9.2\\"/><path stroke=\\"#4d616e\\" d=\\"M21.4 2.45h8.13m-4.06 2.71h4.06m-2.71 2.71h2.71m-17.6 2.71h4.06m12.2 0h1.35m-17.6 2.71H16m12.2 0h1.35M26.84 16h2.71m-4.06 2.71h4.06m-8.13 2.71h2.71m2.71 0h2.71m-17.6 2.71h2.71m2.71 0h12.2m-17.6 2.71h5.42m2.71 0h1.35m2.71 0h5.42m-17.6 2.71h8.13m2.71 0h6.77\\" opacity=\\".5\\"/></g>"},"file-type-license":{"body":"<defs><linearGradient id=\\"SVGmofYFcWG\\" x1=\\"-264.845\\" x2=\\"-255.586\\" y1=\\"181.772\\" y2=\\"182.061\\" gradientTransform=\\"rotate(153.82 -142.976 -47.771)scale(1 -1)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#bd6316\\"/><stop offset=\\"1\\" stop-color=\\"#4e1500\\"/></linearGradient><linearGradient id=\\"SVGnJ3pCbpX\\" x1=\\"-263.276\\" x2=\\"-256.603\\" y1=\\"170.205\\" y2=\\"171.772\\" href=\\"#SVGmofYFcWG\\"/><linearGradient id=\\"SVGMrBZzbeY\\" x1=\\"-265.068\\" x2=\\"-256.777\\" y1=\\"175.732\\" y2=\\"178.801\\" href=\\"#SVGmofYFcWG\\"/><linearGradient id=\\"SVGfIPENsHv\\" x1=\\"-655.014\\" x2=\\"-655.555\\" y1=\\"147.549\\" y2=\\"146.948\\" gradientTransform=\\"rotate(18.83 723.694 -1849.006)scale(-1 1)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#ffd436\\"/><stop offset=\\"1\\" stop-color=\\"#8b3f02\\"/></linearGradient><linearGradient id=\\"SVGwiYLJd3C\\" x1=\\"-258.899\\" x2=\\"-253.843\\" y1=\\"170.981\\" y2=\\"171.325\\" gradientTransform=\\"rotate(153.82 -142.976 -47.771)scale(1 -1)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fff8b7\\"/><stop offset=\\"1\\" stop-color=\\"#fcbf0e\\"/></linearGradient><linearGradient id=\\"SVGESyEmRVH\\" x1=\\"-258.884\\" x2=\\"-253.896\\" y1=\\"170.975\\" y2=\\"171.314\\" href=\\"#SVGmofYFcWG\\"/><linearGradient id=\\"SVGREjbOeQM\\" x1=\\"-257.805\\" x2=\\"-257.726\\" y1=\\"172.266\\" y2=\\"168.648\\" gradientTransform=\\"rotate(153.82 -142.976 -47.771)scale(1 -1)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVG027WPcDj\\" x1=\\"-258.935\\" x2=\\"-256.173\\" y1=\\"181.92\\" y2=\\"182.108\\" href=\\"#SVGwiYLJd3C\\"/><linearGradient id=\\"SVGyornQdTp\\" x1=\\"-274.156\\" x2=\\"-274.512\\" y1=\\"170.544\\" y2=\\"173.778\\" gradientTransform=\\"matrix(-1 0 0 1 -257.657 -155.509)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGkN47ldnx\\" x1=\\"-645.79\\" x2=\\"-645.121\\" y1=\\"-337.938\\" y2=\\"-334.17\\" gradientTransform=\\"rotate(-127.94 -392.31 14.206)scale(1 -1)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#ffef94\\"/><stop offset=\\"1\\" stop-color=\\"#ffd200\\"/></linearGradient><linearGradient id=\\"SVGXZn9ocJO\\" x1=\\"-276.128\\" x2=\\"-274.754\\" y1=\\"178.682\\" y2=\\"178.682\\" gradientTransform=\\"rotate(-26.18 -189.074 647.88)scale(-1 1)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVG2gxeCd7k\\" x1=\\"-274.314\\" x2=\\"-271.841\\" y1=\\"178.887\\" y2=\\"178.987\\" gradientTransform=\\"rotate(-26.18 -189.074 647.88)scale(-1 1)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGeRxH6LPb\\" x1=\\"-273.817\\" x2=\\"-274.213\\" y1=\\"189.281\\" y2=\\"174.569\\" gradientTransform=\\"rotate(-26.18 -189.074 647.88)scale(-1 1)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#d89530\\"/><stop offset=\\"1\\" stop-color=\\"#772d00\\"/></linearGradient><linearGradient id=\\"SVG73jqed6L\\" x1=\\"-274.075\\" x2=\\"-273.917\\" y1=\\"174.09\\" y2=\\"181.459\\" gradientTransform=\\"rotate(-26.18 -189.074 647.88)scale(-1 1)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVG4QBNucLe\\" x1=\\"-272.919\\" x2=\\"-273.315\\" y1=\\"189.281\\" y2=\\"174.57\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGXv14weIK\\" x1=\\"-273.177\\" x2=\\"-273.019\\" y1=\\"174.071\\" y2=\\"181.44\\" gradientTransform=\\"rotate(-26.18 -189.074 647.88)scale(-1 1)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGz1cqjdyv\\" x1=\\"-652.29\\" x2=\\"-651.867\\" y1=\\"-335.227\\" y2=\\"-332.867\\" gradientTransform=\\"rotate(-127.94 -392.31 14.206)scale(1 -1)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#ffdb57\\"/><stop offset=\\"1\\" stop-color=\\"#b55c13\\"/></linearGradient><linearGradient id=\\"SVGjFrLsb5T\\" x1=\\"-665.076\\" x2=\\"-659.751\\" y1=\\"157.413\\" y2=\\"150.922\\" gradientTransform=\\"rotate(18.83 723.694 -1849.006)scale(-1 1)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGqtklOeYo\\" x1=\\"-665.161\\" x2=\\"-664.822\\" y1=\\"156.114\\" y2=\\"155.701\\" gradientTransform=\\"rotate(18.83 723.694 -1849.006)scale(-1 1)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGjZuHwbNh\\" x1=\\"-665.308\\" x2=\\"-665.836\\" y1=\\"156.436\\" y2=\\"155.32\\" gradientTransform=\\"rotate(18.83 723.694 -1849.006)scale(-1 1)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVG8hPAsSTj\\" x1=\\"-655.442\\" x2=\\"-654.817\\" y1=\\"147.568\\" y2=\\"146.776\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGqd0dIejc\\" x1=\\"-253.999\\" x2=\\"-254.134\\" y1=\\"175.1\\" y2=\\"173.736\\" gradientTransform=\\"rotate(153.82 -142.976 -47.771)scale(1 -1)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGbRTRziON\\" x1=\\"-252.571\\" x2=\\"-252.785\\" y1=\\"173.138\\" y2=\\"170.963\\" gradientTransform=\\"rotate(153.82 -142.976 -47.771)scale(1 -1)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGXpeWx1aE\\" x1=\\"-257.206\\" x2=\\"-259.174\\" y1=\\"169.107\\" y2=\\"169.787\\" gradientTransform=\\"rotate(153.82 -142.976 -47.771)scale(1 -1)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGIUwBJc5A\\" x1=\\"-260.717\\" x2=\\"-260.77\\" y1=\\"170.284\\" y2=\\"171.228\\" gradientTransform=\\"rotate(153.82 -142.976 -47.771)scale(1 -1)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGGQnUfdbd\\" x1=\\"-257.835\\" x2=\\"-257.782\\" y1=\\"174.993\\" y2=\\"171.93\\" gradientTransform=\\"rotate(153.82 -142.976 -47.771)scale(1 -1)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGkqE4j96Z\\" x1=\\"-263.928\\" x2=\\"-255.721\\" y1=\\"171.018\\" y2=\\"171.018\\" gradientTransform=\\"rotate(153.82 -142.976 -47.771)scale(1 -1)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGa3T2CVnB\\" x1=\\"-514.299\\" x2=\\"-505.041\\" y1=\\"-57.926\\" y2=\\"-57.638\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGmofYFcWG\\"/><linearGradient id=\\"SVGZeemGbVQ\\" x1=\\"-512.744\\" x2=\\"-505.964\\" y1=\\"-69.496\\" y2=\\"-67.904\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGmofYFcWG\\"/><linearGradient id=\\"SVG4pXW7cns\\" x1=\\"-514.521\\" x2=\\"-506.23\\" y1=\\"-63.966\\" y2=\\"-60.897\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGmofYFcWG\\"/><linearGradient id=\\"SVGz1lPTckx\\" x1=\\"-662.221\\" x2=\\"-662.762\\" y1=\\"-197.167\\" y2=\\"-197.768\\" gradientTransform=\\"matrix(-.564 -.911 -.774 .455 -516.113 -497.612)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGcBFu1dvT\\" x1=\\"-508.354\\" x2=\\"-503.297\\" y1=\\"-68.717\\" y2=\\"-68.373\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGwiYLJd3C\\"/><linearGradient id=\\"SVGQvjQIZiB\\" x1=\\"-508.338\\" x2=\\"-503.351\\" y1=\\"-68.723\\" y2=\\"-68.384\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGmofYFcWG\\"/><linearGradient id=\\"SVGeHD5sRoS\\" x1=\\"-507.26\\" x2=\\"-507.18\\" y1=\\"-67.432\\" y2=\\"-71.05\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVG19IpQcjs\\" x1=\\"-508.389\\" x2=\\"-505.627\\" y1=\\"-57.779\\" y2=\\"-57.591\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGwiYLJd3C\\"/><linearGradient id=\\"SVG85efRhKR\\" x1=\\"-523.609\\" x2=\\"-523.966\\" y1=\\"-69.153\\" y2=\\"-65.918\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -492.49 -86.99)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGGdFalbTB\\" x1=\\"-645.333\\" x2=\\"-642.973\\" y1=\\"-334.169\\" y2=\\"-332.091\\" href=\\"#SVGkN47ldnx\\"/><linearGradient id=\\"SVGOjVzRbET\\" x1=\\"-525.581\\" x2=\\"-524.207\\" y1=\\"-61.015\\" y2=\\"-61.015\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -492.49 -86.99)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGscgdGcRs\\" x1=\\"-523.768\\" x2=\\"-521.294\\" y1=\\"-60.81\\" y2=\\"-60.71\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -492.49 -86.99)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGakdwydkv\\" x1=\\"-523.27\\" x2=\\"-523.666\\" y1=\\"-50.416\\" y2=\\"-65.127\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -492.49 -86.99)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGG6MQr2cb\\" x1=\\"-523.528\\" x2=\\"-523.37\\" y1=\\"-65.606\\" y2=\\"-58.238\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -492.49 -86.99)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGXRrEmcZQ\\" x1=\\"-522.372\\" x2=\\"-522.768\\" y1=\\"-50.416\\" y2=\\"-65.127\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -492.49 -86.99)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGi2WMHbKh\\" x1=\\"-522.631\\" x2=\\"-522.472\\" y1=\\"-65.626\\" y2=\\"-58.257\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -492.49 -86.99)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGLeACibTa\\" x1=\\"-649.116\\" x2=\\"-646.827\\" y1=\\"-328.591\\" y2=\\"-326.795\\" href=\\"#SVGkN47ldnx\\"/><linearGradient id=\\"SVG9uUmsbXE\\" x1=\\"-672.284\\" x2=\\"-666.958\\" y1=\\"-187.303\\" y2=\\"-193.795\\" gradientTransform=\\"matrix(-.564 -.911 -.774 .455 -516.113 -497.612)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGl9apRboF\\" x1=\\"-672.369\\" x2=\\"-672.03\\" y1=\\"-188.603\\" y2=\\"-189.016\\" gradientTransform=\\"matrix(-.564 -.911 -.774 .455 -516.113 -497.612)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGxfFH5fOf\\" x1=\\"-672.516\\" x2=\\"-673.044\\" y1=\\"-188.281\\" y2=\\"-189.397\\" gradientTransform=\\"matrix(-.564 -.911 -.774 .455 -516.113 -497.612)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGyqk9tdzU\\" x1=\\"-662.648\\" x2=\\"-662.023\\" y1=\\"-197.148\\" y2=\\"-197.94\\" gradientTransform=\\"matrix(-.564 -.911 -.774 .455 -516.113 -497.612)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGRTHl6clb\\" x1=\\"-503.367\\" x2=\\"-503.501\\" y1=\\"-64.607\\" y2=\\"-65.971\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGlrssAbqp\\" x1=\\"-502.006\\" x2=\\"-502.232\\" y1=\\"-66.361\\" y2=\\"-68.654\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGyVezad9t\\" x1=\\"-506.661\\" x2=\\"-508.629\\" y1=\\"-70.591\\" y2=\\"-69.911\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGiefcvdhi\\" x1=\\"-510.172\\" x2=\\"-510.224\\" y1=\\"-69.414\\" y2=\\"-68.47\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGeRxH6LPb\\"/><linearGradient id=\\"SVGfRyLFcLo\\" x1=\\"-507.289\\" x2=\\"-507.236\\" y1=\\"-64.705\\" y2=\\"-67.768\\" gradientTransform=\\"matrix(-.947 -.323 -.148 .966 -476.554 -85.464)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGRHRPsqnF\\" x1=\\"-642.337\\" x2=\\"-640.048\\" y1=\\"-337.231\\" y2=\\"-335.435\\" gradientTransform=\\"rotate(-127.94 -392.31 14.206)scale(1 -1)\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#ffdb57\\"/><stop offset=\\"1\\" stop-color=\\"#b66512\\"/></linearGradient><linearGradient id=\\"SVGBtcXhdWx\\" x1=\\"-628.479\\" x2=\\"-627.663\\" y1=\\"-215.005\\" y2=\\"-209.203\\" gradientTransform=\\"rotate(37.85 2.12 -998.377)scale(-1 1)\\" href=\\"#SVGmofYFcWG\\"/><linearGradient id=\\"SVGarE9ubhv\\" x1=\\"-633.006\\" x2=\\"-622.552\\" y1=\\"-211.18\\" y2=\\"-211.18\\" gradientTransform=\\"rotate(37.85 2.12 -998.377)scale(-1 1)\\" href=\\"#SVGwiYLJd3C\\"/><linearGradient id=\\"SVGyIQIicum\\" x1=\\"-627.491\\" x2=\\"-627.755\\" y1=\\"-215.556\\" y2=\\"-211.648\\" gradientTransform=\\"rotate(37.85 2.12 -998.377)scale(-1 1)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVGKb76ycsW\\" x1=\\"-627.796\\" x2=\\"-627.057\\" y1=\\"-210.705\\" y2=\\"-205.186\\" gradientTransform=\\"rotate(37.85 2.12 -998.377)scale(-1 1)\\" href=\\"#SVGfIPENsHv\\"/><linearGradient id=\\"SVG8hmImb4h\\" x1=\\"245.815\\" x2=\\"245.923\\" y1=\\"139.434\\" y2=\\"136.367\\" gradientTransform=\\"rotate(7.312 1187.515 -1764.249)\\" href=\\"#SVGwiYLJd3C\\"/><linearGradient id=\\"SVGCEzC1cyq\\" x1=\\"-626.269\\" x2=\\"-627.643\\" y1=\\"-215.112\\" y2=\\"-213.078\\" gradientTransform=\\"rotate(37.85 2.12 -998.377)scale(-1 1)\\" href=\\"#SVGfIPENsHv\\"/></defs><path fill=\\"url(#SVGmofYFcWG)\\" d=\\"m13.372 16.416l5.013-2.464l.93 1.893l-.054.238l-2.048 1.007l5.706 11.611l-.221.359l-1.543.758l-.82-.45l-5.459-11.109l-.482.237z\\"/><path fill=\\"url(#SVGnJ3pCbpX)\\" d=\\"m9.24 13.619l1.2 2.44c.072.146.416.252.617.292l2.634.683l4.609-2.268l.867-2.342a.68.68 0 0 0 .036-.674l-1.2-2.44a.55.55 0 0 0-.452-.3l-4.44.136a1.28 1.28 0 0 0-1.018.541l-2.72 3.162a.92.92 0 0 0-.133.77m1.932.033a.36.36 0 0 1 .011-.334l1.84-2.215a.83.83 0 0 1 .66-.351l2.877-.088a.36.36 0 0 1 .293.2l.356.725a.242.242 0 0 1-.139.339L11.833 14.5a.224.224 0 0 1-.3-.121Z\\"/><path fill=\\"url(#SVGMrBZzbeY)\\" d=\\"m9.426 13.209l1.2 2.44c.072.146.416.252.617.292l2.7.547l.782 1.591l.375-.179l5.459 11.109l.82.451l1.541-.76l-.017-.683l.868-1.458l-.241-.49l-.54.1l-.31-.63l.41-.366l-.59-1.199l-.593-.006l-.277-.564l.357-.473l-.3-.607l-.568.043l-.432-.879l.382-.423l-.161-.327a.87.87 0 0 1-.659-1.342l-.345-.7a1.347 1.347 0 0 1-.962-1.956l-.29-.591l.631-.31l-.773-1.546l.843-2.277a.68.68 0 0 0 .035-.674l-1.2-2.44a.55.55 0 0 0-.453-.3l-4.435.131a1.28 1.28 0 0 0-1.018.541l-2.84 3.419a.55.55 0 0 0-.016.516m1.932.033a.36.36 0 0 1 .011-.334l1.84-2.215a.83.83 0 0 1 .66-.351l2.877-.088a.35.35 0 0 1 .293.2l.356.725a.242.242 0 0 1-.139.339l-5.238 2.574a.224.224 0 0 1-.3-.121Z\\"/><path fill=\\"url(#SVGfIPENsHv)\\" d=\\"m14.47 18.381l.276-.318l.335-.164l-.139.245z\\"/><path fill=\\"url(#SVGwiYLJd3C)\\" d=\\"m11.259 15.828l2.776.6l4.38-2.152l.865-2.339a.58.58 0 0 0 .024-.567L18.1 8.917a.44.44 0 0 0-.367-.246l-4.438.13a1.17 1.17 0 0 0-.938.5L9.52 12.725a.45.45 0 0 0-.011.414l1.206 2.453a1 1 0 0 0 .544.236m.354-1.836l-.358-.729a.46.46 0 0 1 .013-.434v-.008l1.853-2.221a.92.92 0 0 1 .739-.389l2.881-.084a.47.47 0 0 1 .392.257l.358.729c.005.009.19.3-.187.481l-5.244 2.577c-.272.129-.44-.164-.447-.179\\"/><path fill=\\"url(#SVGESyEmRVH)\\" d=\\"M11.246 15.738c.006 0 2.438.51 2.751.591l4.354-2.139l.878-2.336a.47.47 0 0 0 .015-.458l-1.208-2.458a.34.34 0 0 0-.282-.187l-4.454.141a1.08 1.08 0 0 0-.864.46l-2.863 3.436a.34.34 0 0 0-.008.313l1.206 2.454a1.1 1.1 0 0 0 .475.183m.245-1.7l-.355-.723a.57.57 0 0 1 .018-.535v-.008l.01-.015l1.865-2.241a1.03 1.03 0 0 1 .824-.43l2.9-.091a.57.57 0 0 1 .492.316l.359.73a.46.46 0 0 1 .027.338a.48.48 0 0 1-.265.286l-5.287 2.6a.42.42 0 0 1-.331.025a.5.5 0 0 1-.258-.248Z\\"/><path fill=\\"url(#SVGREjbOeQM)\\" d=\\"M11.268 15.663c.009 0 2.53.528 2.722.577l4.3-2.113l.878-2.314a.42.42 0 0 0 .01-.4l-1.2-2.436a.28.28 0 0 0-.237-.156l-4.433.149a1.03 1.03 0 0 0-.82.437l-2.353 2.823l-.5.595a.28.28 0 0 0 0 .254l1.193 2.421a1.2 1.2 0 0 0 .44.163m.14-1.529l-.351-.715a.57.57 0 0 1-.011-.56l1.959-2.36a1.08 1.08 0 0 1 .86-.447l2.887-.1a.63.63 0 0 1 .538.341l.356.724a.54.54 0 0 1-.309.773l-5.267 2.588a.48.48 0 0 1-.662-.243Z\\"/><path fill=\\"url(#SVG027WPcDj)\\" d=\\"m18.463 14.345l.7 1.433l-.653.321l.319.649a1.428 1.428 0 0 0 1 2.043l.3.619a.958.958 0 0 0 .706 1.436l.107.218l-.39.428l.5 1.011l.577-.047l.239.485l-.366.478l.336.683h.6l.523 1.065l-.419.371l.382.777l.549-.1l.181.368A96 96 0 0 1 22.8 28v.638l-1.342.659l-.729-.414l-5.488-11.176l-.467.23l-.7-1.433Z\\"/><path fill=\\"url(#SVGyornQdTp)\\" d=\\"M14.289 15.413h4.622v1.4h-4.622z\\" transform=\\"rotate(-26.171 16.6 16.113)\\"/><path fill=\\"url(#SVGkN47ldnx)\\" d=\\"m18.128 14.582l-.8.392l.617 1.256l.8-.392Zm-1.319.648l.617 1.256l.308-.152l-.617-1.256Z\\"/><path fill=\\"url(#SVGXZn9ocJO)\\" d=\\"m18.4 16.123l.308.628a1.523 1.523 0 0 0 1.037 2.11l.263.535a1.052 1.052 0 0 0 .744 1.513l.054.111l-.381.423l.557 1.134l.567-.043l.177.36l-.357.472l.392.8l.591.006l.456.929l-.409.366l.45.917l.539-.1l.12.243L22.634 28l-1.027.5l-5.525-11.235Z\\"/><path fill=\\"url(#SVG2gxeCd7k)\\" d=\\"m17.141 16.745l5.528 11.248l.046.511l-1.247.613l-.613-.349l-5.483-11.154Z\\"/><path fill=\\"url(#SVGeRxH6LPb)\\" d=\\"m22.287 28.694l.427-.21l-4.794-9.754l-1.028-1.554l.602 1.764z\\"/><path fill=\\"url(#SVG73jqed6L)\\" d=\\"M16.892 17.176L22.5 28.589l-.213.105l-4.793-9.754z\\"/><path fill=\\"url(#SVG4QBNucLe)\\" d=\\"m21.481 29.09l.427-.209l-4.794-9.755l-1.028-1.554l.602 1.764z\\"/><path fill=\\"url(#SVGXv14weIK)\\" d=\\"m16.086 17.572l5.608 11.413l-.213.105l-4.793-9.754z\\"/><path fill=\\"url(#SVGz1cqjdyv)\\" d=\\"m18.27 16.189l-.411.2l5.285 10.755l.279-.47l-.181-.369l-.386.072l-.45-.917l.294-.26l-.508-1.034h-.424l-.392-.8l.256-.338l-.237-.482l-.407.031l-.557-1.134l.273-.3l-.143-.291a1.04 1.04 0 0 1-.619-1.259l-.391-.8a1.505 1.505 0 0 1-.906-1.844Zm-.68.334l5.371 10.929l.108-.182l-5.319-10.825Z\\"/><path fill=\\"url(#SVGjFrLsb5T)\\" d=\\"m15.018 18.247l5.356 10.997l.196-.273l-5.391-11.032z\\"/><path fill=\\"url(#SVGqtklOeYo)\\" d=\\"m20.436 29.315l.211-.291l.705.361l-.203.294z\\"/><path fill=\\"url(#SVGjZuHwbNh)\\" d=\\"m21.446 29.41l-.179.26l1.382-.659l.131-.241z\\"/><path fill=\\"url(#SVG8hPAsSTj)\\" d=\\"m14.029 16.673l-.225.388l.601 1.293l.297-.354z\\"/><path fill=\\"url(#SVGqd0dIejc)\\" d=\\"m13.946 16.506l-.239.432l-2.944-.761l.124-.345z\\"/><path fill=\\"url(#SVGbRTRziON)\\" d=\\"M9.359 13s-.145.444-.087.563l1.212 2.465l.2-.384Z\\"/><path fill=\\"url(#SVGXpeWx1aE)\\" d=\\"m16.683 10.624l.1-.327l-2.963.095a.9.9 0 0 0-.51.251l-.007.165a2 2 0 0 1 .394-.1Z\\"/><path fill=\\"url(#SVGIUwBJc5A)\\" d=\\"M16.83 10.309a.33.33 0 0 1 .17.137l.382.762l-.164.279l-.341-.693c-.023-.047-.108-.145-.147-.149Z\\"/><path fill=\\"url(#SVGGQnUfdbd)\\" d=\\"m11.237 13.786l.171.348a.48.48 0 0 0 .661.248l5.267-2.588a.54.54 0 0 0 .309-.773l-.153-.31l1.08-.531l.606 1.232a.42.42 0 0 1-.01.4l-.878 2.314l-4.3 2.113c-.191-.049-2.713-.575-2.722-.577a1.2 1.2 0 0 1-.439-.16l-.6-1.222Z\\"/><path fill=\\"url(#SVGkqE4j96Z)\\" d=\\"m13.377 8.968l.532 1.084l.539-.018l-.532-1.084Zm2.306-.077l-1.395.047l.533 1.084l1.4-.046Zm1.471 2.994l-1.142.561l1.106 2.25l1.142-.561Zm-1.447.711l-.441.217l1.106 2.251l.441-.217Z\\"/><path fill=\\"url(#SVGa3T2CVnB)\\" d=\\"m10.65 14.159l5.287 1.803L15.623 18l-.173.134l-2.16-.737l-1.921 12.501l-.371.102l-1.627-.555l-.395-.913l1.838-11.961l-.508-.173z\\"/><path fill=\\"url(#SVGZeemGbVQ)\\" d=\\"m8.951 9.175l-.542 2.747a.57.57 0 0 0 .175.452l1.976 2.461l4.866 1.659l1.969-1.077a.535.535 0 0 0 .4-.463l.4-2.627a.66.66 0 0 0-.188-.544L14.453 8.7a1.31 1.31 0 0 0-1.1-.337l-3.874.345a.71.71 0 0 0-.528.467m1.5 1.407a.28.28 0 0 1 .192-.234l2.633-.256a.93.93 0 0 1 .724.315l2.3 2a.43.43 0 0 1 .121.352l-.1.651s-.027.237-.3.146L10.5 11.667a.27.27 0 0 1-.172-.305Z\\"/><path fill=\\"url(#SVG4pXW7cns)\\" d=\\"m9.322 9.01l-.4 2.627c-.024.157.188.481.324.653l1.817 2.33l-.263 1.714l.392.134l-1.843 11.959l.395.914l1.627.555l.363-.507l1.483-.436l.081-.528l-.479-.314l.1-.678l.523.028l.2-1.283l-.461-.428l.093-.608l.54-.087l.1-.653l-.469-.375l.145-.946l.532-.034l.054-.352a1.05 1.05 0 0 1-.29-.859a.69.69 0 0 1 .512-.585l.116-.756a1.6 1.6 0 0 1-.364-1.232a1.07 1.07 0 0 1 .688-.874l.1-.636l.666.227l.246-1.674l1.915-1.047a.535.535 0 0 0 .4-.463l.4-2.627a.66.66 0 0 0-.188-.544l-3.556-3.08a1.31 1.31 0 0 0-1.1-.336l-4.109.445a.43.43 0 0 0-.29.356m1.5 1.407a.28.28 0 0 1 .192-.234l2.663-.289a.85.85 0 0 1 .711.218l2.3 2a.43.43 0 0 1 .122.352l-.12.781s-.027.237-.3.146L10.871 11.5a.27.27 0 0 1-.171-.3Z\\"/><path fill=\\"url(#SVGz1lPTckx)\\" d=\\"m10.428 16.37l.392-.033l.353.12l-.244.078z\\"/><path fill=\\"url(#SVGcBFu1dvT)\\" d=\\"m9.317 12.221l1.846 2.421l4.619 1.575l1.967-1.076a.45.45 0 0 0 .331-.393l.406-2.641a.53.53 0 0 0-.152-.441l-3.552-3.083a1.2 1.2 0 0 0-1.011-.31l-4.109.453a.35.35 0 0 0-.237.292l-.405 2.641a1.26 1.26 0 0 0 .297.562m1.289-1.077l.121-.785a.37.37 0 0 1 .25-.305h.008l2.675-.295a.95.95 0 0 1 .794.247l2.3 2a.56.56 0 0 1 .166.467l-.121.785c0 .01-.014.35-.411.215l-5.53-1.886a.42.42 0 0 1-.252-.443\\"/><path fill=\\"url(#SVGQvjQIZiB)\\" d=\\"M9.356 12.146c0 .005 1.63 2.115 1.831 2.4l4.591 1.566l1.974-1.065a.37.37 0 0 0 .264-.321l.406-2.646a.4.4 0 0 0-.118-.338l-3.571-3.091a1.12 1.12 0 0 0-.931-.285l-4.133.444a.27.27 0 0 0-.179.221l-.406 2.642a1.4 1.4 0 0 0 .272.473m1.126-1.054l.12-.778a.45.45 0 0 1 .309-.375h.024l2.7-.29a1.07 1.07 0 0 1 .883.278l2.324 2.01a.7.7 0 0 1 .212.581l-.121.786a.38.38 0 0 1-.165.265a.42.42 0 0 1-.365.018l-5.576-1.9a.5.5 0 0 1-.273-.219a.55.55 0 0 1-.072-.377Z\\"/><path fill=\\"url(#SVGeHD5sRoS)\\" d=\\"M9.415 12.108c.006.008 1.693 2.194 1.816 2.366l4.535 1.546l1.963-1.048a.33.33 0 0 0 .228-.282l.4-2.623a.34.34 0 0 0-.1-.283L14.7 8.719a1.07 1.07 0 0 0-.884-.271l-3.4.359l-.716.076a.23.23 0 0 0-.142.183s-.4 2.594-.4 2.611a1.5 1.5 0 0 0 .257.431m.952-1.007l.118-.77a.46.46 0 0 1 .3-.414l2.836-.308a1.12 1.12 0 0 1 .921.292l2.316 2a.76.76 0 0 1 .234.632s-.1.633-.12.779c-.034.219-.191.5-.668.339l-5.555-1.894a.584.584 0 0 1-.383-.657Z\\"/><path fill=\\"url(#SVG19IpQcjs)\\" d=\\"m15.781 16.3l-.237 1.543l-.689-.235l-.107.7a1.16 1.16 0 0 0-.7.917a1.72 1.72 0 0 0 .367 1.283l-.1.666a.77.77 0 0 0-.527.634a1.15 1.15 0 0 0 .29.912l-.036.235l-.542.031l-.167 1.088l.479.379l-.08.522l-.55.084l-.113.736l.471.432l-.176 1.146l-.532-.031l-.128.837l.488.317l-.061.4c-.09.027-1.455.411-1.455.411l-.352.462l-1.424-.483l-.343-.822l1.843-12.03l-.493-.168l.237-1.543Z\\"/><path fill=\\"url(#SVG85efRhKR)\\" d=\\"m11.056 16.181l4.374 1.491l.208-1.352l-4.374-1.492z\\"/><path fill=\\"url(#SVGGdFalbTB)\\" d=\\"m15.388 16.234l-.842-.287l-.207 1.353l.841.287ZM14 15.76l-.208 1.353l.325.111l.208-1.353Z\\"/><path fill=\\"url(#SVGOjVzRbET)\\" d=\\"m14.756 17.55l-.1.676a1.25 1.25 0 0 0-.7.957A1.85 1.85 0 0 0 14.3 20.5l-.089.576a.84.84 0 0 0-.525.678a1.26 1.26 0 0 0 .275.95l-.018.119l-.531.034l-.188 1.221l.469.375l-.06.388l-.539.087l-.132.858l.46.427l-.154 1l-.522-.028l-.152.987l.478.314l-.04.262l-1.506.443l-1.083-.369l1.86-12.1Z\\"/><path fill=\\"url(#SVGscgdGcRs)\\" d=\\"m13.423 17.1l-1.86 12.1l-.246.4L10 29.16l-.289-.692l1.845-12.009Z\\"/><path fill=\\"url(#SVGakdwydkv)\\" d=\\"m10.877 29.44l.45.154l1.614-10.501l.049-1.863l-.499 1.709z\\"/><path fill=\\"url(#SVGG6MQr2cb)\\" d=\\"m12.99 17.23l-1.888 12.287l-.225-.077l1.614-10.501z\\"/><path fill=\\"url(#SVGXRrEmcZQ)\\" d=\\"m10.028 29.151l.449.153l1.614-10.501l.049-1.863l-.499 1.71z\\"/><path fill=\\"url(#SVGi2WMHbKh)\\" d=\\"m12.14 16.94l-1.887 12.287l-.225-.076l1.613-10.501z\\"/><path fill=\\"url(#SVGLeACibTa)\\" d=\\"m14.615 17.5l-.433-.148l-1.782 11.58l.478-.14l.061-.4l-.339-.222l.152-.987l.374.02l.171-1.113l-.33-.306l.132-.858l.387-.062l.08-.519l-.336-.268l.188-1.221l.381-.024l.048-.314a1.2 1.2 0 0 1-.154-.766a.85.85 0 0 1 .363-.59l.132-.856a1.8 1.8 0 0 1-.231-1.123a1.26 1.26 0 0 1 .536-.861Zm-.717-.244L12.09 29.024l.185-.054l1.791-11.655Z\\"/><path fill=\\"url(#SVG9uUmsbXE)\\" d=\\"M10.932 16.665L9.075 28.47l.303-.058l1.85-11.855z\\"/><path fill=\\"url(#SVGl9apRboF)\\" d=\\"m9.085 28.566l.325-.06l.354.766l-.321.068z\\"/><path fill=\\"url(#SVGxfFH5fOf)\\" d=\\"m9.823 29.357l-.283.06l1.447.513l.235-.081z\\"/><path fill=\\"url(#SVGyqk9tdzU)\\" d=\\"m11.024 14.816l-.391.12l-.241 1.367l.429-.043z\\"/><path fill=\\"url(#SVGRTHl6clb)\\" d=\\"m11.05 14.636l-.425.141l-2.084-2.606l.483-.214z\\"/><path fill=\\"url(#SVGlrssAbqp)\\" d=\\"M9.384 8.813s-.358.218-.378.346l-.546 2.773l.51-.253Z\\"/><path fill=\\"url(#SVGyVezad9t)\\" d=\\"m16.435 12.332l.256-.168l-2.375-2.052a.96.96 0 0 0-.538-.183l-.1.115a2 2 0 0 1 .362.211Z\\"/><path fill=\\"url(#SVGiefcvdhi)\\" d=\\"M16.724 12.208a.4.4 0 0 1 .058.221c-.016.1-.112.774-.12.825l-.283.085l.115-.747a.4.4 0 0 0-.033-.213Z\\"/><path fill=\\"url(#SVGfRyLFcLo)\\" d=\\"m10.424 10.725l-.058.375a.584.584 0 0 0 .381.653l5.553 1.894c.478.163.634-.12.668-.339l.051-.334l1.139.388l-.2 1.327a.33.33 0 0 1-.228.282l-1.963 1.048l-4.535-1.546a358 358 0 0 0-1.816-2.366a1.5 1.5 0 0 1-.257-.43l.2-1.315Z\\"/><path fill=\\"url(#SVGRHRPsqnF)\\" d=\\"m14.756 8.764l-.179 1.166l.432.373l.179-1.167Zm1.851 1.595l-1.119-.965l-.179 1.167l1.119.965Zm-.5 3.223l-1.2-.411l-.372 2.423l1.2.411Zm-1.526-.52l-.461-.162l-.372 2.423l.465.159Z\\"/><path fill=\\"url(#SVGBtcXhdWx)\\" d=\\"M9.936 2.733c2.042-1.441 5.206-.715 7.065 1.8A6.17 6.17 0 0 1 18.27 9.1c-.219-.73-1.023-.427-1.664-.441a4.1 4.1 0 0 0-.763-3.207C14.6 3.778 12.41 3.1 11.07 4.094s-1.382 3.253-.143 4.929a3.68 3.68 0 0 0 3.69 1.742c.521.444 1 .871 1.507 1.329c-1.84 1.134-4.8.334-6.51-1.982c-1.86-2.512-1.93-5.789.322-7.379\\"/><path fill=\\"url(#SVGarE9ubhv)\\" d=\\"M9.956 2.841c1.939-1.405 5.111-.606 6.892 1.8a6.6 6.6 0 0 1 1.38 4.159c-.293-.387-1.035-.264-1.466-.211a4.6 4.6 0 0 0-.823-3.272c-1.317-1.78-3.546-2.373-4.97-1.32s-1.442 3.27-.125 5.051a4.03 4.03 0 0 0 3.842 1.905c.4.35.79.715 1.185 1.073c-1.982 1.012-4.528.084-6.123-2.073c-1.782-2.408-1.897-5.587.208-7.112\\"/><path fill=\\"url(#SVGyIQIicum)\\" d=\\"M10.1 2.918c1.855-1.345 4.971-.5 6.675 1.8a6.64 6.64 0 0 1 1.361 3.89a1.87 1.87 0 0 0-1.148-.126a4.56 4.56 0 0 0-.946-3.23c-1.394-1.885-3.6-2.472-5.1-1.357s-1.511 3.279-.171 5.2a4.08 4.08 0 0 0 3.976 1.973c.323.285.639.58.957.871c-1.939.959-4.394-.1-5.893-2.131C8.1 7.511 8.1 4.363 10.1 2.918\\"/><path fill=\\"url(#SVGKb76ycsW)\\" d=\\"M9.684 3.412C8.6 4.969 8.825 7.5 10.3 9.494c1.413 1.911 3.466 2.885 5.249 2.443c-1.694.674-4.074-.233-5.554-2.235c-1.54-2.081-1.66-4.783-.311-6.29\\"/><path fill=\\"url(#SVG8hmImb4h)\\" d=\\"M9.9 3.511c-.171.291.366.627.547.144a4.3 4.3 0 0 1 2.442-1.222A3.56 3.56 0 0 0 9.9 3.511m.077.506a.244.244 0 1 0 .211.273a.243.243 0 0 0-.213-.273Z\\"/><path fill=\\"url(#SVGCEzC1cyq)\\" d=\\"M11.035 3.763c1.4-1.181 3.664-.647 5.163 1.132a4.72 4.72 0 0 1 1.2 3.542q-.204.021-.411.048a4.56 4.56 0 0 0-.946-3.23c-1.394-1.885-3.6-2.472-5.1-1.357q-.105.08-.2.167a3 3 0 0 1 .294-.302\\"/>"},"file-type-yarn":{"body":"<path fill=\\"#2188b6\\" d=\\"M28.208 24.409a10.5 10.5 0 0 0-3.959 1.822a23.7 23.7 0 0 1-5.835 2.642a1.63 1.63 0 0 1-.983.55a62 62 0 0 1-6.447.577c-1.163.009-1.876-.3-2.074-.776a1.573 1.573 0 0 1 .866-2.074a4 4 0 0 1-.514-.379c-.171-.171-.352-.514-.406-.388c-.225.55-.343 1.894-.947 2.5c-.83.839-2.4.559-3.328.072c-1.019-.541.072-1.813.072-1.813a.73.73 0 0 1-.992-.343a4.85 4.85 0 0 1-.667-2.949a5.37 5.37 0 0 1 1.749-2.895a9.3 9.3 0 0 1 .658-4.4a10.45 10.45 0 0 1 3.165-3.661S6.628 10.747 7.35 8.817c.469-1.262.658-1.253.812-1.308a3.6 3.6 0 0 0 1.452-.857a5.27 5.27 0 0 1 4.41-1.7S15.2 1.4 16.277 2.09a18.4 18.4 0 0 1 1.533 2.886s1.281-.748 1.425-.469a11.33 11.33 0 0 1 .523 6.132a14 14 0 0 1-2.6 5.411c-.135.225 1.551.938 2.615 3.887c.983 2.7.108 4.96.262 5.212c.027.045.036.063.036.063s1.127.09 3.391-1.308a8.5 8.5 0 0 1 4.277-1.604a1.081 1.081 0 0 1 .469 2.11Z\\"/>"},"file-type-pnpm":{"body":"<path fill=\\"#f9ad00\\" d=\\"M30 10.75h-8.749V2H30Zm-9.626 0h-8.75V2h8.75Zm-9.625 0H2V2h8.749ZM30 20.375h-8.749v-8.75H30Z\\"/><path fill=\\"#fff\\" d=\\"M20.374 20.375h-8.75v-8.75h8.75Zm0 9.625h-8.75v-8.75h8.75ZM30 30h-8.749v-8.75H30Zm-19.251 0H2v-8.75h8.749Z\\"/>"},"file-type-tailwind":{"body":"<path fill=\\"#44a8b3\\" d=\\"M9 13.7q1.4-5.6 7-5.6c5.6 0 6.3 4.2 9.1 4.9q2.8.7 4.9-2.1q-1.4 5.6-7 5.6c-5.6 0-6.3-4.2-9.1-4.9q-2.8-.7-4.9 2.1m-7 8.4q1.4-5.6 7-5.6c5.6 0 6.3 4.2 9.1 4.9q2.8.7 4.9-2.1q-1.4 5.6-7 5.6c-5.6 0-6.3-4.2-9.1-4.9q-2.8-.7-4.9 2.1\\"/>"},"file-type-jest":{"body":"<path fill=\\"#c63d14\\" d=\\"M27.089 15.786a2.606 2.606 0 0 0-2.606-2.606a3 3 0 0 0-.274.014l3.58-10.558H12.576l3.575 10.549c-.052 0-.105-.005-.158-.005a2.606 2.606 0 0 0-.791 5.09a11.4 11.4 0 0 1-2.049 2.579A10.4 10.4 0 0 1 9.5 23.116a3.323 3.323 0 0 1-1.665-4.23q.117-.27.229-.544a2.607 2.607 0 1 0-2.09-.4a20 20 0 0 0-1.889 4.787c-.354 2.135 0 4.4 1.845 5.681c4.3 2.981 8.969-1.848 13.891-3.061c1.784-.44 3.742-.369 5.313-1.279a4.45 4.45 0 0 0 2.179-3.088a4.64 4.64 0 0 0-.831-3.522a2.6 2.6 0 0 0 .606-1.671ZM18.6 15.8v-.009a2.6 2.6 0 0 0-1.256-2.23L20.188 7.8l2.85 5.814a2.6 2.6 0 0 0-1.161 2.169v.057z\\"/><path fill=\\"#fff\\" d=\\"M27.726 15.786a3.25 3.25 0 0 0-2.643-3.186L28.677 2H11.689l3.6 10.621a3.241 3.241 0 0 0-1 5.918a11 11 0 0 1-1.568 1.846a9.8 9.8 0 0 1-3.16 2.03a2.656 2.656 0 0 1-1.134-3.28l.04-.093l.074-.175a3.245 3.245 0 1 0-3.34-.754q-.163.346-.339.706a14 14 0 0 0-1.4 3.8c-.465 2.8.285 5.043 2.111 6.308A5.75 5.75 0 0 0 8.934 30c2.132 0 4.289-1.071 6.4-2.119a23.7 23.7 0 0 1 4.642-1.918c.577-.142 1.171-.228 1.8-.319a10 10 0 0 0 3.68-1.028a5.09 5.09 0 0 0 2.487-3.53a5.26 5.26 0 0 0-.691-3.613a3.2 3.2 0 0 0 .475-1.688Zm-1.273 0a1.97 1.97 0 1 1-1.97-1.97a1.97 1.97 0 0 1 1.97 1.97M26.9 3.273l-3.174 9.36a3 3 0 0 0-.4.125l-3.135-6.4l-3.145 6.362a3 3 0 0 0-.419-.114l-3.163-9.333ZM15.993 13.816a1.97 1.97 0 1 1-1.97 1.97a1.97 1.97 0 0 1 1.97-1.97m-8.522.019A1.97 1.97 0 1 1 5.5 15.8a1.97 1.97 0 0 1 1.97-1.97Zm19.217 7.034a3.82 3.82 0 0 1-1.871 2.646a8.9 8.9 0 0 1-3.223.869c-.632.091-1.285.185-1.924.343a24.6 24.6 0 0 0-4.9 2.013c-3.164 1.571-5.9 2.928-8.472 1.143c-1.887-1.308-1.8-3.728-1.58-5.054A12.8 12.8 0 0 1 6 19.376l.27-.559a3.2 3.2 0 0 0 .838.21a3.965 3.965 0 0 0 2.1 4.655l.245.126l.259-.092a11 11 0 0 0 3.875-2.4a12 12 0 0 0 1.918-2.319a3.241 3.241 0 0 0 2.64-5.627l2.038-4.121l2.059 4.2a3.24 3.24 0 0 0 4.088 5a3.96 3.96 0 0 1 .355 2.422Z\\"/>"},"file-type-vitest":{"body":"<mask id=\\"SVGTUBgmdJX\\"><path fill=\\"#fff\\" d=\\"M36.76 42.97c-.33.6-1.1.76-1.65.36L15.96 29.41a1.2 1.2 0 0 1-.46-.92V11.71c0-.93 1.05-1.46 1.8-.92L29 19.31c1.1.8 2.65.46 3.3-.72l9.71-17.25c.2-.35.58-.57.99-.57h15.57c.87 0 1.41.93.99 1.68z\\"/></mask><g fill=\\"none\\"><g mask=\\"url(#SVGTUBgmdJX)\\" transform=\\"translate(1 6.8)scale(.393)\\"><path fill=\\"#00ff74\\" d=\\"M0 0h60v44H0z\\"/><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"41.46\\" cy=\\"10.01\\" fill=\\"#00d0c7\\" rx=\\"14.03\\" ry=\\"3.39\\" transform=\\"rotate(130.6 41.46 10.01)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"18.43\\" cy=\\"30.51\\" fill=\\"#00d0c7\\" rx=\\"14.03\\" ry=\\"6.09\\" transform=\\"rotate(234 18.43 30.5)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"21.94\\" cy=\\"12.96\\" fill=\\"#03ff00\\" rx=\\"6.37\\" ry=\\"5.55\\" transform=\\"rotate(23.1 21.94 12.96)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"56.27\\" cy=\\"16.72\\" fill=\\"#03ff00\\" rx=\\"5.61\\" ry=\\"24.53\\" transform=\\"rotate(23.1 56.27 16.72)\\"/></g><g filter=\\"url(#SVGQv8P6csY)\\"><ellipse cx=\\"51.35\\" cy=\\"1.06\\" fill=\\"#6effe1\\" rx=\\"4.99\\" ry=\\"10.07\\" transform=\\"rotate(-45 51.35 1.06)\\"/></g></g><path fill=\\"#fff\\" d=\\"M3.72 6.8C.1 11.98.08 20 3.72 25.2h2.45c-3.64-5.2-3.62-13.22 0-18.4zm24.56 0h-2.45c3.62 5.18 3.64 13.2 0 18.4h2.45c3.64-5.2 3.62-13.22 0-18.4\\"/><defs><filter id=\\"SVGQv8P6csY\\" width=\\"4\\" height=\\"4\\" x=\\"-2\\" y=\\"-2\\" color-interpolation-filters=\\"sRGB\\"><feGaussianBlur stdDeviation=\\"4.6\\"/></filter></defs></g>"},"file-type-capacitor":{"body":"<defs><linearGradient id=\\"SVGMLlbHeQQ\\" x1=\\"3.843\\" x2=\\"28.148\\" y1=\\"28.15\\" y2=\\"3.845\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#7ecefd\\"/><stop offset=\\"1\\" stop-color=\\"#56b1fc\\"/></linearGradient></defs><path fill=\\"url(#SVGMLlbHeQQ)\\" d=\\"M29.706 17.76c.329.324.315.5-.007.811c-1.1 1.066-2.18 2.161-3.263 3.249c-.185.186-.319.329-.582.064q-4.885-4.925-9.788-9.83q-2.989-2.964-5.981-5.925c-.192-.189-.17-.317.011-.5q1.743-1.726 3.469-3.471c.214-.217.345-.179.539.017q2.127 2.156 4.27 4.3c.387.374.772.751 1.162 1.121c.156.148.277.352.529.361q2.895-2.888 5.786-5.781c.215-.216.351-.246.583-.011a188 188 0 0 0 3.357 3.325c.295.283.265.436-.009.706c-1.812 1.787-3.595 3.6-5.417 5.38c-.375.365-.332.544.016.885c1.787 1.753 3.539 3.544 5.325 5.299m-13.775 2.193a.6.6 0 0 0-.067-.1q-4.841-4.842-9.679-9.689c-.246-.246-.389-.241-.629 0a183 183 0 0 1-3.3 3.3c-.318.306-.276.471.015.758c1.783 1.76 3.536 3.549 5.325 5.3c.362.356.35.549-.007.9c-1.8 1.77-3.568 3.573-5.359 5.353c-.262.26-.332.416-.024.715a145 145 0 0 1 3.289 3.309c.26.27.4.266.663 0Q8 27.916 9.882 26.07a28 28 0 0 1 2.171-2.1l1.57 1.564q2.133 2.14 4.262 4.285c.2.2.347.207.55 0q1.724-1.739 3.464-3.461c.185-.183.187-.311 0-.5q-2.99-2.943-5.968-5.905\\"/>"},"folder-type-src":{"body":"<path fill=\\"#14622a\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#06cc14\\" d=\\"M19.146 30.989a1 1 0 0 1-.207-.025a1.04 1.04 0 0 1-.726-1.213l2.709-14.431a1.04 1.04 0 0 1 .444-.683a.9.9 0 0 1 .7-.122a1.043 1.043 0 0 1 .727 1.213L20.077 30.16a1.03 1.03 0 0 1-.442.681a.9.9 0 0 1-.489.148m5.432-2.045h-.068a.93.93 0 0 1-.668-.377a1.1 1.1 0 0 1 .1-1.419l4.658-4.553l-4.638-4.239a1.1 1.1 0 0 1-.141-1.416a.94.94 0 0 1 .661-.4a.9.9 0 0 1 .709.237l5.47 5a1.1 1.1 0 0 1 .144 1.416a1 1 0 0 1-.142.163l-5.447 5.324a.92.92 0 0 1-.638.264m-8.155.003a.9.9 0 0 1-.639-.267l-5.452-5.327a1 1 0 0 1-.132-.153a1.094 1.094 0 0 1 .141-1.414l5.471-5a.88.88 0 0 1 .7-.238a.94.94 0 0 1 .665.4a1.1 1.1 0 0 1-.14 1.417L12.4 22.6l4.659 4.551a1.09 1.09 0 0 1 .1 1.419a.93.93 0 0 1-.669.377Z\\"/>"},"folder-type-library":{"body":"<path fill=\\"#c18053\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#59c2f2\\" d=\\"m13.065 26.488l-.383-.365v-.753a4.48 4.48 0 0 0 5.557 0v.753l-.383.365a3.47 3.47 0 0 1-4.791 0\\"/><path fill=\\"#59c2f2\\" d=\\"M12.682 23.9V13a4.03 4.03 0 0 0 5.557 0v10.9l-.383.365a3.47 3.47 0 0 1-4.791 0Zm1.111-6.455h3.334v-1.111h-3.334Zm1.667 11.114a4.57 4.57 0 0 1-2.778-.966v2.077a4.03 4.03 0 0 0 5.557 0v-2.077a4.57 4.57 0 0 1-2.779.966\\"/><path fill=\\"#8abf4f\\" d=\\"m23.968 26.488l.383-.365v-.753a4.48 4.48 0 0 1-5.557 0v.753l.383.365a3.47 3.47 0 0 0 4.791 0\\"/><path fill=\\"#8abf4f\\" d=\\"M18.794 23.9V13a4.03 4.03 0 0 0 5.557 0v10.9l-.383.365a3.47 3.47 0 0 1-4.791 0Zm1.111-6.455h3.335v-1.111h-3.334Zm1.668 11.114a4.57 4.57 0 0 1-2.778-.966v2.077a4.03 4.03 0 0 0 5.557 0v-2.077a4.57 4.57 0 0 1-2.779.966\\"/><path fill=\\"#b533a5\\" d=\\"m30.081 26.488l.383-.365v-.753a4.48 4.48 0 0 1-5.557 0v.753l.383.365a3.47 3.47 0 0 0 4.791 0\\"/><path fill=\\"#b533a5\\" d=\\"M24.907 23.9V13a4.03 4.03 0 0 0 5.557 0v10.9l-.383.365a3.47 3.47 0 0 1-4.791 0Zm1.111-6.455h3.334v-1.111h-3.334Zm1.667 11.114a4.57 4.57 0 0 1-2.778-.966v2.077a4.03 4.03 0 0 0 5.557 0v-2.077a4.57 4.57 0 0 1-2.779.966\\"/>"},"folder-type-dist":{"body":"<defs><linearGradient id=\\"SVGpSsxrdrd\\" x1=\\"20.698\\" x2=\\"17.514\\" y1=\\"23.259\\" y2=\\"34.062\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#f1f1f2\\"/><stop offset=\\".391\\" stop-color=\\"#eaebec\\"/><stop offset=\\"1\\" stop-color=\\"#e6e7e8\\"/></linearGradient><linearGradient id=\\"SVGZ8izfdlD\\" x1=\\"29.221\\" x2=\\"30.358\\" y1=\\"11.689\\" y2=\\"36.594\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#e6e7e8\\"/><stop offset=\\".482\\" stop-color=\\"#dbdcde\\"/><stop offset=\\"1\\" stop-color=\\"#d7d8da\\"/></linearGradient><linearGradient id=\\"SVGu2Vpjckn\\" x1=\\"26.177\\" x2=\\"16.325\\" y1=\\"9.571\\" y2=\\"19.482\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fff57e\\"/><stop offset=\\"1\\" stop-color=\\"#fdbf0f\\"/></linearGradient><linearGradient id=\\"SVGiKVnueaF\\" x1=\\"28.842\\" x2=\\"30.965\\" y1=\\"10.318\\" y2=\\"21.502\\" gradientUnits=\\"userSpaceOnUse\\"><stop offset=\\"0\\" stop-color=\\"#fbe574\\"/><stop offset=\\"1\\" stop-color=\\"#efab14\\"/></linearGradient></defs><path fill=\\"#bc9f55\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"url(#SVGpSsxrdrd)\\" d=\\"M14.38 11.061L28.329 10v21L14.38 28.726z\\"/><path fill=\\"url(#SVGZ8izfdlD)\\" d=\\"m28.329 10l2.653 1.44l.038 16.793L28.329 31z\\"/><path fill=\\"url(#SVGu2Vpjckn)\\" d=\\"M28.329 17.783c-2.6-.518-4.338 3.293-6.394 4.865c-3.636 2.78-5.809-2.283-7.555-6.306V11.06c4.65-.513 9.3-.549 13.949-1.061z\\"/><path fill=\\"url(#SVGiKVnueaF)\\" d=\\"m31 22.909l-.017-11.474L28.329 10v7.775c1.752.139.94 4.956 2.671 5.134\\"/><path fill=\\"#fdbf0f\\" d=\\"m27.194 22.328l.06.108a3 3 0 0 0 .23-.272l-.07-.1a3 3 0 0 1-.22.264m.409-.56l.081.079a2 2 0 0 0 .151-.367l-.092-.052a2 2 0 0 1-.143.339Zm.291-1.127l-.1.031a1.5 1.5 0 0 1 .022.26v.121l.1.014q.005-.068.005-.135a2 2 0 0 0-.027-.292Zm-.123-.394a1.4 1.4 0 0 0-.207-.319l-.064.1a1.2 1.2 0 0 1 .187.288ZM27.3 19.7a1 1 0 0 0-.3-.125l-.018.134a1 1 0 0 1 .273.115Zm-.909-.089l.025.131a1 1 0 0 1 .284-.059v-.136a1.1 1.1 0 0 0-.308.067Zm-.525.325l-.029.026l.056.113l.028-.026a2 2 0 0 1 .223-.172l-.042-.123a2 2 0 0 0-.234.185Zm-.509.52l.063.105q.118-.132.233-.251l-.06-.108q-.115.124-.234.257Zm-.455.531l.066.1q.114-.137.225-.267l-.065-.1q-.11.132-.228.27Zm-.448.539l.066.1l.224-.269l-.066-.1Zm-.454.531l.064.1q.116-.132.228-.264l-.065-.1q-.108.133-.227.264m-.465.506l.06.108q.12-.125.236-.251l-.062-.106q-.111.125-.23.249Zm-.483.471l.055.113q.126-.115.247-.233L23.3 22.8q-.12.121-.244.234Zm-.5.424l.049.118q.132-.1.259-.208l-.052-.115q-.127.106-.257.206Zm-.528.366l.041.124q.138-.085.271-.178l-.045-.121q-.132.092-.267.176Zm-.549.3l.032.128q.143-.067.282-.142l-.037-.126q-.137.073-.278.14Zm-.568.222l.023.132q.148-.047.291-.1l-.027-.131q-.142.053-.288.099Zm-.582.143l.013.135q.151-.026.3-.062l-.018-.134q-.147.035-.295.061m-.519.059h-.069v.136h.072q.116-.006.229-.018l-.008-.135q-.111.011-.225.017Zm-.67.075a3 3 0 0 0 .3.051l.008-.135a2 2 0 0 1-.291-.05Zm-.584-.208a3 3 0 0 0 .289.121l.025-.131a3 3 0 0 1-.281-.118ZM18 24.086q.134.095.272.177l.04-.124q-.135-.08-.266-.173Zm-.517-.42q.125.115.254.22l.051-.116q-.127-.1-.25-.216ZM17 23.175q.116.13.237.253l.059-.109q-.119-.121-.234-.249Zm-.449-.544q.108.141.221.277l.066-.1q-.111-.134-.218-.274Zm-.42-.586q.1.15.207.3l.071-.095l-.2-.294Zm-.394-.619q.094.156.194.313l.069-.088q-.1-.155-.192-.31Zm-.369-.645q.087.161.182.326l.078-.084q-.094-.164-.18-.323Zm-.347-.668q.081.163.171.337l.081-.078q-.09-.173-.169-.334Zm-.325-.689q.071.16.16.347l.084-.073a16 16 0 0 1-.158-.345Zm-.212-.776l-.088.062s.051.135.147.362l.083-.072q-.072-.168-.108-.263c-.036-.095-.037-.09-.037-.09Zm12.354-.491l.068.424v.021l.017.012l.352.246l.02-.09l-1 .162l.049.078l.584-.832Zm-.527.873l1-.162l.121-.02l-.1-.07l-.352-.246l.021.033l-.068-.424l-.019-.121l-.07.1l-.584.832l-.068.1Z\\"/>"},"folder-type-node":{"body":"<path fill=\\"#8ebf55\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#fff\\" d=\\"M21.688 31a1.6 1.6 0 0 1-.807-.216l-2.57-1.52c-.383-.215-.2-.291-.07-.335A5 5 0 0 0 19.4 28.4a.2.2 0 0 1 .191.015l1.974 1.172a.26.26 0 0 0 .239 0l7.7-4.442a.24.24 0 0 0 .118-.208v-8.881a.25.25 0 0 0-.119-.212l-7.692-4.438a.24.24 0 0 0-.238 0l-7.693 4.439a.25.25 0 0 0-.122.211v8.881a.24.24 0 0 0 .121.206l2.108 1.218c1.144.572 1.845-.1 1.845-.778v-8.769a.22.22 0 0 1 .223-.222h.976a.22.22 0 0 1 .222.222v8.769a2.132 2.132 0 0 1-2.278 2.4A3.3 3.3 0 0 1 15.2 27.5l-2.018-1.162a1.63 1.63 0 0 1-.807-1.4v-8.882a1.62 1.62 0 0 1 .807-1.4l7.7-4.447a1.69 1.69 0 0 1 1.617 0l7.7 4.447a1.62 1.62 0 0 1 .808 1.4v8.881a1.63 1.63 0 0 1-.808 1.4l-7.7 4.443a1.6 1.6 0 0 1-.811.22\\"/><path fill=\\"#fff\\" d=\\"M20.231 21.965a.22.22 0 0 1 .222-.222h1a.22.22 0 0 1 .221.188c.15 1.013.6 1.524 2.634 1.524c1.621 0 2.311-.367 2.311-1.227c0-.5-.2-.864-2.715-1.111c-2.106-.208-3.408-.674-3.408-2.358c0-1.553 1.309-2.479 3.5-2.479c2.466 0 3.685.856 3.84 2.691a.22.22 0 0 1-.221.242h-1a.22.22 0 0 1-.216-.174c-.239-1.066-.823-1.407-2.4-1.407c-1.77 0-1.975.617-1.975 1.079c0 .56.243.723 2.632 1.039c2.365.313 3.488.755 3.488 2.418s-1.4 2.637-3.836 2.637c-3.372.002-4.077-1.543-4.077-2.84\\"/>"},"folder-type-test":{"body":"<path fill=\\"#b70b0b\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#fac6c5\\" d=\\"M28.3 27.423c-1.729-.4-2.332-2.482-1.329-4.583a8.95 8.95 0 0 1 2.217-2.779l.314-.26l.009.357a6.7 6.7 0 0 0 .748 2.425a14 14 0 0 1 .625 1.631a3.2 3.2 0 0 1-.073 1.958a2.67 2.67 0 0 1-1.111 1.087a2.8 2.8 0 0 1-1.4.164m.351-3.565c.124-.143.155-.332.164-1l.011-.825l-.2.158a1.68 1.68 0 0 0-.635 1.4c.07.214.286.448.411.446a.5.5 0 0 0 .249-.179m-15.527 7.087a3.85 3.85 0 0 1-3.031-4.563c.254-1.07.2-1.008 5.726-6.787l5.2-5.442l.738.7l.738.7l-3 3.132l-3 3.132l2.508-.054l2.508-.054l1.773-1.85l1.773-1.85l.735.707l.735.707l-5.213 5.43c-4.783 4.982-5.257 5.452-5.743 5.692a3.9 3.9 0 0 1-2.452.393Zm14.662-12.484c-.138-.082-1.546-1.4-3.129-2.921l-2.879-2.772l-.009-.421a.86.86 0 0 1 .194-.673A.99.99 0 0 1 23 11.3a69 69 0 0 1 6.277 6.023a1 1 0 0 1-1.492 1.133Z\\"/><path fill=\\"#fac6c5\\" d=\\"M11.578 26.851a2.1 2.1 0 0 0 2.579 2.614c.191-.2 2.407-2.515 7.387-7.737c-2.505.054-2.475-.055-4.98 0c-5.015 5.195-5.114 5.157-4.986 5.123\\"/>"},"folder-type-docs":{"body":"<path fill=\\"#c05454\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"gray\\" d=\\"M15.266 11.311v18.375h14.449v-15.1h-3.6v-3.275zm12.146.813l.008 1.158h1.252l-1.26-1.16Z\\"/><path fill=\\"#c5c5c5\\" d=\\"M27.028 10H15.281a1.316 1.316 0 0 0-1.312 1.313v18.375A1.316 1.316 0 0 0 15.281 31h14.438a1.316 1.316 0 0 0 1.313-1.312V13.642Zm.394 2.133l1.247 1.148h-1.247ZM15.281 29.688V11.313h10.828v3.281h3.609v15.094Z\\"/><path fill=\\"#c5c5c5\\" d=\\"M16.594 19.372h11.813v1.313H16.594zm1.842-6.8a1.4 1.4 0 0 0-.558-.394a2.05 2.05 0 0 0-.82-.131h-1.28v3.839h1.28a1.66 1.66 0 0 0 1.313-.492a1.8 1.8 0 0 0 .361-.591a3 3 0 0 0 .1-.82a3 3 0 0 0-.1-.788a1.6 1.6 0 0 0-.296-.623m-.459 1.837a1 1 0 0 1-.164.394a.8.8 0 0 1-.3.262a1.1 1.1 0 0 1-.492.1H16.6v-2.429h.459a.87.87 0 0 1 .722.3a1.2 1.2 0 0 1 .164.361a2.6 2.6 0 0 1 .066.525a2.2 2.2 0 0 1-.035.488Zm4.002-1.837a1.4 1.4 0 0 0-.525-.427a1.7 1.7 0 0 0-.755-.164a2 2 0 0 0-.788.164a1.7 1.7 0 0 0-.525.427a2.2 2.2 0 0 0-.3.623a2.94 2.94 0 0 0 0 1.509a1.8 1.8 0 0 0 .3.623a1.13 1.13 0 0 0 .525.427a1.9 1.9 0 0 0 .788.164a1.42 1.42 0 0 0 1.214-.525a2.1 2.1 0 0 0 .427-1.444a2.8 2.8 0 0 0-.1-.755a1.33 1.33 0 0 0-.261-.622M21.29 14.9a.7.7 0 0 1-.623.328a.64.64 0 0 1-.623-.328a1.87 1.87 0 0 1-.2-.952a1.8 1.8 0 0 1 .2-.952a.806.806 0 0 1 1.247 0a1.87 1.87 0 0 1 .2.952a1.8 1.8 0 0 1-.201.952m3.41-.031a.7.7 0 0 1-.131.164a.7.7 0 0 1-.2.131a.6.6 0 0 1-.263.033a.575.575 0 0 1-.558-.3a1.8 1.8 0 0 1-.2-.952v-.262c0-.1.033-.2.033-.3c.033-.1.033-.2.066-.263a.53.53 0 0 1 .131-.23a1 1 0 0 1 .2-.164a.6.6 0 0 1 .263-.066a.57.57 0 0 1 .427.164a1.1 1.1 0 0 1 .23.394l.755-.2a1.6 1.6 0 0 0-.23-.525a1.6 1.6 0 0 0-.328-.328a1.88 1.88 0 0 0-1.608-.033a1.55 1.55 0 0 0-.492.427a1.3 1.3 0 0 0-.164.656a2.7 2.7 0 0 0-.066.722a5 5 0 0 0 .066.722a1.8 1.8 0 0 0 .262.623a1.2 1.2 0 0 0 .492.427a1.7 1.7 0 0 0 .755.164a1.6 1.6 0 0 0 .919-.262a1.6 1.6 0 0 0 .328-.328a3.3 3.3 0 0 0 .263-.492l-.788-.2a.9.9 0 0 1-.162.278m-8.106 12.936h8.203v1.313h-8.203zm0-2.533h11.813v1.313H16.594zm0-3h11.813v1.313H16.594zm.055-5.8h11.813v1.313H16.649z\\"/>"},"folder-type-public":{"body":"<path fill=\\"#00a23c\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#aaffa2\\" d=\\"M22.6 16.3a3.79 3.79 0 0 1 1.8 2.8a3.048 3.048 0 1 0-1.8-2.8m-2 6.3a3.1 3.1 0 1 0-3.1-3.1a3.116 3.116 0 0 0 3.1 3.1m1.3.2h-2.6a3.9 3.9 0 0 0-3.9 3.9V30l.2.1a16.1 16.1 0 0 0 5.4.9a9.64 9.64 0 0 0 4.7-.9l.2-.1v-3.2a4.15 4.15 0 0 0-4-4m5.1-3.2h-2.6a3.23 3.23 0 0 1-1.2 2.6a4.62 4.62 0 0 1 3.3 4.5v1a9.8 9.8 0 0 0 4.1-.9l.2-.1v-3.2a3.82 3.82 0 0 0-3.8-3.9m-11.8-.2a3 3 0 0 0 1.6-.5a3.7 3.7 0 0 1 1.4-2.4v-.2a3.1 3.1 0 0 0-6.2 0a3.27 3.27 0 0 0 3.2 3.1m2.7 2.9a4.2 4.2 0 0 1-1.2-2.6h-2.9a3.9 3.9 0 0 0-3.9 3.9v3.2l.2.1a16.3 16.3 0 0 0 4.4.8v-1a4.81 4.81 0 0 1 3.4-4.4\\"/>"},"folder-type-asset":{"body":"<path fill=\\"#ba5656\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><rect width=\\"21\\" height=\\"21\\" x=\\"10\\" y=\\"10\\" fill=\\"#414141\\" rx=\\"2.761\\" ry=\\"2.761\\"/><path fill=\\"#c2c2c2\\" d=\\"M13.937 11.925h13.125a2.013 2.013 0 0 1 2.013 2.013v13.125a2.01 2.01 0 0 1-2.012 2.012H13.937a2.013 2.013 0 0 1-2.013-2.013V13.938a2.013 2.013 0 0 1 2.013-2.013\\"/><path fill=\\"#414141\\" d=\\"M13.937 13.325h13.126a.61.61 0 0 1 .612.612v13.126a.613.613 0 0 1-.613.613H13.938a.613.613 0 0 1-.613-.613V13.937a.61.61 0 0 1 .612-.612\\"/><path fill=\\"#c2c2c2\\" d=\\"M25.754 21.2h-1.1a4.2 4.2 0 0 1-.741 1.769l.78.78a.7.7 0 1 1-.99.99l-.786-.786a4.2 4.2 0 0 1-1.761.712v1.129a.7.7 0 0 1-1.4 0v-1.141a4.2 4.2 0 0 1-1.728-.735l-.82.82a.7.7 0 1 1-.99-.99l.826-.826a4.2 4.2 0 0 1-.707-1.723h-1.171a.7.7 0 1 1 0-1.4h1.174a4.2 4.2 0 0 1 .707-1.722l-.826-.826a.7.7 0 1 1 .99-.99l.819.82a4.2 4.2 0 0 1 1.729-.735v-1.14a.7.7 0 0 1 1.4 0v1.129a4.2 4.2 0 0 1 1.762.713l.786-.787a.7.7 0 0 1 .99.99l-.781.781a4.2 4.2 0 0 1 .741 1.768h1.1a.7.7 0 0 1 0 1.4Z\\"/><circle cx=\\"20.5\\" cy=\\"20.5\\" r=\\"2.822\\" fill=\\"#414141\\"/><circle cx=\\"20.5\\" cy=\\"20.5\\" r=\\"1.121\\" fill=\\"#c2c2c2\\"/>"},"folder-type-images":{"body":"<path fill=\\"#55bfa0\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#2dcc9f\\" d=\\"M31 15.778V31H10V15.777h21\\"/><path fill=\\"#fff\\" d=\\"M26.674 17.8a1.653 1.653 0 1 0 .845.467a1.66 1.66 0 0 0-.845-.467m-4.591 8.667L18 20.786l-6.062 8.428h8.174q.987-1.374 1.976-2.747m2.955-3.076l-4.188 5.824h8.377q-2.094-2.915-4.189-5.824\\"/>"},"folder-type-component":{"body":"<path fill=\\"#c09553\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#f1c40f\\" d=\\"M31 17.672v-.009l-2.43-1.941a1 1 0 0 1-.085-.149a2.15 2.15 0 0 0-.642-.732a3.2 3.2 0 0 0-.973-.476l-1.12-.894c-.8-.637-1.6-1.279-2.4-1.914c-.057-.041-.078-.122-.113-.186a2.15 2.15 0 0 0-.642-.732A3.53 3.53 0 0 0 20.618 10H20.4a3.54 3.54 0 0 0-1.984.629a2.2 2.2 0 0 0-.639.711c-.033.059-.056.126-.093.182a1 1 0 0 1-.134.112l-2.3 1.833l-1.122.9a3.2 3.2 0 0 0-.959.468a2.2 2.2 0 0 0-.639.711c-.03.053-.053.113-.084.165L10 17.662v.007l5.251 4.193v.009l5.249 4.193l5.249-4.19v-.012Zm-2.692 1.006a2.6 2.6 0 0 1-.913.726a3.7 3.7 0 0 1-1.644.365a3.7 3.7 0 0 1-1.587-.335a2.46 2.46 0 0 1-1.118-.975a1.6 1.6 0 0 1-.215-.836c0-.364-.01-.729.007-1.092c.037.089.044.192.081.282a2.1 2.1 0 0 0 .833 1.021a3.66 3.66 0 0 0 2 .575a3.7 3.7 0 0 0 1.96-.549a2.3 2.3 0 0 0 .7-.7a1.8 1.8 0 0 0 .239-.641a1.4 1.4 0 0 1 .011.273v.911a1.67 1.67 0 0 1-.354.975m-10.719-6.349c.037.089.044.192.081.282a2.1 2.1 0 0 0 .833 1.021a3.66 3.66 0 0 0 2 .575a3.7 3.7 0 0 0 1.96-.549a2.3 2.3 0 0 0 .7-.7a1.8 1.8 0 0 0 .239-.641a1.4 1.4 0 0 1 .011.273v.911a1.67 1.67 0 0 1-.357.979a2.6 2.6 0 0 1-.913.726a3.7 3.7 0 0 1-1.644.365a3.7 3.7 0 0 1-1.587-.335a2.46 2.46 0 0 1-1.118-.975a1.6 1.6 0 0 1-.215-.836c.007-.368-.008-.733.01-1.096m-2.338 7.44a3.7 3.7 0 0 1-1.587-.335a2.46 2.46 0 0 1-1.118-.975a1.6 1.6 0 0 1-.215-.836c0-.364-.01-.729.007-1.092c.037.089.044.192.081.282a2.1 2.1 0 0 0 .833 1.021a3.66 3.66 0 0 0 2 .575a3.7 3.7 0 0 0 1.96-.549a2.3 2.3 0 0 0 .7-.7a1.8 1.8 0 0 0 .239-.641a1.4 1.4 0 0 1 .011.273v.911a1.67 1.67 0 0 1-.357.979a2.6 2.6 0 0 1-.913.726a3.7 3.7 0 0 1-1.641.361m7.807 3.111a2.6 2.6 0 0 1-.913.726a3.7 3.7 0 0 1-1.644.365a3.7 3.7 0 0 1-1.587-.335a2.46 2.46 0 0 1-1.118-.975a1.6 1.6 0 0 1-.215-.836c0-.364-.01-.729.007-1.092c.037.089.044.192.081.282a2.1 2.1 0 0 0 .833 1.021a3.66 3.66 0 0 0 2 .575a3.7 3.7 0 0 0 1.96-.549a2.3 2.3 0 0 0 .7-.7a1.8 1.8 0 0 0 .239-.641a1.4 1.4 0 0 1 .011.273v.911a1.67 1.67 0 0 1-.354.975\\"/><path fill=\\"#f39c12\\" d=\\"M22.145 15.2a2.6 2.6 0 0 0 .913-.726a1.67 1.67 0 0 0 .357-.979v-.911a1.4 1.4 0 0 0-.011-.273a1.8 1.8 0 0 1-.239.641a2.3 2.3 0 0 1-.7.7a3.7 3.7 0 0 1-1.96.549v1.36a3.7 3.7 0 0 0 1.64-.361m-5.25 4.2a2.6 2.6 0 0 0 .913-.726a1.67 1.67 0 0 0 .357-.979v-.911a1.4 1.4 0 0 0-.011-.273a1.8 1.8 0 0 1-.239.641a2.3 2.3 0 0 1-.7.7a3.7 3.7 0 0 1-1.96.549v1.36a3.7 3.7 0 0 0 1.64-.361m11.759-2.885a1.8 1.8 0 0 1-.239.641a2.3 2.3 0 0 1-.7.7a3.7 3.7 0 0 1-1.96.549v1.36a3.7 3.7 0 0 0 1.644-.365a2.6 2.6 0 0 0 .913-.726a1.67 1.67 0 0 0 .357-.979v-.911a1.4 1.4 0 0 0-.015-.269M23.4 20.717a1.8 1.8 0 0 1-.239.641a2.3 2.3 0 0 1-.7.7a3.7 3.7 0 0 1-1.96.549v1.36a3.7 3.7 0 0 0 1.644-.365a2.6 2.6 0 0 0 .913-.726a1.67 1.67 0 0 0 .357-.979v-.911a1.4 1.4 0 0 0-.015-.269m-2.899 5.347L20.5 31L31 22.605v-4.932z\\"/><path fill=\\"#e67e22\\" d=\\"M18.914 15.231a3.7 3.7 0 0 0 1.587.335v-1.36a3.66 3.66 0 0 1-2-.575a2.1 2.1 0 0 1-.833-1.021c-.037-.09-.044-.193-.081-.282c-.017.363 0 .728-.007 1.092a1.6 1.6 0 0 0 .215.836a2.46 2.46 0 0 0 1.119.975m-5.662 2.603a2.1 2.1 0 0 1-.833-1.021c-.037-.09-.044-.193-.081-.282c-.017.363 0 .728-.007 1.092a1.6 1.6 0 0 0 .215.836a2.46 2.46 0 0 0 1.118.975a3.7 3.7 0 0 0 1.587.335v-1.36a3.66 3.66 0 0 1-1.999-.575m10.5 0a2.1 2.1 0 0 1-.833-1.021c-.037-.09-.044-.193-.081-.282c-.017.363 0 .728-.007 1.092a1.6 1.6 0 0 0 .215.836a2.46 2.46 0 0 0 1.118.975a3.7 3.7 0 0 0 1.587.335v-1.36a3.66 3.66 0 0 1-1.999-.575M18.5 22.036a2.1 2.1 0 0 1-.833-1.021c-.037-.09-.044-.193-.081-.282c-.017.363 0 .728-.007 1.092a1.6 1.6 0 0 0 .215.836a2.46 2.46 0 0 0 1.118.975a3.7 3.7 0 0 0 1.587.335v-1.36a3.66 3.66 0 0 1-1.999-.575m-3.25-.165v-.009L10 17.669v4.937c1.75 1.4 5.25 4.192 5.25 4.192v.01C17 28.21 20.5 31 20.5 31v-4.936Z\\"/>"},"folder-type-view":{"body":"<path fill=\\"#bf6d55\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#e44f26\\" d=\\"M14.167 28.901L12.482 10h18.516l-1.687 18.898L21.729 31z\\"/><path fill=\\"#f1662a\\" d=\\"m21.74 29.393l6.127-1.699l1.442-16.149H21.74z\\"/><path fill=\\"#fff\\" d=\\"m20.99 24.011l-6-3.607v-1.307l6-3.608v2.023l-3.828 2.238l3.828 2.239zm1.5-.002v-2.021l3.855-2.238l-3.855-2.237v-2.022l6 3.591v1.336z\\"/>"},"folder-type-config":{"body":"<path fill=\\"#53a2c1\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#99b8c4\\" d=\\"m26.049 26.785l.675-.671c3.123.1 3.171-.008 3.308-.329l.858-2.085l.064-.2l-.07-.173c-.037-.092-.15-.365-2.1-2.224v-.978c2.25-2.168 2.2-2.279 2.074-2.6L30 15.418c-.128-.317-.177-.44-3.278-.356l-.675-.7a15 15 0 0 0-.106-3.08l-.087-.2l-2.231-.975c-.329-.15-.444-.2-2.55 2.09l-.947-.014c-2.168-2.315-2.271-2.273-2.6-2.141l-2.074.839c-.325.131-.44.178-.314 3.328l-.67.668c-3.122-.1-3.17.009-3.305.329l-.86 2.09l-.068.2l.071.174c.037.09.146.36 2.1 2.222v.975c-2.25 2.168-2.2 2.279-2.072 2.6l.854 2.113c.131.323.177.438 3.277.357l.675.7a15 15 0 0 0 .1 3.075l.087.2l2.245.981c.326.137.44.185 2.54-2.1l.947.012c2.171 2.318 2.282 2.273 2.6 2.144l2.069-.836c.338-.131.452-.176.321-3.328m-8.894-4.893a3.718 3.718 0 1 1 4.866 2.118a3.76 3.76 0 0 1-4.866-2.118\\"/>"},"folder-type-script":{"body":"<path fill=\\"#828282\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#333\\" d=\\"M16.012 10h11.642a3.14 3.14 0 0 1 1.913.817a4.73 4.73 0 0 1 1.363 2.833c.03.212.048.425.07.639v.368a.7.7 0 0 1-.306.491a1.2 1.2 0 0 1-.678.1h-1.637q-.009 6.069 0 12.138a3.57 3.57 0 0 1-.532 1.888A3.63 3.63 0 0 1 25.96 30.8a4.4 4.4 0 0 1-.972.2H13.92a4.04 4.04 0 0 1-2.216-.8a4.48 4.48 0 0 1-1.6-2.7c-.054-.258-.076-.522-.107-.784V26.3a.73.73 0 0 1 .3-.454a1.1 1.1 0 0 1 .639-.1h1.681v-12.14A3.6 3.6 0 0 1 13.744 11a3.64 3.64 0 0 1 2.268-1\\"/><path fill=\\"gray\\" d=\\"M14.092 12.777a4.6 4.6 0 0 0-.154 1.653v11.318c2.434.006 4.868 0 7.3 0a.65.65 0 0 1 .587.433a3 3 0 0 1 .051.572a3.42 3.42 0 0 0 1.038 2.278a2.66 2.66 0 0 0 1.806.652a2.3 2.3 0 0 0 2.338-2.252V13.889a2 2 0 0 1 .03-.466a4.6 4.6 0 0 1 .569-1.4a2.2 2.2 0 0 1 .673-.719q-6.051-.008-12.1 0a2.31 2.31 0 0 0-2.138 1.473\\"/><path fill=\\"#333\\" d=\\"M18.008 16.819a.7.7 0 0 1 .607-.258a.656.656 0 0 1 .582.722a.2.2 0 0 1-.009.056c-.045.256-.268.415-.437.591c-.638.641-1.293 1.265-1.924 1.912c.654.666 1.327 1.313 1.986 1.974a1.05 1.05 0 0 1 .375.53a.66.66 0 0 1-.466.761a.65.65 0 0 1-.629-.158c-.885-.865-1.757-1.744-2.64-2.611a.665.665 0 0 1-.043-.939v-.006q1.3-1.293 2.598-2.574m3.804.357a.66.66 0 0 1 .574-.609a.67.67 0 0 1 .547.188q1.3 1.285 2.595 2.573a.674.674 0 0 1 .105.947a1 1 0 0 1-.094.1q-1.259 1.244-2.512 2.491a.77.77 0 0 1-.475.277a.656.656 0 0 1-.719-.479a.66.66 0 0 1 .182-.646c.724-.722 1.456-1.434 2.174-2.162c-.711-.713-1.43-1.418-2.146-2.126a.69.69 0 0 1-.231-.554\\"/>"},"folder-type-css":{"body":"<path fill=\\"#893dd1\\" d=\\"M27.347 5.568h-9.3l-2.1 4.2h-11.7v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1z\\"/><path fill=\\"#639\\" d=\\"M12.475 12.475H28.05a2.967 2.967 0 0 1 2.967 2.966v12.61a2.967 2.967 0 0 1-2.967 2.966H15.441a2.967 2.967 0 0 1-2.966-2.967Z\\"/><path fill=\\"#fff\\" d=\\"M17.166 27.624v-3.115c0-1.243.797-1.91 2.002-1.91c1.187-.019 1.929.76 1.892 2.076h-1.372c.037-.5-.186-.871-.557-.852c-.463 0-.593.315-.593.908v2.707c0 .575.185.853.593.872c.427 0 .594-.427.557-.909h1.372c.074 1.354-.78 2.151-1.984 2.133c-1.169 0-1.91-.65-1.91-1.91m4.394-.223h1.28c.018.594.204.964.612.964s.556-.24.556-.797c0-.463-.204-.723-.705-.964l-.482-.223c-.853-.408-1.205-.908-1.205-1.91c0-1.112.705-1.89 1.854-1.89s1.762.796 1.78 2.094h-1.242c0-.537-.111-.908-.52-.908c-.37 0-.556.185-.556.649c0 .463.167.649.612.834l.445.204c.946.445 1.354 1.02 1.354 2.096c0 1.279-.723 1.984-1.91 1.984s-1.854-.816-1.873-2.133m4.19 0h1.299c0 .594.204.964.593.964c.39 0 .557-.24.557-.797c0-.463-.186-.723-.705-.964l-.482-.223c-.853-.408-1.187-.908-1.187-1.91c0-1.112.686-1.89 1.854-1.89s1.743.796 1.78 2.094h-1.242c-.018-.537-.13-.908-.538-.908c-.37 0-.537.185-.537.649c0 .463.148.649.593.834l.464.204c.927.445 1.335 1.02 1.335 2.096c0 1.279-.724 1.984-1.91 1.984c-1.187 0-1.855-.816-1.873-2.133z\\"/>"},"folder-type-hook":{"body":"<path fill=\\"#c09553\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#61dbfb\\" d=\\"M22.364 15.607c.463.77 1.395 1.172 1.934 1.357l.116.042c.156 4.532.117 5.029-.116 5.966c-.35 1.404-1.427 3.248-3.558 3.217c-2.13-.03-2.248-1.47-2.403-2.397s.008-3.05 0-3.1c-.015-.108.57.026 1.3 0q.782-.027 1.375 0q-2.01-2.271-2.157-2.417c-.006-.006-1.084-.856-2.55-2.548a63 63 0 0 0 0 2.661c.015.863-.036 3.071 0 4.408s.227 3.647 1.055 4.394c.827.746 1.285 1.236 3.652 1.303s3.747-1.661 4.438-2.303c.692-.643 1.186-2.212 1.279-3.218q.049-.537.024-5.516q-.012.476-.024-.45q.253-.105.282-.115c1-.401 1.174-.777 1.626-1.284c.453-.507.704-3.168 0-4.021c-.704-.854-.954-1.077-1.908-1.313s-1.741-.134-2.43 0s-1.371.658-1.935 1.313s-.465 3.25 0 4.02m2.214-.173c-.739-.366-1.177-1.186-1.063-1.979c.097-.646.49-1.19 1.063-1.474c.481-.239.955-.27 1.463-.104c.89.288 1.455 1.231 1.294 2.144c-.231 1.282-1.602 1.982-2.756 1.412\\"/>"},"folder-type-api":{"body":"<path fill=\\"#a0bf55\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#fff\\" d=\\"M27.773 31.076a2.517 2.517 0 0 1-1.848-4.229l-1.67-2.54a4.23 4.23 0 0 1-3.847-.05l-1.662 1.77a2.161 2.161 0 1 1-1.105-.983l1.593-1.7a4.23 4.23 0 0 1-1.1-2.854a4 4 0 0 1 .021-.412l-3.8-1.166a2.517 2.517 0 1 1 .558-1.579c0 .067 0 .134-.009.2l3.646 1.119a4.23 4.23 0 0 1 3.092-2.349v-2.381a2.068 2.068 0 1 1 1.479 0v2.386A4.24 4.24 0 0 1 25.6 17.72l1.928-1.162a2 2 0 0 1-.015-.226a1.807 1.807 0 1 1 1.808 1.808a1.8 1.8 0 0 1-1.023-.319l-1.938 1.171a4.2 4.2 0 0 1 .275 1.5v.036l1.057.183a1.806 1.806 0 1 1-.34 1.443l-.987-.172a4.3 4.3 0 0 1-.91 1.448l1.752 2.67a2.519 2.519 0 1 1 .566 4.973Z\\"/><path fill=\\"#486600\\" d=\\"M29.122 20.129a1.68 1.68 0 0 0-1.379.721l-1.24-.215v-.14a4.1 4.1 0 0 0-.306-1.556l2.1-1.267a1.684 1.684 0 1 0-.64-1.05l-2.09 1.261A4.13 4.13 0 0 0 23 16.415v-2.58a1.943 1.943 0 1 0-1.23 0v2.58a4.14 4.14 0 0 0-3.149 2.394l-3.848-1.182a2.395 2.395 0 1 0-.461 1.145l3.979 1.222a4.1 4.1 0 0 0 1.119 3.355l-1.733 1.845a2.04 2.04 0 1 0 .921.816l1.786-1.91a4.11 4.11 0 0 0 3.915.043l1.787 2.717a2.391 2.391 0 1 0 1.066-.616l-1.861-2.83a4.1 4.1 0 0 0 .989-1.573l1.178.2a1.682 1.682 0 1 0 1.665-1.919Z\\"/>"},"folder-type-package":{"body":"<path fill=\\"#c1a153\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#f2e6c9\\" d=\\"M12.78 10.008c1.689-.016 3.381 0 5.071-.006c-.4 1.726-.786 3.456-1.184 5.183H8.952c-.244 0-.488.008-.732-.01c1.515-1.727 3.047-3.439 4.56-5.167M21.358 10h5.056c1.518 1.727 3.052 3.441 4.566 5.172c-.974.021-1.95 0-2.925.009h-5.524c-.384-1.726-.793-3.449-1.173-5.181\\"/><path fill=\\"#efc75e\\" d=\\"M17.85 10h3.508c.379 1.73.788 3.453 1.174 5.181h-5.866c.399-1.723.784-3.453 1.184-5.181\\"/><path fill=\\"#e7bf55\\" d=\\"M8.219 15.174c.244.018.488.009.732.01h7.715q-.002 2.738.006 5.475a2 2 0 0 0 .208.015h5.482q.081-.002.163-.011c.016-1.826 0-3.654.007-5.48h5.524c.975-.005 1.951.012 2.925-.009v15.824L8.22 31q-.003-7.914-.001-15.826\\"/><path fill=\\"#dbb551\\" d=\\"M16.666 15.185h5.866c-.007 1.826.009 3.654-.007 5.48a2 2 0 0 1-.163.011H16.88a2 2 0 0 1-.208-.015c-.01-1.826-.002-3.652-.006-5.476\\"/><path fill=\\"#f2f2f2\\" d=\\"M9.881 25.85h7.617v2.933H9.881z\\"/>"},"folder-type-git":{"body":"<path fill=\\"#bf5e55\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#dd4c35\\" d=\\"M30.6 19.565L21.435 10.4a1.35 1.35 0 0 0-1.913 0l-1.9 1.9l2.415 2.415a1.606 1.606 0 0 1 2.034 2.047l2.329 2.329a1.607 1.607 0 1 1-.964.907l-2.176-2.171v5.713a1.606 1.606 0 1 1-1.323-.047v-5.766a1.61 1.61 0 0 1-.873-2.11l-2.381-2.381l-6.283 6.286a1.353 1.353 0 0 0 0 1.913l9.165 9.165a1.353 1.353 0 0 0 1.913 0l9.122-9.122a1.353 1.353 0 0 0 0-1.913\\"/><path fill=\\"#fff\\" d=\\"m17.619 12.3l2.415 2.415a1.606 1.606 0 0 1 2.034 2.047l2.332 2.329a1.607 1.607 0 1 1-.964.907l-2.176-2.171v5.713a1.606 1.606 0 1 1-1.323-.047v-5.766a1.61 1.61 0 0 1-.873-2.11l-2.381-2.381\\"/>"},"folder-type-github":{"body":"<path fill=\\"#9b9b9b\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#fff\\" fill-rule=\\"evenodd\\" d=\\"M31 20.5A10.5 10.5 0 1 1 20.5 10A10.5 10.5 0 0 1 31 20.5\\"/><path fill=\\"#333\\" fill-rule=\\"evenodd\\" d=\\"M23.013 27.6a2.5 2.5 0 0 0-.713-1.944c2.339-.26 4.794-1.148 4.794-5.181a4.05 4.05 0 0 0-1.079-2.818a3.77 3.77 0 0 0-.105-2.779s-.88-.282-2.884 1.077a9.94 9.94 0 0 0-5.258 0c-2.005-1.359-2.887-1.077-2.887-1.077a3.78 3.78 0 0 0-.1 2.779A4.06 4.06 0 0 0 13.7 20.47c0 4.023 2.451 4.924 4.783 5.189a2.25 2.25 0 0 0-.667 1.4a2.234 2.234 0 0 1-3.055-.873a2.21 2.21 0 0 0-1.609-1.082s-1.025-.013-.072.639a2.78 2.78 0 0 1 1.166 1.535s.616 2.043 3.537 1.408c0 .876.014 1.537.014 1.786a.6.6 0 0 1-.032.177a10.2 10.2 0 0 0 5.27 0a.6.6 0 0 1-.035-.173c0-.344.013-1.476.013-2.876\\"/>"},"folder-type-vscode":{"body":"<path fill=\\"#5594bf\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/><path fill=\\"#0065a9\\" d=\\"m30.257 12.333l-4.324-2.082a1.31 1.31 0 0 0-1.492.253L10.285 23.411a.875.875 0 0 0-.057 1.236l.057.057l1.157 1.052a.87.87 0 0 0 1.116.049l17.049-12.932a.868.868 0 0 1 1.393.692v-.05a1.31 1.31 0 0 0-.743-1.182\\"/><path fill=\\"#007acc\\" d=\\"m30.257 28.788l-4.324 2.082a1.31 1.31 0 0 1-1.492-.253L10.285 17.71a.875.875 0 0 1-.057-1.236l.057-.057l1.157-1.052a.87.87 0 0 1 1.116-.049l17.049 12.932A.868.868 0 0 0 31 27.556v.05a1.31 1.31 0 0 1-.743 1.182\\"/><path fill=\\"#1f9cf0\\" d=\\"M25.933 30.871a1.31 1.31 0 0 1-1.491-.254a.768.768 0 0 0 1.311-.543V11.047a.768.768 0 0 0-1.311-.543a1.31 1.31 0 0 1 1.491-.254l4.324 2.079A1.31 1.31 0 0 1 31 13.512v14.1a1.31 1.31 0 0 1-.743 1.183Z\\"/>"},"default-file":{"body":"<path fill=\\"#c5c5c5\\" d=\\"M20.414 2H5v28h22V8.586ZM7 28V4h12v6h6v18Z\\"/>"},"default-folder":{"body":"<path fill=\\"#c09553\\" d=\\"M27.5 5.5h-9.3l-2.1 4.2H4.4v16.8h25.2v-21Zm0 4.2h-8.2l1.1-2.1h7.1Z\\"/>"}}'),x7=32,A7=32,om={prefix:C7,icons:E7,width:x7,height:A7},cm={ts:"file-type-typescript",tsx:"file-type-reactts",js:"file-type-js",jsx:"file-type-reactjs",mjs:"file-type-js",cjs:"file-type-js",json:"file-type-json",html:"file-type-html",htm:"file-type-html",css:"file-type-css",scss:"file-type-scss",less:"file-type-less",svg:"file-type-svg",vue:"file-type-vue",svelte:"file-type-svelte",astro:"file-type-astro",yaml:"file-type-yaml",yml:"file-type-yaml",toml:"file-type-toml",xml:"file-type-xml",csv:"file-type-json",env:"file-type-dotenv",ini:"file-type-ini",py:"file-type-python",rb:"file-type-ruby",go:"file-type-go",rs:"file-type-rust",java:"file-type-java",kt:"file-type-kotlin",swift:"file-type-swift",c:"file-type-c",h:"file-type-c",cpp:"file-type-cpp",hpp:"file-type-cpp",cs:"file-type-csharp",php:"file-type-php",lua:"file-type-lua",dart:"file-type-dart",ex:"file-type-elixir",exs:"file-type-elixir",erl:"file-type-erlang",zig:"file-type-zig",nim:"file-type-nim",sh:"file-type-shell",bash:"file-type-shell",zsh:"file-type-shell",fish:"file-type-shell",ps1:"file-type-powershell",bat:"file-type-bat",md:"file-type-markdown",mdx:"file-type-mdx",txt:"file-type-text",pdf:"file-type-text",tex:"file-type-tex",rst:"file-type-rest",png:"file-type-image",jpg:"file-type-image",jpeg:"file-type-image",gif:"file-type-image",webp:"file-type-image",ico:"file-type-image",bmp:"file-type-image",mp4:"file-type-video",webm:"file-type-video",mp3:"file-type-audio",wav:"file-type-audio",ogg:"file-type-audio",dockerfile:"file-type-docker",sql:"file-type-sql",graphql:"file-type-graphql",gql:"file-type-graphql",prisma:"file-type-prisma",lock:"file-type-json",log:"file-type-log",wasm:"file-type-wasm",zip:"file-type-zip",tar:"file-type-zip",gz:"file-type-zip"},um={"package.json":"file-type-npm","tsconfig.json":"file-type-tsconfig","vite.config.ts":"file-type-vite","vite.config.js":"file-type-vite",".gitignore":"file-type-git",".gitattributes":"file-type-git",".env":"file-type-dotenv",".env.local":"file-type-dotenv",".env.example":"file-type-dotenv",".eslintrc":"file-type-eslint",".eslintrc.js":"file-type-eslint",".eslintrc.json":"file-type-eslint",".prettierrc":"file-type-prettier","prettier.config.js":"file-type-prettier",dockerfile:"file-type-docker","docker-compose.yml":"file-type-docker","docker-compose.yaml":"file-type-docker","compose.yml":"file-type-docker","compose.yaml":"file-type-docker",makefile:"file-type-shell",license:"file-type-license","readme.md":"file-type-markdown","yarn.lock":"file-type-yarn","pnpm-lock.yaml":"file-type-pnpm","tailwind.config.js":"file-type-tailwind","tailwind.config.ts":"file-type-tailwind","jest.config.js":"file-type-jest","jest.config.ts":"file-type-jest","vitest.config.ts":"file-type-vitest","capacitor.config.ts":"file-type-capacitor","tsup.config.ts":"file-type-tsconfig",".npmrc":"file-type-npm"},k7={src:"folder-type-src",lib:"folder-type-library",dist:"folder-type-dist",build:"folder-type-dist",node_modules:"folder-type-node",tests:"folder-type-test",test:"folder-type-test",docs:"folder-type-docs",public:"folder-type-public",assets:"folder-type-asset",images:"folder-type-images",components:"folder-type-component",pages:"folder-type-view",views:"folder-type-view",config:"folder-type-config",scripts:"folder-type-script",styles:"folder-type-css",utils:"folder-type-src",hooks:"folder-type-hook",api:"folder-type-api",packages:"folder-type-package",".git":"folder-type-git",".github":"folder-type-github",".vscode":"folder-type-vscode"};function T7(e,t){const r=e.toLowerCase();if(t)return k7[r]||"default-folder";if(um[r])return um[r];const n=e.lastIndexOf(".");if(n>0){const l=e.slice(n+1).toLowerCase();if(cm[l])return cm[l]}return"default-file"}const ac=new Map;function R7(e){if(ac.has(e))return ac.get(e);const t=sm(om,e);if(!t){const l=sm(om,"default-file");if(!l)return"";const o=am(l),u=lm(o.body,o.attributes);return ac.set(e,u),u}const r=am(t),n=lm(r.body,r.attributes);return ac.set(e,n),n}function en({filename:e,isDir:t=!1,size:r=16}){const n=B.useMemo(()=>{const l=T7(e,t);return R7(l)},[e,t]);return E.jsx("span",{className:"vsc-file-icon",style:{width:r,height:r,display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"middle"},dangerouslySetInnerHTML:{__html:n}})}var ff=Object.defineProperty,L7=Object.getOwnPropertyDescriptor,M7=Object.getOwnPropertyNames,D7=Object.prototype.hasOwnProperty,md=(e,t)=>{let r={};for(var n in e)ff(r,n,{get:e[n],enumerable:!0});return ff(r,Symbol.toStringTag,{value:"Module"}),r},O7=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var l=M7(t),o=0,u=l.length,f;o<u;o++)f=l[o],!D7.call(e,f)&&f!==r&&ff(e,f,{get:(p=>t[p]).bind(null,f),enumerable:!(n=L7(t,f))||n.enumerable});return e},og=(e,t,r)=>(O7(e,t,"default"),r);const N7="modulepreload",B7=function(e){return"/"+e},hm={},C=function(t,r,n){let l=Promise.resolve();if(r&&r.length>0){let u=function(d){return Promise.all(d.map(v=>Promise.resolve(v).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),p=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));l=u(r.map(d=>{if(d=B7(d),d in hm)return;hm[d]=!0;const v=d.endsWith(".css"),m=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const y=document.createElement("link");if(y.rel=v?"stylesheet":N7,v||(y.as="script"),y.crossOrigin="",y.href=d,p&&y.setAttribute("nonce",p),document.head.appendChild(y),v)return new Promise((b,S)=>{y.addEventListener("load",b),y.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return l.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return t().catch(o)})},Kc=[{id:"abap",name:"ABAP",import:(()=>C(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>C(()=>import("./actionscript-3-CoDkCxhg.js"),[]))},{id:"ada",name:"Ada",import:(()=>C(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>C(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>C(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>C(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>C(()=>import("./apex-D8_7TLub.js"),[]))},{id:"apl",name:"APL",import:(()=>C(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>C(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>C(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>C(()=>import("./asciidoc-Ve4PFQV2.js"),[]))},{id:"asm",name:"Assembly",import:(()=>C(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>C(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>C(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>C(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>C(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>C(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>C(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>C(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>C(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>C(()=>import("./bird2-BIv1doCn.js"),[]))},{id:"blade",name:"Blade",import:(()=>C(()=>import("./blade-BjGOyj-B.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>C(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>C(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>C(()=>import("./c3-eo99z4R2.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>C(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>C(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>C(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>C(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>C(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>C(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>C(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>C(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>C(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>C(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>C(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>C(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>C(()=>import("./crystal-DNxU26gB.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>C(()=>import("./csharp-COcwbKMJ.js"),[]))},{id:"css",name:"CSS",import:(()=>C(()=>import("./css-CLj8gQPS.js"),[]))},{id:"csv",name:"CSV",import:(()=>C(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>C(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>C(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>C(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>C(()=>import("./dart-bE4Kk8sk.js"),[]))},{id:"dax",name:"DAX",import:(()=>C(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>C(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>C(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>C(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>C(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>C(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>C(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>C(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>C(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>C(()=>import("./emacs-lisp-CXvaQtF9.js"),[]))},{id:"erb",name:"ERB",import:(()=>C(()=>import("./erb-BYCe7drp.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>C(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>C(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>C(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>C(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>C(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>C(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>C(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>C(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>C(()=>import("./gdscript-C5YyOfLZ.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>C(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>C(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>C(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>C(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>C(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>C(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>C(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>C(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>C(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gn",name:"GN",import:(()=>C(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>C(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>C(()=>import("./go-C27-OAKa.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>C(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>C(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>C(()=>import("./hack-i7_Ulhet.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>C(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>C(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>C(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>C(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>C(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>C(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>C(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>C(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>C(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>C(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>C(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>C(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>C(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>C(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>C(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>C(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>C(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>C(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>C(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>C(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>C(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>C(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>C(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>C(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>C(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>C(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>C(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"just",name:"Just",import:(()=>C(()=>import("./just-VxiPbLrw.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38])))},{id:"kdl",name:"KDL",import:(()=>C(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>C(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>C(()=>import("./kusto-wEQ09or8.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>C(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([65,66,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>C(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>C(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>C(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([67,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>C(()=>import("./llvm-DjAJT7YJ.js"),[]))},{id:"log",name:"Log file",import:(()=>C(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>C(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>C(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>C(()=>import("./luau-C-HG3fhB.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>C(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>C(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>C(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([68,3,69,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>C(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>C(()=>import("./mdc-DTYItulj.js"),__vite__mapDeps([70,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>C(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>C(()=>import("./mermaid-mWjccvbQ.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>C(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>C(()=>import("./mojo-rZm6bMo-.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>C(()=>import("./moonbit-_H4v1dQx.js"),[]))},{id:"move",name:"Move",import:(()=>C(()=>import("./move-IF9eRakj.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>C(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>C(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([71,72])))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>C(()=>import("./nextflow-groovy-vE_lwT2v.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>C(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26])))},{id:"nim",name:"Nim",import:(()=>C(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>C(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>C(()=>import("./nushell-Cz2AlsmD.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>C(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>C(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>C(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>C(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>C(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>C(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>C(()=>import("./perl-NvoQZIq0.js"),__vite__mapDeps([64,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>C(()=>import("./php-R6g_5hLQ.js"),__vite__mapDeps([75,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>C(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>C(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>C(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>C(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>C(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>C(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>C(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>C(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>C(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>C(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>C(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([76,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>C(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>C(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>C(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>C(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([77,2])))},{id:"qmldir",name:"QML Directory",import:(()=>C(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>C(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>C(()=>import("./r-Dspwwk_N.js"),[]))},{id:"racket",name:"Racket",import:(()=>C(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>C(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>C(()=>import("./razor-BDqjjVU7.js"),__vite__mapDeps([78,1,2,3,79])))},{id:"reg",name:"Windows Registry Script",import:(()=>C(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>C(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>C(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>C(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>C(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>C(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>C(()=>import("./rst-CRjBmOyv.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>C(()=>import("./ruby-Wjq7vjNf.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>C(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>C(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([82,16])))},{id:"sass",name:"Sass",import:(()=>C(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>C(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>C(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>C(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>C(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>C(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([83,84])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>C(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>C(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([85,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>C(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>C(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>C(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([86,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>C(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([87,88])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>C(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>C(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>C(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>C(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([89,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>C(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>C(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([90,2])))},{id:"svelte",name:"Svelte",import:(()=>C(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([91,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>C(()=>import("./swift-D82vCrfD.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>C(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>C(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>C(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>C(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>C(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>C(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([92,93,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>C(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>C(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([66,62])))},{id:"toml",name:"TOML",import:(()=>C(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>C(()=>import("./ts-tags-DQrlYJgV.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>C(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>C(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>C(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>C(()=>import("./twig-xg9kU7Mw.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>C(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>C(()=>import("./typespec-CAFt9gP4.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>C(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>C(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>C(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>C(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>C(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>C(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>C(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>C(()=>import("./vue-D2xRrEX4.js"),__vite__mapDeps([96,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>C(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([97,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>C(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([98,3,5,69,99,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>C(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>C(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>C(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>C(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>C(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>C(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>C(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>C(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>C(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([100,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>C(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>C(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>C(()=>import("./zig-VOosw3JB.js"),[]))}],gd=Object.fromEntries(Kc.map(e=>[e.id,e.import])),vd=Object.fromEntries(Kc.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(r=>[r,e.import]))||[]})),yd={...gd,...vd},Sd=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>C(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>C(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>C(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>C(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>C(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>C(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>C(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>C(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>C(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>C(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>C(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>C(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>C(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>C(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>C(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>C(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>C(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>C(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>C(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>C(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>C(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>C(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>C(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>C(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>C(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>C(()=>import("./horizon-bright-CUuTKBJd.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>C(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>C(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>C(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>C(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>C(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>C(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>C(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>C(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>C(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>C(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>C(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>C(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>C(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>C(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>C(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>C(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>C(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>C(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>C(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>C(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>C(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>C(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>C(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>C(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>C(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>C(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>C(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>C(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>C(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>C(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>C(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>C(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>C(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>C(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>C(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>C(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],bd=Object.fromEntries(Sd.map(e=>[e.id,e.import]));var wd=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function z7(){return 2147483648}function H7(){return typeof performance<"u"?performance.now():Date.now()}const V7=(e,t)=>e+(t-e%t)%t;async function P7(e){let t,r;const n={};function l(b){r=b,n.HEAPU8=new Uint8Array(b),n.HEAPU32=new Uint32Array(b)}function o(b,S,x){n.HEAPU8.copyWithin(b,S,S+x)}function u(b){try{return t.grow(b-r.byteLength+65535>>>16),l(t.buffer),1}catch{}}function f(b){const S=n.HEAPU8.length;b=b>>>0;const x=z7();if(b>x)return!1;for(let T=1;T<=4;T*=2){let M=S*(1+.2/T);M=Math.min(M,b+100663296);const z=Math.min(x,V7(Math.max(b,M),65536));if(u(z))return!0}return!1}const p=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(b,S,x=1024){const T=S+x;let M=S;for(;b[M]&&!(M>=T);)++M;if(M-S>16&&b.buffer&&p)return p.decode(b.subarray(S,M));let z="";for(;S<M;){let O=b[S++];if(!(O&128)){z+=String.fromCharCode(O);continue}const P=b[S++]&63;if((O&224)===192){z+=String.fromCharCode((O&31)<<6|P);continue}const W=b[S++]&63;if((O&240)===224?O=(O&15)<<12|P<<6|W:O=(O&7)<<18|P<<12|W<<6|b[S++]&63,O<65536)z+=String.fromCharCode(O);else{const X=O-65536;z+=String.fromCharCode(55296|X>>10,56320|X&1023)}}return z}function v(b,S){return b?d(n.HEAPU8,b,S):""}const m={emscripten_get_now:H7,emscripten_memcpy_big:o,emscripten_resize_heap:f,fd_write:()=>0};async function y(){const S=await e({env:m,wasi_snapshot_preview1:m});t=S.memory,l(t.buffer),Object.assign(n,S),n.UTF8ToString=v}return await y(),n}var G7=Object.defineProperty,I7=(e,t,r)=>t in e?G7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t,r)=>I7(e,typeof t!="symbol"?t+"":t,r);let Bt=null;function U7(e){throw new wd(e.UTF8ToString(e.getLastOnigError()))}class Xc{constructor(t){Rt(this,"utf16Length"),Rt(this,"utf8Length"),Rt(this,"utf16Value"),Rt(this,"utf8Value"),Rt(this,"utf16OffsetToUtf8"),Rt(this,"utf8OffsetToUtf16");const r=t.length,n=Xc._utf8ByteLength(t),l=n!==r,o=l?new Uint32Array(r+1):null;l&&(o[r]=n);const u=l?new Uint32Array(n+1):null;l&&(u[n]=r);const f=new Uint8Array(n);let p=0;for(let d=0;d<r;d++){const v=t.charCodeAt(d);let m=v,y=!1;if(v>=55296&&v<=56319&&d+1<r){const b=t.charCodeAt(d+1);b>=56320&&b<=57343&&(m=(v-55296<<10)+65536|b-56320,y=!0)}l&&(o[d]=p,y&&(o[d+1]=p),m<=127?u[p+0]=d:m<=2047?(u[p+0]=d,u[p+1]=d):m<=65535?(u[p+0]=d,u[p+1]=d,u[p+2]=d):(u[p+0]=d,u[p+1]=d,u[p+2]=d,u[p+3]=d)),m<=127?f[p++]=m:m<=2047?(f[p++]=192|(m&1984)>>>6,f[p++]=128|(m&63)>>>0):m<=65535?(f[p++]=224|(m&61440)>>>12,f[p++]=128|(m&4032)>>>6,f[p++]=128|(m&63)>>>0):(f[p++]=240|(m&1835008)>>>18,f[p++]=128|(m&258048)>>>12,f[p++]=128|(m&4032)>>>6,f[p++]=128|(m&63)>>>0),y&&d++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=f,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=u}static _utf8ByteLength(t){let r=0;for(let n=0,l=t.length;n<l;n++){const o=t.charCodeAt(n);let u=o,f=!1;if(o>=55296&&o<=56319&&n+1<l){const p=t.charCodeAt(n+1);p>=56320&&p<=57343&&(u=(o-55296<<10)+65536|p-56320,f=!0)}u<=127?r+=1:u<=2047?r+=2:u<=65535?r+=3:r+=4,f&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const Qc=class rr{constructor(t){if(Rt(this,"id",++rr.LAST_ID),Rt(this,"_onigBinding"),Rt(this,"content"),Rt(this,"utf16Length"),Rt(this,"utf8Length"),Rt(this,"utf16OffsetToUtf8"),Rt(this,"utf8OffsetToUtf16"),Rt(this,"ptr"),!Bt)throw new wd("Must invoke loadWasm first.");this._onigBinding=Bt,this.content=t;const r=new Xc(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!rr._sharedPtrInUse?(rr._sharedPtr||(rr._sharedPtr=Bt.omalloc(1e4)),rr._sharedPtrInUse=!0,Bt.HEAPU8.set(r.utf8Value,rr._sharedPtr),this.ptr=rr._sharedPtr):this.ptr=r.createString(Bt)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===rr._sharedPtr?rr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Rt(Qc,"LAST_ID",0);Rt(Qc,"_sharedPtr",0);Rt(Qc,"_sharedPtrInUse",!1);let cg=Qc;class j7{constructor(t){if(Rt(this,"_onigBinding"),Rt(this,"_ptr"),!Bt)throw new wd("Must invoke loadWasm first.");const r=[],n=[];for(let f=0,p=t.length;f<p;f++){const d=new Xc(t[f]);r[f]=d.createString(Bt),n[f]=d.utf8Length}const l=Bt.omalloc(4*t.length);Bt.HEAPU32.set(r,l/4);const o=Bt.omalloc(4*t.length);Bt.HEAPU32.set(n,o/4);const u=Bt.createOnigScanner(l,o,t.length);for(let f=0,p=t.length;f<p;f++)Bt.ofree(r[f]);Bt.ofree(o),Bt.ofree(l),u===0&&U7(Bt),this._onigBinding=Bt,this._ptr=u}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let l=0;if(typeof n=="number"&&(l=n),typeof t=="string"){t=new cg(t);const o=this._findNextMatchSync(t,r,!1,l);return t.dispose(),o}return this._findNextMatchSync(t,r,!1,l)}_findNextMatchSync(t,r,n,l){const o=this._onigBinding,u=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),l);if(u===0)return null;const f=o.HEAPU32;let p=u/4;const d=f[p++],v=f[p++],m=[];for(let y=0;y<v;y++){const b=t.convertUtf8OffsetToUtf16(f[p++]),S=t.convertUtf8OffsetToUtf16(f[p++]);m[y]={start:b,end:S,length:S-b}}return{index:d,captureIndices:m}}}function q7(e){return typeof e.instantiator=="function"}function $7(e){return typeof e.default=="function"}function Z7(e){return typeof e.data<"u"}function W7(e){return typeof Response<"u"&&e instanceof Response}function F7(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let lc;function Cd(e){if(lc)return lc;async function t(){Bt=await P7(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),q7(n)?n=await n.instantiator(r):$7(n)?n=await n.default(r):(Z7(n)&&(n=n.data),W7(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Y7(n)(r):n=await K7(n)(r):F7(n)?n=await N1(n)(r):n instanceof WebAssembly.Module?n=await N1(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await N1(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return lc=t(),lc}function N1(e){return t=>WebAssembly.instantiate(e,t)}function Y7(e){return t=>WebAssembly.instantiateStreaming(e,t)}function K7(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}let ug;function X7(e){ug=e}function Q7(){return ug}async function hg(e){return e&&await Cd(e),{createScanner(t){return new j7(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new cg(t)}}}const J7=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:hg,getDefaultWasmLoader:Q7,loadWasm:Cd,setDefaultWasmLoader:X7},Symbol.toStringTag,{value:"Module"}));var fg=md({});og(fg,J7);var et=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function e8(e){return Ed(e)}function Ed(e){return Array.isArray(e)?t8(e):e instanceof RegExp?e:typeof e=="object"?i8(e):e}function t8(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=Ed(e[r]);return t}function i8(e){let t={};for(let r in e)t[r]=Ed(e[r]);return t}function dg(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function pg(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?pg(e.substring(0,e.length-1)):e.substr(~t+1)}var B1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,oc=class{static hasCaptures(e){return e===null?!1:(B1.lastIndex=0,B1.test(e))}static replaceCaptures(e,t,r){return e.replace(B1,(n,l,o,u)=>{let f=r[parseInt(l||o,10)];if(f){let p=t.substring(f.start,f.end);for(;p[0]===".";)p=p.substring(1);switch(u){case"downcase":return p.toLowerCase();case"upcase":return p.toUpperCase();default:return p}}else return n})}};function _g(e,t){return e<t?-1:e>t?1:0}function mg(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let l=0;l<r;l++){let o=_g(e[l],t[l]);if(o!==0)return o}return 0}return r-n}function fm(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function gg(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var vg=class{constructor(e){Y(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Oc=class{constructor(e,t,r){Y(this,"_cachedMatchRoot",new vg(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(n8(e),t)}static createFromParsedTheme(e,t){return l8(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(l=>r8(e.parent,l.parentScopes));return n?new yg(n.fontStyle,n.foreground,n.background):null}},z1=class bc{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new bc(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new bc(r,t[n]);return r}push(t){return new bc(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function r8(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],l=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],l=!0}for(;e&&!s8(e.scopeName,n);){if(l)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function s8(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var yg=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function n8(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let l=0,o=t.length;l<o;l++){let u=t[l];if(!u.settings)continue;let f;if(typeof u.scope=="string"){let m=u.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),f=m.split(",")}else Array.isArray(u.scope)?f=u.scope:f=[""];let p=-1;if(typeof u.settings.fontStyle=="string"){p=0;let m=u.settings.fontStyle.split(" ");for(let y=0,b=m.length;y<b;y++)switch(m[y]){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 d=null;typeof u.settings.foreground=="string"&&fm(u.settings.foreground)&&(d=u.settings.foreground);let v=null;typeof u.settings.background=="string"&&fm(u.settings.background)&&(v=u.settings.background);for(let m=0,y=f.length;m<y;m++){let S=f[m].trim().split(" "),x=S[S.length-1],T=null;S.length>1&&(T=S.slice(0,S.length-1),T.reverse()),r[n++]=new a8(x,T,l,p,d,v)}}return r}var a8=class{constructor(e,t,r,n,l,o){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=l,this.background=o}},Qt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Qt||{});function l8(e,t){e.sort((p,d)=>{let v=_g(p.scope,d.scope);return v!==0||(v=mg(p.parentScopes,d.parentScopes),v!==0)?v:p.index-d.index});let r=0,n="#000000",l="#ffffff";for(;e.length>=1&&e[0].scope==="";){let p=e.shift();p.fontStyle!==-1&&(r=p.fontStyle),p.foreground!==null&&(n=p.foreground),p.background!==null&&(l=p.background)}let o=new o8(t),u=new yg(r,o.getId(n),o.getId(l)),f=new u8(new df(0,null,-1,0,0),[]);for(let p=0,d=e.length;p<d;p++){let v=e[p];f.insert(0,v.scope,v.parentScopes,v.fontStyle,o.getId(v.foreground),o.getId(v.background))}return new Oc(o,u,f)}var o8=class{constructor(e){Y(this,"_isFrozen");Y(this,"_lastColorId");Y(this,"_id2color");Y(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},c8=Object.freeze([]),df=class Sg{constructor(t,r,n,l,o){Y(this,"scopeDepth");Y(this,"parentScopes");Y(this,"fontStyle");Y(this,"foreground");Y(this,"background");this.scopeDepth=t,this.parentScopes=r||c8,this.fontStyle=n,this.foreground=l,this.background=o}clone(){return new Sg(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,l=t.length;n<l;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,l){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),l!==0&&(this.background=l)}},u8=class pf{constructor(t,r=[],n={}){Y(this,"_rulesWithParentScopes");this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,l=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[l]===">"&&l++,!(n>=t.parentScopes.length||l>=r.parentScopes.length);){const o=r.parentScopes[l].length-t.parentScopes[n].length;if(o!==0)return o;n++,l++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),l,o;if(n===-1?(l=t,o=""):(l=t.substring(0,n),o=t.substring(n+1)),this._children.hasOwnProperty(l))return this._children[l].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(pf._cmpBySpecificity),r}insert(t,r,n,l,o,u){if(r===""){this._doInsertHere(t,n,l,o,u);return}let f=r.indexOf("."),p,d;f===-1?(p=r,d=""):(p=r.substring(0,f),d=r.substring(f+1));let v;this._children.hasOwnProperty(p)?v=this._children[p]:(v=new pf(this._mainRule.clone(),df.cloneArr(this._rulesWithParentScopes)),this._children[p]=v),v.insert(t+1,d,n,l,o,u)}_doInsertHere(t,r,n,l,o){if(r===null){this._mainRule.acceptOverwrite(t,n,l,o);return}for(let u=0,f=this._rulesWithParentScopes.length;u<f;u++){let p=this._rulesWithParentScopes[u];if(mg(p.parentScopes,r)===0){p.acceptOverwrite(t,n,l,o);return}}n===-1&&(n=this._mainRule.fontStyle),l===0&&(l=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new df(t,r,n,l,o))}},ia=class Vi{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=Vi.getLanguageId(t),n=Vi.getTokenType(t),l=Vi.getFontStyle(t),o=Vi.getForeground(t),u=Vi.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:l,foreground:o,background:u})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,l,o,u,f){let p=Vi.getLanguageId(t),d=Vi.getTokenType(t),v=Vi.containsBalancedBrackets(t)?1:0,m=Vi.getFontStyle(t),y=Vi.getForeground(t),b=Vi.getBackground(t);return r!==0&&(p=r),n!==8&&(d=n),l!==null&&(v=l?1:0),o!==-1&&(m=o),u!==0&&(y=u),f!==0&&(b=f),(p<<0|d<<8|v<<10|m<<11|y<<15|b<<24)>>>0}};function Nc(e,t){const r=[],n=h8(e);let l=n.next();for(;l!==null;){let p=0;if(l.length===2&&l.charAt(1)===":"){switch(l.charAt(0)){case"R":p=1;break;case"L":p=-1;break;default:console.log(`Unknown priority ${l} in scope selector`)}l=n.next()}let d=u();if(r.push({matcher:d,priority:p}),l!==",")break;l=n.next()}return r;function o(){if(l==="-"){l=n.next();const p=o();return d=>!!p&&!p(d)}if(l==="("){l=n.next();const p=f();return l===")"&&(l=n.next()),p}if(dm(l)){const p=[];do p.push(l),l=n.next();while(dm(l));return d=>t(p,d)}return null}function u(){const p=[];let d=o();for(;d;)p.push(d),d=o();return v=>p.every(m=>m(v))}function f(){const p=[];let d=u();for(;d&&(p.push(d),l==="|"||l===",");){do l=n.next();while(l==="|"||l===",");d=u()}return v=>p.some(m=>m(v))}}function dm(e){return!!e&&!!e.match(/[\w\.:]+/)}function h8(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function bg(e){typeof e.dispose=="function"&&e.dispose()}var El=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},f8=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},d8=class{constructor(){Y(this,"_references",[]);Y(this,"_seenReferenceKeys",new Set);Y(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},p8=class{constructor(e,t){Y(this,"seenFullScopeRequests",new Set);Y(this,"seenPartialScopeRequests",new Set);Y(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new El(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new d8;for(const r of e)_8(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof El){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 _8(e,t,r,n){const l=r.lookup(e.scopeName);if(!l){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=r.lookup(t);e instanceof El?wc({baseGrammar:o,selfGrammar:l},n):_f(e.ruleName,{baseGrammar:o,selfGrammar:l,repository:l.repository},n);const u=r.injections(e.scopeName);if(u)for(const f of u)n.add(new El(f))}function _f(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];Bc([n],t,r)}}function wc(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Bc(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Bc(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Bc(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const l=n.repository?dg({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&Bc(n.patterns,{...t,repository:l},r);const o=n.include;if(!o)continue;const u=wg(o);switch(u.kind){case 0:wc({...t,selfGrammar:t.baseGrammar},r);break;case 1:wc(t,r);break;case 2:_f(u.ruleName,{...t,repository:l},r);break;case 3:case 4:const f=u.scopeName===t.selfGrammar.scopeName?t.selfGrammar:u.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(f){const p={baseGrammar:t.baseGrammar,selfGrammar:f,repository:l};u.kind===4?_f(u.ruleName,p,r):wc(p,r)}else u.kind===4?r.add(new f8(u.scopeName,u.ruleName)):r.add(new El(u.scopeName));break}}}var m8=class{constructor(){Y(this,"kind",0)}},g8=class{constructor(){Y(this,"kind",1)}},v8=class{constructor(e){Y(this,"kind",2);this.ruleName=e}},y8=class{constructor(e){Y(this,"kind",3);this.scopeName=e}},S8=class{constructor(e,t){Y(this,"kind",4);this.scopeName=e,this.ruleName=t}};function wg(e){if(e==="$base")return new m8;if(e==="$self")return new g8;const t=e.indexOf("#");if(t===-1)return new y8(e);if(t===0)return new v8(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new S8(r,n)}}var b8=/\\(\d+)/,pm=/\\(\d+)/g,w8=-1,Cg=-2;var Ol=class{constructor(e,t,r,n){Y(this,"$location");Y(this,"id");Y(this,"_nameIsCapturing");Y(this,"_name");Y(this,"_contentNameIsCapturing");Y(this,"_contentName");this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=oc.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=oc.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${pg(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:oc.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:oc.replaceCaptures(this._contentName,e,t)}},C8=class extends Ol{constructor(t,r,n,l,o){super(t,r,n,l);Y(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,n,l){throw new Error("Not supported!")}},E8=class extends Ol{constructor(t,r,n,l,o){super(t,r,n,null);Y(this,"_match");Y(this,"captures");Y(this,"_cachedCompiledPatterns");this._match=new xl(l,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,l){return this._getCachedCompiledPatterns(t).compileAG(t,n,l)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Al,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},_m=class extends Ol{constructor(t,r,n,l,o){super(t,r,n,l);Y(this,"hasMissingPatterns");Y(this,"patterns");Y(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const n of this.patterns)t.getRule(n).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,l){return this._getCachedCompiledPatterns(t).compileAG(t,n,l)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Al,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},mf=class extends Ol{constructor(t,r,n,l,o,u,f,p,d,v){super(t,r,n,l);Y(this,"_begin");Y(this,"beginCaptures");Y(this,"_end");Y(this,"endHasBackReferences");Y(this,"endCaptures");Y(this,"applyEndPatternLast");Y(this,"hasMissingPatterns");Y(this,"patterns");Y(this,"_cachedCompiledPatterns");this._begin=new xl(o,this.id),this.beginCaptures=u,this._end=new xl(f||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=p,this.applyEndPatternLast=d||!1,this.patterns=v.patterns,this.hasMissingPatterns=v.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(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,n,l){return this._getCachedCompiledPatterns(t,r).compileAG(t,n,l)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Al;for(const n of this.patterns)t.getRule(n).collectPatterns(t,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}},zc=class extends Ol{constructor(t,r,n,l,o,u,f,p,d){super(t,r,n,l);Y(this,"_begin");Y(this,"beginCaptures");Y(this,"whileCaptures");Y(this,"_while");Y(this,"whileHasBackReferences");Y(this,"hasMissingPatterns");Y(this,"patterns");Y(this,"_cachedCompiledPatterns");Y(this,"_cachedCompiledWhilePatterns");this._begin=new xl(o,this.id),this.beginCaptures=u,this.whileCaptures=p,this._while=new xl(f,Cg),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.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(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,l){return this._getCachedCompiledPatterns(t).compileAG(t,n,l)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Al;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,n,l){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,n,l)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Al,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},Eg=class Kt{static createCaptureRule(t,r,n,l,o){return t.registerRule(u=>new C8(r,u,n,l,o))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(l=>{if(t.id=l,t.match)return new E8(t.$vscodeTextmateLocation,t.id,t.name,t.match,Kt._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=dg({},n,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new _m(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Kt._compilePatterns(o,r,n))}return t.while?new zc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kt._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,Kt._compileCaptures(t.whileCaptures||t.captures,r,n),Kt._compilePatterns(t.patterns,r,n)):new mf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kt._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,Kt._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,Kt._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let l=[];if(t){let o=0;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);f>o&&(o=f)}for(let u=0;u<=o;u++)l[u]=null;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);let p=0;t[u].patterns&&(p=Kt.getCompiledRuleId(t[u],r,n)),l[f]=Kt.createCaptureRule(r,t[u].$vscodeTextmateLocation,t[u].name,t[u].contentName,p)}}return l}static _compilePatterns(t,r,n){let l=[];if(t)for(let o=0,u=t.length;o<u;o++){const f=t[o];let p=-1;if(f.include){const d=wg(f.include);switch(d.kind){case 0:case 1:p=Kt.getCompiledRuleId(n[f.include],r,n);break;case 2:let v=n[d.ruleName];v&&(p=Kt.getCompiledRuleId(v,r,n));break;case 3:case 4:const m=d.scopeName,y=d.kind===4?d.ruleName:null,b=r.getExternalGrammar(m,n);if(b)if(y){let S=b.repository[y];S&&(p=Kt.getCompiledRuleId(S,r,b.repository))}else p=Kt.getCompiledRuleId(b.repository.$self,r,b.repository);break}}else p=Kt.getCompiledRuleId(f,r,n);if(p!==-1){const d=r.getRule(p);let v=!1;if((d instanceof _m||d instanceof mf||d instanceof zc)&&d.hasMissingPatterns&&d.patterns.length===0&&(v=!0),v)continue;l.push(p)}}return{patterns:l,hasMissingPatterns:(t?t.length:0)!==l.length}}},xl=class xg{constructor(t,r){Y(this,"source");Y(this,"ruleId");Y(this,"hasAnchor");Y(this,"hasBackReferences");Y(this,"_anchorCache");if(t&&typeof t=="string"){const n=t.length;let l=0,o=[],u=!1;for(let f=0;f<n;f++)if(t.charAt(f)==="\\"&&f+1<n){const d=t.charAt(f+1);d==="z"?(o.push(t.substring(l,f)),o.push("$(?!\\n)(?<!\\n)"),l=f+2):(d==="A"||d==="G")&&(u=!0),f++}this.hasAnchor=u,l===0?this.source=t:(o.push(t.substring(l,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=b8.test(this.source):this.hasBackReferences=!1}clone(){return new xg(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(l=>t.substring(l.start,l.end));return pm.lastIndex=0,this.source.replace(pm,(l,o)=>gg(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],l=[],o,u,f,p;for(o=0,u=this.source.length;o<u;o++)f=this.source.charAt(o),t[o]=f,r[o]=f,n[o]=f,l[o]=f,f==="\\"&&o+1<u&&(p=this.source.charAt(o+1),p==="A"?(t[o+1]="￿",r[o+1]="￿",n[o+1]="A",l[o+1]="A"):p==="G"?(t[o+1]="￿",r[o+1]="G",n[o+1]="￿",l[o+1]="G"):(t[o+1]=p,r[o+1]=p,n[o+1]=p,l[o+1]=p),o++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:l.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Al=class{constructor(){Y(this,"_items");Y(this,"_hasAnchors");Y(this,"_cached");Y(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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new mm(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(l=>l.resolveAnchors(t,r));return new mm(e,n,this._items.map(l=>l.ruleId))}},mm=class{constructor(e,t,r){Y(this,"scanner");this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
51
+ `)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},H1=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Mr,x8=(Mr=class{constructor(t,r){Y(this,"_defaultAttributes");Y(this,"_embeddedLanguagesMatcher");Y(this,"_getBasicScopeAttributes",new vg(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new H1(r,n)}));this._defaultAttributes=new H1(t,8),this._embeddedLanguagesMatcher=new A8(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Mr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match(Mr.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!")}},Y(Mr,"_NULL_SCOPE_METADATA",new H1(0,0)),Y(Mr,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Mr),A8=class{constructor(e){Y(this,"values");Y(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>gg(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},gm=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Ag(e,t,r,n,l,o,u,f){const p=t.content.length;let d=!1,v=-1;if(u){const b=k8(e,t,r,n,l,o);l=b.stack,n=b.linePos,r=b.isFirstLine,v=b.anchorPosition}const m=Date.now();for(;!d;){if(f!==0&&Date.now()-m>f)return new gm(l,!0);y()}return new gm(l,!1);function y(){const b=T8(e,t,r,n,l,v);if(!b){o.produce(l,p),d=!0;return}const S=b.captureIndices,x=b.matchedRuleId,T=S&&S.length>0?S[0].end>n:!1;if(x===w8){const M=l.getRule(e);o.produce(l,S[0].start),l=l.withContentNameScopesList(l.nameScopesList),_l(e,t,r,l,o,M.endCaptures,S),o.produce(l,S[0].end);const z=l;if(l=l.parent,v=z.getAnchorPos(),!T&&z.getEnterPos()===n){l=z,o.produce(l,p),d=!0;return}}else{const M=e.getRule(x);o.produce(l,S[0].start);const z=l,O=M.getName(t.content,S),P=l.contentNameScopesList.pushAttributed(O,e);if(l=l.push(x,n,v,S[0].end===p,null,P,P),M instanceof mf){const W=M;_l(e,t,r,l,o,W.beginCaptures,S),o.produce(l,S[0].end),v=S[0].end;const X=W.getContentName(t.content,S),ne=P.pushAttributed(X,e);if(l=l.withContentNameScopesList(ne),W.endHasBackReferences&&(l=l.withEndRule(W.getEndWithResolvedBackReferences(t.content,S))),!T&&z.hasSameRuleAs(l)){l=l.pop(),o.produce(l,p),d=!0;return}}else if(M instanceof zc){const W=M;_l(e,t,r,l,o,W.beginCaptures,S),o.produce(l,S[0].end),v=S[0].end;const X=W.getContentName(t.content,S),ne=P.pushAttributed(X,e);if(l=l.withContentNameScopesList(ne),W.whileHasBackReferences&&(l=l.withEndRule(W.getWhileWithResolvedBackReferences(t.content,S))),!T&&z.hasSameRuleAs(l)){l=l.pop(),o.produce(l,p),d=!0;return}}else if(_l(e,t,r,l,o,M.captures,S),o.produce(l,S[0].end),l=l.pop(),!T){l=l.safePop(),o.produce(l,p),d=!0;return}}S[0].end>n&&(n=S[0].end,r=!1)}}function k8(e,t,r,n,l,o){let u=l.beginRuleCapturedEOL?0:-1;const f=[];for(let p=l;p;p=p.pop()){const d=p.getRule(e);d instanceof zc&&f.push({rule:d,stack:p})}for(let p=f.pop();p;p=f.pop()){const{ruleScanner:d,findOptions:v}=M8(p.rule,e,p.stack.endRule,r,n===u),m=d.findNextMatchSync(t,n,v);if(m){if(m.ruleId!==Cg){l=p.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(p.stack,m.captureIndices[0].start),_l(e,t,r,p.stack,o,p.rule.whileCaptures,m.captureIndices),o.produce(p.stack,m.captureIndices[0].end),u=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,r=!1))}else{l=p.stack.pop();break}}return{stack:l,linePos:n,anchorPosition:u,isFirstLine:r}}function T8(e,t,r,n,l,o){const u=R8(e,t,r,n,l,o),f=e.getInjections();if(f.length===0)return u;const p=L8(f,e,t,r,n,l,o);if(!p)return u;if(!u)return p;const d=u.captureIndices[0].start,v=p.captureIndices[0].start;return v<d||p.priorityMatch&&v===d?p:u}function R8(e,t,r,n,l,o){const u=l.getRule(e),{ruleScanner:f,findOptions:p}=kg(u,e,l.endRule,r,n===o),d=f.findNextMatchSync(t,n,p);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function L8(e,t,r,n,l,o,u){let f=Number.MAX_VALUE,p=null,d,v=0;const m=o.contentNameScopesList.getScopeNames();for(let y=0,b=e.length;y<b;y++){const S=e[y];if(!S.matcher(m))continue;const x=t.getRule(S.ruleId),{ruleScanner:T,findOptions:M}=kg(x,t,null,n,l===u),z=T.findNextMatchSync(r,l,M);if(!z)continue;const O=z.captureIndices[0].start;if(!(O>=f)&&(f=O,p=z.captureIndices,d=z.ruleId,v=S.priority,f===l))break}return p?{priorityMatch:v===-1,captureIndices:p,matchedRuleId:d}:null}function kg(e,t,r,n,l){return{ruleScanner:e.compileAG(t,r,n,l),findOptions:0}}function M8(e,t,r,n,l){return{ruleScanner:e.compileWhileAG(t,r,n,l),findOptions:0}}function _l(e,t,r,n,l,o,u){if(o.length===0)return;const f=t.content,p=Math.min(o.length,u.length),d=[],v=u[0].end;for(let m=0;m<p;m++){const y=o[m];if(y===null)continue;const b=u[m];if(b.length===0)continue;if(b.start>v)break;for(;d.length>0&&d[d.length-1].endPos<=b.start;)l.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?l.produceFromScopes(d[d.length-1].scopes,b.start):l.produce(n,b.start),y.retokenizeCapturedWithRuleId){const x=y.getName(f,u),T=n.contentNameScopesList.pushAttributed(x,e),M=y.getContentName(f,u),z=T.pushAttributed(M,e),O=n.push(y.retokenizeCapturedWithRuleId,b.start,-1,!1,null,T,z),P=e.createOnigString(f.substring(0,b.end));Ag(e,P,r&&b.start===0,b.start,O,l,!1,0),bg(P);continue}const S=y.getName(f,u);if(S!==null){const T=(d.length>0?d[d.length-1].scopes:n.contentNameScopesList).pushAttributed(S,e);d.push(new D8(T,b.end))}}for(;d.length>0;)l.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var D8=class{constructor(e,t){Y(this,"scopes");Y(this,"endPos");this.scopes=e,this.endPos=t}};function O8(e,t,r,n,l,o,u,f){return new B8(e,t,r,n,l,o,u,f)}function vm(e,t,r,n,l){const o=Nc(t,Hc),u=Eg.getCompiledRuleId(r,n,l.repository);for(const f of o)e.push({debugSelector:t,matcher:f.matcher,ruleId:u,grammar:l,priority:f.priority})}function Hc(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let l=r;l<t.length;l++)if(N8(t[l],n))return r=l+1,!0;return!1})}function N8(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var B8=class{constructor(e,t,r,n,l,o,u,f){Y(this,"_rootId");Y(this,"_lastRuleId");Y(this,"_ruleId2desc");Y(this,"_includedGrammars");Y(this,"_grammarRepository");Y(this,"_grammar");Y(this,"_injections");Y(this,"_basicScopeAttributesProvider");Y(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=f,this._basicScopeAttributesProvider=new x8(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=u,this._grammar=ym(t,null),this._injections=null,this._tokenTypeMatchers=[],l)for(const p of Object.keys(l)){const d=Nc(p,Hc);for(const v of d)this._tokenTypeMatchers.push({matcher:v.matcher,type:l[p]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:l=>l===this._rootScopeName?this._grammar:this.getExternalGrammar(l),injections:l=>this._grammarRepository.injections(l)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const l=n.injections;if(l)for(let u in l)vm(t,u,l[u],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(u=>{const f=this.getExternalGrammar(u);if(f){const p=f.injectionSelector;p&&vm(t,p,f,this,f)}})}return t.sort((l,o)=>l.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=ym(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=Eg.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let l;if(!t||t===gf.NULL){l=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),v=this.themeProvider.getDefaults(),m=ia.set(0,d.languageId,d.tokenType,null,v.fontStyle,v.foregroundId,v.backgroundId),y=this.getRule(this._rootId).getName(null,null);let b;y?b=bl.createRootAndLookUpScopeName(y,m,this):b=bl.createRoot("unknown",m),t=new gf(null,this._rootId,-1,-1,!1,null,b,b)}else l=!1,t.reset();e=e+`
52
+ `;const o=this.createOnigString(e),u=o.content.length,f=new H8(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),p=Ag(this,o,l,0,t,f,!0,n);return bg(o),{lineLength:u,lineTokens:f,ruleStack:p.stack,stoppedEarly:p.stoppedEarly}}};function ym(e,t){return e=e8(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var bl=class sr{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,l=(t==null?void 0:t.scopePath)??null;for(const o of r)l=z1.push(l,o.scopeNames),n=new sr(n,l,o.encodedTokenAttributes);return n}static createRoot(t,r){return new sr(null,new z1(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const l=n.getMetadataForScope(t),o=new z1(null,t),u=n.themeProvider.themeMatch(o),f=sr.mergeAttributes(r,l,u);return new sr(null,o,f)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return sr.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let l=-1,o=0,u=0;return n!==null&&(l=n.fontStyle,o=n.foregroundId,u=n.backgroundId),ia.set(t,r.languageId,r.tokenType,null,l,o,u)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return sr._pushAttributed(this,t,r);const n=t.split(/ /g);let l=this;for(const o of n)l=sr._pushAttributed(l,o,r);return l}static _pushAttributed(t,r,n){const l=n.getMetadataForScope(r),o=t.scopePath.push(r),u=n.themeProvider.themeMatch(o),f=sr.mergeAttributes(t.tokenAttributes,l,u);return new sr(t,o,f)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var l;const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((l=n.parent)==null?void 0:l.scopePath)??null)}),n=n.parent;return n===t?r.reverse():void 0}},Ii,gf=(Ii=class{constructor(t,r,n,l,o,u,f,p){Y(this,"_stackElementBrand");Y(this,"_enterPos");Y(this,"_anchorPos");Y(this,"depth");this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=u,this.nameScopesList=f,this.contentNameScopesList=p,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=l}equals(t){return t===null?!1:Ii._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?bl.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Ii._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,l,o,u,f){return new Ii(this,t,r,n,l,o,u,f)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){var n,l;return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(l=this.contentNameScopesList)==null?void 0:l.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Ii(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var t,r,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,r){const n=bl.fromExtension((t==null?void 0:t.nameScopesList)??null,r.nameScopesList);return new Ii(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,bl.fromExtension(n,r.contentNameScopesList))}},Y(Ii,"NULL",new Ii(null,0,0,0,!1,null,null,null)),Ii),z8=class{constructor(e,t){Y(this,"balancedBracketScopes");Y(this,"unbalancedBracketScopes");Y(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Nc(r,Hc).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>Nc(r,Hc).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},H8=class{constructor(e,t,r,n){Y(this,"_emitBinaryTokens");Y(this,"_lineText");Y(this,"_tokens");Y(this,"_binaryTokens");Y(this,"_lastTokenEndIndex");Y(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let l=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const u=(e==null?void 0:e.getScopeNames())??[];for(const f of this._tokenTypeOverrides)f.matcher(u)&&(l=ia.set(l,0,f.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(u))}if(o&&(l=ia.set(l,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===l){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(l),this._lastTokenEndIndex=t;return}const r=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,l=this._binaryTokens.length;n<l;n++)r[n]=this._binaryTokens[n];return r}},V8=class{constructor(e,t){Y(this,"_grammars",new Map);Y(this,"_rawGrammars",new Map);Y(this,"_injectionGrammars",new Map);Y(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,l){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,O8(e,o,t,r,n,l,this,this._onigLib))}return this._grammars.get(e)}},P8=class{constructor(t){Y(this,"_options");Y(this,"_syncRegistry");Y(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new V8(Oc.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(Oc.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,n){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,r,n){return this._loadGrammar(t,r,n.embeddedLanguages,n.tokenTypes,new z8(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,n,l,o){const u=new p8(this._syncRegistry,t);for(;u.Q.length>0;)u.Q.map(f=>this._loadSingleGrammar(f.scopeName)),u.processQueue();return this._grammarForScopeName(t,r,n,l,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(t,r=[],n=0,l=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,n,l)}_grammarForScopeName(t,r=0,n=null,l=null,o=null){return this._syncRegistry.grammarForScopeName(t,r,n,l,o)}},vf=gf.NULL;function Vc(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[l,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?r[l]=o:l===n&&Object.assign(r,o);return r}function ys(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function G8(e){return Array.isArray(e)?e:[e]}async function Tg(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Jc(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Rg(e){return e==="ansi"||Jc(e)}function eu(e){return e==="none"}function Lg(e){return eu(e)}function tu(e,t=!1){var o;if(e.length===0)return[["",0]];const r=e.split(/(\r?\n)/g);let n=0;const l=[];for(let u=0;u<r.length;u+=2){const f=t?r[u]+(r[u+1]||""):r[u];l.push([f,n]),n+=r[u].length,n+=((o=r[u+1])==null?void 0:o.length)||0}return l}const Sm={light:"#333333",dark:"#bbbbbb"},bm={light:"#fffffe",dark:"#1e1e1e"},wm="__shiki_resolved";function xd(e){var f,p,d,v,m;if(e!=null&&e[wm])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:r,fg:n}=t;if(!r||!n){const y=t.settings?t.settings.find(b=>!b.name&&!b.scope):void 0;(f=y==null?void 0:y.settings)!=null&&f.foreground&&(n=y.settings.foreground),(p=y==null?void 0:y.settings)!=null&&p.background&&(r=y.settings.background),!n&&((d=t==null?void 0:t.colors)!=null&&d["editor.foreground"])&&(n=t.colors["editor.foreground"]),!r&&((v=t==null?void 0:t.colors)!=null&&v["editor.background"])&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?Sm.light:Sm.dark),r||(r=t.type==="light"?bm.light:bm.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let l=0;const o=new Map;function u(y){var S;if(o.has(y))return o.get(y);l+=1;const b=`#${l.toString(16).padStart(8,"0").toLowerCase()}`;return(S=t.colorReplacements)!=null&&S[`#${b}`]?u(y):(o.set(y,b),b)}t.settings=t.settings.map(y=>{var T,M;const b=((T=y.settings)==null?void 0:T.foreground)&&!y.settings.foreground.startsWith("#"),S=((M=y.settings)==null?void 0:M.background)&&!y.settings.background.startsWith("#");if(!b&&!S)return y;const x={...y,settings:{...y.settings}};if(b){const z=u(y.settings.foreground);t.colorReplacements[z]=y.settings.foreground,x.settings.foreground=z}if(S){const z=u(y.settings.background);t.colorReplacements[z]=y.settings.background,x.settings.background=z}return x});for(const y of Object.keys(t.colors||{}))if((y==="editor.foreground"||y==="editor.background"||y.startsWith("terminal.ansi"))&&!((m=t.colors[y])!=null&&m.startsWith("#"))){const b=u(t.colors[y]);t.colorReplacements[b]=t.colors[y],t.colors[y]=b}return Object.defineProperty(t,wm,{enumerable:!1,writable:!1,value:!0}),t}async function Mg(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Rg(t)).map(async t=>await Tg(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function Dg(e){return(await Promise.all(e.map(async t=>Lg(t)?null:xd(await Tg(t))))).filter(t=>!!t)}function Og(e,t){if(!t)return e;if(t[e]){const r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new et(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var I8=class extends P8{constructor(t,r,n,l={}){super(t);Y(this,"_resolvedThemes",new Map);Y(this,"_resolvedGrammars",new Map);Y(this,"_langMap",new Map);Y(this,"_langGraph",new Map);Y(this,"_textmateThemeCache",new WeakMap);Y(this,"_loadedThemesCache",null);Y(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=r,this._langs=n,this._alias=l,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const r=xd(t);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let r=this._textmateThemeCache.get(t);r||(r=Oc.createFromRawTheme(t),this._textmateThemeCache.set(t,r)),this._syncRegistry.setTheme(r)}getGrammar(t){return t=Og(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){var o,u,f,p;if(this.getGrammar(t.name))return;const r=new Set([...this._langMap.values()].filter(d=>{var v;return(v=d.embeddedLangsLazy)==null?void 0:v.includes(t.name)}));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const l=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(l.name=t.name,this._resolvedGrammars.set(t.name,l),t.aliases&&t.aliases.forEach(d=>{this._alias[d]=t.name}),this._loadedLanguagesCache=null,r.size)for(const d of r)this._resolvedGrammars.delete(d.name),this._loadedLanguagesCache=null,(u=(o=this._syncRegistry)==null?void 0:o._injectionGrammars)==null||u.delete(d.scopeName),(p=(f=this._syncRegistry)==null?void 0:f._grammars)==null||p.delete(d.scopeName),this.loadLanguage(this._langMap.get(d.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const l of t)this.resolveEmbeddedLanguages(l);const r=Array.from(this._langGraph.entries()),n=r.filter(([l,o])=>!o);if(n.length){const l=r.filter(([o,u])=>{var f;return u?(f=u.embeddedLanguages||u.embeddedLangs)==null?void 0:f.some(p=>n.map(([d])=>d).includes(p)):!1}).filter(o=>!n.includes(o));throw new et(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${l.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[l,o]of r)this._resolver.addLanguage(o);for(const[l,o]of r)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const r=t.embeddedLanguages??t.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}},U8=class{constructor(e,t){Y(this,"_langs",new Map);Y(this,"_scopeToLang",new Map);Y(this,"_injections",new Map);Y(this,"_onigLib");this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let r=[];for(let n=1;n<=t.length;n++){const l=t.slice(0,n).join(".");r=[...r,...this._injections.get(l)||[]]}return r}};let ol=0;function j8(e){ol+=1,e.warnings!==!1&&ol>=10&&ol%10===0&&console.warn(`[Shiki] ${ol} 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 t=!1;if(!e.engine)throw new et("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(xd),l=new I8(new U8(e.engine,r),n,r,e.langAlias);let o;function u(z){return Og(z,e.langAlias)}function f(z){T();const O=l.getGrammar(typeof z=="string"?z:z.name);if(!O)throw new et(`Language \`${z}\` not found, you may need to load it first`);return O}function p(z){if(z==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};T();const O=l.getTheme(z);if(!O)throw new et(`Theme \`${z}\` not found, you may need to load it first`);return O}function d(z){T();const O=p(z);return o!==z&&(l.setTheme(O),o=z),{theme:O,colorMap:l.getColorMap()}}function v(){return T(),l.getLoadedThemes()}function m(){return T(),l.getLoadedLanguages()}function y(...z){T(),l.loadLanguages(z.flat(1))}async function b(...z){return y(await Mg(z))}function S(...z){T();for(const O of z.flat(1))l.loadTheme(O)}async function x(...z){return T(),S(await Dg(z))}function T(){if(t)throw new et("Shiki instance has been disposed")}function M(){t||(t=!0,l.dispose(),ol-=1)}return{setTheme:d,getTheme:p,getLanguage:f,getLoadedThemes:v,getLoadedLanguages:m,resolveLangAlias:u,loadLanguage:b,loadLanguageSync:y,loadTheme:x,loadThemeSync:S,dispose:M,[Symbol.dispose]:M}}async function q8(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,r,n]=await Promise.all([Dg(e.themes||[]),Mg(e.langs||[]),e.engine]);return j8({...e,themes:t,langs:r,engine:n})}const Ng=new WeakMap;function iu(e,t){Ng.set(e,t)}function kl(e){return Ng.get(e)}var ru=class Bg{constructor(...t){Y(this,"_stacks",{});Y(this,"lang");if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,l]=t;this.lang=n,this._stacks={[l]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new Bg(Object.fromEntries(G8(r).map(n=>[n,vf])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return $8(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function $8(e){const t=[],r=new Set;function n(l){var u;if(r.has(l))return;r.add(l);const o=(u=l==null?void 0:l.nameScopesList)==null?void 0:u.scopeName;o&&t.push(o),l.parent&&n(l.parent)}return n(e),t}function Z8(e,t){if(!(e instanceof ru))throw new et("Invalid grammar state");return e.getInternalStack(t)}function zg(e,t,r={}){const{theme:n=e.getLoadedThemes()[0]}=r;if(Jc(e.resolveLangAlias(r.lang||"text"))||eu(n))return tu(t).map(f=>[{content:f[0],offset:f[1]}]);const{theme:l,colorMap:o}=e.setTheme(n),u=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==u.name)throw new et(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${u.name}"`);if(!r.grammarState.themes.includes(l.name))throw new et(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${l.name}"`)}return F8(t,u,l,o,r)}function W8(...e){if(e.length===2)return kl(e[1]);const[t,r,n={}]=e,{lang:l="text",theme:o=t.getLoadedThemes()[0]}=n;if(Jc(l)||eu(o))throw new et("Plain language does not have grammar state");if(l==="ansi")throw new et("ANSI language does not have grammar state");const{theme:u,colorMap:f}=t.setTheme(o),p=t.getLanguage(l);return new ru(Ad(r,p,u,f,n).stateStack,p.name,u.name)}function F8(e,t,r,n,l){const o=Ad(e,t,r,n,l),u=new ru(o.stateStack,t.name,r.name);return iu(o.tokens,u),o.tokens}function Ad(e,t,r,n,l){const o=Vc(r,l),{tokenizeMaxLineLength:u=0,tokenizeTimeLimit:f=500}=l,p=tu(e);let d=l.grammarState?Z8(l.grammarState,r.name)??vf:l.grammarContextCode!=null?Ad(l.grammarContextCode,t,r,n,{...l,grammarState:void 0,grammarContextCode:void 0}).stateStack:vf,v=[];const m=[];for(let y=0,b=p.length;y<b;y++){const[S,x]=p[y];if(S===""){v=[],m.push([]);continue}if(u>0&&S.length>=u){v=[],m.push([{content:S,offset:x,color:"",fontStyle:0}]);continue}let T,M,z;l.includeExplanation&&(T=t.tokenizeLine(S,d,f),M=T.tokens,z=0);const O=t.tokenizeLine2(S,d,f),P=O.tokens.length/2;for(let W=0;W<P;W++){const X=O.tokens[2*W],ne=W+1<P?O.tokens[2*W+2]:S.length;if(X===ne)continue;const _e=O.tokens[2*W+1],oe=ys(n[ia.getForeground(_e)],o),Ee=ia.getFontStyle(_e),de={content:S.substring(X,ne),offset:x+X,color:oe,fontStyle:Ee};if(l.includeExplanation){const J=[];if(l.includeExplanation!=="scopeName")for(const K of r.settings){let re;switch(typeof K.scope){case"string":re=K.scope.split(/,/).map(R=>R.trim());break;case"object":re=K.scope;break;default:continue}J.push({settings:K,selectors:re.map(R=>R.split(/ /))})}de.explanation=[];let I=0;for(;X+I<ne;){const K=M[z],re=S.substring(K.startIndex,K.endIndex);I+=re.length,de.explanation.push({content:re,scopes:l.includeExplanation==="scopeName"?Y8(K.scopes):K8(J,K.scopes)}),z+=1}}v.push(de)}m.push(v),v=[],d=O.ruleStack}return{tokens:m,stateStack:d}}function Y8(e){return e.map(t=>({scopeName:t}))}function K8(e,t){const r=[];for(let n=0,l=t.length;n<l;n++){const o=t[n];r[n]={scopeName:o,themeMatches:Q8(e,o,t.slice(0,n))}}return r}function Cm(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function X8(e,t,r){if(!Cm(e[e.length-1],t))return!1;let n=e.length-2,l=r.length-1;for(;n>=0&&l>=0;)Cm(e[n],r[l])&&(n-=1),l-=1;return n===-1}function Q8(e,t,r){const n=[];for(const{selectors:l,settings:o}of e)for(const u of l)if(X8(u,t,r)){n.push(o);break}return n}function Hg(e,t,r,n=zg){const l=Object.entries(r.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),o=l.map(d=>{const v=n(e,t,{...r,theme:d.theme});return{tokens:v,state:kl(v),theme:typeof d.theme=="string"?d.theme:d.theme.name}}),u=J8(...o.map(d=>d.tokens)),f=u[0].map((d,v)=>d.map((m,y)=>{const b={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in r&&r.includeExplanation&&(b.explanation=m.explanation),u.forEach((S,x)=>{const{content:T,explanation:M,offset:z,...O}=S[v][y];b.variants[l[x].color]=O}),b})),p=o[0].state?new ru(Object.fromEntries(o.map(d=>{var v;return[d.theme,(v=d.state)==null?void 0:v.getInternalStack(d.theme)]})),o[0].state.lang):void 0;return p&&iu(f,p),f}function J8(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const l=e.map(p=>p[n]),o=t.map(()=>[]);t.forEach((p,d)=>p.push(o[d]));const u=l.map(()=>0),f=l.map(p=>p[0]);for(;f.every(p=>p);){const p=Math.min(...f.map(d=>d.content.length));for(let d=0;d<r;d++){const v=f[d];v.content.length===p?(o[d].push(v),u[d]+=1,f[d]=l[d][u[d]]):(o[d].push({...v,content:v.content.slice(0,p)}),f[d]={...v,content:v.content.slice(p),offset:v.offset+p})}}}return t}const ey=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Nl{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Nl.prototype.normal={};Nl.prototype.property={};Nl.prototype.space=void 0;function Vg(e,t){const r={},n={};for(const l of e)Object.assign(r,l.property),Object.assign(n,l.normal);return new Nl(r,n,t)}function yf(e){return e.toLowerCase()}class _i{constructor(t,r){this.attribute=r,this.property=t}}_i.prototype.attribute="";_i.prototype.booleanish=!1;_i.prototype.boolean=!1;_i.prototype.commaOrSpaceSeparated=!1;_i.prototype.commaSeparated=!1;_i.prototype.defined=!1;_i.prototype.mustUseProperty=!1;_i.prototype.number=!1;_i.prototype.overloadedBoolean=!1;_i.prototype.property="";_i.prototype.spaceSeparated=!1;_i.prototype.space=void 0;let ty=0;const Le=an(),Ct=an(),Sf=an(),ae=an(),Je=an(),ea=an(),xi=an();function an(){return 2**++ty}const bf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Ct,commaOrSpaceSeparated:xi,commaSeparated:ea,number:ae,overloadedBoolean:Sf,spaceSeparated:Je},Symbol.toStringTag,{value:"Module"})),V1=Object.keys(bf);class kd extends _i{constructor(t,r,n,l){let o=-1;if(super(t,r),Em(this,"space",l),typeof n=="number")for(;++o<V1.length;){const u=V1[o];Em(this,V1[o],(n&bf[u])===bf[u])}}}kd.prototype.defined=!0;function Em(e,t,r){r&&(e[t]=r)}function sa(e){const t={},r={};for(const[n,l]of Object.entries(e.properties)){const o=new kd(n,e.transform(e.attributes||{},n),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[yf(n)]=n,r[yf(o.attribute)]=n}return new Nl(t,r,e.space)}const Pg=sa({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:ae,ariaColIndex:ae,ariaColSpan:ae,ariaControls:Je,ariaCurrent:null,ariaDescribedBy:Je,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:Je,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:Je,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Je,ariaLevel:ae,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:Je,ariaPlaceholder:null,ariaPosInSet:ae,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:Je,ariaRowCount:ae,ariaRowIndex:ae,ariaRowSpan:ae,ariaSelected:Ct,ariaSetSize:ae,ariaSort:null,ariaValueMax:ae,ariaValueMin:ae,ariaValueNow:ae,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Gg(e,t){return t in e?e[t]:t}function Ig(e,t){return Gg(e,t.toLowerCase())}const iy=sa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ea,acceptCharset:Je,accessKey:Je,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:Je,autoFocus:Le,autoPlay:Le,blocking:Je,capture:null,charSet:null,checked:Le,cite:null,className:Je,cols:ae,colSpan:null,content:null,contentEditable:Ct,controls:Le,controlsList:Je,coords:ae|ea,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Sf,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:Je,height:ae,hidden:Sf,high:ae,href:null,hrefLang:null,htmlFor:Je,httpEquiv:Je,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:Je,itemRef:Je,itemScope:Le,itemType:Je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ae,manifest:null,max:null,maxLength:ae,media:null,method:null,min:null,minLength:ae,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,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:Le,optimum:ae,pattern:null,ping:Je,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:Je,required:Le,reversed:Le,rows:ae,rowSpan:ae,sandbox:Je,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ae,sizes:null,slot:null,span:ae,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ae,step:null,style:null,tabIndex:ae,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Ct,width:ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Je,axis:null,background:null,bgColor:null,border:ae,borderColor:null,bottomMargin:ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ae,leftMargin:ae,link:null,longDesc:null,lowSrc:null,marginHeight:ae,marginWidth:ae,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ae,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ae,security:null,unselectable:null},space:"html",transform:Ig}),ry=sa({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:xi,accentHeight:ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ae,amplitude:ae,arabicForm:null,ascent:ae,attributeName:null,attributeType:null,azimuth:ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ae,by:null,calcMode:null,capHeight:ae,className:Je,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:ae,diffuseConstant:ae,direction:null,display:null,dur:null,divisor:ae,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ae,enableBackground:null,end:null,event:null,exponent:ae,externalResourcesRequired:null,fill:null,fillOpacity:ae,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:ea,g2:ea,glyphName:ea,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ae,horizOriginX:ae,horizOriginY:ae,id:null,ideographic:ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ae,k:ae,k1:ae,k2:ae,k3:ae,k4:ae,kernelMatrix:xi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ae,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:ae,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:ae,overlineThickness:ae,paintOrder:null,panose1:null,path:null,pathLength:ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ae,pointsAtY:ae,pointsAtZ:ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xi,rev:xi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xi,requiredFeatures:xi,requiredFonts:xi,requiredFormats:xi,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:ae,specularExponent:ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ae,strikethroughThickness:ae,string:null,stroke:null,strokeDashArray:xi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ae,strokeOpacity:ae,strokeWidth:null,style:null,surfaceScale:ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xi,tabIndex:ae,tableValues:null,target:null,targetX:ae,targetY:ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ae,underlineThickness:ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ae,values:null,vAlphabetic:ae,vMathematical:ae,vectorEffect:null,vHanging:ae,vIdeographic:ae,version:null,vertAdvY:ae,vertOriginX:ae,vertOriginY:ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Gg}),Ug=sa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),jg=sa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ig}),qg=sa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),sy=/[A-Z]/g,xm=/-[a-z]/g,ny=/^data[-\w.:]+$/i;function ay(e,t){const r=yf(t);let n=t,l=_i;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ny.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(xm,oy);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!xm.test(o)){let u=o.replace(sy,ly);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=kd}return new l(n,t)}function ly(e){return"-"+e.toLowerCase()}function oy(e){return e.charAt(1).toUpperCase()}const cy=Vg([Pg,iy,Ug,jg,qg],"html"),$g=Vg([Pg,ry,Ug,jg,qg],"svg"),Am={}.hasOwnProperty;function uy(e,t){const r=t||{};function n(l,...o){let u=n.invalid;const f=n.handlers;if(l&&Am.call(l,e)){const p=String(l[e]);u=Am.call(f,p)?f[p]:n.unknown}if(u)return u.call(this,l,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const hy=/["&'<>`]/g,fy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dy=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,py=/[|\\{}()[\]^$+*?.]/g,km=new WeakMap;function _y(e,t){if(e=e.replace(t.subset?my(t.subset):hy,n),t.subset||t.escapeOnly)return e;return e.replace(fy,r).replace(dy,n);function r(l,o,u){return t.format((l.charCodeAt(0)-55296)*1024+l.charCodeAt(1)-56320+65536,u.charCodeAt(o+2),t)}function n(l,o,u){return t.format(l.charCodeAt(0),u.charCodeAt(o+1),t)}}function my(e){let t=km.get(e);return t||(t=gy(e),km.set(e,t)),t}function gy(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(py,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const vy=/[\dA-Fa-f]/;function yy(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!vy.test(String.fromCharCode(t))?n:n+";"}const Sy=/\d/;function by(e,t,r){const n="&#"+String(e);return r&&t&&!Sy.test(String.fromCharCode(t))?n:n+";"}const wy=["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"],P1={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:"€"},Cy=["cent","copy","divide","gt","lt","not","para","times"],Zg={}.hasOwnProperty,wf={};let cc;for(cc in P1)Zg.call(P1,cc)&&(wf[P1[cc]]=cc);const Ey=/[^\dA-Za-z]/;function xy(e,t,r,n){const l=String.fromCharCode(e);if(Zg.call(wf,l)){const o=wf[l],u="&"+o;return r&&wy.includes(o)&&!Cy.includes(o)&&(!n||t&&t!==61&&Ey.test(String.fromCharCode(t)))?u:u+";"}return""}function Ay(e,t,r){let n=yy(e,t,r.omitOptionalSemicolons),l;if((r.useNamedReferences||r.useShortestReferences)&&(l=xy(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!l)&&r.useShortestReferences){const o=by(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return l&&(!r.useShortestReferences||l.length<n.length)?l:n}function ta(e,t){return _y(e,Object.assign({format:Ay},t))}const ky=/^>|^->|<!--|-->|--!>|<!-$/g,Ty=[">"],Ry=["<",">"];function Ly(e,t,r,n){return n.settings.bogusComments?"<?"+ta(e.value,Object.assign({},n.settings.characterReferences,{subset:Ty}))+">":"<!--"+e.value.replace(ky,l)+"-->";function l(o){return ta(o,Object.assign({},n.settings.characterReferences,{subset:Ry}))}}function My(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Tm(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,l=r.indexOf(t);for(;l!==-1;)n++,l=r.indexOf(t,l+t.length);return n}function Dy(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Oy(e){return e.join(" ").trim()}const Ny=/[ \t\n\f\r]/g;function Td(e){return typeof e=="object"?e.type==="text"?Rm(e.value):!1:Rm(e)}function Rm(e){return e.replace(Ny,"")===""}const Dt=Fg(1),Wg=Fg(-1),By=[];function Fg(e){return t;function t(r,n,l){const o=r?r.children:By;let u=(n||0)+e,f=o[u];if(!l)for(;f&&Td(f);)u+=e,f=o[u];return f}}const zy={}.hasOwnProperty;function Yg(e){return t;function t(r,n,l){return zy.call(e,r.tagName)&&e[r.tagName](r,n,l)}}const Rd=Yg({body:Vy,caption:G1,colgroup:G1,dd:Uy,dt:Iy,head:G1,html:Hy,li:Gy,optgroup:jy,option:qy,p:Py,rp:Lm,rt:Lm,tbody:Zy,td:Mm,tfoot:Wy,th:Mm,thead:$y,tr:Fy});function G1(e,t,r){const n=Dt(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Td(n.value.charAt(0)))}function Hy(e,t,r){const n=Dt(r,t);return!n||n.type!=="comment"}function Vy(e,t,r){const n=Dt(r,t);return!n||n.type!=="comment"}function Py(e,t,r){const n=Dt(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.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 Gy(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&n.tagName==="li"}function Iy(e,t,r){const n=Dt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Uy(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Lm(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function jy(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function qy(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function $y(e,t,r){const n=Dt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Zy(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Wy(e,t,r){return!Dt(r,t)}function Fy(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function Mm(e,t,r){const n=Dt(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Yy=Yg({body:Qy,colgroup:Jy,head:Xy,html:Ky,tbody:eS});function Ky(e){const t=Dt(e,-1);return!t||t.type!=="comment"}function Xy(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function Qy(e){const t=Dt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Td(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Jy(e,t,r){const n=Wg(r,t),l=Dt(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Rd(n,r.children.indexOf(n),r)?!1:!!(l&&l.type==="element"&&l.tagName==="col")}function eS(e,t,r){const n=Wg(r,t),l=Dt(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Rd(n,r.children.indexOf(n),r)?!1:!!(l&&l.type==="element"&&l.tagName==="tr")}const uc={name:[[`
53
+ \f\r &/=>`.split(""),`
54
+ \f\r "&'/=>\``.split("")],[`\0
55
+ \f\r "&'/<=>`.split(""),`\0
56
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
57
+ \f\r &>`.split(""),`\0
58
+ \f\r "&'<=>\``.split("")],[`\0
59
+ \f\r "&'<=>\``.split(""),`\0
60
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function tS(e,t,r,n){const l=n.schema,o=l.space==="svg"?!1:n.settings.omitOptionalTags;let u=l.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const f=[];let p;l.space==="html"&&e.tagName==="svg"&&(n.schema=$g);const d=iS(n,e.properties),v=n.all(l.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=l,v&&(u=!1),(d||!o||!Yy(e,t,r))&&(f.push("<",e.tagName,d?" "+d:""),u&&(l.space==="svg"||n.settings.closeSelfClosing)&&(p=d.charAt(d.length-1),(!n.settings.tightSelfClosing||p==="/"||p&&p!=='"'&&p!=="'")&&f.push(" "),f.push("/")),f.push(">")),f.push(v),!u&&(!o||!Rd(e,t,r))&&f.push("</"+e.tagName+">"),f.join("")}function iS(e,t){const r=[];let n=-1,l;if(t){for(l in t)if(t[l]!==null&&t[l]!==void 0){const o=rS(e,l,t[l]);o&&r.push(o)}}for(;++n<r.length;){const o=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function rS(e,t,r){const n=ay(e.schema,t),l=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let u=e.quote,f;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const p=ta(n.attribute,Object.assign({},e.settings.characterReferences,{subset:uc.name[l][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Dy:Oy)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?p:(e.settings.preferUnquoted&&(f=ta(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:uc.unquoted[l][o]}))),f!==r&&(e.settings.quoteSmart&&Tm(r,u)>Tm(r,e.alternative)&&(u=e.alternative),f=u+ta(r,Object.assign({},e.settings.characterReferences,{subset:(u==="'"?uc.single:uc.double)[l][o],attribute:!0}))+u),p+(f&&"="+f))}const sS=["<","&"];function Kg(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:ta(e.value,Object.assign({},n.settings.characterReferences,{subset:sS}))}function nS(e,t,r,n){return n.settings.allowDangerousHtml?e.value:Kg(e,t,r,n)}function aS(e,t,r,n){return n.all(e)}const lS=uy("type",{invalid:oS,unknown:cS,handlers:{comment:Ly,doctype:My,element:tS,raw:nS,root:aS,text:Kg}});function oS(e){throw new Error("Expected node, not `"+e+"`")}function cS(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const uS={},hS={},fS=[];function dS(e,t){const r=t||uS,n=r.quote||'"',l=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:pS,all:_S,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||ey,characterReferences:r.characterReferences||hS,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?$g:cy,quote:n,alternative:l}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function pS(e,t,r){return lS(e,t,r,this)}function _S(e){const t=[],r=e&&e.children||fS;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function Xg(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const l of r)l&&!e.properties.class.includes(l)&&e.properties.class.push(l);return e}function mS(e){const t=tu(e,!0).map(([l])=>l);function r(l){if(l===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=l,u=0;for(const f of t){if(o<f.length)break;o-=f.length,u++}return{line:u,character:o}}function n(l,o){let u=0;for(let f=0;f<l;f++)u+=t[f].length;return u+=o,u}return{lines:t,indexToPos:r,posToIndex:n}}function gS(e,t,r){const n=new Set;for(const o of e.matchAll(/:?lang=["']([^"']+)["']/g)){const u=o[1].toLowerCase().trim();u&&n.add(u)}for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g)){const u=o[1].toLowerCase().trim();u&&n.add(u)}for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g)){const u=o[1].toLowerCase().trim();u&&n.add(u)}for(const o of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const u=o[1].toLowerCase().trim(),f=u.includes("/")?u.split("/").pop():u;f&&n.add(f)}if(!r)return Array.from(n);const l=r.getBundledLanguages();return Array.from(n).filter(o=>o&&l[o])}const Ld="light-dark()",vS=["color","background-color"];function yS(e,t){let r=0;const n=[];for(const l of t)l>r&&n.push({...e,content:e.content.slice(r,l),offset:e.offset+r}),r=l;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function SS(e,t){const r=Array.from(t instanceof Set?t:new Set(t)).sort((n,l)=>n-l);return r.length?e.map(n=>n.flatMap(l=>{const o=r.filter(u=>l.offset<u&&u<l.offset+l.content.length).map(u=>u-l.offset).sort((u,f)=>u-f);return o.length?yS(l,o):l})):e}function bS(e,t,r,n,l="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},u=t.map(v=>Pc(e.variants[v])),f=new Set(u.flatMap(v=>Object.keys(v))),p={},d=(v,m)=>{const y=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return r+t[v]+(m==="color"?"":y)};return u.forEach((v,m)=>{for(const y of f){const b=v[y]||"inherit";if(m===0&&n&&vS.includes(y))if(n===Ld&&u.length>1){const S=t.findIndex(T=>T==="light"),x=t.findIndex(T=>T==="dark");if(S===-1||x===-1)throw new et('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');p[y]=`light-dark(${u[S][y]||"inherit"}, ${u[x][y]||"inherit"})`,l==="css-vars"&&(p[d(m,y)]=b)}else p[y]=b;else l==="css-vars"&&(p[d(m,y)]=b)}}),o.htmlStyle=p,o}function Pc(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Qt.Italic&&(t["font-style"]="italic"),e.fontStyle&Qt.Bold&&(t["font-weight"]="bold");const r=[];e.fontStyle&Qt.Underline&&r.push("underline"),e.fontStyle&Qt.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function Cf(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function wS(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let o=function(f){if(typeof f=="number"){if(f<0||f>r.source.length)throw new et(`Invalid decoration offset: ${f}. Code length: ${r.source.length}`);return{...l.indexToPos(f),offset:f}}else{const p=l.lines[f.line];if(p===void 0)throw new et(`Invalid decoration position ${JSON.stringify(f)}. Lines length: ${l.lines.length}`);let d=f.character;if(d<0&&(d=p.length+d),d<0||d>p.length)throw new et(`Invalid decoration position ${JSON.stringify(f)}. Line ${f.line} length: ${p.length}`);return{...f,character:d,offset:l.posToIndex(f.line,d)}}};var n=o;const l=mS(r.source),u=(r.options.decorations||[]).map(f=>({...f,start:o(f.start),end:o(f.end)}));CS(u),e.set(r.meta,{decorations:u,converter:l,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){var n;if((n=this.options.decorations)!=null&&n.length)return SS(r,t(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]))},code(r){var v;if(!((v=this.options.decorations)!=null&&v.length))return;const n=t(this),l=Array.from(r.children).filter(m=>m.type==="element"&&m.tagName==="span");if(l.length!==n.converter.lines.length)throw new et(`Number of lines in code element (${l.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(m,y,b,S){const x=l[m];let T="",M=-1,z=-1;if(y===0&&(M=0),b===0&&(z=0),b===Number.POSITIVE_INFINITY&&(z=x.children.length),M===-1||z===-1)for(let P=0;P<x.children.length;P++)T+=Qg(x.children[P]),M===-1&&T.length===y&&(M=P+1),z===-1&&T.length===b&&(z=P+1);if(M===-1)throw new et(`Failed to find start index for decoration ${JSON.stringify(S.start)}`);if(z===-1)throw new et(`Failed to find end index for decoration ${JSON.stringify(S.end)}`);const O=x.children.slice(M,z);if(!S.alwaysWrap&&O.length===x.children.length)f(x,S,"line");else if(!S.alwaysWrap&&O.length===1&&O[0].type==="element")f(O[0],S,"token");else{const P={type:"element",tagName:"span",properties:{},children:O};f(P,S,"wrapper"),x.children.splice(M,O.length,P)}}function u(m,y){l[m]=f(l[m],y,"line")}function f(m,y,b){var T;const S=y.properties||{},x=y.transform||(M=>M);return m.tagName=y.tagName||"span",m.properties={...m.properties,...S,class:m.properties.class},(T=y.properties)!=null&&T.class&&Xg(m,y.properties.class),m=x(m,b)||m,m}const p=[],d=n.decorations.sort((m,y)=>y.start.offset-m.start.offset||m.end.offset-y.end.offset);for(const m of d){const{start:y,end:b}=m;if(y.line===b.line)o(y.line,y.character,b.character,m);else if(y.line<b.line){o(y.line,y.character,Number.POSITIVE_INFINITY,m);for(let S=y.line+1;S<b.line;S++)p.unshift(()=>u(S,m));o(b.line,0,b.character,m)}}p.forEach(m=>m())}}}function CS(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new et(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const l=e[n],o=r.start.offset<=l.start.offset&&l.start.offset<r.end.offset,u=r.start.offset<l.end.offset&&l.end.offset<=r.end.offset,f=l.start.offset<=r.start.offset&&r.start.offset<l.end.offset,p=l.start.offset<r.end.offset&&r.end.offset<=l.end.offset;if(o||u||f||p){if(o&&u||f&&p||f&&r.start.offset===r.end.offset||u&&l.start.offset===l.end.offset)continue;throw new et(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(l.start)} intersect.`)}}}}function Qg(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Qg).join(""):""}const ES=[wS()];function Gc(e){const t=xS(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...ES]}function xS(e){const t=[],r=[],n=[];for(const l of e)switch(l.enforce){case"pre":t.push(l);break;case"post":r.push(l);break;default:n.push(l)}return{pre:t,post:r,normal:n}}var Ys=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],I1={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function AS(e,t){const r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){const n=e.indexOf("m",r);if(n!==-1)return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function Dm(e){const t=e.shift();if(t==="2"){const r=e.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){const r=e.shift();if(r)return{type:"table",index:Number(r)}}}function kS(e){const t=[];for(;e.length>0;){const r=e.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)I1[n]&&t.push({type:"setDecoration",value:I1[n]});else if(n<=29){const l=I1[n-20];l&&(t.push({type:"resetDecoration",value:l}),l==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ys[n-30]}});else if(n===38){const l=Dm(e);l&&t.push({type:"setForegroundColor",value:l})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ys[n-40]}});else if(n===48){const l=Dm(e);l&&t.push({type:"setBackgroundColor",value:l})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ys[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ys[n-100+8]}})}return t}function TS(){let e=null,t=null,r=new Set;return{parse(n){const l=[];let o=0;do{const u=AS(n,o),f=u.sequence?n.substring(o,u.startPosition):n.substring(o);if(f.length>0&&l.push({value:f,foreground:e,background:t,decorations:new Set(r)}),u.sequence){const p=kS(u.sequence);for(const d of p)d.type==="resetAll"?(e=null,t=null,r.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&r.delete(d.value);for(const d of p)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&r.add(d.value)}o=u.position}while(o<n.length);return l}}}var RS={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 LS(e=RS){function t(f){return e[f]}function r(f){return`#${f.map(p=>Math.max(0,Math.min(p,255)).toString(16).padStart(2,"0")).join("")}`}let n;function l(){if(n)return n;n=[];for(let d=0;d<Ys.length;d++)n.push(t(Ys[d]));let f=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let v=0;v<6;v++)for(let m=0;m<6;m++)n.push(r([f[d],f[v],f[m]]));let p=8;for(let d=0;d<24;d++,p+=10)n.push(r([p,p,p]));return n}function o(f){return l()[f]}function u(f){switch(f.type){case"named":return t(f.name);case"rgb":return r(f.rgb);case"table":return o(f.index)}}return{value:u}}const MS={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function DS(e,t,r){const n=Vc(e,r),l=tu(t),o=LS(Object.fromEntries(Ys.map(f=>{var d;const p=`terminal.ansi${f[0].toUpperCase()}${f.substring(1)}`;return[f,((d=e.colors)==null?void 0:d[p])||MS[f]]}))),u=TS();return l.map(f=>u.parse(f[0]).map(p=>{let d,v;p.decorations.has("reverse")?(d=p.background?o.value(p.background):e.bg,v=p.foreground?o.value(p.foreground):e.fg):(d=p.foreground?o.value(p.foreground):e.fg,v=p.background?o.value(p.background):void 0),d=ys(d,n),v=ys(v,n),p.decorations.has("dim")&&(d=OS(d));let m=Qt.None;return p.decorations.has("bold")&&(m|=Qt.Bold),p.decorations.has("italic")&&(m|=Qt.Italic),p.decorations.has("underline")&&(m|=Qt.Underline),p.decorations.has("strikethrough")&&(m|=Qt.Strikethrough),{content:p.value,offset:f[1],color:d,bgColor:v,fontStyle:m}}))}function OS(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const n=t[1];if(n.length===8){const l=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${l}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const l=n[0],o=n[1],u=n[2],f=n[3];return`#${l}${l}${o}${o}${u}${u}${Math.round(Number.parseInt(`${f}${f}`,16)/2).toString(16).padStart(2,"0")}`}else if(n.length===3){const l=n[0],o=n[1],u=n[2];return`#${l}${l}${o}${o}${u}${u}80`}}}const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function Ef(e,t,r={}){const n=e.resolveLangAlias(r.lang||"text"),{theme:l=e.getLoadedThemes()[0]}=r;if(!Jc(n)&&!eu(l)&&n==="ansi"){const{theme:o}=e.setTheme(l);return DS(o,t,r)}return zg(e,t,r)}function Ic(e,t,r){let n,l,o,u,f,p;if("themes"in r){const{defaultColor:d="light",cssVariablePrefix:v="--shiki-",colorsRendering:m="css-vars"}=r,y=Object.entries(r.themes).filter(M=>M[1]).map(M=>({color:M[0],theme:M[1]})).sort((M,z)=>M.color===d?-1:z.color===d?1:0);if(y.length===0)throw new et("`themes` option must not be empty");const b=Hg(e,t,r,Ef);if(p=kl(b),d&&Ld!==d&&!y.find(M=>M.color===d))throw new et(`\`themes\` option must contain the defaultColor key \`${d}\``);const S=y.map(M=>e.getTheme(M.theme)),x=y.map(M=>M.color);o=b.map(M=>M.map(z=>bS(z,x,v,d,m))),p&&iu(o,p);const T=y.map(M=>Vc(M.theme,r));l=Om(y,S,T,v,d,"fg",m),n=Om(y,S,T,v,d,"bg",m),u=`shiki-themes ${S.map(M=>M.name).join(" ")}`,f=d?void 0:[l,n].join(";")}else if("theme"in r){const d=Vc(r.theme,r);o=Ef(e,t,r);const v=e.getTheme(r.theme);n=ys(v.bg,d),l=ys(v.fg,d),u=v.name,p=kl(o)}else throw new et("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:l,bg:n,themeName:u,rootStyle:f,grammarState:p}}function Om(e,t,r,n,l,o,u){return e.map((f,p)=>{const d=ys(t[p][o],r[p])||"inherit",v=`${n+f.color}${o==="bg"?"-bg":""}:${d}`;if(p===0&&l){if(l===Ld&&e.length>1){const m=e.findIndex(b=>b.color==="light"),y=e.findIndex(b=>b.color==="dark");if(m===-1||y===-1)throw new et('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${ys(t[m][o],r[m])||"inherit"}, ${ys(t[y][o],r[y])||"inherit"});${v}`}return d}return u==="css-vars"?v:null}).filter(f=>!!f).join(";")}function Uc(e,t,r,n={meta:{},options:r,codeToHast:(l,o)=>Uc(e,l,o),codeToTokens:(l,o)=>Ic(e,l,o)}){var S,x;let l=t;for(const T of Gc(r))l=((S=T.preprocess)==null?void 0:S.call(n,l,r))||l;let{tokens:o,fg:u,bg:f,themeName:p,rootStyle:d,grammarState:v}=Ic(e,l,r);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:y=!1}=r;m===!0?o=BS(o):m==="never"&&(o=zS(o)),y&&(o=HS(o));const b={...n,get source(){return l}};for(const T of Gc(r))o=((x=T.tokens)==null?void 0:x.call(b,o))||o;return NS(o,{...r,fg:u,bg:f,themeName:p,rootStyle:r.rootStyle===!1?!1:r.rootStyle??d},b,v)}function NS(e,t,r,n=kl(e)){var x,T,M,z;const l=Gc(t),o=[],u={type:"root",children:[]},{structure:f="classic",tabindex:p="0"}=t,d={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),p!==!1&&p!=null&&(d.tabindex=p.toString());for(const[O,P]of Object.entries(t.meta||{}))O.startsWith("_")||(d[O]=P);let v={type:"element",tagName:"pre",properties:d,children:[],data:t.data},m={type:"element",tagName:"code",properties:{},children:o};const y=[],b={...r,structure:f,addClassToHast:Xg,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return v},get code(){return m},get lines(){return y}};if(e.forEach((O,P)=>{var ne,_e;P&&(f==="inline"?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):f==="classic"&&o.push({type:"text",value:`
61
+ `}));let W={type:"element",tagName:"span",properties:{class:"line"},children:[]},X=0;for(const oe of O){let Ee={type:"element",tagName:"span",properties:{...oe.htmlAttrs},children:[{type:"text",value:oe.content}]};const de=Cf(oe.htmlStyle||Pc(oe));de&&(Ee.properties.style=de);for(const J of l)Ee=((ne=J==null?void 0:J.span)==null?void 0:ne.call(b,Ee,P+1,X,W,oe))||Ee;f==="inline"?u.children.push(Ee):f==="classic"&&W.children.push(Ee),X+=oe.content.length}if(f==="classic"){for(const oe of l)W=((_e=oe==null?void 0:oe.line)==null?void 0:_e.call(b,W,P+1))||W;y.push(W),o.push(W)}else f==="inline"&&y.push(W)}),f==="classic"){for(const O of l)m=((x=O==null?void 0:O.code)==null?void 0:x.call(b,m))||m;v.children.push(m);for(const O of l)v=((T=O==null?void 0:O.pre)==null?void 0:T.call(b,v))||v;u.children.push(v)}else if(f==="inline"){const O=[];let P={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const X of u.children)X.type==="element"&&X.tagName==="br"?(O.push(P),P={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(X.type==="element"||X.type==="text")&&P.children.push(X);O.push(P);let W={type:"element",tagName:"code",properties:{},children:O};for(const X of l)W=((M=X==null?void 0:X.code)==null?void 0:M.call(b,W))||W;u.children=[];for(let X=0;X<W.children.length;X++){X>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});const ne=W.children[X];ne.type==="element"&&u.children.push(...ne.children)}}let S=u;for(const O of l)S=((z=O==null?void 0:O.root)==null?void 0:z.call(b,S))||S;return n&&iu(S,n),S}function BS(e){return e.map(t=>{const r=[];let n="",l;return t.forEach((o,u)=>{const f=!(o.fontStyle&&(o.fontStyle&Qt.Underline||o.fontStyle&Qt.Strikethrough));f&&o.content.match(/^\s+$/)&&t[u+1]?(l===void 0&&(l=o.offset),n+=o.content):n?(f?r.push({...o,offset:l,content:n+o.content}):r.push({content:n,offset:l},o),l=void 0,n=""):r.push(o)}),r})}function zS(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,l,o,u]=n;if(!l&&!u)return r;const f=[{...r,offset:r.offset+l.length,content:o}];return l&&f.unshift({content:l,offset:r.offset}),u&&f.push({content:u,offset:r.offset+l.length+o.length}),f}))}function HS(e){return e.map(t=>{const r=[];for(const n of t){if(r.length===0){r.push({...n});continue}const l=r[r.length-1],o=Cf(l.htmlStyle||Pc(l)),u=Cf(n.htmlStyle||Pc(n)),f=l.fontStyle&&(l.fontStyle&Qt.Underline||l.fontStyle&Qt.Strikethrough),p=n.fontStyle&&(n.fontStyle&Qt.Underline||n.fontStyle&Qt.Strikethrough);!f&&!p&&o===u?l.content+=n.content:r.push({...n})}return r})}const VS=dS;function PS(e,t,r){var o;const n={meta:{},options:r,codeToHast:(u,f)=>Uc(e,u,f),codeToTokens:(u,f)=>Ic(e,u,f)};let l=VS(Uc(e,t,r,n));for(const u of Gc(r))l=((o=u.postprocess)==null?void 0:o.call(n,l,r))||l;return l}async function GS(e){const t=await q8(e);return{getLastGrammarState:(...r)=>W8(t,...r),codeToTokensBase:(r,n)=>Ef(t,r,n),codeToTokensWithThemes:(r,n)=>Hg(t,r,n),codeToTokens:(r,n)=>Ic(t,r,n),codeToHast:(r,n)=>Uc(t,r,n),codeToHtml:(r,n)=>PS(t,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function IS(e){const t=e.langs,r=e.themes,n=e.engine;async function l(o){function u(m){var y;if(typeof m=="string"){if(m=((y=o.langAlias)==null?void 0:y[m])||m,Rg(m))return[];const b=t[m];if(!b)throw new et(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return b}return m}function f(m){if(Lg(m))return"none";if(typeof m=="string"){const y=r[m];if(!y)throw new et(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return y}return m}const p=(o.themes??[]).map(m=>f(m)),d=(o.langs??[]).map(m=>u(m)),v=await GS({engine:o.engine??n(),...o,themes:p,langs:d});return{...v,loadLanguage(...m){return v.loadLanguage(...m.map(u))},loadTheme(...m){return v.loadTheme(...m.map(f))},getBundledLanguages(){return t},getBundledThemes(){return r}}}return l}function US(e){let t;async function r(n={}){if(t){const l=await t;return await Promise.all([l.loadTheme(...n.themes||[]),l.loadLanguage(...n.langs||[])]),l}else{t=e({...n,themes:[],langs:[]});const l=await t;return await Promise.all([l.loadTheme(...n.themes||[]),l.loadLanguage(...n.langs||[])]),l}}return r}function jS(e,t){const r=US(e);async function n(l,o){var p;const u=await r({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),f=await((p=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:p.call(t,l,o.lang,u));return f&&await u.loadLanguage(...f),u}return{getSingletonHighlighter(l){return r(l)},async codeToHtml(l,o){return(await n(l,o)).codeToHtml(l,o)},async codeToHast(l,o){return(await n(l,o)).codeToHast(l,o)},async codeToTokens(l,o){return(await n(l,o)).codeToTokens(l,o)},async codeToTokensBase(l,o){return(await n(l,o)).codeToTokensBase(l,o)},async codeToTokensWithThemes(l,o){return(await n(l,o)).codeToTokensWithThemes(l,o)},async getLastGrammarState(l,o){return(await r({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(l,o)}}}var qS=md({bundledLanguages:()=>yd,bundledLanguagesAlias:()=>vd,bundledLanguagesBase:()=>gd,bundledLanguagesInfo:()=>Kc,bundledThemes:()=>bd,bundledThemesInfo:()=>Sd,codeToHast:()=>e4,codeToHtml:()=>Jg,codeToTokens:()=>t4,codeToTokensBase:()=>i4,codeToTokensWithThemes:()=>r4,createHighlighter:()=>su,getLastGrammarState:()=>n4,getSingletonHighlighter:()=>s4});const su=IS({langs:yd,themes:bd,engine:()=>(0,fg.createOnigurumaEngine)(C(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Jg,codeToHast:e4,codeToTokens:t4,codeToTokensBase:i4,codeToTokensWithThemes:r4,getSingletonHighlighter:s4,getLastGrammarState:n4}=jS(su,{guessEmbeddedLanguages:gS}),Nm=4294967295;var $S=class{constructor(e,t={}){Y(this,"regexps");this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:l}=t;if(!l)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const u=n==null?void 0:n.get(o);if(u){if(u instanceof RegExp)return u;if(r)return null;throw u}try{const f=l(o);return n==null||n.set(o,f),f}catch(f){if(n==null||n.set(o,f),r)return null;throw f}})}findNextMatchSync(e,t,r){const n=typeof e=="string"?e:e.content,l=[];function o(u,f,p=0){return{index:u,captureIndices:f.indices.map(d=>d==null?{start:Nm,end:Nm,length:0}:{start:d[0]+p,end:d[1]+p,length:d[1]-d[0]})}}for(let u=0;u<this.regexps.length;u++){const f=this.regexps[u];if(f)try{f.lastIndex=t;const p=f.exec(n);if(!p)continue;if(p.index===t)return o(u,p,0);l.push([u,p,0])}catch(p){if(this.options.forgiving)continue;throw p}}if(l.length){const u=Math.min(...l.map(f=>f[1].index));for(const[f,p,d]of l)if(p.index===u)return o(f,p,d)}return null}};function na(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function ZS(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const Md=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Gt=String.raw;function aa(e,t){if(e==null)throw new Error(t??"Value expected");return e}const a4=Gt`\[\^?`,l4=`c.? | C(?:-.?)?|${Gt`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Gt`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Gt`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Gt`o\{[^\}]*\}?`}|${Gt`\d{1,3}`}`,Dd=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,hc=new RegExp(Gt`
62
+ \\ (?:
63
+ ${l4}
64
+ | [gk]<[^>]*>?
65
+ | [gk]'[^']*'?
66
+ | .
67
+ )
68
+ | \( (?:
69
+ \? (?:
70
+ [:=!>({]
71
+ | <[=!]
72
+ | <[^>]*>
73
+ | '[^']*'
74
+ | ~\|?
75
+ | #(?:[^)\\]|\\.?)*
76
+ | [^:)]*[:)]
77
+ )?
78
+ | \*[^\)]*\)?
79
+ )?
80
+ | (?:${Dd.source})+
81
+ | ${a4}
82
+ | .
83
+ `.replace(/\s+/g,""),"gsu"),U1=new RegExp(Gt`
84
+ \\ (?:
85
+ ${l4}
86
+ | .
87
+ )
88
+ | \[:(?:\^?\p{Alpha}+|\^):\]
89
+ | ${a4}
90
+ | &&
91
+ | .
92
+ `.replace(/\s+/g,""),"gsu");function WS(e,t={}){const r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const n=f9(r.flags),l=[n.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX(){return l.at(-1)},numOpenGroups:0,popModX(){l.pop()},pushModX(m){l.push(m)},replaceCurrentModX(m){l[l.length-1]=m},singleline:r.rules.singleline};let u=[],f;for(hc.lastIndex=0;f=hc.exec(e);){const m=FS(o,e,f[0],hc.lastIndex);m.tokens?u.push(...m.tokens):m.token&&u.push(m.token),m.lastIndex!==void 0&&(hc.lastIndex=m.lastIndex)}const p=[];let d=0;u.filter(m=>m.type==="GroupOpen").forEach(m=>{m.kind==="capturing"?m.number=++d:m.raw==="("&&p.push(m)}),d||p.forEach((m,y)=>{m.kind="capturing",m.number=y+1});const v=d||p.length;return{tokens:u.map(m=>m.type==="EscapedNumber"?p9(m,v):m).flat(),flags:n}}function FS(e,t,r,n){const[l,o]=r;if(r==="["||r==="[^"){const u=YS(t,r,n);return{tokens:u.tokens,lastIndex:u.lastIndex}}if(l==="\\"){if("AbBGyYzZ".includes(o))return{token:Bm(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:n9(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:c4(r)}}if(o==="K")return{token:u4("keep",r)};if(o==="N"||o==="R")return{token:Ks("newline",r,{negate:o==="N"})};if(o==="O")return{token:Ks("any",r)};if(o==="X")return{token:Ks("text_segment",r)};const u=o4(r,{inCharClass:!1});return Array.isArray(u)?{tokens:u}:{token:u}}if(l==="("){if(o==="*")return{token:c9(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:o9(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:Xn("group",r)};if(r==="(?>")return{token:Xn("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:Xn(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:Xn("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:Xn("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:i9(r)}}if(e.getCurrentModX()){if(r==="#"){const u=t.indexOf(`
93
+ `,n);return{lastIndex:u===-1?t.length:u}}if(/^\s$/.test(r)){const u=/\s+/y;return u.lastIndex=n,{lastIndex:u.exec(t)?u.lastIndex:n}}}if(r===".")return{token:Ks("dot",r)};if(r==="^"||r==="$"){const u=e.singleline?{"^":Gt`\A`,$:Gt`\Z`}[r]:r;return{token:Bm(u,r)}}return r==="|"?{token:XS(r)}:Dd.test(r)?{tokens:_9(r)}:{token:Dr(na(r),r)}}function YS(e,t,r){const n=[zm(t[1]==="^",t)];let l=1,o;for(U1.lastIndex=r;o=U1.exec(e);){const u=o[0];if(u[0]==="["&&u[1]!==":")l++,n.push(zm(u[1]==="^",u));else if(u==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(Dr(93,u));else if(l--,n.push(QS(u)),!l)break}else{const f=KS(u);Array.isArray(f)?n.push(...f):n.push(f)}}return{tokens:n,lastIndex:U1.lastIndex||e.length}}function KS(e){if(e[0]==="\\")return o4(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Md.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Ks("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?JS(e):e==="&&"?e9(e):Dr(na(e),e)}function o4(e,{inCharClass:t}){const r=e[1];if(r==="c"||r==="C")return l9(e);if("dDhHsSwW".includes(r))return u9(e);if(e.startsWith(Gt`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return h9(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const n=e.split(/\\x/).slice(1).map(u=>parseInt(u,16)),l=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),o=new TextEncoder;return[...l].map(u=>{const f=[...o.encode(u)].map(p=>`\\x${p.toString(16)}`).join("");return Dr(na(u),f)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return Dr(d9(e),e);if(Hm.has(r))return Dr(Hm.get(r),e);if(/\d/.test(r))return t9(t,e);if(e==="\\")throw new Error(Gt`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Dr(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function XS(e){return{type:"Alternator",raw:e}}function Bm(e,t){return{type:"Assertion",kind:e,raw:t}}function c4(e){return{type:"Backreference",raw:e}}function Dr(e,t){return{type:"Character",value:e,raw:t}}function QS(e){return{type:"CharacterClassClose",raw:e}}function JS(e){return{type:"CharacterClassHyphen",raw:e}}function e9(e){return{type:"CharacterClassIntersector",raw:e}}function zm(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Ks(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function u4(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:aa(r.flags),raw:t}}function t9(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function i9(e){return{type:"GroupClose",raw:e}}function Xn(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function r9(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function s9(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function n9(e){return{type:"Subroutine",raw:e}}const a9=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Hm=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function l9(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Dr(na(t.toUpperCase())-64,e)}function o9(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??(n="");const l=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),o=Pm(r),u=Pm(n),f={};if(o&&(f.enable=o),u&&(f.disable=u),e.endsWith(")"))return t.replaceCurrentModX(l),u4("flags",e,{flags:f});if(e.endsWith(":"))return t.pushModX(l),t.numOpenGroups++,Xn("group",e,{...(o||u)&&{flags:f}});throw new Error(`Unexpected flag modifier "${e}"`)}function c9(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:r,tag:n,args:l}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=l?l.split(",").filter(v=>v!=="").map(v=>/^[+-]?\d+$/.test(v)?+v:v):[],[u,f,p]=o,d=a9.has(r)?r.toLowerCase():"custom";switch(d){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof u=="string")throw new Error(`Named callout argument must be a number "${u}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw new Error(`Named callout argument one must be a tag or number "${u}"`);if(o.length===2&&(typeof f=="number"||!/^[<>X]$/.test(f)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${f}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof u=="number"||!/^[<>X]$/.test(u)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${u}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw new Error(`Named callout argument one must be a tag or number "${u}"`);if(typeof f=="number"||!/^(?:[<>!=]=|[<>])$/.test(f))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${f}"`);if(typeof p=="string"&&!/^[A-Za-z_]\w*$/.test(p))throw new Error(`Named callout argument three must be a tag or number "${p}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${d}"`)}return r9(d,n??null,(l==null?void 0:l.split(","))??null,e)}function Vm(e){let t=null,r,n;if(e[0]==="{"){const{minStr:l,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,u=1e5;if(+l>u||o&&+o>u)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+l,n=o===void 0?+l:o===""?1/0:+o,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return s9(t,r,n,e)}function u9(e){const t=e[1].toLowerCase();return Ks({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function h9(e){const{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Ks("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}function Pm(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function f9(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){const n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}function d9(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function p9(e,t){const{raw:r,inCharClass:n}=e,l=r.slice(1);if(!n&&(l!=="0"&&l.length===1||l[0]!=="0"&&+l<=t))return[c4(r)];const o=[],u=l.match(/^[0-7]+|\d/g);for(let f=0;f<u.length;f++){const p=u[f];let d;if(f===0&&p!=="8"&&p!=="9"){if(d=parseInt(p,8),d>127)throw new Error(Gt`Octal encoded byte above 177 unsupported "${r}"`)}else d=na(p);o.push(Dr(d,(f===0?"\\":"")+p))}return o}function _9(e){const t=[],r=new RegExp(Dd,"gy");let n;for(;n=r.exec(e);){const l=n[0];if(l[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(l);if(o){const{min:u,max:f}=o.groups;if(+u>+f&&l.endsWith("?")){r.lastIndex--,t.push(Vm(l.slice(0,-1)));continue}}}t.push(Vm(l))}return t}function h4(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}function m9(e){return g9.has(e.type)}const g9=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function f4(e,t={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=WS(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),l=(y,b)=>{const S=n.tokens[o.nextIndex];switch(o.parent=y,o.nextIndex++,S.type){case"Alternator":return rn();case"Assertion":return v9(S);case"Backreference":return y9(S,o);case"Character":return nu(S.value,{useLastValid:!!b.isCheckingRangeEnd});case"CharacterClassHyphen":return S9(S,o,b);case"CharacterClassOpen":return b9(S,o,b);case"CharacterSet":return w9(S,o);case"Directive":return T9(S.kind,{flags:S.flags});case"GroupOpen":return C9(S,o,b);case"NamedCallout":return L9(S.kind,S.tag,S.arguments);case"Quantifier":return E9(S,o);case"Subroutine":return x9(S,o);default:throw new Error(`Unexpected token type "${S.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:l},u=D9(R9(n.flags));let f=u.body[0];for(;o.nextIndex<n.tokens.length;){const y=l(f,{});y.type==="Alternative"?(u.body.push(y),f=y):f.body.push(y)}const{capturingGroups:p,hasNumberedRef:d,namedGroupsByName:v,subroutines:m}=o;if(d&&v.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:y}of m)if(typeof y=="number"){if(y>p.length)throw new Error("Subroutine uses a group number that's not defined");y&&(p[y-1].isSubroutined=!0)}else if(v.has(y)){if(v.get(y).length>1)throw new Error(Gt`Subroutine uses a duplicate group name "\g<${y}>"`);v.get(y)[0].isSubroutined=!0}else throw new Error(Gt`Subroutine uses a group name that's not defined "\g<${y}>"`);return u}function v9({kind:e}){return xf(aa({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Gt`\B`||e===Gt`\Y`})}function y9({raw:e},t){const r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),l=(o,u=!1)=>{const f=t.capturingGroups.length;let p=!1;if(o>f)if(t.skipBackrefValidation)p=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Af(u?f+1-o:o,{orphan:p})};if(r){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(o)return l(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return Af(n)}return l(+n)}function S9(e,t,r){const{tokens:n,walk:l}=t,o=t.parent,u=o.body.at(-1),f=n[t.nextIndex];if(!r.isCheckingRangeEnd&&u&&u.type!=="CharacterClass"&&u.type!=="CharacterClassRange"&&f&&f.type!=="CharacterClassOpen"&&f.type!=="CharacterClassClose"&&f.type!=="CharacterClassIntersector"){const p=l(o,{...r,isCheckingRangeEnd:!0});if(u.type==="Character"&&p.type==="Character")return o.body.pop(),k9(u,p);throw new Error("Invalid character class range")}return nu(na("-"))}function b9({negate:e},t,r){const{tokens:n,walk:l}=t,o=n[t.nextIndex],u=[Cc()];let f=Um(o);for(;f.type!=="CharacterClassClose";){if(f.type==="CharacterClassIntersector")u.push(Cc()),t.nextIndex++;else{const d=u.at(-1);d.body.push(l(d,r))}f=Um(n[t.nextIndex],o)}const p=Cc({negate:e});return u.length===1?p.body=u[0].body:(p.kind="intersection",p.body=u.map(d=>d.body.length===1?d.body[0]:d)),t.nextIndex++,p}function w9({kind:e,negate:t,value:r},n){const{normalizeUnknownPropertyNames:l,skipPropertyNameValidation:o,unicodePropertyMap:u}=n;if(e==="property"){const f=au(r);if(Md.has(f)&&!(u!=null&&u.has(f)))e="posix",r=f;else return Qn(r,{negate:t,normalizeUnknownPropertyNames:l,skipPropertyNameValidation:o,unicodePropertyMap:u})}return e==="posix"?M9(r,{negate:t}):kf(e,{negate:t})}function C9(e,t,r){const{tokens:n,capturingGroups:l,namedGroupsByName:o,skipLookbehindValidation:u,walk:f}=t,p=O9(e),d=p.type==="AbsenceFunction",v=Im(p),m=v&&p.negate;if(p.type==="CapturingGroup"&&(l.push(p),p.name&&ZS(o,p.name,[]).push(p)),d&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let y=jm(n[t.nextIndex]);for(;y.type!=="GroupClose";){if(y.type==="Alternator")p.body.push(rn()),t.nextIndex++;else{const b=p.body.at(-1),S=f(b,{...r,isInAbsenceFunction:r.isInAbsenceFunction||d,isInLookbehind:r.isInLookbehind||v,isInNegLookbehind:r.isInNegLookbehind||m});if(b.body.push(S),(v||r.isInLookbehind)&&!u){const x="Lookbehind includes a pattern not allowed by Oniguruma";if(m||r.isInNegLookbehind){if(Gm(S)||S.type==="CapturingGroup")throw new Error(x)}else if(Gm(S)||Im(S)&&S.negate)throw new Error(x)}}y=jm(n[t.nextIndex])}return t.nextIndex++,p}function E9({kind:e,min:t,max:r},n){const l=n.parent,o=l.body.at(-1);if(!o||!m9(o))throw new Error("Quantifier requires a repeatable token");const u=p4(e,t,r,o);return l.body.pop(),u}function x9({raw:e},t){const{capturingGroups:r,subroutines:n}=t;let l=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(l);if(o){const f=+o.groups.num,p=r.length;if(t.hasNumberedRef=!0,l={"":f,"+":p+f,"-":p+1-f}[o.groups.sign],l<1)throw new Error("Invalid subroutine number")}else l==="0"&&(l=0);const u=_4(l);return n.push(u),u}function A9(e,t){return{type:"AbsenceFunction",kind:e,body:Bl(t==null?void 0:t.body)}}function rn(e){return{type:"Alternative",body:m4(e==null?void 0:e.body)}}function xf(e,t){const r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!(t!=null&&t.negate)),r}function Af(e,t){const r=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...r&&{orphan:r}}}function d4(e,t){const r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!N9(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Bl(t==null?void 0:t.body)}}function nu(e,t){const r={useLastValid:!1,...t};if(e>1114111){const n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}function Cc(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:m4(e==null?void 0:e.body)}}function k9(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function kf(e,t){const r=!!(t!=null&&t.negate),n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}function T9(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:aa(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function R9(e){return{type:"Flags",...e}}function Ki(e){const t=e==null?void 0:e.atomic,r=e==null?void 0:e.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:Bl(e==null?void 0:e.body)}}function Fs(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Bl(e==null?void 0:e.body)}}function L9(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function M9(e,t){const r=!!(t!=null&&t.negate);if(!Md.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function p4(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function D9(e,t){return{type:"Regex",body:Bl(t==null?void 0:t.body),flags:e}}function _4(e){return{type:"Subroutine",ref:e}}function Qn(e,t){var l;const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let n=(l=r.unicodePropertyMap)==null?void 0:l.get(au(e));if(!n){if(r.normalizeUnknownPropertyNames)n=B9(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(Gt`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function O9({flags:e,kind:t,name:r,negate:n,number:l}){switch(t){case"absence_repeater":return A9("repeater");case"atomic":return Ki({atomic:!0});case"capturing":return d4(l,{name:r});case"group":return Ki({flags:e});case"lookahead":case"lookbehind":return Fs({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}function Bl(e){if(e===void 0)e=[rn()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function m4(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function Gm(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Im(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function N9(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function B9(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function au(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Um(e,t){return aa(e,`${(t==null?void 0:t.type)==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function jm(e){return aa(e,"Unclosed group")}function wl(e,t,r=null){function n(o,u){for(let f=0;f<o.length;f++){const p=l(o[f],u,f,o);f=Math.max(-1,f+p)}}function l(o,u=null,f=null,p=null){var M,z;let d=0,v=!1;const m={node:o,parent:u,key:f,container:p,root:e,remove(){fc(p).splice(Math.max(0,Wn(f)+d),1),d--,v=!0},removeAllNextSiblings(){return fc(p).splice(Wn(f)+1)},removeAllPrevSiblings(){const O=Wn(f)+d;return d-=O,fc(p).splice(0,Math.max(0,O))},replaceWith(O,P={}){const W=!!P.traverse;p?p[Math.max(0,Wn(f)+d)]=O:aa(u,"Can't replace root node")[f]=O,W&&l(O,u,f,p),v=!0},replaceWithMultiple(O,P={}){const W=!!P.traverse;if(fc(p).splice(Math.max(0,Wn(f)+d),1,...O),d+=O.length-1,W){let X=0;for(let ne=0;ne<O.length;ne++)X+=l(O[ne],u,Wn(f)+ne+X,p)}v=!0},skip(){v=!0}},{type:y}=o,b=t["*"],S=t[y],x=typeof b=="function"?b:b==null?void 0:b.enter,T=typeof S=="function"?S:S==null?void 0:S.enter;if(x==null||x(m,r),T==null||T(m,r),!v)switch(y){case"AbsenceFunction":case"CapturingGroup":case"Group":n(o.body,o);break;case"Alternative":case"CharacterClass":n(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":l(o.min,o,"min"),l(o.max,o,"max");break;case"LookaroundAssertion":n(o.body,o);break;case"Quantifier":l(o.body,o,"body");break;case"Regex":n(o.body,o),l(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${y}"`)}return(M=S==null?void 0:S.exit)==null||M.call(S,m,r),(z=b==null?void 0:b.exit)==null||z.call(b,m,r),d}return l(e),e}function fc(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Wn(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const z9=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function H9(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function V9(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}const ji=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Od(e,t,r,n){const l=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let u=0,f="";for(const p of e.matchAll(l)){const{0:d,groups:{$skip:v}}=p;if(!v&&(!n||n===ji.DEFAULT==!u)){r instanceof Function?f+=r(p,{context:u?ji.CHAR_CLASS:ji.DEFAULT,negated:o[o.length-1]}):f+=r;continue}d[0]==="["?(u++,o.push(d[1]==="^")):d==="]"&&u&&(u--,o.pop()),f+=d}return f}function g4(e,t,r,n){Od(e,t,r,n)}function P9(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;const l=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");l.lastIndex=r;let o=0,u;for(;u=l.exec(e);){const{0:f,groups:{$skip:p}}=u;if(!p&&(!n||n===ji.DEFAULT==!o))return u;f==="["?o++:f==="]"&&o&&o--,l.lastIndex==u.index&&l.lastIndex++}return null}function dc(e,t,r){return!!P9(e,t,0,r)}function G9(e,t){const r=/\\?./gsu;r.lastIndex=t;let n=e.length,l=0,o=1,u;for(;u=r.exec(e);){const[f]=u;if(f==="[")l++;else if(l)f==="]"&&l--;else if(f==="(")o++;else if(f===")"&&(o--,!o)){n=u.index;break}}return e.slice(t,n)}const qm=new RegExp(String.raw`(?<noncapturingStart>${z9})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function I9(e,t){const r=(t==null?void 0:t.hiddenCaptures)??[];let n=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};const l="(?>",o="(?:(?=(",u=[0],f=[];let p=0,d=0,v=NaN,m;do{m=!1;let y=0,b=0,S=!1,x;for(qm.lastIndex=Number.isNaN(v)?0:v+o.length;x=qm.exec(e);){const{0:T,index:M,groups:{capturingStart:z,noncapturingStart:O}}=x;if(T==="[")y++;else if(y)T==="]"&&y--;else if(T===l&&!S)v=M,S=!0;else if(S&&O)b++;else if(z)S?b++:(p++,u.push(p+d));else if(T===")"&&S){if(!b){d++;const P=p+d;if(e=`${e.slice(0,v)}${o}${e.slice(v+l.length,M)}))<$$${P}>)${e.slice(M+1)}`,m=!0,f.push(P),H9(r,P),n.size){const W=new Map;n.forEach((X,ne)=>{W.set(ne>=P?ne+1:ne,X.map(_e=>_e>=P?_e+1:_e))}),n=W}break}b--}}}while(m);return r.push(...f),e=Od(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:y,groups:{backrefNum:b,wrappedBackrefNum:S}})=>{if(b){const x=+b;if(x>u.length-1)throw new Error(`Backref "${y}" greater than number of captures`);return`\\${u[x]}`}return`\\${S}`},ji.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}const v4=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,j1=new RegExp(String.raw`
94
+ \\(?: \d+
95
+ | c[A-Za-z]
96
+ | [gk]<[^>]+>
97
+ | [pPu]\{[^\}]+\}
98
+ | u[A-Fa-f\d]{4}
99
+ | x[A-Fa-f\d]{2}
100
+ )
101
+ | \((?: \? (?: [:=!>]
102
+ | <(?:[=!]|[^>]+>)
103
+ | [A-Za-z\-]+:
104
+ | \(DEFINE\)
105
+ ))?
106
+ | (?<qBase>${v4})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
107
+ | \\?.
108
+ `.replace(/\s+/g,""),"gsu");function U9(e){if(!new RegExp(`${v4}\\+`).test(e))return{pattern:e};const t=[];let r=null,n=null,l="",o=0,u;for(j1.lastIndex=0;u=j1.exec(e);){const{0:f,index:p,groups:{qBase:d,qMod:v,invalidQ:m}}=u;if(f==="[")o||(n=p),o++;else if(f==="]")o?o--:n=null;else if(!o)if(v==="+"&&l&&!l.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${f}"`);let y=-1;if(/^\{\d+\}$/.test(d))e=V9(e,p+d.length,v,"");else{if(l===")"||l==="]"){const b=l===")"?r:n;if(b===null)throw new Error(`Invalid unmatched "${l}"`);e=`${e.slice(0,b)}(?>${e.slice(b,p)}${d})${e.slice(p+f.length)}`}else e=`${e.slice(0,p-l.length)}(?>${l}${d})${e.slice(p+f.length)}`;y+=4}j1.lastIndex+=y}else f[0]==="("?t.push(p):f===")"&&(r=t.length?t.pop():null);l=f}return{pattern:e}}const Ui=String.raw,j9=Ui`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Tf=Ui`\(\?R=(?<rDepth>[^\)]+)\)|${j9}`,lu=Ui`\(\?<(?![=!])(?<captureName>[^>]+)>`,y4=Ui`${lu}|(?<unnamed>\()(?!\?)`,qs=new RegExp(Ui`${lu}|${Tf}|\(\?|\\?.`,"gsu"),q1="Cannot use multiple overlapping recursions";function q9(e,t){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t};let l=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(Tf,"su").test(e))return{pattern:e,captureTransfers:l,hiddenCaptures:r};if(n==="plugin"&&dc(e,Ui`\(\?\(DEFINE\)`,ji.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],u=dc(e,Ui`\\[1-9]`,ji.DEFAULT),f=new Map,p=[];let d=!1,v=0,m=0,y;for(qs.lastIndex=0;y=qs.exec(e);){const{0:b,groups:{captureName:S,rDepth:x,gRNameOrNum:T,gRDepth:M}}=y;if(b==="[")v++;else if(v)b==="]"&&v--;else if(x){if($m(x),d)throw new Error(q1);if(u)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const z=e.slice(0,y.index),O=e.slice(qs.lastIndex);if(dc(O,Tf,ji.DEFAULT))throw new Error(q1);const P=+x-1;e=Zm(z,O,P,!1,r,o,m),l=Fm(l,z,P,o.length,0,m);break}else if(T){$m(M);let z=!1;for(const J of p)if(J.name===T||J.num===+T){if(z=!0,J.hasRecursedWithin)throw new Error(q1);break}if(!z)throw new Error(Ui`Recursive \g cannot be used outside the referenced group "${n==="external"?T:Ui`\g<${T}&R=${M}>`}"`);const O=f.get(T),P=G9(e,O);if(u&&dc(P,Ui`${lu}|\((?!\?)`,ji.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const W=e.slice(O,y.index),X=P.slice(W.length+b.length),ne=o.length,_e=+M-1,oe=Zm(W,X,_e,!0,r,o,m);l=Fm(l,W,_e,o.length-ne,ne,m);const Ee=e.slice(0,O),de=e.slice(O+P.length);e=`${Ee}${oe}${de}`,qs.lastIndex+=oe.length-b.length-W.length-X.length,p.forEach(J=>J.hasRecursedWithin=!0),d=!0}else if(S)m++,f.set(String(m),qs.lastIndex),f.set(S,qs.lastIndex),p.push({num:m,name:S});else if(b[0]==="("){const z=b==="(";z&&(m++,f.set(String(m),qs.lastIndex)),p.push(z?{num:m}:{})}else b===")"&&p.pop()}return r.push(...o),{pattern:e,captureTransfers:l,hiddenCaptures:r}}function $m(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Zm(e,t,r,n,l,o,u){const f=new Set;n&&g4(e+t,lu,({groups:{captureName:d}})=>{f.add(d)},ji.DEFAULT);const p=[r,n?f:null,l,o,u];return`${e}${Wm(`(?:${e}`,"forward",...p)}(?:)${Wm(`${t})`,"backward",...p)}${t}`}function Wm(e,t,r,n,l,o,u){const p=v=>t==="forward"?v+2:r-v+2-1;let d="";for(let v=0;v<r;v++){const m=p(v);d+=Od(e,Ui`${y4}|\\k<(?<backref>[^>]+)>`,({0:y,groups:{captureName:b,unnamed:S,backref:x}})=>{if(x&&n&&!n.has(x))return y;const T=`_$${m}`;if(S||b){const M=u+o.length+1;return o.push(M),$9(l,M),S?y:`(?<${b}${T}>`}return Ui`\k<${x}${T}>`},ji.DEFAULT)}return d}function $9(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function Fm(e,t,r,n,l,o){if(e.size&&n){let u=0;g4(t,y4,()=>u++,ji.DEFAULT);const f=o-u+l,p=new Map;return e.forEach((d,v)=>{const m=(n-u*r)/r,y=u*r,b=v>f+u?v+n:v,S=[];for(const x of d)if(x<=f)S.push(x);else if(x>f+u+m)S.push(x+n);else if(x<=f+u)for(let T=0;T<=r;T++)S.push(x+u*T);else for(let T=0;T<=r;T++)S.push(x+y+m*T);p.set(b,S)}),p}return e}var Lt=String.fromCodePoint,Ae=String.raw,Nr={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};Nr.bugFlagVLiteralHyphenIsRange=Nr.unicodeSets?(()=>{try{new RegExp(Ae`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Nr.bugNestedClassIgnoresNegation=Nr.unicodeSets&&new RegExp("[[^a]]","v").test("a");function jc(e,{enable:t,disable:r}){return{dotAll:!(r!=null&&r.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(r!=null&&r.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function Tl(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function Rf(e,t){return Ym[e]>=Ym[t]}function Z9(e,t){if(e==null)throw new Error(t??"Value expected");return e}var Ym={ES2025:2025,ES2024:2024,ES2018:2018},W9={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function S4(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!W9[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Nr.flagGroups?"ES2025":Nr.unicodeSets?"ES2024":"ES2018"),t}var F9="[ -\r ]",Y9=new Set([Lt(304),Lt(305)]),kr=Ae`[\p{L}\p{M}\p{N}\p{Pc}]`;function b4(e){if(Y9.has(e))return[e];const t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),l=Q9.get(r),o=K9.get(r),u=X9.get(r);return[...n].length===1&&t.add(n),u&&t.add(u),l&&t.add(l),t.add(r),o&&t.add(o),[...t]}var Nd=new Map(`C Other
109
+ Cc Control cntrl
110
+ Cf Format
111
+ Cn Unassigned
112
+ Co Private_Use
113
+ Cs Surrogate
114
+ L Letter
115
+ LC Cased_Letter
116
+ Ll Lowercase_Letter
117
+ Lm Modifier_Letter
118
+ Lo Other_Letter
119
+ Lt Titlecase_Letter
120
+ Lu Uppercase_Letter
121
+ M Mark Combining_Mark
122
+ Mc Spacing_Mark
123
+ Me Enclosing_Mark
124
+ Mn Nonspacing_Mark
125
+ N Number
126
+ Nd Decimal_Number digit
127
+ Nl Letter_Number
128
+ No Other_Number
129
+ P Punctuation punct
130
+ Pc Connector_Punctuation
131
+ Pd Dash_Punctuation
132
+ Pe Close_Punctuation
133
+ Pf Final_Punctuation
134
+ Pi Initial_Punctuation
135
+ Po Other_Punctuation
136
+ Ps Open_Punctuation
137
+ S Symbol
138
+ Sc Currency_Symbol
139
+ Sk Modifier_Symbol
140
+ Sm Math_Symbol
141
+ So Other_Symbol
142
+ Z Separator
143
+ Zl Line_Separator
144
+ Zp Paragraph_Separator
145
+ Zs Space_Separator
146
+ ASCII
147
+ ASCII_Hex_Digit AHex
148
+ Alphabetic Alpha
149
+ Any
150
+ Assigned
151
+ Bidi_Control Bidi_C
152
+ Bidi_Mirrored Bidi_M
153
+ Case_Ignorable CI
154
+ Cased
155
+ Changes_When_Casefolded CWCF
156
+ Changes_When_Casemapped CWCM
157
+ Changes_When_Lowercased CWL
158
+ Changes_When_NFKC_Casefolded CWKCF
159
+ Changes_When_Titlecased CWT
160
+ Changes_When_Uppercased CWU
161
+ Dash
162
+ Default_Ignorable_Code_Point DI
163
+ Deprecated Dep
164
+ Diacritic Dia
165
+ Emoji
166
+ Emoji_Component EComp
167
+ Emoji_Modifier EMod
168
+ Emoji_Modifier_Base EBase
169
+ Emoji_Presentation EPres
170
+ Extended_Pictographic ExtPict
171
+ Extender Ext
172
+ Grapheme_Base Gr_Base
173
+ Grapheme_Extend Gr_Ext
174
+ Hex_Digit Hex
175
+ IDS_Binary_Operator IDSB
176
+ IDS_Trinary_Operator IDST
177
+ ID_Continue IDC
178
+ ID_Start IDS
179
+ Ideographic Ideo
180
+ Join_Control Join_C
181
+ Logical_Order_Exception LOE
182
+ Lowercase Lower
183
+ Math
184
+ Noncharacter_Code_Point NChar
185
+ Pattern_Syntax Pat_Syn
186
+ Pattern_White_Space Pat_WS
187
+ Quotation_Mark QMark
188
+ Radical
189
+ Regional_Indicator RI
190
+ Sentence_Terminal STerm
191
+ Soft_Dotted SD
192
+ Terminal_Punctuation Term
193
+ Unified_Ideograph UIdeo
194
+ Uppercase Upper
195
+ Variation_Selector VS
196
+ White_Space space
197
+ XID_Continue XIDC
198
+ XID_Start XIDS`.split(/\s/).map(e=>[au(e),e])),K9=new Map([["s",Lt(383)],[Lt(383),"s"]]),X9=new Map([[Lt(223),Lt(7838)],[Lt(107),Lt(8490)],[Lt(229),Lt(8491)],[Lt(969),Lt(8486)]]),Q9=new Map([hs(453),hs(456),hs(459),hs(498),...$1(8072,8079),...$1(8088,8095),...$1(8104,8111),hs(8124),hs(8140),hs(8188)]),J9=new Map([["alnum",Ae`[\p{Alpha}\p{Nd}]`],["alpha",Ae`\p{Alpha}`],["ascii",Ae`\p{ASCII}`],["blank",Ae`[\p{Zs}\t]`],["cntrl",Ae`\p{Cc}`],["digit",Ae`\p{Nd}`],["graph",Ae`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Ae`\p{Lower}`],["print",Ae`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Ae`[\p{P}\p{S}]`],["space",Ae`\p{space}`],["upper",Ae`\p{Upper}`],["word",Ae`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Ae`\p{AHex}`]]);function eb(e,t){const r=[];for(let n=e;n<=t;n++)r.push(n);return r}function hs(e){const t=Lt(e);return[t.toLowerCase(),t]}function $1(e,t){return eb(e,t).map(r=>hs(r))}var w4=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function tb(e,t){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};C4(e);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Rf(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};wl(e,ib,n);const l={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:l,prevFlags:null,globalFlags:l,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};wl(e,rb,o);const u={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return wl(e,sb,u),e._originMap=o.groupOriginByCopy,e._strategy=n.strategy,e}var ib={AbsenceFunction({node:e,parent:t,replaceWith:r}){const{body:n,kind:l}=e;if(l==="repeater"){const o=Ki();o.body[0].body.push(Fs({negate:!0,body:n}),Qn("Any"));const u=Ki();u.body[0].body.push(p4("greedy",0,1/0,o)),r(gt(u,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){const l=e.body.filter(o=>o.kind==="flags");for(let o=r+1;o<t.body.length;o++){const u=t.body[o];Tl(n,u,[]).push(...l)}},exit({node:e},{flagDirectivesByAlt:t}){var r;if((r=t.get(e))!=null&&r.length){const n=x4(t.get(e));if(n){const l=Ki({flags:n});l.body[0].body=e.body,e.body=[gt(l,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:l,remove:o,replaceWith:u},f){const{kind:p,negate:d}=e,{asciiWordBoundaries:v,avoidSubclass:m,supportedGNodes:y,wordIsAscii:b}=f;if(p==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${d?"Y":"y"}"`);if(p==="line_end")u(gt(Fs({body:[rn({body:[xf("string_end")]}),rn({body:[nu(10)]})]}),t));else if(p==="line_start")u(gt(Tr(Ae`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(p==="search_start")if(y.has(e))l.flags.sticky=!0,o();else{const S=n[r-1];if(S&&ub(S))u(gt(Fs({negate:!0}),t));else{if(m)throw new Error(Ae`Uses "\G" in a way that requires a subclass`);u(fs(xf("string_start"),t)),f.strategy="clip_search"}}else if(!(p==="string_end"||p==="string_start"))if(p==="string_end_newline")u(gt(Tr(Ae`(?=\n?\z)`),t));else if(p==="word_boundary"){if(!b&&!v){const S=`(?:(?<=${kr})(?!${kr})|(?<!${kr})(?=${kr}))`,x=`(?:(?<=${kr})(?=${kr})|(?<!${kr})(?!${kr}))`;u(gt(Tr(d?x:S),t))}}else throw new Error(`Unexpected assertion kind "${p}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!W1(r)&&(r=Z1(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!W1(n)&&(n=Z1(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){const n=Cc({body:[e]});r(gt(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:l,digitIsAscii:o,spaceIsAscii:u,wordIsAscii:f}){const{kind:p,negate:d,value:v}=e;if(o&&(p==="digit"||v==="digit")){r(fs(kf("digit",{negate:d}),t));return}if(u&&(p==="space"||v==="space")){r(gt(F1(Tr(F9),d),t));return}if(f&&(p==="word"||v==="word")){r(fs(kf("word",{negate:d}),t));return}if(p==="any")r(fs(Qn("Any"),t));else if(p==="digit")r(fs(Qn("Nd",{negate:d}),t));else if(p!=="dot")if(p==="text_segment"){if(n==="strict")throw new Error(Ae`Use of "\X" requires non-strict accuracy`);const m="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",y=Ae`\p{RI}{2}|${m}(?:\u200D${m})*`;r(gt(Tr(Ae`(?>\r\n|${l?Ae`\p{RGI_Emoji}`:y}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(p==="hex")r(fs(Qn("AHex",{negate:d}),t));else if(p==="newline")r(gt(Tr(d?`[^
199
+ ]`:`(?>\r
200
+ ?|[
201
+ \v\f…\u2028\u2029])`),t));else if(p==="posix")if(!l&&(v==="graph"||v==="print")){if(n==="strict")throw new Error(`POSIX class "${v}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[v];d&&(m=`\0-${Lt(m.codePointAt(0)-1)}${Lt(m.codePointAt(2)+1)}-􏿿`),r(gt(Tr(`[${m}]`),t))}else r(gt(F1(Tr(J9.get(v)),d),t));else if(p==="property")Nd.has(au(v))||(e.key="sc");else if(p==="space")r(fs(Qn("space",{negate:d}),t));else if(p==="word")r(gt(F1(Tr(kr),d),t));else throw new Error(`Unexpected character set kind "${p}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:l,removeAllPrevSiblings:o,removeAllNextSiblings:u}){const{kind:f,flags:p}=e;if(f==="flags")if(!p.enable&&!p.disable)n();else{const d=Ki({flags:p});d.body[0].body=u(),l(gt(d,t),{traverse:!0})}else if(f==="keep"){const d=r.body[0],m=r.body.length===1&&h4(d,{type:"Group"})&&d.body[0].body.length===1?d.body[0]:r;if(t.parent!==m||m.body.length>1)throw new Error(Ae`Uses "\K" in a way that's unsupported`);const y=Fs({behind:!0});y.body[0].body=o(),l(gt(y,t))}else throw new Error(`Unexpected directive kind "${f}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:r}=e.flags;t!=null&&t.extended&&delete t.extended,r!=null&&r.extended&&delete r.extended,t!=null&&t.dotAll&&(r!=null&&r.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(r!=null&&r.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){const{kind:n}=e;if(n==="fail")r(gt(Fs({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Ki();t.body[0].body.push(e.body),e.body=gt(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const r=[];let n=!1,l=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const u=k4(o.body);u?(n=!0,Array.isArray(u)?r.push(...u):r.push(u)):l=!0}n&&!l&&r.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(Ae`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!W1(r)&&(r=Z1(r,t),e.ref=r)}},rb={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){const{orphan:n,ref:l}=e;n||r.set(e,[...t.get(l).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:l,groupsByName:o,multiplexCapturesToLeftByRef:u,openRefs:f,reffedNodesByReferencer:p}){const d=l.get(e);if(d&&f.has(e.number)){const m=fs(Km(e.number),t);p.set(m,f.get(e.number)),r(m);return}f.set(e.number,e),u.set(e.number,[]),e.name&&Tl(u,e.name,[]);const v=u.get(e.name??e.number);for(let m=0;m<v.length;m++){const y=v[m];if(d===y.node||d&&d===y.origin||e===y.origin){v.splice(m,1);break}}if(u.get(e.number).push({node:e,origin:d}),e.name&&u.get(e.name).push({node:e,origin:d}),e.name){const m=Tl(o,e.name,new Map);let y=!1;if(d)y=!0;else for(const b of m.values())if(!b.hasDuplicateNameToRemove){y=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:y})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=jc(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){const{isRecursive:l,ref:o}=e;if(l){let v=t;for(;(v=v.parent)&&!(v.type==="CapturingGroup"&&(v.name===o||v.number===o)););n.reffedNodesByReferencer.set(e,v);return}const u=n.subroutineRefMap.get(o),f=o===0,p=f?Km(0):E4(u,n.groupOriginByCopy,null);let d=p;if(!f){const v=x4(lb(u,y=>y.type==="Group"&&!!y.flags)),m=v?jc(n.globalFlags,v):n.globalFlags;nb(m,n.currentFlags)||(d=Ki({flags:ob(m)}),d.body[0].body.push(p))}r(gt(d,t),{traverse:!f})}},sb={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}const o=n.reffedNodesByReferencer.get(e).filter(u=>ab(u,e));if(!o.length)r(gt(Fs({negate:!0}),t));else if(o.length>1){const u=Ki({atomic:!0,body:o.reverse().map(f=>rn({body:[Af(f.number)]}))});r(gt(u,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){const l=d4();e.body.at(-1).body.push(l)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function C4(e){wl(e,{"*"({node:t,parent:r}){t.parent=r}})}function nb(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function ab(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;const n=A4(r.parent);for(const l of n){if(l===r)break;if(l===e||T4(l,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function E4(e,t,r,n){const l=Array.isArray(e)?[]:{};for(const[o,u]of Object.entries(e))o==="parent"?l.parent=Array.isArray(r)?n:r:u&&typeof u=="object"?l[o]=E4(u,t,l,r):(o==="type"&&u==="CapturingGroup"&&t.set(l,t.get(e)??e),l[o]=u);return l}function Km(e){const t=_4(e);return t.isRecursive=!0,t}function lb(e,t){const r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function Z1(e,t){if(t.has(e))return t.get(e);const r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function x4(e){const t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(l=>{var o,u;(o=n.enable)!=null&&o[l]&&(delete r.disable[l],r.enable[l]=!0),(u=n.disable)!=null&&u[l]&&(r.disable[l]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function ob({dotAll:e,ignoreCase:t}){const r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function A4(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function k4(e){const t=e.find(r=>r.kind==="search_start"||hb(r,{negate:!1})||!cb(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const r=[];for(const n of t.body){const l=k4(n.body);if(!l)return null;Array.isArray(l)?r.push(...l):r.push(l)}return r}return null}function T4(e,t){const r=A4(e)??[];for(const n of r)if(n===t||T4(n,t))return!0;return!1}function cb({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function ub(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function hb(e,t){const r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&h4(e.body[0],{type:"Assertion",kind:"search_start"})}function W1(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Tr(e,t){const n=f4(e,{...t,unicodePropertyMap:Nd}).body;return n.length>1||n[0].body.length>1?Ki({body:n}):n[0].body[0]}function F1(e,t){return e.negate=t,e}function fs(e,t){return e.parent=t,e}function gt(e,t){return C4(e),e.parent=t,e}function fb(e,t){const r=S4(t),n=Rf(r.target,"ES2024"),l=Rf(r.target,"ES2025"),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let u=null,f=null;if(!l){const b=[e.flags.ignoreCase];wl(e,db,{getCurrentModI:()=>b.at(-1),popModI(){b.pop()},pushModI(S){b.push(S)},setHasCasedChar(){b.at(-1)?u=!0:f=!0}})}const p={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||u)&&!f)};let d=e;const v={accuracy:r.accuracy,appliedGlobalFlags:p,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:d,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!l&&u&&f),useFlagMods:l,useFlagV:n,verbose:r.verbose};function m(b){return v.lastNode=d,d=b,Z9(pb[b.type],`Unexpected node type "${b.type}"`)(b,v,m)}const y={pattern:e.body.map(m).join("|"),flags:m(e.flags),options:{...e.options}};return n||(delete y.options.force.v,y.options.disable.v=!0,y.options.unicodeSetsPlugin=null),y._captureTransfers=new Map,y._hiddenCaptures=[],v.captureMap.forEach((b,S)=>{b.hidden&&y._hiddenCaptures.push(S),b.transferTo&&Tl(y._captureTransfers,b.transferTo,[]).push(S)}),y}var db={"*":{enter({node:e},t){if(Qm(e)){const r=t.getCurrentModI();t.pushModI(e.flags?jc({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){Qm(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Bd(Lt(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),R4(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&w4.has(e.value)&&t.setHasCasedChar()}},pb={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?Ae`\B`:Ae`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){const{body:n,name:l,number:o}=e,u={ignoreCase:t.currentFlags.ignoreCase},f=t.originMap.get(e);return f&&(u.hidden=!0,o>f.number&&(u.transferTo=f.number)),t.captureMap.set(o,u),`(${l?`?<${l}>`:""}${n.map(r).join("|")})`},Character({value:e},t){const r=Lt(e),n=Fn(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Bd(r)){const l=b4(r);return t.inCharClass?l.join(""):l.length>1?`[${l.join("")}]`:l[0]}return r},CharacterClass(e,t,r){const{kind:n,negate:l,parent:o}=e;let{body:u}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Nr.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&u.some(Jm)&&(u=[nu(45),...u.filter(d=>!Jm(d))]);const f=()=>`[${l?"^":""}${u.map(r).join(n==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Nr.bugNestedClassIgnoresNegation)&&!l){const v=u.filter(m=>m.type==="CharacterClass"&&m.kind==="union"&&m.negate);if(v.length){const m=Ki(),y=m.body[0];return m.parent=o,y.parent=m,u=u.filter(b=>!v.includes(b)),e.body=u,u.length?(e.parent=y,y.body.push(e)):m.body.pop(),v.forEach(b=>{const S=rn({body:[b]});b.parent=S,S.parent=m,m.body.push(S)}),r(m)}}t.inCharClass=!0;const d=f();return t.inCharClass=!1,d}const p=u[0];if(n==="union"&&!l&&p&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(Nr.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&u.length===1&&p.type!=="CharacterClassRange"))return u.map(r).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return f()},CharacterClassRange(e,t){const r=e.min.value,n=e.max.value,l={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=Fn(r,l),u=Fn(n,l),f=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const p=R4(e);yb(p).forEach(v=>{f.add(Array.isArray(v)?`${Fn(v[0],l)}-${Fn(v[1],l)}`:Fn(v,l))})}return`${o}-${u}${[...f].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},l){if(e==="dot")return l.currentFlags.dotAll?l.appliedGlobalFlags.dotAll||l.useFlagMods?".":"[^]":Ae`[^\n]`;if(e==="digit")return t?Ae`\D`:Ae`\d`;if(e==="property"){if(l.useAppliedIgnoreCase&&l.currentFlags.ignoreCase&&w4.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?Ae`\P`:Ae`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?Ae`\W`:Ae`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},l,o){const u=l.currentFlags;r&&(l.currentFlags=jc(u,r));const f=t.map(o).join("|"),p=!l.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!l.useFlagMods||!r)?f:`(?${Sb(e,r,l.useFlagMods)}${f})`;return l.currentFlags=u,p},LookaroundAssertion({body:e,kind:t,negate:r},n,l){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(l).join("|")})`},Quantifier(e,t,r){return r(e.body)+bb(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return t===0?`(?R=${n})`:Ae`\g<${t}&R=${n}>`}},_b=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),mb=new Set(["-","\\","]","^","["]),gb=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Xm=new Map([[9,Ae`\t`],[10,Ae`\n`],[11,Ae`\v`],[12,Ae`\f`],[13,Ae`\r`],[8232,Ae`\u2028`],[8233,Ae`\u2029`],[65279,Ae`\uFEFF`]]),vb=new RegExp("^\\p{Cased}$","u");function Bd(e){return vb.test(e)}function R4(e,t){const r=!!(t!=null&&t.firstOnly),n=e.min.value,l=e.max.value,o=[];if(n<65&&(l===65535||l>=131071)||n===65536&&l>=131071)return o;for(let u=n;u<=l;u++){const f=Lt(u);if(!Bd(f))continue;const p=b4(f).filter(d=>{const v=d.codePointAt(0);return v<n||v>l});if(p.length&&(o.push(...p),r))break}return o}function Fn(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(Xm.has(e))return Xm.get(e);if(e<32||e>126&&e<160||e>262143||t&&wb(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const l=r?n?gb:mb:_b,o=Lt(e);return(l.has(o)?"\\":"")+o}function yb(e){const t=e.map(l=>l.codePointAt(0)).sort((l,o)=>l-o),r=[];let n=null;for(let l=0;l<t.length;l++)t[l+1]===t[l]+1?n??(n=t[l]):n===null?r.push(t[l]):(r.push([n,t[l]]),n=null);return r}function Sb(e,t,r){if(e)return">";let n="";if(t&&r){const{enable:l,disable:o}=t;n=(l!=null&&l.ignoreCase?"i":"")+(l!=null&&l.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${n}:`}function bb({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}function Qm({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function wb(e){return e>47&&e<58}function Jm({type:e,value:t}){return e==="Character"&&t===45}var ps,Lr,Qs,_s,Js,Dl,Lf,bs,Cb=(bs=class extends RegExp{constructor(r,n,l){var t=(...Xx)=>(super(...Xx),js(this,Dl),js(this,ps,new Map),js(this,Lr,null),js(this,Qs),js(this,_s,null),js(this,Js,null),Y(this,"rawOptions",{}),this);const o=!!(l!=null&&l.lazyCompile);if(r instanceof RegExp){if(l)throw new Error("Cannot provide options when copying a regexp");const u=r;t(u,n),Fi(this,Qs,u.source),u instanceof bs&&(Fi(this,ps,ii(u,ps)),Fi(this,_s,ii(u,_s)),Fi(this,Js,ii(u,Js)),this.rawOptions=u.rawOptions)}else{const u={hiddenCaptures:[],strategy:null,transfers:[],...l};t(o?"":r,n),Fi(this,Qs,r),Fi(this,ps,xb(u.hiddenCaptures,u.transfers)),Fi(this,Js,u.strategy),this.rawOptions=l??{}}o||Fi(this,Lr,this)}get source(){return ii(this,Qs)||"(?:)"}exec(r){if(!ii(this,Lr)){const{lazyCompile:o,...u}=this.rawOptions;Fi(this,Lr,new bs(ii(this,Qs),this.flags,u))}const n=this.global||this.sticky,l=this.lastIndex;if(ii(this,Js)==="clip_search"&&n&&l){this.lastIndex=0;const o=k1(this,Dl,Lf).call(this,r.slice(l));return o&&(Eb(o,l,r,this.hasIndices),this.lastIndex+=l),o}return k1(this,Dl,Lf).call(this,r)}},ps=new WeakMap,Lr=new WeakMap,Qs=new WeakMap,_s=new WeakMap,Js=new WeakMap,Dl=new WeakSet,Lf=function(r){ii(this,Lr).lastIndex=this.lastIndex;const n=j_(bs.prototype,this,"exec").call(ii(this,Lr),r);if(this.lastIndex=ii(this,Lr).lastIndex,!n||!ii(this,ps).size)return n;const l=[...n];n.length=1;let o;this.hasIndices&&(o=[...n.indices],n.indices.length=1);const u=[0];for(let f=1;f<l.length;f++){const{hidden:p,transferTo:d}=ii(this,ps).get(f)??{};if(p?u.push(null):(u.push(n.length),n.push(l[f]),this.hasIndices&&n.indices.push(o[f])),d&&l[f]!==void 0){const v=u[d];if(!v)throw new Error(`Invalid capture transfer to "${v}"`);if(n[v]=l[f],this.hasIndices&&(n.indices[v]=o[f]),n.groups){ii(this,_s)||Fi(this,_s,Ab(this.source));const m=ii(this,_s).get(d);m&&(n.groups[m]=l[f],this.hasIndices&&(n.indices.groups[m]=o[f]))}}}return n},bs);function Eb(e,t,r,n){if(e.index+=t,e.input=r,n){const l=e.indices;for(let u=0;u<l.length;u++){const f=l[u];f&&(l[u]=[f[0]+t,f[1]+t])}const o=l.groups;o&&Object.keys(o).forEach(u=>{const f=o[u];f&&(o[u]=[f[0]+t,f[1]+t])})}}function xb(e,t){const r=new Map;for(const n of e)r.set(n,{hidden:!0});for(const[n,l]of t)for(const o of l)Tl(r,o,{}).transferTo=n;return r}function Ab(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,l=0,o;for(;o=t.exec(e);){const{0:u,groups:{capture:f,name:p}}=o;u==="["?n++:n?u==="]"&&n--:f&&(l++,p&&r.set(l,p))}return r}function kb(e,t){const r=Tb(e,t);return r.options?new Cb(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function Tb(e,t){const r=S4(t),n=f4(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:Nd}),l=tb(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),o=fb(l,r),u=q9(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),f=U9(u.pattern),p=I9(f.pattern,{captureTransfers:u.captureTransfers,hiddenCaptures:u.hiddenCaptures}),d={pattern:p.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const v=p.hiddenCaptures.sort((S,x)=>S-x),m=Array.from(p.captureTransfers),y=l._strategy,b=d.pattern.length>=r.lazyCompileLength;(v.length||m.length||y||b)&&(d.options={...v.length&&{hiddenCaptures:v},...m.length&&{transfers:m},...y&&{strategy:y},...b&&{lazyCompile:b}})}return d}function L4(e,t){return kb(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Rb(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=r=>L4(r,{target:t.target})),{createScanner(r){return new $S(r,t)},createString(r){return{content:r}}}}var Lb=md({bundledLanguages:()=>yd,bundledLanguagesAlias:()=>vd,bundledLanguagesBase:()=>gd,bundledLanguagesInfo:()=>Kc,bundledThemes:()=>bd,bundledThemesInfo:()=>Sd,codeToHast:()=>e4,codeToHtml:()=>Jg,codeToTokens:()=>t4,codeToTokensBase:()=>i4,codeToTokensWithThemes:()=>r4,createHighlighter:()=>su,createJavaScriptRegexEngine:()=>Rb,createOnigurumaEngine:()=>hg,defaultJavaScriptRegexConstructor:()=>L4,getLastGrammarState:()=>n4,getSingletonHighlighter:()=>s4,loadWasm:()=>Cd});og(Lb,qS);let Y1=null;const K1=new Set;function Mb(){return Y1||(Y1=su({themes:["github-dark"],langs:["text"]})),Y1}function Db(e){var l,o;const t=((l=e.split(".").pop())==null?void 0:l.toLowerCase())??"",r={ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",json:"json",md:"markdown",css:"css",scss:"scss",html:"html",xml:"xml",svg:"xml",py:"python",rb:"ruby",rs:"rust",go:"go",java:"java",kt:"kotlin",swift:"swift",c:"c",cpp:"cpp",h:"c",hpp:"cpp",sh:"bash",bash:"bash",zsh:"bash",sql:"sql",yaml:"yaml",yml:"yaml",toml:"toml",dockerfile:"dockerfile",makefile:"makefile",vue:"vue",svelte:"svelte",graphql:"graphql",gql:"graphql",lua:"lua",php:"php",r:"r"},n=((o=e.split("/").pop())==null?void 0:o.toLowerCase())??"";return n==="dockerfile"?"dockerfile":n==="makefile"||n==="gnumakefile"?"makefile":r[t]||"text"}function Ob(e,t,r){let n=0;return e.replace(/<span class="line"/g,()=>{n++;const l=["line"];return t!=null&&t.has(n)&&l.push("diff-added"),r!=null&&r.has(n)&&l.push("diff-removed"),`<span class="${l.join(" ")}" data-line="${n}"`})}function pc(e,t){const r=e.querySelectorAll("[data-line]");for(let n=0;n<r.length;n++){const l=r[n].getBoundingClientRect();if(t.clientY>=l.top&&t.clientY<=l.bottom)return parseInt(r[n].getAttribute("data-line"),10)}if(r.length>0){const n=r[0].getBoundingClientRect();if(t.clientY<n.top)return 1;const l=r[r.length-1];return parseInt(l.getAttribute("data-line"),10)}return null}const M4=B.memo(function({code:t,filePath:r,addedLines:n,removedLines:l,onSelectionChange:o,scrollToLine:u,wordWrap:f}){const[p,d]=B.useState(null),[v,m]=B.useState(!1),[y,b]=B.useState(new Set),S=B.useRef(null),x=B.useRef(null),T=B.useRef(o);T.current=o;const M=B.useRef(y);M.current=y;const z=B.useRef(null),O=B.useRef(!1),P=B.useRef(null),W=B.useRef(!1),X=B.useRef(null),ne=B.useRef(null),_e=B.useRef(!1);B.useEffect(()=>{let A=!1;return(async()=>{try{const N=await Mb(),Z=Db(r);if(Z!=="text"&&!K1.has(Z))try{await N.loadLanguage(Z),K1.add(Z)}catch{}const se=K1.has(Z)?Z:"text",ue=N.codeToHtml(t,{lang:se,theme:"github-dark"});A||d(ue)}catch{A||m(!0)}})(),()=>{A=!0}},[t,r]),B.useEffect(()=>{b(new Set),P.current=null,o==null||o([])},[r,t]);const oe=B.useRef(null);B.useLayoutEffect(()=>{if(u==null||!p||!S.current)return;const A=`${r}:${u}`;if(oe.current===A)return;oe.current=A;const N=S.current.querySelector(`[data-line="${u}"]`);if(!N){x.current&&(x.current.style.visibility="");return}const Z=S.current.closest(".file-content-body");if(!Z){x.current&&(x.current.style.visibility="");return}const se=N.offsetTop-Z.offsetTop-3*19.2;Z.scrollTo({top:Math.max(0,se),behavior:"instant"}),x.current&&(x.current.style.visibility="")},[p,u,r]);const Ee=B.useMemo(()=>p?Ob(p,n,l):null,[p,n,l]),de=B.useMemo(()=>{if(y.size===0)return null;const A=Array.from(y).sort((N,Z)=>N-Z);return{start:A[0],end:A[A.length-1]}},[y]),J=B.useCallback((A,N)=>{var se;const Z=new Set;for(let ue=A;ue<=N;ue++)Z.add(ue);b(Z),(se=T.current)==null||se.call(T,Array.from(Z).sort((ue,le)=>ue-le))},[]),I=B.useCallback(()=>{var A;b(new Set),P.current=null,_e.current=!1,(A=T.current)==null||A.call(T,[])},[]),K=B.useCallback(A=>{var Z;if(O.current||!S.current)return;const N=pc(S.current,A);N!==null&&(A.preventDefault(),(Z=window.getSelection())==null||Z.removeAllRanges(),z.current={anchor:N,dragged:!1,startX:A.clientX,startY:A.clientY})},[]),re=B.useCallback(A=>{if(!z.current||!S.current)return;if(!z.current.dragged){const le=A.clientX-z.current.startX,fe=A.clientY-z.current.startY;if(le*le+fe*fe<25)return;z.current.dragged=!0}const N=pc(S.current,A);if(N===null)return;const Z=Math.min(z.current.anchor,N),se=Math.max(z.current.anchor,N),ue=new Set;for(let le=Z;le<=se;le++)ue.add(le);b(ue)},[]),R=B.useCallback(()=>{if(O.current||!z.current)return;const A=z.current.dragged;z.current=null,A?b(N=>{var se;const Z=Array.from(N).sort((ue,le)=>ue-le);return(se=T.current)==null||se.call(T,Z),N}):I()},[I]);B.useEffect(()=>{const A=()=>{if(O.current||!z.current)return;const N=z.current.dragged;z.current=null,N?b(Z=>{var ue;const se=Array.from(Z).sort((le,fe)=>le-fe);return(ue=T.current)==null||ue.call(T,se),Z}):I()};return window.addEventListener("mouseup",A),()=>window.removeEventListener("mouseup",A)},[I]),B.useEffect(()=>{if(!S.current)return;const A=S.current,N=10,Z=300;let se=0,ue=0,le=-1,fe=!1,Pe=0;const Me=Ie=>{Ie.pointerType!=="mouse"&&A.contains(Ie.target)&&(W.current||(le=Ie.pointerId,se=Ie.clientX,ue=Ie.clientY,fe=!1,O.current=!0))},vt=Ie=>{if(Ie.pointerId!==le)return;const Ai=Ie.clientX-se,ai=Ie.clientY-ue;Ai*Ai+ai*ai>N*N&&(fe=!0)},dt=Ie=>{if(Ie.pointerId!==le)return;le=-1;const Ai=Date.now();if(!fe&&Ai-Pe>Z)if(Pe=Ai,M.current.size>0)I();else{const ai=pc(A,{clientY:ue});ai!==null&&(P.current=ai,J(ai,ai))}setTimeout(()=>{O.current=!1},400)},ot=Ie=>{Ie.pointerId===le&&(le=-1,setTimeout(()=>{O.current=!1},400))},Ne=Ie=>{A.contains(Ie.target)&&Ie.preventDefault()};return document.addEventListener("pointerdown",Me),document.addEventListener("pointermove",vt),document.addEventListener("pointerup",dt),document.addEventListener("pointercancel",ot),document.addEventListener("contextmenu",Ne),()=>{document.removeEventListener("pointerdown",Me),document.removeEventListener("pointermove",vt),document.removeEventListener("pointerup",dt),document.removeEventListener("pointercancel",ot),document.removeEventListener("contextmenu",Ne)}},[p,J,I]);const $=B.useCallback(A=>{A.preventDefault(),A.stopPropagation(),W.current=!0,ne.current=null,A.currentTarget.setPointerCapture(A.pointerId)},[]),q=B.useCallback(A=>{if(!W.current||!S.current||P.current===null)return;const N=pc(S.current,A);if(N===null)return;const Z=Math.min(P.current,N),se=Math.max(P.current,N),ue=N<P.current;ne.current={start:Z,end:se},_e.current=ue;const le=S.current.querySelectorAll("[data-line]");for(let fe=0;fe<le.length;fe++){const Pe=parseInt(le[fe].getAttribute("data-line"),10);Pe>=Z&&Pe<=se?le[fe].classList.add("line-selected"):le[fe].classList.remove("line-selected")}if(X.current&&x.current){const fe=ue?Z:se,Pe=S.current.querySelector(`[data-line="${fe}"]`);if(Pe){const Me=x.current.getBoundingClientRect(),vt=Pe.getBoundingClientRect(),dt=S.current.closest(".file-content-body"),ot=dt?dt.scrollLeft+dt.clientWidth/2:x.current.clientWidth/2;X.current.style.left=`${ot}px`,ue?(X.current.style.top=`${vt.top-Me.top-X.current.offsetHeight}px`,X.current.classList.add("cv-drag-handle--top")):(X.current.style.top=`${vt.bottom-Me.top}px`,X.current.classList.remove("cv-drag-handle--top"))}}},[]),me=B.useCallback(()=>{W.current&&(W.current=!1,ne.current&&(J(ne.current.start,ne.current.end),ne.current=null))},[J]);if(B.useLayoutEffect(()=>{if(!S.current)return;if(S.current.querySelectorAll("[data-line]").forEach(N=>{const Z=parseInt(N.getAttribute("data-line"),10);y.has(Z)?N.classList.add("line-selected"):N.classList.remove("line-selected")}),X.current&&x.current&&y.size>0){const N=Array.from(y).sort((le,fe)=>le-fe),Z=x.current.getBoundingClientRect(),se=S.current.closest(".file-content-body"),ue=se?se.scrollLeft+se.clientWidth/2:x.current.clientWidth/2;if(X.current.style.left=`${ue}px`,_e.current){const le=S.current.querySelector(`[data-line="${N[0]}"]`);if(le){const fe=le.getBoundingClientRect();X.current.style.top=`${fe.top-Z.top-X.current.offsetHeight}px`,X.current.classList.add("cv-drag-handle--top")}}else{const le=S.current.querySelector(`[data-line="${N[N.length-1]}"]`);if(le){const fe=le.getBoundingClientRect();X.current.style.top=`${fe.bottom-Z.top}px`,X.current.classList.remove("cv-drag-handle--top")}}}},[y,p]),B.useEffect(()=>{if(!S.current)return;const A=S.current.closest(".file-content-body");if(!A)return;const N=()=>{if(!X.current||y.size===0)return;const Z=A.scrollLeft+A.clientWidth/2;X.current.style.left=`${Z}px`};return A.addEventListener("scroll",N,{passive:!0}),window.addEventListener("resize",N),()=>{A.removeEventListener("scroll",N),window.removeEventListener("resize",N)}},[y,p]),v)return E.jsx("pre",{className:"code-viewer-fallback",children:t});if(!Ee)return E.jsx("div",{className:"code-viewer-loading",children:"..."});const ye=u!=null&&oe.current!==`${r}:${u}`;return E.jsxs("div",{ref:x,className:"code-viewer-wrapper",style:ye?{visibility:"hidden"}:void 0,children:[E.jsx("div",{ref:S,className:`code-viewer${f?" code-viewer--wrap":""}`,dangerouslySetInnerHTML:{__html:Ee},onMouseDown:K,onMouseMove:re,onMouseUp:R}),de&&E.jsx("div",{ref:X,className:"cv-drag-handle",onPointerDown:$,onPointerMove:q,onPointerUp:me,children:E.jsx("div",{className:"cv-drag-handle-pill"})})]})});function D4({entry:e,parentPath:t,requestLs:r,onFileClick:n,selectedFile:l,depth:o=0}){const[u,f]=B.useState(!1),[p,d]=B.useState(null),[v,m]=B.useState(!1),y=t?`${t}/${e.name}`:e.name,b=async()=>{if(e.type==="dir"){if(u){f(!1);return}if(p===null){m(!0);const S=await r(y);d(S),m(!1)}f(!0)}};if(e.type==="file"){const S=l===y;return E.jsxs("div",{className:`file-tree-item file${S?" selected":""}`,style:{paddingLeft:`${12+o*16+13}px`},onClick:()=>n(y),children:[E.jsx("span",{className:"file-icon",children:E.jsx(en,{filename:e.name,size:14})}),E.jsx("span",{className:"file-name",children:e.name})]})}return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"file-tree-item folder",style:{paddingLeft:`${12+o*16}px`},onClick:b,children:[E.jsx("span",{className:`chevron ${u?"expanded":""}`,children:E.jsx(n7,{})}),E.jsx("span",{className:"file-icon",children:E.jsx(en,{filename:e.name,isDir:!0,size:14})}),E.jsxs("span",{className:"file-name",children:[e.name,"/"]}),v&&E.jsx("span",{className:"tree-loading",children:"…"})]}),u&&(p==null?void 0:p.map(S=>E.jsx(D4,{entry:S,parentPath:y,requestLs:r,onFileClick:n,selectedFile:l,depth:o+1},S.name)))]})}function Nb({topLevel:e,requestLs:t,requestFile:r,onFileContext:n}){const[l,o]=B.useState(()=>{const oe=localStorage.getItem("fb-sidebar-height");return oe?Number(oe):null}),u=B.useRef(null),f=B.useRef(null),[p,d]=B.useState(null),[v,m]=B.useState(null),[y,b]=B.useState(!1),S=B.useCallback(oe=>{if(!f.current||!u.current)return;const Ee=u.current.getBoundingClientRect(),de=oe-f.current.startY,J=Math.max(60,Math.min(f.current.startHeight+de,Ee.height-60));o(J),localStorage.setItem("fb-sidebar-height",String(J))},[]),x=B.useCallback(()=>{f.current=null},[]),T=oe=>{oe.preventDefault();const Ee=l??(u.current?u.current.getBoundingClientRect().height/2:200);f.current={startY:oe.clientY,startHeight:Ee};const de=I=>S(I.clientY),J=()=>{x(),window.removeEventListener("mousemove",de),window.removeEventListener("mouseup",J)};window.addEventListener("mousemove",de),window.addEventListener("mouseup",J)},M=oe=>{const Ee=oe.touches[0],de=l??(u.current?u.current.getBoundingClientRect().height/2:200);f.current={startY:Ee.clientY,startHeight:de};const J=K=>{K.preventDefault(),S(K.touches[0].clientY)},I=()=>{x(),window.removeEventListener("touchmove",J),window.removeEventListener("touchend",I)};window.addEventListener("touchmove",J,{passive:!1}),window.addEventListener("touchend",I)},z=async oe=>{d(oe),m(null),b(!0),n==null||n(null);const Ee=await r(oe);m(Ee),b(!1)},O=B.useCallback(oe=>{p&&(oe.length===0?n==null||n(null):n==null||n({file:p,lines:oe}))},[p,n]),[P,W]=B.useState(!0),[X,ne]=B.useState(!1),_e=e.length===0;return E.jsxs("div",{className:"file-browser",ref:u,children:[E.jsxs("div",{className:"file-browser-sidebar",style:l!=null?{height:l,flex:"none"}:{flex:1},children:[E.jsx("div",{className:"file-tree",children:_e?E.jsxs("div",{className:"file-tree-empty",children:[E.jsx(en,{filename:"",isDir:!0,size:40}),E.jsx("p",{children:"加载中…"})]}):e.map(oe=>E.jsx(D4,{entry:oe,parentPath:"",requestLs:t,onFileClick:z,selectedFile:p},oe.name))}),E.jsx("div",{className:"fb-resize-border",onMouseDown:T,onTouchStart:M})]}),E.jsx("div",{className:"file-browser-content",children:p?E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"file-content-header",onMouseDown:T,onTouchStart:M,children:[E.jsx(en,{filename:p.split("/").pop()||p}),E.jsx("span",{className:"file-content-path",children:p}),E.jsxs("div",{className:"file-content-menu",children:[E.jsx("button",{className:"file-content-menu-btn",onClick:()=>ne(!X),children:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",children:[E.jsx("circle",{cx:"12",cy:"4",r:"1.5",fill:"currentColor"}),E.jsx("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"}),E.jsx("circle",{cx:"12",cy:"20",r:"1.5",fill:"currentColor"})]})}),X&&E.jsx("div",{className:"file-content-dropdown",children:E.jsxs("div",{className:"file-content-dropdown-item",onClick:()=>{W(!P),ne(!1)},children:[E.jsx("input",{type:"checkbox",checked:P,readOnly:!0}),E.jsx("span",{children:"自动换行"})]})})]})]}),E.jsx("div",{className:"file-content-body",children:y?E.jsx("div",{className:"file-content-loading",children:"加载中…"}):v!==null?E.jsx(M4,{code:v,filePath:p,onSelectionChange:O,wordWrap:P}):E.jsx("div",{className:"file-content-error",children:"无法读取文件"})})]}):E.jsxs("div",{className:"file-empty",children:[E.jsx(en,{filename:"file",size:36}),E.jsx("p",{children:"选择文件查看内容"})]})})]})}function Bb(e){switch(e){case"A":case"?":return"added";case"M":return"modified";case"D":return"deleted";case"R":return"renamed";default:return"modified"}}function zb(e){switch(e){case"?":return"U";default:return e}}function Hb({changes:e,requestFile:t,requestDiff:r,onFileContext:n}){const[l,o]=B.useState(null),u=B.useRef(null),f=B.useRef(null),[p,d]=B.useState(null),[v,m]=B.useState(null),[y,b]=B.useState(!1),[S,x]=B.useState(new Set),[T,M]=B.useState(null),z=B.useRef(null);B.useEffect(()=>{if(!p)return;if(!e.some(re=>re.file===p)){d(null),m(null),x(new Set),n==null||n(null);return}let K=!1;return(async()=>{const[re,R]=await Promise.all([t(p),r(p)]);K||(m(re),x(new Set(R.added)))})(),()=>{K=!0}},[e,p,n,t,r]);const O=B.useCallback(K=>{if(!f.current||!u.current)return;const re=u.current.getBoundingClientRect(),R=K-f.current.startY,$=Math.max(60,Math.min(f.current.startHeight+R,re.height-60));o($)},[]),P=B.useCallback(()=>{f.current=null},[]),W=K=>{K.preventDefault();const re=l??(u.current?u.current.getBoundingClientRect().height/2:200);f.current={startY:K.clientY,startHeight:re};const R=q=>O(q.clientY),$=()=>{P(),window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",$)};window.addEventListener("mousemove",R),window.addEventListener("mouseup",$)},X=K=>{const re=K.touches[0],R=l??(u.current?u.current.getBoundingClientRect().height/2:200);f.current={startY:re.clientY,startHeight:R};const $=me=>{me.preventDefault(),O(me.touches[0].clientY)},q=()=>{P(),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",q)};window.addEventListener("touchmove",$,{passive:!1}),window.addEventListener("touchend",q)},ne=async K=>{d(K),m(null),x(new Set),M(null),b(!0),n==null||n(null),z.current&&z.current.scrollTo({top:0,behavior:"instant"});const[re,R]=await Promise.all([t(K),r(K)]);m(re),x(new Set(R.added)),b(!1);const $=[...R.added].sort((q,me)=>q-me);$.length>0&&M($[0])},_e=B.useCallback(K=>{p&&(K.length===0?n==null||n(null):n==null||n({file:p,lines:K}))},[p,n]),[oe,Ee]=B.useState(!0),[de,J]=B.useState(!1),I=e.length===0;return E.jsxs("div",{className:"changes-view",ref:u,children:[E.jsxs("div",{className:"changes-list",style:l!=null?{height:l,flex:"none"}:{flex:1},children:[E.jsx("div",{className:"change-items",children:I?E.jsx("div",{className:"changes-empty",children:E.jsx("p",{children:"暂无变更"})}):e.map(K=>E.jsxs("div",{className:`change-item ${Bb(K.status)}${p===K.file?" selected":""}`,onClick:()=>ne(K.file),children:[E.jsx(en,{filename:K.file.split("/").pop()||K.file}),E.jsx("span",{className:"change-path",children:K.file}),E.jsx("span",{className:"change-badge",children:zb(K.status)})]},K.file))}),E.jsx("div",{className:"cv-resize-border",onMouseDown:W,onTouchStart:X})]}),E.jsx("div",{className:"changes-diff",children:p?E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"file-content-header",onMouseDown:W,onTouchStart:X,children:[E.jsx(en,{filename:p.split("/").pop()||p}),E.jsx("span",{className:"file-content-path",children:p}),E.jsxs("div",{className:"file-content-menu",children:[E.jsx("button",{className:"file-content-menu-btn",onClick:()=>J(!de),children:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",children:[E.jsx("circle",{cx:"12",cy:"4",r:"1.5",fill:"currentColor"}),E.jsx("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"}),E.jsx("circle",{cx:"12",cy:"20",r:"1.5",fill:"currentColor"})]})}),de&&E.jsx("div",{className:"file-content-dropdown",children:E.jsxs("div",{className:"file-content-dropdown-item",onClick:()=>{Ee(!oe),J(!1)},children:[E.jsx("input",{type:"checkbox",checked:oe,readOnly:!0}),E.jsx("span",{children:"自动换行"})]})})]})]}),E.jsx("div",{className:"file-content-body",ref:z,children:y?E.jsx("div",{className:"file-content-loading",children:"加载中…"}):v!==null?E.jsx(M4,{code:v,filePath:p,addedLines:S,onSelectionChange:_e,scrollToLine:T,wordWrap:oe}):E.jsx("div",{className:"file-content-error",children:"无法读取文件"})})]}):null})]})}function Vb({previewPort:e}){if(!e)return E.jsx("div",{className:"preview-tab",children:E.jsxs("div",{className:"preview-empty",children:[E.jsx(ng,{size:36}),E.jsx("p",{children:"通过对话让 AI 生成界面,结果将展示在这里"})]})});const t=vs();let r=location.hostname,n=location.protocol;if(t)try{const o=new URL(t);r=o.hostname,n=o.protocol}catch{}const l=`${n}//${r}:${e}`;return E.jsx("div",{className:"preview-tab",children:E.jsx("iframe",{className:"preview-iframe",src:l,title:"Preview"})})}/**
202
+ * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
203
+ * @license MIT
204
+ *
205
+ * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
206
+ * @license MIT
207
+ *
208
+ * Originally forked from (with the author's permission):
209
+ * Fabrice Bellard's javascript vt100 for jslinux:
210
+ * http://bellard.org/jslinux/
211
+ * Copyright (c) 2011 Fabrice Bellard
212
+ */var O4=Object.defineProperty,Pb=Object.getOwnPropertyDescriptor,Gb=(e,t)=>{for(var r in t)O4(e,r,{get:t[r],enumerable:!0})},ft=(e,t,r,n)=>{for(var l=n>1?void 0:n?Pb(t,r):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(l=(n?u(t,r,l):u(l))||l);return n&&l&&O4(t,r,l),l},he=(e,t)=>(r,n)=>t(r,n,e),e3="Terminal input",Mf={get:()=>e3,set:e=>e3=e},t3="Too much output to announce, navigate to rows manually to read",Df={get:()=>t3,set:e=>t3=e};function Ib(e){return e.replace(/\r?\n/g,"\r")}function Ub(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function jb(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function qb(e,t,r,n){if(e.stopPropagation(),e.clipboardData){let l=e.clipboardData.getData("text/plain");N4(l,t,r,n)}}function N4(e,t,r,n){e=Ib(e),e=Ub(e,r.decPrivateModes.bracketedPasteMode&&n.rawOptions.ignoreBracketedPasteMode!==!0),r.triggerDataEvent(e,!0),t.value=""}function B4(e,t,r){let n=r.getBoundingClientRect(),l=e.clientX-n.left-10,o=e.clientY-n.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${l}px`,t.style.top=`${o}px`,t.style.zIndex="1000",t.focus()}function i3(e,t,r,n,l){B4(e,t,r),l&&n.rightClickSelect(e),t.value=n.selectionText,t.select()}function ds(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function ou(e,t=0,r=e.length){let n="";for(let l=t;l<r;++l){let o=e[l];o>65535?(o-=65536,n+=String.fromCharCode((o>>10)+55296)+String.fromCharCode(o%1024+56320)):n+=String.fromCharCode(o)}return n}var $b=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let r=e.length;if(!r)return 0;let n=0,l=0;if(this._interim){let o=e.charCodeAt(l++);56320<=o&&o<=57343?t[n++]=(this._interim-55296)*1024+o-56320+65536:(t[n++]=this._interim,t[n++]=o),this._interim=0}for(let o=l;o<r;++o){let u=e.charCodeAt(o);if(55296<=u&&u<=56319){if(++o>=r)return this._interim=u,n;let f=e.charCodeAt(o);56320<=f&&f<=57343?t[n++]=(u-55296)*1024+f-56320+65536:(t[n++]=u,t[n++]=f);continue}u!==65279&&(t[n++]=u)}return n}},Zb=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let r=e.length;if(!r)return 0;let n=0,l,o,u,f,p=0,d=0;if(this.interim[0]){let y=!1,b=this.interim[0];b&=(b&224)===192?31:(b&240)===224?15:7;let S=0,x;for(;(x=this.interim[++S]&63)&&S<4;)b<<=6,b|=x;let T=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,M=T-S;for(;d<M;){if(d>=r)return 0;if(x=e[d++],(x&192)!==128){d--,y=!0;break}else this.interim[S++]=x,b<<=6,b|=x&63}y||(T===2?b<128?d--:t[n++]=b:T===3?b<2048||b>=55296&&b<=57343||b===65279||(t[n++]=b):b<65536||b>1114111||(t[n++]=b)),this.interim.fill(0)}let v=r-4,m=d;for(;m<r;){for(;m<v&&!((l=e[m])&128)&&!((o=e[m+1])&128)&&!((u=e[m+2])&128)&&!((f=e[m+3])&128);)t[n++]=l,t[n++]=o,t[n++]=u,t[n++]=f,m+=4;if(l=e[m++],l<128)t[n++]=l;else if((l&224)===192){if(m>=r)return this.interim[0]=l,n;if(o=e[m++],(o&192)!==128){m--;continue}if(p=(l&31)<<6|o&63,p<128){m--;continue}t[n++]=p}else if((l&240)===224){if(m>=r)return this.interim[0]=l,n;if(o=e[m++],(o&192)!==128){m--;continue}if(m>=r)return this.interim[0]=l,this.interim[1]=o,n;if(u=e[m++],(u&192)!==128){m--;continue}if(p=(l&15)<<12|(o&63)<<6|u&63,p<2048||p>=55296&&p<=57343||p===65279)continue;t[n++]=p}else if((l&248)===240){if(m>=r)return this.interim[0]=l,n;if(o=e[m++],(o&192)!==128){m--;continue}if(m>=r)return this.interim[0]=l,this.interim[1]=o,n;if(u=e[m++],(u&192)!==128){m--;continue}if(m>=r)return this.interim[0]=l,this.interim[1]=o,this.interim[2]=u,n;if(f=e[m++],(f&192)!==128){m--;continue}if(p=(l&7)<<18|(o&63)<<12|(u&63)<<6|f&63,p<65536||p>1114111)continue;t[n++]=p}}return n}},z4="",gs=" ",zl=class H4{constructor(){this.fg=0,this.bg=0,this.extended=new qc}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new H4;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},qc=class V4{constructor(t=0,r=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=r}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new V4(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},qi=class P4 extends zl{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new qc,this.combinedData=""}static fromCharData(t){let r=new P4;return r.setFromCharData(t),r}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?ds(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let r=!1;if(t[1].length>2)r=!0;else if(t[1].length===2){let n=t[1].charCodeAt(0);if(55296<=n&&n<=56319){let l=t[1].charCodeAt(1);56320<=l&&l<=57343?this.content=(n-55296)*1024+l-56320+65536|t[2]<<22:r=!0}else r=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;r&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},r3="di$target",Of="di$dependencies",X1=new Map;function Wb(e){return e[Of]||[]}function It(e){if(X1.has(e))return X1.get(e);let t=function(r,n,l){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Fb(t,r,l)};return t._id=e,X1.set(e,t),t}function Fb(e,t,r){t[r3]===t?t[Of].push({id:e,index:r}):(t[Of]=[{id:e,index:r}],t[r3]=t)}var si=It("BufferService"),G4=It("CoreMouseService"),ln=It("CoreService"),Yb=It("CharsetService"),zd=It("InstantiationService"),I4=It("LogService"),ni=It("OptionsService"),U4=It("OscLinkService"),Kb=It("UnicodeService"),Hl=It("DecorationService"),Nf=class{constructor(e,t,r){this._bufferService=e,this._optionsService=t,this._oscLinkService=r}provideLinks(e,t){var v;let r=this._bufferService.buffer.lines.get(e-1);if(!r){t(void 0);return}let n=[],l=this._optionsService.rawOptions.linkHandler,o=new qi,u=r.getTrimmedLength(),f=-1,p=-1,d=!1;for(let m=0;m<u;m++)if(!(p===-1&&!r.hasContent(m))){if(r.loadCell(m,o),o.hasExtendedAttrs()&&o.extended.urlId)if(p===-1){p=m,f=o.extended.urlId;continue}else d=o.extended.urlId!==f;else p!==-1&&(d=!0);if(d||p!==-1&&m===u-1){let y=(v=this._oscLinkService.getLinkData(f))==null?void 0:v.uri;if(y){let b={start:{x:p+1,y:e},end:{x:m+(!d&&m===u-1?1:0),y:e}},S=!1;if(!(l!=null&&l.allowNonHttpProtocols))try{let x=new URL(y);["http:","https:"].includes(x.protocol)||(S=!0)}catch{S=!0}S||n.push({text:y,range:b,activate:(x,T)=>l?l.activate(x,T,b):Xb(x,T),hover:(x,T)=>{var M;return(M=l==null?void 0:l.hover)==null?void 0:M.call(l,x,T,b)},leave:(x,T)=>{var M;return(M=l==null?void 0:l.leave)==null?void 0:M.call(l,x,T,b)}})}d=!1,o.hasExtendedAttrs()&&o.extended.urlId?(p=m,f=o.extended.urlId):(p=-1,f=-1)}}t(n)}};Nf=ft([he(0,si),he(1,ni),he(2,U4)],Nf);function Xb(e,t){if(confirm(`Do you want to navigate to ${t}?
213
+
214
+ WARNING: This link could potentially be dangerous`)){let r=window.open();if(r){try{r.opener=null}catch{}r.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}var cu=It("CharSizeService"),Br=It("CoreBrowserService"),Hd=It("MouseService"),zr=It("RenderService"),Qb=It("SelectionService"),j4=It("CharacterJoinerService"),la=It("ThemeService"),q4=It("LinkProviderService"),Jb=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?s3.isErrorNoTelemetry(e)?new s3(e.message+`
215
+
216
+ `+e.stack):new Error(e.message+`
217
+
218
+ `+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},ew=new Jb;function Ec(e){tw(e)||ew.onUnexpectedError(e)}var Bf="Canceled";function tw(e){return e instanceof iw?!0:e instanceof Error&&e.name===Bf&&e.message===Bf}var iw=class extends Error{constructor(){super(Bf),this.name=this.message}};function rw(e){return new Error(`Illegal argument: ${e}`)}var s3=class zf extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof zf)return t;let r=new zf;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},Hf=class $4 extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,$4.prototype)}};function Ci(e,t=0){return e[e.length-(1+t)]}var sw;(e=>{function t(o){return o<0}e.isLessThan=t;function r(o){return o<=0}e.isLessThanOrEqual=r;function n(o){return o>0}e.isGreaterThan=n;function l(o){return o===0}e.isNeitherLessOrGreaterThan=l,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(sw||(sw={}));function nw(e,t){let r=this,n=!1,l;return function(){return n||(n=!0,t||(l=e.apply(r,arguments))),l}}var Z4;(e=>{function t(P){return P&&typeof P=="object"&&typeof P[Symbol.iterator]=="function"}e.is=t;let r=Object.freeze([]);function n(){return r}e.empty=n;function*l(P){yield P}e.single=l;function o(P){return t(P)?P:l(P)}e.wrap=o;function u(P){return P||r}e.from=u;function*f(P){for(let W=P.length-1;W>=0;W--)yield P[W]}e.reverse=f;function p(P){return!P||P[Symbol.iterator]().next().done===!0}e.isEmpty=p;function d(P){return P[Symbol.iterator]().next().value}e.first=d;function v(P,W){let X=0;for(let ne of P)if(W(ne,X++))return!0;return!1}e.some=v;function m(P,W){for(let X of P)if(W(X))return X}e.find=m;function*y(P,W){for(let X of P)W(X)&&(yield X)}e.filter=y;function*b(P,W){let X=0;for(let ne of P)yield W(ne,X++)}e.map=b;function*S(P,W){let X=0;for(let ne of P)yield*W(ne,X++)}e.flatMap=S;function*x(...P){for(let W of P)yield*W}e.concat=x;function T(P,W,X){let ne=X;for(let _e of P)ne=W(ne,_e);return ne}e.reduce=T;function*M(P,W,X=P.length){for(W<0&&(W+=P.length),X<0?X+=P.length:X>P.length&&(X=P.length);W<X;W++)yield P[W]}e.slice=M;function z(P,W=Number.POSITIVE_INFINITY){let X=[];if(W===0)return[X,P];let ne=P[Symbol.iterator]();for(let _e=0;_e<W;_e++){let oe=ne.next();if(oe.done)return[X,e.empty()];X.push(oe.value)}return[X,{[Symbol.iterator](){return ne}}]}e.consume=z;async function O(P){let W=[];for await(let X of P)W.push(X);return Promise.resolve(W)}e.asyncToArray=O})(Z4||(Z4={}));function sn(e){if(Z4.is(e)){let t=[];for(let r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function aw(...e){return nt(()=>sn(e))}function nt(e){return{dispose:nw(()=>{e()})}}var W4=class F4{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{sn(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?F4.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(t),t.dispose()}}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),void 0)}};W4.DISABLE_DISPOSED_WARNING=!1;var Ss=W4,Oe=class{constructor(){this._store=new Ss,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};Oe.None=Object.freeze({dispose(){}});var ra=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)==null||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)==null||e.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e}},Or=typeof window=="object"?window:globalThis,Vf=class Pf{constructor(t){this.element=t,this.next=Pf.Undefined,this.prev=Pf.Undefined}};Vf.Undefined=new Vf(void 0);var at=Vf,n3=class{constructor(){this._first=at.Undefined,this._last=at.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===at.Undefined}clear(){let e=this._first;for(;e!==at.Undefined;){let t=e.next;e.prev=at.Undefined,e.next=at.Undefined,e=t}this._first=at.Undefined,this._last=at.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new at(e);if(this._first===at.Undefined)this._first=r,this._last=r;else if(t){let l=this._last;this._last=r,r.prev=l,l.next=r}else{let l=this._first;this._first=r,r.next=l,l.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==at.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==at.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==at.Undefined&&e.next!==at.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===at.Undefined&&e.next===at.Undefined?(this._first=at.Undefined,this._last=at.Undefined):e.next===at.Undefined?(this._last=this._last.prev,this._last.next=at.Undefined):e.prev===at.Undefined&&(this._first=this._first.next,this._first.prev=at.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==at.Undefined;)yield e.element,e=e.next}},lw=globalThis.performance&&typeof globalThis.performance.now=="function",ow=class Y4{static create(t){return new Y4(t)}constructor(t){this._now=lw&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}},Ft;(e=>{e.None=()=>Oe.None;function t(J,I){return m(J,()=>{},0,void 0,!0,void 0,I)}e.defer=t;function r(J){return(I,K=null,re)=>{let R=!1,$;return $=J(q=>{if(!R)return $?$.dispose():R=!0,I.call(K,q)},null,re),R&&$.dispose(),$}}e.once=r;function n(J,I,K){return d((re,R=null,$)=>J(q=>re.call(R,I(q)),null,$),K)}e.map=n;function l(J,I,K){return d((re,R=null,$)=>J(q=>{I(q),re.call(R,q)},null,$),K)}e.forEach=l;function o(J,I,K){return d((re,R=null,$)=>J(q=>I(q)&&re.call(R,q),null,$),K)}e.filter=o;function u(J){return J}e.signal=u;function f(...J){return(I,K=null,re)=>{let R=aw(...J.map($=>$(q=>I.call(K,q))));return v(R,re)}}e.any=f;function p(J,I,K,re){let R=K;return n(J,$=>(R=I(R,$),R),re)}e.reduce=p;function d(J,I){let K,re={onWillAddFirstListener(){K=J(R.fire,R)},onDidRemoveLastListener(){K==null||K.dispose()}},R=new ce(re);return I==null||I.add(R),R.event}function v(J,I){return I instanceof Array?I.push(J):I&&I.add(J),J}function m(J,I,K=100,re=!1,R=!1,$,q){let me,ye,A,N=0,Z,se={leakWarningThreshold:$,onWillAddFirstListener(){me=J(le=>{N++,ye=I(ye,le),re&&!A&&(ue.fire(ye),ye=void 0),Z=()=>{let fe=ye;ye=void 0,A=void 0,(!re||N>1)&&ue.fire(fe),N=0},typeof K=="number"?(clearTimeout(A),A=setTimeout(Z,K)):A===void 0&&(A=0,queueMicrotask(Z))})},onWillRemoveListener(){R&&N>0&&(Z==null||Z())},onDidRemoveLastListener(){Z=void 0,me.dispose()}},ue=new ce(se);return q==null||q.add(ue),ue.event}e.debounce=m;function y(J,I=0,K){return e.debounce(J,(re,R)=>re?(re.push(R),re):[R],I,void 0,!0,void 0,K)}e.accumulate=y;function b(J,I=(re,R)=>re===R,K){let re=!0,R;return o(J,$=>{let q=re||!I($,R);return re=!1,R=$,q},K)}e.latch=b;function S(J,I,K){return[e.filter(J,I,K),e.filter(J,re=>!I(re),K)]}e.split=S;function x(J,I=!1,K=[],re){let R=K.slice(),$=J(ye=>{R?R.push(ye):me.fire(ye)});re&&re.add($);let q=()=>{R==null||R.forEach(ye=>me.fire(ye)),R=null},me=new ce({onWillAddFirstListener(){$||($=J(ye=>me.fire(ye)),re&&re.add($))},onDidAddFirstListener(){R&&(I?setTimeout(q):q())},onDidRemoveLastListener(){$&&$.dispose(),$=null}});return re&&re.add(me),me.event}e.buffer=x;function T(J,I){return(K,re,R)=>{let $=I(new z);return J(function(q){let me=$.evaluate(q);me!==M&&K.call(re,me)},void 0,R)}}e.chain=T;let M=Symbol("HaltChainable");class z{constructor(){this.steps=[]}map(I){return this.steps.push(I),this}forEach(I){return this.steps.push(K=>(I(K),K)),this}filter(I){return this.steps.push(K=>I(K)?K:M),this}reduce(I,K){let re=K;return this.steps.push(R=>(re=I(re,R),re)),this}latch(I=(K,re)=>K===re){let K=!0,re;return this.steps.push(R=>{let $=K||!I(R,re);return K=!1,re=R,$?R:M}),this}evaluate(I){for(let K of this.steps)if(I=K(I),I===M)break;return I}}function O(J,I,K=re=>re){let re=(...me)=>q.fire(K(...me)),R=()=>J.on(I,re),$=()=>J.removeListener(I,re),q=new ce({onWillAddFirstListener:R,onDidRemoveLastListener:$});return q.event}e.fromNodeEventEmitter=O;function P(J,I,K=re=>re){let re=(...me)=>q.fire(K(...me)),R=()=>J.addEventListener(I,re),$=()=>J.removeEventListener(I,re),q=new ce({onWillAddFirstListener:R,onDidRemoveLastListener:$});return q.event}e.fromDOMEventEmitter=P;function W(J){return new Promise(I=>r(J)(I))}e.toPromise=W;function X(J){let I=new ce;return J.then(K=>{I.fire(K)},()=>{I.fire(void 0)}).finally(()=>{I.dispose()}),I.event}e.fromPromise=X;function ne(J,I){return J(K=>I.fire(K))}e.forward=ne;function _e(J,I,K){return I(K),J(re=>I(re))}e.runAndSubscribe=_e;class oe{constructor(I,K){this._observable=I,this._counter=0,this._hasChanged=!1;let re={onWillAddFirstListener:()=>{I.addObserver(this)},onDidRemoveLastListener:()=>{I.removeObserver(this)}};this.emitter=new ce(re),K&&K.add(this.emitter)}beginUpdate(I){this._counter++}handlePossibleChange(I){}handleChange(I,K){this._hasChanged=!0}endUpdate(I){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Ee(J,I){return new oe(J,I).emitter.event}e.fromObservable=Ee;function de(J){return(I,K,re)=>{let R=0,$=!1,q={beginUpdate(){R++},endUpdate(){R--,R===0&&(J.reportChanges(),$&&($=!1,I.call(K)))},handlePossibleChange(){},handleChange(){$=!0}};J.addObserver(q),J.reportChanges();let me={dispose(){J.removeObserver(q)}};return re instanceof Ss?re.add(me):Array.isArray(re)&&re.push(me),me}}e.fromObservableLight=de})(Ft||(Ft={}));var Gf=class If{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${If._idPool++}`,If.all.add(this)}start(t){this._stopWatch=new ow,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};Gf.all=new Set,Gf._idPool=0;var cw=Gf,uw=-1,K4=class X4{constructor(t,r,n=(X4._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=r,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)==null||t.clear()}check(t,r){let n=this.threshold;if(n<=0||r<n)return;this._stacks||(this._stacks=new Map);let l=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,l+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let[o,u]=this.getMostFrequentStack(),f=`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${u}):`;console.warn(f),console.warn(o);let p=new dw(f,o);this._errorHandler(p)}return()=>{let o=this._stacks.get(t.value)||0;this._stacks.set(t.value,o-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,r=0;for(let[n,l]of this._stacks)(!t||r<l)&&(t=[n,l],r=l);return t}};K4._idPool=1;var hw=K4,fw=class Q4{constructor(t){this.value=t}static create(){let t=new Error;return new Q4(t.stack??"")}print(){console.warn(this.value.split(`
219
+ `).slice(2).join(`
220
+ `))}},dw=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},pw=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},_w=0,Q1=class{constructor(e){this.value=e,this.id=_w++}},mw=2,gw,ce=class{constructor(e){var t,r,n,l;this._size=0,this._options=e,this._leakageMon=(t=this._options)!=null&&t.leakWarningThreshold?new hw((e==null?void 0:e.onListenerError)??Ec,((r=this._options)==null?void 0:r.leakWarningThreshold)??uw):void 0,this._perfMon=(n=this._options)!=null&&n._profName?new cw(this._options._profName):void 0,this._deliveryQueue=(l=this._options)==null?void 0:l.deliveryQueue}dispose(){var e,t,r,n;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(t=this._options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t),(n=this._leakageMon)==null||n.dispose())}get event(){return this._event??(this._event=(e,t,r)=>{var u,f,p,d,v;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let m=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(m);let y=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],b=new pw(`${m}. HINT: Stack shows most frequent listener (${y[1]}-times)`,y[0]);return(((u=this._options)==null?void 0:u.onListenerError)||Ec)(b),Oe.None}if(this._disposed)return Oe.None;t&&(e=e.bind(t));let n=new Q1(e),l;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(n.stack=fw.create(),l=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof Q1?(this._deliveryQueue??(this._deliveryQueue=new vw),this._listeners=[this._listeners,n]):this._listeners.push(n):((p=(f=this._options)==null?void 0:f.onWillAddFirstListener)==null||p.call(f,this),this._listeners=n,(v=(d=this._options)==null?void 0:d.onDidAddFirstListener)==null||v.call(d,this)),this._size++;let o=nt(()=>{l==null||l(),this._removeListener(n)});return r instanceof Ss?r.add(o):Array.isArray(r)&&r.push(o),o}),this._event}_removeListener(e){var l,o,u,f;if((o=(l=this._options)==null?void 0:l.onWillRemoveListener)==null||o.call(l,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(f=(u=this._options)==null?void 0:u.onDidRemoveLastListener)==null||f.call(u,this),this._size=0;return}let t=this._listeners,r=t.indexOf(e);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[r]=void 0;let n=this._deliveryQueue.current===this;if(this._size*mw<=t.length){let p=0;for(let d=0;d<t.length;d++)t[d]?t[p++]=t[d]:n&&(this._deliveryQueue.end--,p<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=p}}_deliver(e,t){var n;if(!e)return;let r=((n=this._options)==null?void 0:n.onListenerError)||Ec;if(!r){e.value(t);return}try{e.value(t)}catch(l){r(l)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,r,n,l;if((t=this._deliveryQueue)!=null&&t.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)==null||r.stop()),(n=this._perfMon)==null||n.start(this._size),this._listeners)if(this._listeners instanceof Q1)this._deliver(this._listeners,e);else{let o=this._deliveryQueue;o.enqueue(this,e,this._listeners.length),this._deliverQueue(o)}(l=this._perfMon)==null||l.stop()}hasListeners(){return this._size>0}},vw=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,r){this.i=0,this.end=r,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Uf=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new ce,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new ce,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(t){return this.mapWindowIdToZoomLevel.get(this.getWindowId(t))??0}setZoomLevel(t,r){if(this.getZoomLevel(r)===t)return;let n=this.getWindowId(r);this.mapWindowIdToZoomLevel.set(n,t),this._onDidChangeZoomLevel.fire(n)}getZoomFactor(t){return this.mapWindowIdToZoomFactor.get(this.getWindowId(t))??1}setZoomFactor(t,r){this.mapWindowIdToZoomFactor.set(this.getWindowId(r),t)}setFullscreen(t,r){if(this.isFullscreen(r)===t)return;let n=this.getWindowId(r);this.mapWindowIdToFullScreen.set(n,t),this._onDidChangeFullscreen.fire(n)}isFullscreen(t){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(t))}getWindowId(t){return t.vscodeWindowId}};Uf.INSTANCE=new Uf;var Vd=Uf;function yw(e,t,r){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",r)}Vd.INSTANCE.onDidChangeZoomLevel;function Sw(e){return Vd.INSTANCE.getZoomFactor(e)}Vd.INSTANCE.onDidChangeFullscreen;var oa=typeof navigator=="object"?navigator.userAgent:"",jf=oa.indexOf("Firefox")>=0,bw=oa.indexOf("AppleWebKit")>=0,Pd=oa.indexOf("Chrome")>=0,ww=!Pd&&oa.indexOf("Safari")>=0;oa.indexOf("Electron/")>=0;oa.indexOf("Android")>=0;var J1=!1;if(typeof Or.matchMedia=="function"){let e=Or.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=Or.matchMedia("(display-mode: fullscreen)");J1=e.matches,yw(Or,e,({matches:r})=>{J1&&t.matches||(J1=r)})}var Jn="en",qf=!1,$f=!1,xc=!1,J4=!1,_c,Ac=Jn,a3=Jn,Cw,Yi,tn=globalThis,Wt,J3;typeof tn.vscode<"u"&&typeof tn.vscode.process<"u"?Wt=tn.vscode.process:typeof process<"u"&&typeof((J3=process==null?void 0:process.versions)==null?void 0:J3.node)=="string"&&(Wt=process);var eg,Ew=typeof((eg=Wt==null?void 0:Wt.versions)==null?void 0:eg.electron)=="string",xw=Ew&&(Wt==null?void 0:Wt.type)==="renderer",tg;if(typeof Wt=="object"){qf=Wt.platform==="win32",$f=Wt.platform==="darwin",xc=Wt.platform==="linux",xc&&Wt.env.SNAP&&Wt.env.SNAP_REVISION,Wt.env.CI||Wt.env.BUILD_ARTIFACTSTAGINGDIRECTORY,_c=Jn,Ac=Jn;let e=Wt.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);_c=t.userLocale,a3=t.osLocale,Ac=t.resolvedLanguage||Jn,Cw=(tg=t.languagePack)==null?void 0:tg.translationsConfigFile}catch{}J4=!0}else typeof navigator=="object"&&!xw?(Yi=navigator.userAgent,qf=Yi.indexOf("Windows")>=0,$f=Yi.indexOf("Macintosh")>=0,(Yi.indexOf("Macintosh")>=0||Yi.indexOf("iPad")>=0||Yi.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,xc=Yi.indexOf("Linux")>=0,(Yi==null?void 0:Yi.indexOf("Mobi"))>=0,Ac=globalThis._VSCODE_NLS_LANGUAGE||Jn,_c=navigator.language.toLowerCase(),a3=_c):console.error("Unable to resolve platform.");var e5=qf,lr=$f,Aw=xc,l3=J4,or=Yi,ls=Ac,kw;(e=>{function t(){return ls}e.value=t;function r(){return ls.length===2?ls==="en":ls.length>=3?ls[0]==="e"&&ls[1]==="n"&&ls[2]==="-":!1}e.isDefaultVariant=r;function n(){return ls==="en"}e.isDefault=n})(kw||(kw={}));var Tw=typeof tn.postMessage=="function"&&!tn.importScripts;(()=>{if(Tw){let e=[];tn.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let n=0,l=e.length;n<l;n++){let o=e[n];if(o.id===r.data.vscodeScheduleAsyncWork){e.splice(n,1),o.callback();return}}});let t=0;return r=>{let n=++t;e.push({id:n,callback:r}),tn.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})();var Rw=!!(or&&or.indexOf("Chrome")>=0);or&&or.indexOf("Firefox")>=0;!Rw&&or&&or.indexOf("Safari")>=0;or&&or.indexOf("Edg/")>=0;or&&or.indexOf("Android")>=0;var Yn=typeof navigator=="object"?navigator:{};l3||document.queryCommandSupported&&document.queryCommandSupported("copy")||Yn&&Yn.clipboard&&Yn.clipboard.writeText,l3||Yn&&Yn.clipboard&&Yn.clipboard.readText;var Gd=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},ef=new Gd,o3=new Gd,c3=new Gd,Lw=new Array(230),t5;(e=>{function t(f){return ef.keyCodeToStr(f)}e.toString=t;function r(f){return ef.strToKeyCode(f)}e.fromString=r;function n(f){return o3.keyCodeToStr(f)}e.toUserSettingsUS=n;function l(f){return c3.keyCodeToStr(f)}e.toUserSettingsGeneral=l;function o(f){return o3.strToKeyCode(f)||c3.strToKeyCode(f)}e.fromUserSettings=o;function u(f){if(f>=98&&f<=113)return null;switch(f){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return ef.keyCodeToStr(f)}e.toElectronAccelerator=u})(t5||(t5={}));var Mw=class i5{constructor(t,r,n,l,o){this.ctrlKey=t,this.shiftKey=r,this.altKey=n,this.metaKey=l,this.keyCode=o}equals(t){return t instanceof i5&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){let t=this.ctrlKey?"1":"0",r=this.shiftKey?"1":"0",n=this.altKey?"1":"0",l=this.metaKey?"1":"0";return`K${t}${r}${n}${l}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new Dw([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},Dw=class{constructor(e){if(e.length===0)throw rw("chords");this.chords=e}getHashCode(){let e="";for(let t=0,r=this.chords.length;t<r;t++)t!==0&&(e+=";"),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}};function Ow(e){if(e.charCode){let r=String.fromCharCode(e.charCode).toUpperCase();return t5.fromString(r)}let t=e.keyCode;if(t===3)return 7;if(jf)switch(t){case 59:return 85;case 60:if(Aw)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(lr)return 57;break}else if(bw&&(lr&&t===93||!lr&&t===92))return 57;return Lw[t]||0}var Nw=lr?256:2048,Bw=512,zw=1024,Hw=lr?2048:256,u3=class{constructor(e){var r;this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=(r=t.getModifierState)==null?void 0:r.call(t,"AltGraph"),this.keyCode=Ow(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=Nw),this.altKey&&(t|=Bw),this.shiftKey&&(t|=zw),this.metaKey&&(t|=Hw),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Mw(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},h3=new WeakMap;function Vw(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,r=e.parent.location;if(t.origin!=="null"&&r.origin!=="null"&&t.origin!==r.origin)return null}catch{return null}return e.parent}var Pw=class{static getSameOriginWindowChain(e){let t=h3.get(e);if(!t){t=[],h3.set(e,t);let r=e,n;do n=Vw(r),n?t.push({window:new WeakRef(r),iframeElement:r.frameElement||null}):t.push({window:new WeakRef(r),iframeElement:null}),r=n;while(r)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let r=0,n=0,l=this.getSameOriginWindowChain(e);for(let o of l){let u=o.window.deref();if(r+=(u==null?void 0:u.scrollY)??0,n+=(u==null?void 0:u.scrollX)??0,u===t||!o.iframeElement)break;let f=o.iframeElement.getBoundingClientRect();r+=f.top,n+=f.left}return{top:r,left:n}}},mc=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let r=Pw.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=r.left,this.posy-=r.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},f3=class{constructor(e,t=0,r=0){var l;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=r,this.deltaX=t;let n=!1;if(Pd){let o=navigator.userAgent.match(/Chrome\/(\d+)/);n=(o?parseInt(o[1]):123)<=122}if(e){let o=e,u=e,f=((l=e.view)==null?void 0:l.devicePixelRatio)||1;if(typeof o.wheelDeltaY<"u")n?this.deltaY=o.wheelDeltaY/(120*f):this.deltaY=o.wheelDeltaY/120;else if(typeof u.VERTICAL_AXIS<"u"&&u.axis===u.VERTICAL_AXIS)this.deltaY=-u.detail/3;else if(e.type==="wheel"){let p=e;p.deltaMode===p.DOM_DELTA_LINE?jf&&!lr?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof o.wheelDeltaX<"u")ww&&e5?this.deltaX=-(o.wheelDeltaX/120):n?this.deltaX=o.wheelDeltaX/(120*f):this.deltaX=o.wheelDeltaX/120;else if(typeof u.HORIZONTAL_AXIS<"u"&&u.axis===u.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){let p=e;p.deltaMode===p.DOM_DELTA_LINE?jf&&!lr?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(n?this.deltaY=e.wheelDelta/(120*f):this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)==null||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)==null||e.stopPropagation()}},r5=Object.freeze(function(e,t){let r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}),Gw;(e=>{function t(r){return r===e.None||r===e.Cancelled||r instanceof Iw?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ft.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r5})})(Gw||(Gw={}));var Iw=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r5:(this._emitter||(this._emitter=new ce),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Id=class{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new Hf("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new Hf("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},Uw=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){var e;(e=this.disposable)==null||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,r=globalThis){if(this.isDisposed)throw new Hf("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let n=r.setInterval(()=>{e()},t);this.disposable=nt(()=>{r.clearInterval(n),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},jw;(e=>{async function t(n){let l,o=await Promise.all(n.map(u=>u.then(f=>f,f=>{l||(l=f)})));if(typeof l<"u")throw l;return o}e.settled=t;function r(n){return new Promise(async(l,o)=>{try{await n(l,o)}catch(u){o(u)}})}e.withAsyncBody=r})(jw||(jw={}));var d3=class Pi{static fromArray(t){return new Pi(r=>{r.emitMany(t)})}static fromPromise(t){return new Pi(async r=>{r.emitMany(await t)})}static fromPromises(t){return new Pi(async r=>{await Promise.all(t.map(async n=>r.emitOne(await n)))})}static merge(t){return new Pi(async r=>{await Promise.all(t.map(async n=>{for await(let l of n)r.emitOne(l)}))})}constructor(t,r){this._state=0,this._results=[],this._error=null,this._onReturn=r,this._onStateChanged=new ce,queueMicrotask(async()=>{let n={emitOne:l=>this.emitOne(l),emitMany:l=>this.emitMany(l),reject:l=>this.reject(l)};try{await Promise.resolve(t(n)),this.resolve()}catch(l){this.reject(l)}finally{n.emitOne=void 0,n.emitMany=void 0,n.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await Ft.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var r;return(r=this._onReturn)==null||r.call(this),{done:!0,value:void 0}}}}static map(t,r){return new Pi(async n=>{for await(let l of t)n.emitOne(r(l))})}map(t){return Pi.map(this,t)}static filter(t,r){return new Pi(async n=>{for await(let l of t)r(l)&&n.emitOne(l)})}filter(t){return Pi.filter(this,t)}static coalesce(t){return Pi.filter(t,r=>!!r)}coalesce(){return Pi.coalesce(this)}static async toPromise(t){let r=[];for await(let n of t)r.push(n);return r}toPromise(){return Pi.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};d3.EMPTY=d3.fromArray([]);var{getWindow:ar,getWindowId:qw,onDidRegisterWindow:$w}=(function(){let e=new Map,t={window:Or,disposables:new Ss};e.set(Or.vscodeWindowId,t);let r=new ce,n=new ce,l=new ce;function o(u,f){return(typeof u=="number"?e.get(u):void 0)??(f?t:void 0)}return{onDidRegisterWindow:r.event,onWillUnregisterWindow:l.event,onDidUnregisterWindow:n.event,registerWindow(u){if(e.has(u.vscodeWindowId))return Oe.None;let f=new Ss,p={window:u,disposables:f.add(new Ss)};return e.set(u.vscodeWindowId,p),f.add(nt(()=>{e.delete(u.vscodeWindowId),n.fire(u)})),f.add(Ce(u,zt.BEFORE_UNLOAD,()=>{l.fire(u)})),r.fire(p),f},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(u){return u.vscodeWindowId},hasWindow(u){return e.has(u)},getWindowById:o,getWindow(u){var d;let f=u;if((d=f==null?void 0:f.ownerDocument)!=null&&d.defaultView)return f.ownerDocument.defaultView.window;let p=u;return p!=null&&p.view?p.view.window:Or},getDocument(u){return ar(u).document}}})(),Zw=class{constructor(e,t,r,n){this._node=e,this._type=t,this._handler=r,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};function Ce(e,t,r,n){return new Zw(e,t,r,n)}var p3=function(e,t,r,n){return Ce(e,t,r,n)},Ud,Ww=class extends Uw{constructor(e){super(),this.defaultTarget=e&&ar(e)}cancelAndSet(e,t,r){return super.cancelAndSet(e,t,r??this.defaultTarget)}},_3=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Ec(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,r=new Map,n=new Map,l=o=>{r.set(o,!1);let u=e.get(o)??[];for(t.set(o,u),e.set(o,[]),n.set(o,!0);u.length>0;)u.sort(_3.sort),u.shift().execute();n.set(o,!1)};Ud=(o,u,f=0)=>{let p=qw(o),d=new _3(u,f),v=e.get(p);return v||(v=[],e.set(p,v)),v.push(d),r.get(p)||(r.set(p,!0),o.requestAnimationFrame(()=>l(p))),d}})();function Fw(e){let t=e.getBoundingClientRect(),r=ar(e);return{left:t.left+r.scrollX,top:t.top+r.scrollY,width:t.width,height:t.height}}var zt={CLICK:"click",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",CHANGE:"change",FOCUS:"focus",BLUR:"blur",INPUT:"input"},Yw=class{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingTop="",this._paddingLeft="",this._paddingBottom="",this._paddingRight="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=pi(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=pi(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=pi(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=pi(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=pi(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=pi(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=pi(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=pi(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=pi(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=pi(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=pi(e);this._paddingRight!==t&&(this._paddingRight=t,this.domNode.style.paddingRight=this._paddingRight)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=pi(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=pi(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=pi(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}};function pi(e){return typeof e=="number"?`${e}px`:e}function Cl(e){return new Yw(e)}var s5=class{constructor(){this._hooks=new Ss,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let r=this._onStopCallback;this._onStopCallback=null,e&&r&&r(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,r,n,l){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=n,this._onStopCallback=l;let o=e;try{e.setPointerCapture(t),this._hooks.add(nt(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{o=ar(e)}this._hooks.add(Ce(o,zt.POINTER_MOVE,u=>{if(u.buttons!==r){this.stopMonitoring(!0);return}u.preventDefault(),this._pointerMoveCallback(u)})),this._hooks.add(Ce(o,zt.POINTER_UP,u=>this.stopMonitoring(!0)))}};function Kw(e,t,r){let n=null,l=null;if(typeof r.value=="function"?(n="value",l=r.value,l.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof r.get=="function"&&(n="get",l=r.get),!l)throw new Error("not supported");let o=`$memoize$${t}`;r[n]=function(...u){return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:l.apply(this,u)}),this[o]}}var nr;(e=>(e.Tap="-xterm-gesturetap",e.Change="-xterm-gesturechange",e.Start="-xterm-gesturestart",e.End="-xterm-gesturesend",e.Contextmenu="-xterm-gesturecontextmenu"))(nr||(nr={}));var ml=class Xt extends Oe{constructor(){super(),this.dispatched=!1,this.targets=new n3,this.ignoreTargets=new n3,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(Ft.runAndSubscribe($w,({window:t,disposables:r})=>{r.add(Ce(t.document,"touchstart",n=>this.onTouchStart(n),{passive:!1})),r.add(Ce(t.document,"touchend",n=>this.onTouchEnd(t,n))),r.add(Ce(t.document,"touchmove",n=>this.onTouchMove(n),{passive:!1}))},{window:Or,disposables:this._store}))}static addTarget(t){if(!Xt.isTouchDevice())return Oe.None;Xt.INSTANCE||(Xt.INSTANCE=new Xt);let r=Xt.INSTANCE.targets.push(t);return nt(r)}static ignoreTarget(t){if(!Xt.isTouchDevice())return Oe.None;Xt.INSTANCE||(Xt.INSTANCE=new Xt);let r=Xt.INSTANCE.ignoreTargets.push(t);return nt(r)}static isTouchDevice(){return"ontouchstart"in Or||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(t){let r=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let n=0,l=t.targetTouches.length;n<l;n++){let o=t.targetTouches.item(n);this.activeTouches[o.identifier]={id:o.identifier,initialTarget:o.target,initialTimeStamp:r,initialPageX:o.pageX,initialPageY:o.pageY,rollingTimestamps:[r],rollingPageX:[o.pageX],rollingPageY:[o.pageY]};let u=this.newGestureEvent(nr.Start,o.target);u.pageX=o.pageX,u.pageY=o.pageY,this.dispatchEvent(u)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}onTouchEnd(t,r){let n=Date.now(),l=Object.keys(this.activeTouches).length;for(let o=0,u=r.changedTouches.length;o<u;o++){let f=r.changedTouches.item(o);if(!this.activeTouches.hasOwnProperty(String(f.identifier))){console.warn("move of an UNKNOWN touch",f);continue}let p=this.activeTouches[f.identifier],d=Date.now()-p.initialTimeStamp;if(d<Xt.HOLD_DELAY&&Math.abs(p.initialPageX-Ci(p.rollingPageX))<30&&Math.abs(p.initialPageY-Ci(p.rollingPageY))<30){let v=this.newGestureEvent(nr.Tap,p.initialTarget);v.pageX=Ci(p.rollingPageX),v.pageY=Ci(p.rollingPageY),this.dispatchEvent(v)}else if(d>=Xt.HOLD_DELAY&&Math.abs(p.initialPageX-Ci(p.rollingPageX))<30&&Math.abs(p.initialPageY-Ci(p.rollingPageY))<30){let v=this.newGestureEvent(nr.Contextmenu,p.initialTarget);v.pageX=Ci(p.rollingPageX),v.pageY=Ci(p.rollingPageY),this.dispatchEvent(v)}else if(l===1){let v=Ci(p.rollingPageX),m=Ci(p.rollingPageY),y=Ci(p.rollingTimestamps)-p.rollingTimestamps[0],b=v-p.rollingPageX[0],S=m-p.rollingPageY[0],x=[...this.targets].filter(T=>p.initialTarget instanceof Node&&T.contains(p.initialTarget));this.inertia(t,x,n,Math.abs(b)/y,b>0?1:-1,v,Math.abs(S)/y,S>0?1:-1,m)}this.dispatchEvent(this.newGestureEvent(nr.End,p.initialTarget)),delete this.activeTouches[f.identifier]}this.dispatched&&(r.preventDefault(),r.stopPropagation(),this.dispatched=!1)}newGestureEvent(t,r){let n=document.createEvent("CustomEvent");return n.initEvent(t,!1,!0),n.initialTarget=r,n.tapCount=0,n}dispatchEvent(t){if(t.type===nr.Tap){let r=new Date().getTime(),n=0;r-this._lastSetTapCountTime>Xt.CLEAR_TAP_COUNT_TIME?n=1:n=2,this._lastSetTapCountTime=r,t.tapCount=n}else(t.type===nr.Change||t.type===nr.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let n of this.ignoreTargets)if(n.contains(t.initialTarget))return;let r=[];for(let n of this.targets)if(n.contains(t.initialTarget)){let l=0,o=t.initialTarget;for(;o&&o!==n;)l++,o=o.parentElement;r.push([l,n])}r.sort((n,l)=>n[0]-l[0]);for(let[n,l]of r)l.dispatchEvent(t),this.dispatched=!0}}inertia(t,r,n,l,o,u,f,p,d){this.handle=Ud(t,()=>{let v=Date.now(),m=v-n,y=0,b=0,S=!0;l+=Xt.SCROLL_FRICTION*m,f+=Xt.SCROLL_FRICTION*m,l>0&&(S=!1,y=o*l*m),f>0&&(S=!1,b=p*f*m);let x=this.newGestureEvent(nr.Change);x.translationX=y,x.translationY=b,r.forEach(T=>T.dispatchEvent(x)),S||this.inertia(t,r,v,l,o,u+y,f,p,d+b)})}onTouchMove(t){let r=Date.now();for(let n=0,l=t.changedTouches.length;n<l;n++){let o=t.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("end of an UNKNOWN touch",o);continue}let u=this.activeTouches[o.identifier],f=this.newGestureEvent(nr.Change,u.initialTarget);f.translationX=o.pageX-Ci(u.rollingPageX),f.translationY=o.pageY-Ci(u.rollingPageY),f.pageX=o.pageX,f.pageY=o.pageY,this.dispatchEvent(f),u.rollingPageX.length>3&&(u.rollingPageX.shift(),u.rollingPageY.shift(),u.rollingTimestamps.shift()),u.rollingPageX.push(o.pageX),u.rollingPageY.push(o.pageY),u.rollingTimestamps.push(r)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}};ml.SCROLL_FRICTION=-.005,ml.HOLD_DELAY=700,ml.CLEAR_TAP_COUNT_TIME=400,ft([Kw],ml,"isTouchDevice",1);var Xw=ml,jd=class extends Oe{onclick(e,t){this._register(Ce(e,zt.CLICK,r=>t(new mc(ar(e),r))))}onmousedown(e,t){this._register(Ce(e,zt.MOUSE_DOWN,r=>t(new mc(ar(e),r))))}onmouseover(e,t){this._register(Ce(e,zt.MOUSE_OVER,r=>t(new mc(ar(e),r))))}onmouseleave(e,t){this._register(Ce(e,zt.MOUSE_LEAVE,r=>t(new mc(ar(e),r))))}onkeydown(e,t){this._register(Ce(e,zt.KEY_DOWN,r=>t(new u3(r))))}onkeyup(e,t){this._register(Ce(e,zt.KEY_UP,r=>t(new u3(r))))}oninput(e,t){this._register(Ce(e,zt.INPUT,t))}onblur(e,t){this._register(Ce(e,zt.BLUR,t))}onfocus(e,t){this._register(Ce(e,zt.FOCUS,t))}onchange(e,t){this._register(Ce(e,zt.CHANGE,t))}ignoreGesture(e){return Xw.ignoreTarget(e)}},m3=11,Qw=class extends jd{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.style.position="absolute",this.domNode.style.width=m3+"px",this.domNode.style.height=m3+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new s5),this._register(p3(this.bgDomNode,zt.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(p3(this.domNode,zt.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new Ww),this._pointerdownScheduleRepeatTimer=this._register(new Id)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,ar(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}},Jw=class Zf{constructor(t,r,n,l,o,u,f){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(r=r|0,n=n|0,l=l|0,o=o|0,u=u|0,f=f|0),this.rawScrollLeft=l,this.rawScrollTop=f,r<0&&(r=0),l+r>n&&(l=n-r),l<0&&(l=0),o<0&&(o=0),f+o>u&&(f=u-o),f<0&&(f=0),this.width=r,this.scrollWidth=n,this.scrollLeft=l,this.height=o,this.scrollHeight=u,this.scrollTop=f}equals(t){return this.rawScrollLeft===t.rawScrollLeft&&this.rawScrollTop===t.rawScrollTop&&this.width===t.width&&this.scrollWidth===t.scrollWidth&&this.scrollLeft===t.scrollLeft&&this.height===t.height&&this.scrollHeight===t.scrollHeight&&this.scrollTop===t.scrollTop}withScrollDimensions(t,r){return new Zf(this._forceIntegerValues,typeof t.width<"u"?t.width:this.width,typeof t.scrollWidth<"u"?t.scrollWidth:this.scrollWidth,r?this.rawScrollLeft:this.scrollLeft,typeof t.height<"u"?t.height:this.height,typeof t.scrollHeight<"u"?t.scrollHeight:this.scrollHeight,r?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new Zf(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<"u"?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<"u"?t.scrollTop:this.rawScrollTop)}createScrollEvent(t,r){let n=this.width!==t.width,l=this.scrollWidth!==t.scrollWidth,o=this.scrollLeft!==t.scrollLeft,u=this.height!==t.height,f=this.scrollHeight!==t.scrollHeight,p=this.scrollTop!==t.scrollTop;return{inSmoothScrolling:r,oldWidth:t.width,oldScrollWidth:t.scrollWidth,oldScrollLeft:t.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:t.height,oldScrollHeight:t.scrollHeight,oldScrollTop:t.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:n,scrollWidthChanged:l,scrollLeftChanged:o,heightChanged:u,scrollHeightChanged:f,scrollTopChanged:p}}},eC=class extends Oe{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new ce),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new Jw(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var n;let r=this._state.withScrollDimensions(e,t);this._setState(r,!!this._smoothScrolling),(n=this._smoothScrolling)==null||n.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};let r=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===r.scrollLeft&&this._smoothScrolling.to.scrollTop===r.scrollTop)return;let n;t?n=new v3(this._smoothScrolling.from,r,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,r,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{let r=this._state.withScrollPosition(e);this._smoothScrolling=v3.start(this._state,r,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){let r=this._state;r.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(r,t)))}},g3=class{constructor(e,t,r){this.scrollLeft=e,this.scrollTop=t,this.isDone=r}};function tf(e,t){let r=t-e;return function(n){return e+r*rC(n)}}function tC(e,t,r){return function(n){return n<r?e(n/r):t((n-r)/(1-r))}}var v3=class Wf{constructor(t,r,n,l){this.from=t,this.to=r,this.duration=l,this.startTime=n,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(t,r,n){if(Math.abs(t-r)>2.5*n){let l,o;return t<r?(l=t+.75*n,o=r-.75*n):(l=t-.75*n,o=r+.75*n),tC(tf(t,l),tf(o,r),.33)}return tf(t,r)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(t){this.to=t.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(t){let r=(t-this.startTime)/this.duration;if(r<1){let n=this.scrollLeft(r),l=this.scrollTop(r);return new g3(n,l,!1)}return new g3(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,r,n){return Wf.start(t,r,n)}static start(t,r,n){n=n+10;let l=Date.now()-10;return new Wf(t,r,l,n)}};function iC(e){return Math.pow(e,3)}function rC(e){return 1-iC(1-e)}var sC=class extends Oe{constructor(e,t,r){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=r,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new Id)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){let e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;(e=this._domNode)==null||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(t=this._domNode)==null||t.setClassName(this._invisibleClassName+(e?" fade":"")))}},nC=140,n5=class extends jd{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new sC(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new s5),this._shouldRender=!0,this.domNode=Cl(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(Ce(this.domNode.domNode,zt.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){let t=this._register(new Qw(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,r,n){this.slider=Cl(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof r=="number"&&this.slider.setWidth(r),typeof n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(Ce(this.slider.domNode,zt.POINTER_DOWN,l=>{l.button===0&&(l.preventDefault(),this._sliderPointerDown(l))})),this.onclick(this.slider.domNode,l=>{l.leftButton&&l.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){let t=this.domNode.domNode.getClientRects()[0].top,r=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),l=this._sliderPointerPosition(e);r<=l&&l<=n?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,r;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,r=e.offsetY;else{let l=Fw(this.domNode.domNode);t=e.pageX-l.left,r=e.pageY-l.top}let n=this._pointerDownRelativePosition(t,r);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),r=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,l=>{let o=this._sliderOrthogonalPointerPosition(l),u=Math.abs(o-r);if(e5&&u>nC){this._setDesiredScrollPositionNow(n.getScrollPosition());return}let f=this._sliderPointerPosition(l)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(f))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}},a5=class Ff{constructor(t,r,n,l,o,u){this._scrollbarSize=Math.round(r),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(t),this._visibleSize=l,this._scrollSize=o,this._scrollPosition=u,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new Ff(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(t){let r=Math.round(t);return this._visibleSize!==r?(this._visibleSize=r,this._refreshComputedValues(),!0):!1}setScrollSize(t){let r=Math.round(t);return this._scrollSize!==r?(this._scrollSize=r,this._refreshComputedValues(),!0):!1}setScrollPosition(t){let r=Math.round(t);return this._scrollPosition!==r?(this._scrollPosition=r,this._refreshComputedValues(),!0):!1}setScrollbarSize(t){this._scrollbarSize=Math.round(t)}setOppositeScrollbarSize(t){this._oppositeScrollbarSize=Math.round(t)}static _computeValues(t,r,n,l,o){let u=Math.max(0,n-t),f=Math.max(0,u-2*r),p=l>0&&l>n;if(!p)return{computedAvailableSize:Math.round(u),computedIsNeeded:p,computedSliderSize:Math.round(f),computedSliderRatio:0,computedSliderPosition:0};let d=Math.round(Math.max(20,Math.floor(n*f/l))),v=(f-d)/(l-n),m=o*v;return{computedAvailableSize:Math.round(u),computedIsNeeded:p,computedSliderSize:Math.round(d),computedSliderRatio:v,computedSliderPosition:Math.round(m)}}_refreshComputedValues(){let t=Ff._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(t){if(!this._computedIsNeeded)return 0;let r=t-this._arrowSize-this._computedSliderSize/2;return Math.round(r/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(t){if(!this._computedIsNeeded)return 0;let r=t-this._arrowSize,n=this._scrollPosition;return r<this._computedSliderPosition?n-=this._visibleSize:n+=this._visibleSize,n}getDesiredScrollPositionFromDelta(t){if(!this._computedIsNeeded)return 0;let r=this._computedSliderPosition+t;return Math.round(r/this._computedSliderRatio)}},aC=class extends n5{constructor(e,t,r){let n=e.getScrollDimensions(),l=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:r,scrollbarState:new a5(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,n.width,n.scrollWidth,l.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}},lC=class extends n5{constructor(e,t,r){let n=e.getScrollDimensions(),l=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:r,scrollbarState:new a5(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,l.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}},oC=500,y3=50,cC=class{constructor(e,t,r){this.timestamp=e,this.deltaX=t,this.deltaY=r,this.score=0}},Yf=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let t=1,r=0,n=1,l=this._rear;do{let o=l===this._front?t:Math.pow(2,-n);if(t-=o,r+=this._memory[l].score*o,l===this._front)break;l=(this._capacity+l-1)%this._capacity,n++}while(!0);return r<=.5}acceptStandardWheelEvent(t){if(Pd){let r=ar(t.browserEvent),n=Sw(r);this.accept(Date.now(),t.deltaX*n,t.deltaY*n)}else this.accept(Date.now(),t.deltaX,t.deltaY)}accept(t,r,n){let l=null,o=new cC(t,r,n);this._front===-1&&this._rear===-1?(this._memory[0]=o,this._front=0,this._rear=0):(l=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=o),o.score=this._computeScore(o,l)}_computeScore(t,r){if(Math.abs(t.deltaX)>0&&Math.abs(t.deltaY)>0)return 1;let n=.5;if((!this._isAlmostInt(t.deltaX)||!this._isAlmostInt(t.deltaY))&&(n+=.25),r){let l=Math.abs(t.deltaX),o=Math.abs(t.deltaY),u=Math.abs(r.deltaX),f=Math.abs(r.deltaY),p=Math.max(Math.min(l,u),1),d=Math.max(Math.min(o,f),1),v=Math.max(l,u),m=Math.max(o,f);v%p===0&&m%d===0&&(n-=.5)}return Math.min(Math.max(n,0),1)}_isAlmostInt(t){return Math.abs(Math.round(t)-t)<.01}};Yf.INSTANCE=new Yf;var uC=Yf,hC=class extends jd{constructor(e,t,r){super(),this._onScroll=this._register(new ce),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new ce),this.onWillScroll=this._onWillScroll.event,this._options=dC(t),this._scrollable=r,this._register(this._scrollable.onScroll(l=>{this._onWillScroll.fire(l),this._onDidScroll(l),this._onScroll.fire(l)}));let n={onMouseWheel:l=>this._onMouseWheel(l),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new lC(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new aC(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="xterm-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Cl(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Cl(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Cl(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,l=>this._onMouseOver(l)),this.onmouseleave(this._listenOnDomNode,l=>this._onMouseLeave(l)),this._hideTimeout=this._register(new Id),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=sn(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,lr&&(this._options.className+=" mac"),this._domNode.className="xterm-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}setRevealOnScroll(e){this._revealOnScroll=e}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new f3(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=sn(this._mouseWheelToDispose),e)){let t=r=>{this._onMouseWheel(new f3(r))};this._mouseWheelToDispose.push(Ce(this._listenOnDomNode,zt.MOUSE_WHEEL,t,{passive:!1}))}}_onMouseWheel(e){var l;if((l=e.browserEvent)!=null&&l.defaultPrevented)return;let t=uC.INSTANCE;t.acceptStandardWheelEvent(e);let r=!1;if(e.deltaY||e.deltaX){let o=e.deltaY*this._options.mouseWheelScrollSensitivity,u=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&u+o===0?u=o=0:Math.abs(o)>=Math.abs(u)?u=0:o=0),this._options.flipAxes&&([o,u]=[u,o]);let f=!lr&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||f)&&!u&&(u=o,o=0),e.browserEvent&&e.browserEvent.altKey&&(u=u*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);let p=this._scrollable.getFutureScrollPosition(),d={};if(o){let v=y3*o,m=p.scrollTop-(v<0?Math.floor(v):Math.ceil(v));this._verticalScrollbar.writeScrollPosition(d,m)}if(u){let v=y3*u,m=p.scrollLeft-(v<0?Math.floor(v):Math.ceil(v));this._horizontalScrollbar.writeScrollPosition(d,m)}d=this._scrollable.validateScrollPosition(d),(p.scrollLeft!==d.scrollLeft||p.scrollTop!==d.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(d):this._scrollable.setScrollPositionNow(d),r=!0)}let n=r;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,r=e.scrollLeft>0,n=r?" left":"",l=t?" top":"",o=r||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${l}`),this._topLeftShadowDomNode.setClassName(`shadow${o}${l}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),oC)}},fC=class extends hC{constructor(e,t,r){super(e,t,r)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}};function dC(e){let t={lazyRender:typeof e.lazyRender<"u"?e.lazyRender:!1,className:typeof e.className<"u"?e.className:"",useShadows:typeof e.useShadows<"u"?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<"u"?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<"u"?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<"u"?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<"u"?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<"u"?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<"u"?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<"u"?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<"u"?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<"u"?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<"u"?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<"u"?e.listenOnDomNode:null,horizontal:typeof e.horizontal<"u"?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<"u"?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<"u"?e.horizontalHasArrows:!1,vertical:typeof e.vertical<"u"?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<"u"?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<"u"?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<"u"?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<"u"?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<"u"?e.verticalSliderSize:t.verticalScrollbarSize,lr&&(t.className+=" mac"),t}var Kf=class extends Oe{constructor(e,t,r,n,l,o,u,f){super(),this._bufferService=r,this._optionsService=u,this._renderService=f,this._onRequestScrollLines=this._register(new ce),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let p=this._register(new eC({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:d=>Ud(n.window,d)}));this._register(this._optionsService.onSpecificOptionChange("smoothScrollDuration",()=>{p.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new fC(t,{vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0,...this._getChangeOptions()},p)),this._register(this._optionsService.onMultipleOptionChange(["scrollSensitivity","fastScrollSensitivity","overviewRuler"],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(l.onProtocolChange(d=>{this._scrollableElement.updateOptions({handleMouseWheel:!(d&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(Ft.runAndSubscribe(o.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=o.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(nt(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=n.mainDocument.createElement("style"),t.appendChild(this._styleElement),this._register(nt(()=>this._styleElement.remove())),this._register(Ft.runAndSubscribe(o.onChangeColors,()=>{this._styleElement.textContent=[".xterm .xterm-scrollable-element > .scrollbar > .slider {",` background: ${o.colors.scrollbarSliderBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider:hover {",` background: ${o.colors.scrollbarSliderHoverBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider.active {",` background: ${o.colors.scrollbarSliderActiveBackground.css};`,"}"].join(`
221
+ `)})),this._register(this._bufferService.onResize(()=>this.queueSync())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._latestYDisp=void 0,this.queueSync()})),this._register(this._bufferService.onScroll(()=>this._sync())),this._register(this._scrollableElement.onScroll(d=>this._handleScroll(d)))}scrollLines(e){let t=this._scrollableElement.getScrollPosition();this._scrollableElement.setScrollPosition({reuseAnimation:!0,scrollTop:t.scrollTop+e*this._renderService.dimensions.css.cell.height})}scrollToLine(e,t){t&&(this._latestYDisp=e),this._scrollableElement.setScrollPosition({reuseAnimation:!t,scrollTop:e*this._renderService.dimensions.css.cell.height})}_getChangeOptions(){var e;return{mouseWheelScrollSensitivity:this._optionsService.rawOptions.scrollSensitivity,fastScrollSensitivity:this._optionsService.rawOptions.fastScrollSensitivity,verticalScrollbarSize:((e=this._optionsService.rawOptions.overviewRuler)==null?void 0:e.width)||14}}queueSync(e){e!==void 0&&(this._latestYDisp=e),this._queuedAnimationFrame===void 0&&(this._queuedAnimationFrame=this._renderService.addRefreshCallback(()=>{this._queuedAnimationFrame=void 0,this._sync(this._latestYDisp)}))}_sync(e=this._bufferService.buffer.ydisp){!this._renderService||this._isSyncing||(this._isSyncing=!0,this._suppressOnScrollHandler=!0,this._scrollableElement.setScrollDimensions({height:this._renderService.dimensions.css.canvas.height,scrollHeight:this._renderService.dimensions.css.cell.height*this._bufferService.buffer.lines.length}),this._suppressOnScrollHandler=!1,e!==this._latestYDisp&&this._scrollableElement.setScrollPosition({scrollTop:e*this._renderService.dimensions.css.cell.height}),this._isSyncing=!1)}_handleScroll(e){if(!this._renderService||this._isHandlingScroll||this._suppressOnScrollHandler)return;this._isHandlingScroll=!0;let t=Math.round(e.scrollTop/this._renderService.dimensions.css.cell.height),r=t-this._bufferService.buffer.ydisp;r!==0&&(this._latestYDisp=t,this._onRequestScrollLines.fire(r)),this._isHandlingScroll=!1}};Kf=ft([he(2,si),he(3,Br),he(4,G4),he(5,la),he(6,ni),he(7,zr)],Kf);var Xf=class extends Oe{constructor(e,t,r,n,l){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=r,this._decorationService=n,this._renderService=l,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this._register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this._register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this._register(this._decorationService.onDecorationRemoved(o=>this._removeDecoration(o))),this._register(nt(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var n;let t=this._coreBrowserService.mainDocument.createElement("div");t.classList.add("xterm-decoration"),t.classList.toggle("xterm-decoration-top-layer",((n=e==null?void 0:e.options)==null?void 0:n.layer)==="top"),t.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,t.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,t.style.top=`${(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height}px`,t.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let r=e.options.x??0;return r&&r>this._bufferService.cols&&(t.style.display="none"),this._refreshXPosition(e,t),t}_refreshStyle(e){let t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let r=this._decorationElements.get(e);r||(r=this._createElement(e),e.element=r,this._decorationElements.set(e,r),this._container.appendChild(r),e.onDispose(()=>{this._decorationElements.delete(e),r.remove()})),r.style.display=this._altBufferIsActive?"none":"block",this._altBufferIsActive||(r.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,r.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,r.style.top=`${t*this._renderService.dimensions.css.cell.height}px`,r.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`),e.onRenderEmitter.fire(r)}}_refreshXPosition(e,t=e.element){if(!t)return;let r=e.options.x??0;(e.options.anchor||"left")==="right"?t.style.right=r?`${r*this._renderService.dimensions.css.cell.width}px`:"":t.style.left=r?`${r*this._renderService.dimensions.css.cell.width}px`:""}_removeDecoration(e){var t;(t=this._decorationElements.get(e))==null||t.remove(),this._decorationElements.delete(e),e.dispose()}};Xf=ft([he(1,si),he(2,Br),he(3,Hl),he(4,zr)],Xf);var pC=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(let t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position)){this._addLineToZone(t,e.marker.line);return}}if(this._zonePoolIndex<this._zonePool.length){this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,this._zones.push(this._zonePool[this._zonePoolIndex++]);return}this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(e){this._linePadding=e}_lineIntersectsZone(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,r){return t>=e.startBufferLine-this._linePadding[r||"full"]&&t<=e.endBufferLine+this._linePadding[r||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}},tr={full:0,left:0,center:0,right:0},os={full:0,left:0,center:0,right:0},cl={full:0,left:0,center:0,right:0},$c=class extends Oe{constructor(e,t,r,n,l,o,u,f){var d;super(),this._viewportElement=e,this._screenElement=t,this._bufferService=r,this._decorationService=n,this._renderService=l,this._optionsService=o,this._themeService=u,this._coreBrowserService=f,this._colorZoneStore=new pC,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(d=this._viewportElement.parentElement)==null||d.insertBefore(this._canvas,this._viewportElement),this._register(nt(()=>{var v;return(v=this._canvas)==null?void 0:v.remove()}));let p=this._canvas.getContext("2d");if(p)this._ctx=p;else throw new Error("Ctx cannot be null");this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this._register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0))),this._register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this._register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})),this._register(this._renderService.onRender(()=>{(!this._containerHeight||this._containerHeight!==this._screenElement.clientHeight)&&(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh(!0))),this._register(this._optionsService.onSpecificOptionChange("overviewRuler",()=>this._queueRefresh(!0))),this._register(this._themeService.onChangeColors(()=>this._queueRefresh())),this._queueRefresh(!0)}get _width(){var e;return((e=this._optionsService.options.overviewRuler)==null?void 0:e.width)||0}_refreshDrawConstants(){let e=Math.floor((this._canvas.width-1)/3),t=Math.ceil((this._canvas.width-1)/3);os.full=this._canvas.width,os.left=e,os.center=t,os.right=e,this._refreshDrawHeightConstants(),cl.full=1,cl.left=1,cl.center=1+os.left,cl.right=1+os.left+os.center}_refreshDrawHeightConstants(){tr.full=Math.round(2*this._coreBrowserService.dpr);let e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowserService.dpr);tr.left=t,tr.center=t,tr.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*tr.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*tr.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*tr.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*tr.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let t of this._decorationService.decorations)this._colorZoneStore.addDecoration(t);this._ctx.lineWidth=1,this._renderRulerOutline();let e=this._colorZoneStore.zones;for(let t of e)t.position!=="full"&&this._renderColorZone(t);for(let t of e)t.position==="full"&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderRulerOutline(){this._ctx.fillStyle=this._themeService.colors.overviewRulerBorder.css,this._ctx.fillRect(0,0,1,this._canvas.height),this._optionsService.rawOptions.overviewRuler.showTopBorder&&this._ctx.fillRect(1,0,this._canvas.width-1,1),this._optionsService.rawOptions.overviewRuler.showBottomBorder&&this._ctx.fillRect(1,this._canvas.height-1,this._canvas.width-1,this._canvas.height)}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(cl[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-tr[e.position||"full"]/2),os[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+tr[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};$c=ft([he(2,si),he(3,Hl),he(4,zr),he(5,ni),he(6,la),he(7,Br)],$c);var te;(e=>(e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="\x07",e.BS="\b",e.HT=" ",e.LF=`
222
+ `,e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="\x1B",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""))(te||(te={}));var kc;(e=>(e.PAD="€",e.HOP="",e.BPH="‚",e.NBH="ƒ",e.IND="„",e.NEL="…",e.SSA="†",e.ESA="‡",e.HTS="ˆ",e.HTJ="‰",e.VTS="Š",e.PLD="‹",e.PLU="Œ",e.RI="",e.SS2="Ž",e.SS3="",e.DCS="",e.PU1="‘",e.PU2="’",e.STS="“",e.CCH="”",e.MW="•",e.SPA="–",e.EPA="—",e.SOS="˜",e.SGCI="™",e.SCI="š",e.CSI="›",e.ST="œ",e.OSC="",e.PM="ž",e.APC="Ÿ"))(kc||(kc={}));var l5;(e=>e.ST=`${te.ESC}\\`)(l5||(l5={}));var Qf=class{constructor(e,t,r,n,l,o){this._textarea=e,this._compositionView=t,this._bufferService=r,this._optionsService=n,this._coreService=l,this._renderService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(e.keyCode===20||e.keyCode===229||e.keyCode===16||e.keyCode===17||e.keyCode===18)return!1;this._finalizeComposition(!1)}return e.keyCode===229?(this._handleAnyTextareaChanges(),!1):!0}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){let t={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){this._isSendingComposition=!1;let r;t.start+=this._dataAlreadySent.length,this._isComposing?r=this._textarea.value.substring(t.start,this._compositionPosition.start):r=this._textarea.value.substring(t.start),r.length>0&&this._coreService.triggerDataEvent(r,!0)}},0)}else{this._isSendingComposition=!1;let t=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(t,!0)}}_handleAnyTextareaChanges(){let e=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let t=this._textarea.value,r=t.replace(e,"");this._dataAlreadySent=r,t.length>e.length?this._coreService.triggerDataEvent(r,!0):t.length<e.length?this._coreService.triggerDataEvent(`${te.DEL}`,!0):t.length===e.length&&t!==e&&this._coreService.triggerDataEvent(t,!0)}},0)}updateCompositionElements(e){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){let t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),r=this._renderService.dimensions.css.cell.height,n=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,l=t*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=n+"px",this._compositionView.style.height=r+"px",this._compositionView.style.lineHeight=r+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";let o=this._compositionView.getBoundingClientRect();this._textarea.style.left=l+"px",this._textarea.style.top=n+"px",this._textarea.style.width=Math.max(o.width,1)+"px",this._textarea.style.height=Math.max(o.height,1)+"px",this._textarea.style.lineHeight=o.height+"px"}e||setTimeout(()=>this.updateCompositionElements(!0),0)}}};Qf=ft([he(2,si),he(3,ni),he(4,ln),he(5,zr)],Qf);var Ht=0,Vt=0,Pt=0,ht=0,S3={css:"#00000000",rgba:0},xt;(e=>{function t(l,o,u,f){return f!==void 0?`#${$s(l)}${$s(o)}${$s(u)}${$s(f)}`:`#${$s(l)}${$s(o)}${$s(u)}`}e.toCss=t;function r(l,o,u,f=255){return(l<<24|o<<16|u<<8|f)>>>0}e.toRgba=r;function n(l,o,u,f){return{css:e.toCss(l,o,u,f),rgba:e.toRgba(l,o,u,f)}}e.toColor=n})(xt||(xt={}));var rt;(e=>{function t(p,d){if(ht=(d.rgba&255)/255,ht===1)return{css:d.css,rgba:d.rgba};let v=d.rgba>>24&255,m=d.rgba>>16&255,y=d.rgba>>8&255,b=p.rgba>>24&255,S=p.rgba>>16&255,x=p.rgba>>8&255;Ht=b+Math.round((v-b)*ht),Vt=S+Math.round((m-S)*ht),Pt=x+Math.round((y-x)*ht);let T=xt.toCss(Ht,Vt,Pt),M=xt.toRgba(Ht,Vt,Pt);return{css:T,rgba:M}}e.blend=t;function r(p){return(p.rgba&255)===255}e.isOpaque=r;function n(p,d,v){let m=Tc.ensureContrastRatio(p.rgba,d.rgba,v);if(m)return xt.toColor(m>>24&255,m>>16&255,m>>8&255)}e.ensureContrastRatio=n;function l(p){let d=(p.rgba|255)>>>0;return[Ht,Vt,Pt]=Tc.toChannels(d),{css:xt.toCss(Ht,Vt,Pt),rgba:d}}e.opaque=l;function o(p,d){return ht=Math.round(d*255),[Ht,Vt,Pt]=Tc.toChannels(p.rgba),{css:xt.toCss(Ht,Vt,Pt,ht),rgba:xt.toRgba(Ht,Vt,Pt,ht)}}e.opacity=o;function u(p,d){return ht=p.rgba&255,o(p,ht*d/255)}e.multiplyOpacity=u;function f(p){return[p.rgba>>24&255,p.rgba>>16&255,p.rgba>>8&255]}e.toColorRGB=f})(rt||(rt={}));var lt;(e=>{let t,r;try{let l=document.createElement("canvas");l.width=1,l.height=1;let o=l.getContext("2d",{willReadFrequently:!0});o&&(t=o,t.globalCompositeOperation="copy",r=t.createLinearGradient(0,0,1,1))}catch{}function n(l){if(l.match(/#[\da-f]{3,8}/i))switch(l.length){case 4:return Ht=parseInt(l.slice(1,2).repeat(2),16),Vt=parseInt(l.slice(2,3).repeat(2),16),Pt=parseInt(l.slice(3,4).repeat(2),16),xt.toColor(Ht,Vt,Pt);case 5:return Ht=parseInt(l.slice(1,2).repeat(2),16),Vt=parseInt(l.slice(2,3).repeat(2),16),Pt=parseInt(l.slice(3,4).repeat(2),16),ht=parseInt(l.slice(4,5).repeat(2),16),xt.toColor(Ht,Vt,Pt,ht);case 7:return{css:l,rgba:(parseInt(l.slice(1),16)<<8|255)>>>0};case 9:return{css:l,rgba:parseInt(l.slice(1),16)>>>0}}let o=l.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(o)return Ht=parseInt(o[1]),Vt=parseInt(o[2]),Pt=parseInt(o[3]),ht=Math.round((o[5]===void 0?1:parseFloat(o[5]))*255),xt.toColor(Ht,Vt,Pt,ht);if(!t||!r)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=r,t.fillStyle=l,typeof t.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[Ht,Vt,Pt,ht]=t.getImageData(0,0,1,1).data,ht!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:xt.toRgba(Ht,Vt,Pt,ht),css:l}}e.toColor=n})(lt||(lt={}));var ri;(e=>{function t(n){return r(n>>16&255,n>>8&255,n&255)}e.relativeLuminance=t;function r(n,l,o){let u=n/255,f=l/255,p=o/255,d=u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4),v=f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4),m=p<=.03928?p/12.92:Math.pow((p+.055)/1.055,2.4);return d*.2126+v*.7152+m*.0722}e.relativeLuminance2=r})(ri||(ri={}));var Tc;(e=>{function t(u,f){if(ht=(f&255)/255,ht===1)return f;let p=f>>24&255,d=f>>16&255,v=f>>8&255,m=u>>24&255,y=u>>16&255,b=u>>8&255;return Ht=m+Math.round((p-m)*ht),Vt=y+Math.round((d-y)*ht),Pt=b+Math.round((v-b)*ht),xt.toRgba(Ht,Vt,Pt)}e.blend=t;function r(u,f,p){let d=ri.relativeLuminance(u>>8),v=ri.relativeLuminance(f>>8);if(Rr(d,v)<p){if(v<d){let b=n(u,f,p),S=Rr(d,ri.relativeLuminance(b>>8));if(S<p){let x=l(u,f,p),T=Rr(d,ri.relativeLuminance(x>>8));return S>T?b:x}return b}let m=l(u,f,p),y=Rr(d,ri.relativeLuminance(m>>8));if(y<p){let b=n(u,f,p),S=Rr(d,ri.relativeLuminance(b>>8));return y>S?m:b}return m}}e.ensureContrastRatio=r;function n(u,f,p){let d=u>>24&255,v=u>>16&255,m=u>>8&255,y=f>>24&255,b=f>>16&255,S=f>>8&255,x=Rr(ri.relativeLuminance2(y,b,S),ri.relativeLuminance2(d,v,m));for(;x<p&&(y>0||b>0||S>0);)y-=Math.max(0,Math.ceil(y*.1)),b-=Math.max(0,Math.ceil(b*.1)),S-=Math.max(0,Math.ceil(S*.1)),x=Rr(ri.relativeLuminance2(y,b,S),ri.relativeLuminance2(d,v,m));return(y<<24|b<<16|S<<8|255)>>>0}e.reduceLuminance=n;function l(u,f,p){let d=u>>24&255,v=u>>16&255,m=u>>8&255,y=f>>24&255,b=f>>16&255,S=f>>8&255,x=Rr(ri.relativeLuminance2(y,b,S),ri.relativeLuminance2(d,v,m));for(;x<p&&(y<255||b<255||S<255);)y=Math.min(255,y+Math.ceil((255-y)*.1)),b=Math.min(255,b+Math.ceil((255-b)*.1)),S=Math.min(255,S+Math.ceil((255-S)*.1)),x=Rr(ri.relativeLuminance2(y,b,S),ri.relativeLuminance2(d,v,m));return(y<<24|b<<16|S<<8|255)>>>0}e.increaseLuminance=l;function o(u){return[u>>24&255,u>>16&255,u>>8&255,u&255]}e.toChannels=o})(Tc||(Tc={}));function $s(e){let t=e.toString(16);return t.length<2?"0"+t:t}function Rr(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var _C=class extends zl{constructor(e,t,r){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=r}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},Zc=class{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new qi}register(e){let t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1}getJoinedCharacters(e){if(this._characterJoiners.length===0)return[];let t=this._bufferService.buffer.lines.get(e);if(!t||t.length===0)return[];let r=[],n=t.translateToString(!0),l=0,o=0,u=0,f=t.getFg(0),p=t.getBg(0);for(let d=0;d<t.getTrimmedLength();d++)if(t.loadCell(d,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==f||this._workCell.bg!==p){if(d-l>1){let v=this._getJoinedRanges(n,u,o,t,l);for(let m=0;m<v.length;m++)r.push(v[m])}l=d,u=o,f=this._workCell.fg,p=this._workCell.bg}o+=this._workCell.getChars().length||gs.length}if(this._bufferService.cols-l>1){let d=this._getJoinedRanges(n,u,o,t,l);for(let v=0;v<d.length;v++)r.push(d[v])}return r}_getJoinedRanges(e,t,r,n,l){let o=e.substring(t,r),u=[];try{u=this._characterJoiners[0].handler(o)}catch(f){console.error(f)}for(let f=1;f<this._characterJoiners.length;f++)try{let p=this._characterJoiners[f].handler(o);for(let d=0;d<p.length;d++)Zc._mergeRanges(u,p[d])}catch(p){console.error(p)}return this._stringRangesToCellRanges(u,n,l),u}_stringRangesToCellRanges(e,t,r){let n=0,l=!1,o=0,u=e[n];if(u){for(let f=r;f<this._bufferService.cols;f++){let p=t.getWidth(f),d=t.getString(f).length||gs.length;if(p!==0){if(!l&&u[0]<=o&&(u[0]=f,l=!0),u[1]<=o){if(u[1]=f,u=e[++n],!u)break;u[0]<=o?(u[0]=f,l=!0):l=!1}o+=d}}u&&(u[1]=this._bufferService.cols)}}static _mergeRanges(e,t){let r=!1;for(let n=0;n<e.length;n++){let l=e[n];if(r){if(t[1]<=l[0])return e[n-1][1]=t[1],e;if(t[1]<=l[1])return e[n-1][1]=Math.max(t[1],l[1]),e.splice(n,1),e;e.splice(n,1),n--}else{if(t[1]<=l[0])return e.splice(n,0,t),e;if(t[1]<=l[1])return l[0]=Math.min(t[0],l[0]),e;t[0]<l[1]&&(l[0]=Math.min(t[0],l[0]),r=!0);continue}}return r?e[e.length-1][1]=t[1]:e.push(t),e}};Zc=ft([he(0,si)],Zc);function mC(e){return 57508<=e&&e<=57558}function gC(e){return 9472<=e&&e<=9631}function vC(e){return mC(e)||gC(e)}function yC(){return{css:{canvas:gc(),cell:gc()},device:{canvas:gc(),cell:gc(),char:{width:0,height:0,left:0,top:0}}}}function gc(){return{width:0,height:0}}var Jf=class{constructor(e,t,r,n,l,o,u){this._document=e,this._characterJoinerService=t,this._optionsService=r,this._coreBrowserService=n,this._coreService=l,this._decorationService=o,this._themeService=u,this._workCell=new qi,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,r){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=r}createRow(e,t,r,n,l,o,u,f,p,d,v){let m=[],y=this._characterJoinerService.getJoinedCharacters(t),b=this._themeService.colors,S=e.getNoBgTrimmedLength();r&&S<o+1&&(S=o+1);let x,T=0,M="",z=0,O=0,P=0,W=0,X=!1,ne=0,_e=!1,oe=0,Ee=0,de=[],J=d!==-1&&v!==-1;for(let I=0;I<S;I++){e.loadCell(I,this._workCell);let K=this._workCell.getWidth();if(K===0)continue;let re=!1,R=I>=Ee,$=I,q=this._workCell;if(y.length>0&&I===y[0][0]&&R){let Ne=y.shift(),Ie=this._isCellInSelection(Ne[0],t);for(z=Ne[0]+1;z<Ne[1];z++)R&&(R=Ie===this._isCellInSelection(z,t));R&&(R=!r||o<Ne[0]||o>=Ne[1]),R?(re=!0,q=new _C(this._workCell,e.translateToString(!0,Ne[0],Ne[1]),Ne[1]-Ne[0]),$=Ne[1]-1,K=q.getWidth()):Ee=Ne[1]}let me=this._isCellInSelection(I,t),ye=r&&I===o,A=J&&I>=d&&I<=v,N=!1;this._decorationService.forEachDecorationAtCell(I,t,void 0,Ne=>{N=!0});let Z=q.getChars()||gs;if(Z===" "&&(q.isUnderline()||q.isOverline())&&(Z=" "),oe=K*f-p.get(Z,q.isBold(),q.isItalic()),!x)x=this._document.createElement("span");else if(T&&(me&&_e||!me&&!_e&&q.bg===O)&&(me&&_e&&b.selectionForeground||q.fg===P)&&q.extended.ext===W&&A===X&&oe===ne&&!ye&&!re&&!N&&R){q.isInvisible()?M+=gs:M+=Z,T++;continue}else T&&(x.textContent=M),x=this._document.createElement("span"),T=0,M="";if(O=q.bg,P=q.fg,W=q.extended.ext,X=A,ne=oe,_e=me,re&&o>=I&&o<=$&&(o=I),!this._coreService.isCursorHidden&&ye&&this._coreService.isCursorInitialized){if(de.push("xterm-cursor"),this._coreBrowserService.isFocused)u&&de.push("xterm-cursor-blink"),de.push(n==="bar"?"xterm-cursor-bar":n==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(l)switch(l){case"outline":de.push("xterm-cursor-outline");break;case"block":de.push("xterm-cursor-block");break;case"bar":de.push("xterm-cursor-bar");break;case"underline":de.push("xterm-cursor-underline");break}}if(q.isBold()&&de.push("xterm-bold"),q.isItalic()&&de.push("xterm-italic"),q.isDim()&&de.push("xterm-dim"),q.isInvisible()?M=gs:M=q.getChars()||gs,q.isUnderline()&&(de.push(`xterm-underline-${q.extended.underlineStyle}`),M===" "&&(M=" "),!q.isUnderlineColorDefault()))if(q.isUnderlineColorRGB())x.style.textDecorationColor=`rgb(${zl.toColorRGB(q.getUnderlineColor()).join(",")})`;else{let Ne=q.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&q.isBold()&&Ne<8&&(Ne+=8),x.style.textDecorationColor=b.ansi[Ne].css}q.isOverline()&&(de.push("xterm-overline"),M===" "&&(M=" ")),q.isStrikethrough()&&de.push("xterm-strikethrough"),A&&(x.style.textDecoration="underline");let se=q.getFgColor(),ue=q.getFgColorMode(),le=q.getBgColor(),fe=q.getBgColorMode(),Pe=!!q.isInverse();if(Pe){let Ne=se;se=le,le=Ne;let Ie=ue;ue=fe,fe=Ie}let Me,vt,dt=!1;this._decorationService.forEachDecorationAtCell(I,t,void 0,Ne=>{Ne.options.layer!=="top"&&dt||(Ne.backgroundColorRGB&&(fe=50331648,le=Ne.backgroundColorRGB.rgba>>8&16777215,Me=Ne.backgroundColorRGB),Ne.foregroundColorRGB&&(ue=50331648,se=Ne.foregroundColorRGB.rgba>>8&16777215,vt=Ne.foregroundColorRGB),dt=Ne.options.layer==="top")}),!dt&&me&&(Me=this._coreBrowserService.isFocused?b.selectionBackgroundOpaque:b.selectionInactiveBackgroundOpaque,le=Me.rgba>>8&16777215,fe=50331648,dt=!0,b.selectionForeground&&(ue=50331648,se=b.selectionForeground.rgba>>8&16777215,vt=b.selectionForeground)),dt&&de.push("xterm-decoration-top");let ot;switch(fe){case 16777216:case 33554432:ot=b.ansi[le],de.push(`xterm-bg-${le}`);break;case 50331648:ot=xt.toColor(le>>16,le>>8&255,le&255),this._addStyle(x,`background-color:#${b3((le>>>0).toString(16),"0",6)}`);break;case 0:default:Pe?(ot=b.foreground,de.push("xterm-bg-257")):ot=b.background}switch(Me||q.isDim()&&(Me=rt.multiplyOpacity(ot,.5)),ue){case 16777216:case 33554432:q.isBold()&&se<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(se+=8),this._applyMinimumContrast(x,ot,b.ansi[se],q,Me,void 0)||de.push(`xterm-fg-${se}`);break;case 50331648:let Ne=xt.toColor(se>>16&255,se>>8&255,se&255);this._applyMinimumContrast(x,ot,Ne,q,Me,vt)||this._addStyle(x,`color:#${b3(se.toString(16),"0",6)}`);break;case 0:default:this._applyMinimumContrast(x,ot,b.foreground,q,Me,vt)||Pe&&de.push("xterm-fg-257")}de.length&&(x.className=de.join(" "),de.length=0),!ye&&!re&&!N&&R?T++:x.textContent=M,oe!==this.defaultSpacing&&(x.style.letterSpacing=`${oe}px`),m.push(x),I=$}return x&&T&&(x.textContent=M),m}_applyMinimumContrast(e,t,r,n,l,o){if(this._optionsService.rawOptions.minimumContrastRatio===1||vC(n.getCode()))return!1;let u=this._getContrastCache(n),f;if(!l&&!o&&(f=u.getColor(t.rgba,r.rgba)),f===void 0){let p=this._optionsService.rawOptions.minimumContrastRatio/(n.isDim()?2:1);f=rt.ensureContrastRatio(l||t,o||r,p),u.setColor((l||t).rgba,(o||r).rgba,f??null)}return f?(this._addStyle(e,`color:${f.css}`),!0):!1}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){let r=this._selectionStart,n=this._selectionEnd;return!r||!n?!1:this._columnSelectMode?r[0]<=n[0]?e>=r[0]&&t>=r[1]&&e<n[0]&&t<=n[1]:e<r[0]&&t>=r[1]&&e>=n[0]&&t<=n[1]:t>r[1]&&t<n[1]||r[1]===n[1]&&t===r[1]&&e>=r[0]&&e<n[0]||r[1]<n[1]&&t===n[1]&&e<n[0]||r[1]<n[1]&&t===r[1]&&e>=r[0]}};Jf=ft([he(1,j4),he(2,ni),he(3,Br),he(4,ln),he(5,Hl),he(6,la)],Jf);function b3(e,t,r){for(;e.length<r;)e=t+e;return e}var SC=class{constructor(e,t){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";let r=e.createElement("span");r.classList.add("xterm-char-measure-element");let n=e.createElement("span");n.classList.add("xterm-char-measure-element"),n.style.fontWeight="bold";let l=e.createElement("span");l.classList.add("xterm-char-measure-element"),l.style.fontStyle="italic";let o=e.createElement("span");o.classList.add("xterm-char-measure-element"),o.style.fontWeight="bold",o.style.fontStyle="italic",this._measureElements=[r,n,l,o],this._container.appendChild(r),this._container.appendChild(n),this._container.appendChild(l),this._container.appendChild(o),t.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,r,n){e===this._font&&t===this._fontSize&&r===this._weight&&n===this._weightBold||(this._font=e,this._fontSize=t,this._weight=r,this._weightBold=n,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${r}`,this._measureElements[1].style.fontWeight=`${n}`,this._measureElements[2].style.fontWeight=`${r}`,this._measureElements[3].style.fontWeight=`${n}`,this.clear())}get(e,t,r){let n=0;if(!t&&!r&&e.length===1&&(n=e.charCodeAt(0))<256){if(this._flat[n]!==-9999)return this._flat[n];let u=this._measure(e,0);return u>0&&(this._flat[n]=u),u}let l=e;t&&(l+="B"),r&&(l+="I");let o=this._holey.get(l);if(o===void 0){let u=0;t&&(u|=1),r&&(u|=2),o=this._measure(e,u),o>0&&this._holey.set(l,o)}return o}_measure(e,t){let r=this._measureElements[t];return r.textContent=e.repeat(32),r.offsetWidth/32}},bC=class{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,r,n=!1){if(this.selectionStart=t,this.selectionEnd=r,!t||!r||t[0]===r[0]&&t[1]===r[1]){this.clear();return}let l=e.buffers.active.ydisp,o=t[1]-l,u=r[1]-l,f=Math.max(o,0),p=Math.min(u,e.rows-1);if(f>=e.rows||p<0){this.clear();return}this.hasSelection=!0,this.columnSelectMode=n,this.viewportStartRow=o,this.viewportEndRow=u,this.viewportCappedStartRow=f,this.viewportCappedEndRow=p,this.startCol=t[0],this.endCol=r[0]}isCellSelected(e,t,r){return this.hasSelection?(r-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&r>=this.viewportCappedStartRow&&t<this.endCol&&r<=this.viewportCappedEndRow:t<this.startCol&&r>=this.viewportCappedStartRow&&t>=this.endCol&&r<=this.viewportCappedEndRow:r>this.viewportStartRow&&r<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&r===this.viewportStartRow&&t>=this.startCol&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&r===this.viewportEndRow&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&r===this.viewportStartRow&&t>=this.startCol):!1}};function wC(){return new bC}var rf="xterm-dom-renderer-owner-",Hi="xterm-rows",vc="xterm-fg-",w3="xterm-bg-",ul="xterm-focus",yc="xterm-selection",CC=1,ed=class extends Oe{constructor(e,t,r,n,l,o,u,f,p,d,v,m,y,b){super(),this._terminal=e,this._document=t,this._element=r,this._screenElement=n,this._viewportElement=l,this._helperContainer=o,this._linkifier2=u,this._charSizeService=p,this._optionsService=d,this._bufferService=v,this._coreService=m,this._coreBrowserService=y,this._themeService=b,this._terminalClass=CC++,this._rowElements=[],this._selectionRenderModel=wC(),this.onRequestRedraw=this._register(new ce).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(Hi),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(yc),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=yC(),this._updateDimensions(),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._themeService.onChangeColors(S=>this._injectCss(S))),this._injectCss(this._themeService.colors),this._rowFactory=f.createInstance(Jf,document),this._element.classList.add(rf+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this._register(this._linkifier2.onShowLinkUnderline(S=>this._handleLinkHover(S))),this._register(this._linkifier2.onHideLinkUnderline(S=>this._handleLinkLeave(S))),this._register(nt(()=>{this._element.classList.remove(rf+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new SC(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let r of this._rowElements)r.style.width=`${this.dimensions.css.canvas.width}px`,r.style.height=`${this.dimensions.css.cell.height}px`,r.style.lineHeight=`${this.dimensions.css.cell.height}px`,r.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let t=`${this._terminalSelector} .${Hi} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${Hi} { pointer-events: none; color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${Hi} .xterm-dim { color: ${rt.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;let r=`blink_underline_${this._terminalClass}`,n=`blink_bar_${this._terminalClass}`,l=`blink_block_${this._terminalClass}`;t+=`@keyframes ${r} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${n} { 50% { box-shadow: none; }}`,t+=`@keyframes ${l} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${Hi}.${ul} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${Hi}.${ul} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${n} 1s step-end infinite;}${this._terminalSelector} .${Hi}.${ul} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${l} 1s step-end infinite;}${this._terminalSelector} .${Hi} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${Hi} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${Hi} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${Hi} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${Hi} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${yc} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${yc} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${yc} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(let[o,u]of e.ansi.entries())t+=`${this._terminalSelector} .${vc}${o} { color: ${u.css}; }${this._terminalSelector} .${vc}${o}.xterm-dim { color: ${rt.multiplyOpacity(u,.5).css}; }${this._terminalSelector} .${w3}${o} { background-color: ${u.css}; }`;t+=`${this._terminalSelector} .${vc}257 { color: ${rt.opaque(e.background).css}; }${this._terminalSelector} .${vc}257.xterm-dim { color: ${rt.multiplyOpacity(rt.opaque(e.background),.5).css}; }${this._terminalSelector} .${w3}257 { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){let e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let r=this._rowElements.length;r<=t;r++){let n=this._document.createElement("div");this._rowContainer.appendChild(n),this._rowElements.push(n)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(ul),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(ul),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,r){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,r),this.renderRows(0,this._bufferService.rows-1),!e||!t||(this._selectionRenderModel.update(this._terminal,e,t,r),!this._selectionRenderModel.hasSelection))return;let n=this._selectionRenderModel.viewportStartRow,l=this._selectionRenderModel.viewportEndRow,o=this._selectionRenderModel.viewportCappedStartRow,u=this._selectionRenderModel.viewportCappedEndRow,f=this._document.createDocumentFragment();if(r){let p=e[0]>t[0];f.appendChild(this._createSelectionElement(o,p?t[0]:e[0],p?e[0]:t[0],u-o+1))}else{let p=n===o?e[0]:0,d=o===l?t[0]:this._bufferService.cols;f.appendChild(this._createSelectionElement(o,p,d));let v=u-o-1;if(f.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,v)),o!==u){let m=l===u?t[0]:this._bufferService.cols;f.appendChild(this._createSelectionElement(u,0,m))}}this._selectionContainer.appendChild(f)}_createSelectionElement(e,t,r,n=1){let l=this._document.createElement("div"),o=t*this.dimensions.css.cell.width,u=this.dimensions.css.cell.width*(r-t);return o+u>this.dimensions.css.canvas.width&&(u=this.dimensions.css.canvas.width-o),l.style.height=`${n*this.dimensions.css.cell.height}px`,l.style.top=`${e*this.dimensions.css.cell.height}px`,l.style.left=`${o}px`,l.style.width=`${u}px`,l}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let e of this._rowElements)e.replaceChildren()}renderRows(e,t){let r=this._bufferService.buffer,n=r.ybase+r.y,l=Math.min(r.x,this._bufferService.cols-1),o=this._coreService.decPrivateModes.cursorBlink??this._optionsService.rawOptions.cursorBlink,u=this._coreService.decPrivateModes.cursorStyle??this._optionsService.rawOptions.cursorStyle,f=this._optionsService.rawOptions.cursorInactiveStyle;for(let p=e;p<=t;p++){let d=p+r.ydisp,v=this._rowElements[p],m=r.lines.get(d);if(!v||!m)break;v.replaceChildren(...this._rowFactory.createRow(m,d,d===n,u,f,l,o,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${rf}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,r,n,l,o){r<0&&(e=0),n<0&&(t=0);let u=this._bufferService.rows-1;r=Math.max(Math.min(r,u),0),n=Math.max(Math.min(n,u),0),l=Math.min(l,this._bufferService.cols);let f=this._bufferService.buffer,p=f.ybase+f.y,d=Math.min(f.x,l-1),v=this._optionsService.rawOptions.cursorBlink,m=this._optionsService.rawOptions.cursorStyle,y=this._optionsService.rawOptions.cursorInactiveStyle;for(let b=r;b<=n;++b){let S=b+f.ydisp,x=this._rowElements[b],T=f.lines.get(S);if(!x||!T)break;x.replaceChildren(...this._rowFactory.createRow(T,S,S===p,m,y,d,v,this.dimensions.css.cell.width,this._widthCache,o?b===r?e:0:-1,o?(b===n?t:l)-1:-1))}}};ed=ft([he(7,zd),he(8,cu),he(9,ni),he(10,si),he(11,ln),he(12,Br),he(13,la)],ed);var td=class extends Oe{constructor(e,t,r){super(),this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=this._register(new ce),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this._register(new xC(this._optionsService))}catch{this._measureStrategy=this._register(new EC(e,t,this._optionsService))}this._register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}get hasValidSize(){return this.width>0&&this.height>0}measure(){let e=this._measureStrategy.measure();(e.width!==this.width||e.height!==this.height)&&(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};td=ft([he(2,ni)],td);var o5=class extends Oe{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(e,t){e!==void 0&&e>0&&t!==void 0&&t>0&&(this._result.width=e,this._result.height=t)}},EC=class extends o5{constructor(e,t,r){super(),this._document=e,this._parentElement=t,this._optionsService=r,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}},xC=class extends o5{constructor(e){super(),this._optionsService=e,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");let t=this._ctx.measureText("W");if(!("width"in t&&"fontBoundingBoxAscent"in t&&"fontBoundingBoxDescent"in t))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;let e=this._ctx.measureText("W");return this._validateAndSet(e.width,e.fontBoundingBoxAscent+e.fontBoundingBoxDescent),this._result}},AC=class extends Oe{constructor(e,t,r){super(),this._textarea=e,this._window=t,this.mainDocument=r,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=this._register(new kC(this._window)),this._onDprChange=this._register(new ce),this.onDprChange=this._onDprChange.event,this._onWindowChange=this._register(new ce),this.onWindowChange=this._onWindowChange.event,this._register(this.onWindowChange(n=>this._screenDprMonitor.setWindow(n))),this._register(Ft.forward(this._screenDprMonitor.onDprChange,this._onDprChange)),this._register(Ce(this._textarea,"focus",()=>this._isFocused=!0)),this._register(Ce(this._textarea,"blur",()=>this._isFocused=!1))}get window(){return this._window}set window(e){this._window!==e&&(this._window=e,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}},kC=class extends Oe{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this._register(new ra),this._onDprChange=this._register(new ce),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this._register(nt(()=>this.clearListener()))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=Ce(this._parentWindow,"resize",()=>this._setDprAndFireIfDiffers())}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var e;this._outerListener&&((e=this._resolutionMediaMatchList)==null||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){!this._resolutionMediaMatchList||!this._outerListener||(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}},TC=class extends Oe{constructor(){super(),this.linkProviders=[],this._register(nt(()=>this.linkProviders.length=0))}registerLinkProvider(e){return this.linkProviders.push(e),{dispose:()=>{let t=this.linkProviders.indexOf(e);t!==-1&&this.linkProviders.splice(t,1)}}}};function qd(e,t,r){let n=r.getBoundingClientRect(),l=e.getComputedStyle(r),o=parseInt(l.getPropertyValue("padding-left")),u=parseInt(l.getPropertyValue("padding-top"));return[t.clientX-n.left-o,t.clientY-n.top-u]}function RC(e,t,r,n,l,o,u,f,p){if(!o)return;let d=qd(e,t,r);if(d)return d[0]=Math.ceil((d[0]+(p?u/2:0))/u),d[1]=Math.ceil(d[1]/f),d[0]=Math.min(Math.max(d[0],1),n+(p?1:0)),d[1]=Math.min(Math.max(d[1],1),l),d}var id=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,r,n,l){return RC(window,e,t,r,n,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,l)}getMouseReportCoords(e,t){let r=qd(window,e,t);if(this._charSizeService.hasValidSize)return r[0]=Math.min(Math.max(r[0],0),this._renderService.dimensions.css.canvas.width-1),r[1]=Math.min(Math.max(r[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(r[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(r[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(r[0]),y:Math.floor(r[1])}}};id=ft([he(0,zr),he(1,cu)],id);var LC=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(e,t,r){this._rowCount=r,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t,!this._animationFrame&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0){this._runRefreshCallbacks();return}let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}},c5={};Gb(c5,{getSafariVersion:()=>DC,isChromeOS:()=>d5,isFirefox:()=>u5,isIpad:()=>OC,isIphone:()=>NC,isLegacyEdge:()=>MC,isLinux:()=>$d,isMac:()=>Wc,isNode:()=>uu,isSafari:()=>h5,isWindows:()=>f5});var uu=typeof process<"u"&&"title"in process,Vl=uu?"node":navigator.userAgent,Pl=uu?"node":navigator.platform,u5=Vl.includes("Firefox"),MC=Vl.includes("Edge"),h5=/^((?!chrome|android).)*safari/i.test(Vl);function DC(){if(!h5)return 0;let e=Vl.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}var Wc=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(Pl),OC=Pl==="iPad",NC=Pl==="iPhone",f5=["Windows","Win16","Win32","WinCE"].includes(Pl),$d=Pl.indexOf("Linux")>=0,d5=/\bCrOS\b/.test(Vl),p5=class{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(e){this._idleCallback=void 0;let t=0,r=0,n=e.timeRemaining(),l=0;for(;this._i<this._tasks.length;){if(t=performance.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,performance.now()-t),r=Math.max(t,r),l=e.timeRemaining(),r*1.5>l){n-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(n-t))}ms`),this._start();return}n=l}this.clear()}},BC=class extends p5{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=performance.now()+e;return{timeRemaining:()=>Math.max(0,t-performance.now())}}},zC=class extends p5{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},Fc=!uu&&"requestIdleCallback"in window?zC:BC,HC=class{constructor(){this._queue=new Fc}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}},rd=class extends Oe{constructor(e,t,r,n,l,o,u,f,p){super(),this._rowCount=e,this._optionsService=r,this._charSizeService=n,this._coreService=l,this._coreBrowserService=f,this._renderer=this._register(new ra),this._pausedResizeTask=new HC,this._observerDisposable=this._register(new ra),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this._register(new ce),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this._register(new ce),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this._register(new ce),this.onRender=this._onRender.event,this._onRefreshRequest=this._register(new ce),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new LC((d,v)=>this._renderRows(d,v),this._coreBrowserService),this._register(this._renderDebouncer),this._syncOutputHandler=new VC(this._coreBrowserService,this._coreService,()=>this._fullRefresh()),this._register(nt(()=>this._syncOutputHandler.dispose())),this._register(this._coreBrowserService.onDprChange(()=>this.handleDevicePixelRatioChange())),this._register(u.onResize(()=>this._fullRefresh())),this._register(u.buffers.onBufferActivate(()=>{var d;return(d=this._renderer.value)==null?void 0:d.clear()})),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this._register(o.onDecorationRegistered(()=>this._fullRefresh())),this._register(o.onDecorationRemoved(()=>this._fullRefresh())),this._register(this._optionsService.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],()=>{this.clear(),this.handleResize(u.cols,u.rows),this._fullRefresh()})),this._register(this._optionsService.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(u.buffer.y,u.buffer.y,!0))),this._register(p.onChangeColors(()=>this._fullRefresh())),this._registerIntersectionObserver(this._coreBrowserService.window,t),this._register(this._coreBrowserService.onWindowChange(d=>this._registerIntersectionObserver(d,t)))}get dimensions(){return this._renderer.value.dimensions}_registerIntersectionObserver(e,t){if("IntersectionObserver"in e){let r=new e.IntersectionObserver(n=>this._handleIntersectionChange(n[n.length-1]),{threshold:0});r.observe(t),this._observerDisposable.value=nt(()=>r.disconnect())}}_handleIntersectionChange(e){this._isPaused=e.isIntersecting===void 0?e.intersectionRatio===0:!e.isIntersecting,!this._isPaused&&!this._charSizeService.hasValidSize&&this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,r=!1){if(this._isPaused){this._needsFullRefresh=!0;return}if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}let n=this._syncOutputHandler.flush();n&&(e=Math.min(e,n.start),t=Math.max(t,n.end)),r||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount)}_renderRows(e,t){if(this._renderer.value){if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0}}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value&&(this._renderer.value.onRequestRedraw(t=>this.refreshRows(t.start,t.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;this._renderer.value&&((t=(e=this._renderer.value).clearTextureAtlas)==null||t.call(e),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>{var r;return(r=this._renderer.value)==null?void 0:r.handleResize(e,t)}):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){var e;(e=this._renderer.value)==null||e.handleCharSizeChanged()}handleBlur(){var e;(e=this._renderer.value)==null||e.handleBlur()}handleFocus(){var e;(e=this._renderer.value)==null||e.handleFocus()}handleSelectionChanged(e,t,r){var n;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=r,(n=this._renderer.value)==null||n.handleSelectionChanged(e,t,r)}handleCursorMove(){var e;(e=this._renderer.value)==null||e.handleCursorMove()}clear(){var e;(e=this._renderer.value)==null||e.clear()}};rd=ft([he(2,ni),he(3,cu),he(4,ln),he(5,Hl),he(6,si),he(7,Br),he(8,la)],rd);var VC=class{constructor(e,t,r){this._coreBrowserService=e,this._coreService=t,this._onTimeout=r,this._start=0,this._end=0,this._isBuffering=!1}bufferRows(e,t){this._isBuffering?(this._start=Math.min(this._start,e),this._end=Math.max(this._end,t)):(this._start=e,this._end=t,this._isBuffering=!0),this._timeout===void 0&&(this._timeout=this._coreBrowserService.window.setTimeout(()=>{this._timeout=void 0,this._coreService.decPrivateModes.synchronizedOutput=!1,this._onTimeout()},1e3))}flush(){if(this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0),!this._isBuffering)return;let e={start:this._start,end:this._end};return this._isBuffering=!1,e}dispose(){this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0)}};function PC(e,t,r,n){let l=r.buffer.x,o=r.buffer.y;if(!r.buffer.hasScrollback)return UC(l,o,e,t,r,n)+hu(o,t,r,n)+jC(l,o,e,t,r,n);let u;if(o===t)return u=l>e?"D":"C",Ll(Math.abs(l-e),Rl(u,n));u=o>t?"D":"C";let f=Math.abs(o-t),p=IC(o>t?e:l,r)+(f-1)*r.cols+1+GC(o>t?l:e);return Ll(p,Rl(u,n))}function GC(e,t){return e-1}function IC(e,t){return t.cols-e}function UC(e,t,r,n,l,o){return hu(t,n,l,o).length===0?"":Ll(m5(e,t,e,t-nn(t,l),!1,l).length,Rl("D",o))}function hu(e,t,r,n){let l=e-nn(e,r),o=t-nn(t,r),u=Math.abs(l-o)-qC(e,t,r);return Ll(u,Rl(_5(e,t),n))}function jC(e,t,r,n,l,o){let u;hu(t,n,l,o).length>0?u=n-nn(n,l):u=t;let f=n,p=$C(e,t,r,n,l,o);return Ll(m5(e,u,r,f,p==="C",l).length,Rl(p,o))}function qC(e,t,r){var u;let n=0,l=e-nn(e,r),o=t-nn(t,r);for(let f=0;f<Math.abs(l-o);f++){let p=_5(e,t)==="A"?-1:1;(u=r.buffer.lines.get(l+p*f))!=null&&u.isWrapped&&n++}return n}function nn(e,t){let r=0,n=t.buffer.lines.get(e),l=n==null?void 0:n.isWrapped;for(;l&&e>=0&&e<t.rows;)r++,n=t.buffer.lines.get(--e),l=n==null?void 0:n.isWrapped;return r}function $C(e,t,r,n,l,o){let u;return hu(r,n,l,o).length>0?u=n-nn(n,l):u=t,e<r&&u<=n||e>=r&&u<n?"C":"D"}function _5(e,t){return e>t?"A":"B"}function m5(e,t,r,n,l,o){let u=e,f=t,p="";for(;(u!==r||f!==n)&&f>=0&&f<o.buffer.lines.length;)u+=l?1:-1,l&&u>o.cols-1?(p+=o.buffer.translateBufferLineToString(f,!1,e,u),u=0,e=0,f++):!l&&u<0&&(p+=o.buffer.translateBufferLineToString(f,!1,0,e+1),u=o.cols-1,e=u,f--);return p+o.buffer.translateBufferLineToString(f,!1,e,u)}function Rl(e,t){let r=t?"O":"[";return te.ESC+r+e}function Ll(e,t){e=Math.floor(e);let r="";for(let n=0;n<e;n++)r+=t;return r}var ZC=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:!this.selectionEnd||!this.selectionStart?this.selectionStart:this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols===0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let e=this.selectionStart,t=this.selectionEnd;return!e||!t?!1:e[1]>t[1]||e[1]===t[1]&&e[0]>t[0]}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}};function C3(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}var sf=50,WC=15,FC=50,YC=500,KC=" ",XC=new RegExp(KC,"g"),sd=class extends Oe{constructor(e,t,r,n,l,o,u,f,p){super(),this._element=e,this._screenElement=t,this._linkifier=r,this._bufferService=n,this._coreService=l,this._mouseService=o,this._optionsService=u,this._renderService=f,this._coreBrowserService=p,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new qi,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this._register(new ce),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this._register(new ce),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this._register(new ce),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this._register(new ce),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=d=>this._handleMouseMove(d),this._mouseUpListener=d=>this._handleMouseUp(d),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(d=>this._handleTrim(d)),this._register(this._bufferService.buffers.onBufferActivate(d=>this._handleBufferActivate(d))),this.enable(),this._model=new ZC(this._bufferService),this._activeSelectionMode=0,this._register(nt(()=>{this._removeMouseDownListeners()})),this._register(this._bufferService.onResize(d=>{d.rowsChanged&&this.clearSelection()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!e||!t?!1:e[0]!==t[0]||e[1]!==t[1]}get selectionText(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";let r=this._bufferService.buffer,n=[];if(this._activeSelectionMode===3){if(e[0]===t[0])return"";let l=e[0]<t[0]?e[0]:t[0],o=e[0]<t[0]?t[0]:e[0];for(let u=e[1];u<=t[1];u++){let f=r.translateBufferLineToString(u,!0,l,o);n.push(f)}}else{let l=e[1]===t[1]?t[0]:void 0;n.push(r.translateBufferLineToString(e[1],!0,e[0],l));for(let o=e[1]+1;o<=t[1]-1;o++){let u=r.lines.get(o),f=r.translateBufferLineToString(o,!0);u!=null&&u.isWrapped?n[n.length-1]+=f:n.push(f)}if(e[1]!==t[1]){let o=r.lines.get(t[1]),u=r.translateBufferLineToString(t[1],!0,0,t[0]);o&&o.isWrapped?n[n.length-1]+=u:n.push(u)}}return n.map(l=>l.replace(XC," ")).join(f5?`\r
223
+ `:`
224
+ `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),$d&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(e){let t=this._getMouseBufferCoords(e),r=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!r||!n||!t?!1:this._areCoordsInSelection(t,r,n)}isCellInSelection(e,t){let r=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!r||!n?!1:this._areCoordsInSelection([e,t],r,n)}_areCoordsInSelection(e,t,r){return e[1]>t[1]&&e[1]<r[1]||t[1]===r[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<r[0]||t[1]<r[1]&&e[1]===r[1]&&e[0]<r[0]||t[1]<r[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){var l,o;let r=(o=(l=this._linkifier.currentLink)==null?void 0:l.link)==null?void 0:o.range;if(r)return this._model.selectionStart=[r.start.x-1,r.start.y-1],this._model.selectionStartLength=C3(r,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let n=this._getMouseBufferCoords(e);return n?(this._selectWordAt(n,t),this._model.selectionEnd=void 0,!0):!1}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=qd(this._coreBrowserService.window,e,this._screenElement)[1],r=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=r?0:(t>r&&(t-=r),t=Math.min(Math.max(t,-sf),sf),t/=sf,t/Math.abs(t)+Math.round(t*(WC-1)))}shouldForceSelection(e){return Wc?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,!(e.button===2&&this.hasSelection)&&e.button===0){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):e.detail===1?this._handleSingleClick(e):e.detail===2?this._handleDoubleClick(e):e.detail===3&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),FC)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&t.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){let t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(Wc&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;let t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd){this.refresh(!0);return}this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let r=this._bufferService.buffer;if(this._model.selectionEnd[1]<r.lines.length){let n=r.lines.get(this._model.selectionEnd[1]);n&&n.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}(!t||t[0]!==this._model.selectionEnd[0]||t[1]!==this._model.selectionEnd[1])&&this.refresh(!0)}_dragScroll(){if(!(!this._model.selectionEnd||!this._model.selectionStart)&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});let e=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<YC&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let r=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(r&&r[0]!==void 0&&r[1]!==void 0){let n=PC(r[0]-1,r[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(n,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,r=!!e&&!!t&&(e[0]!==t[0]||e[1]!==t[1]);if(!r){this._oldHasSelection&&this._fireOnSelectionChange(e,t,r);return}!e||!t||(!this._oldSelectionStart||!this._oldSelectionEnd||e[0]!==this._oldSelectionStart[0]||e[1]!==this._oldSelectionStart[1]||t[0]!==this._oldSelectionEnd[0]||t[1]!==this._oldSelectionEnd[1])&&this._fireOnSelectionChange(e,t,r)}_fireOnSelectionChange(e,t,r){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=r,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(t=>this._handleTrim(t))}_convertViewportColToCharacterIndex(e,t){let r=t;for(let n=0;t>=n;n++){let l=e.loadCell(n,this._workCell).getChars().length;this._workCell.getWidth()===0?r--:l>1&&t!==n&&(r+=l-1)}return r}setSelection(e,t,r){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=r,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,r=!0,n=!0){if(e[0]>=this._bufferService.cols)return;let l=this._bufferService.buffer,o=l.lines.get(e[1]);if(!o)return;let u=l.translateBufferLineToString(e[1],!1),f=this._convertViewportColToCharacterIndex(o,e[0]),p=f,d=e[0]-f,v=0,m=0,y=0,b=0;if(u.charAt(f)===" "){for(;f>0&&u.charAt(f-1)===" ";)f--;for(;p<u.length&&u.charAt(p+1)===" ";)p++}else{let T=e[0],M=e[0];o.getWidth(T)===0&&(v++,T--),o.getWidth(M)===2&&(m++,M++);let z=o.getString(M).length;for(z>1&&(b+=z-1,p+=z-1);T>0&&f>0&&!this._isCharWordSeparator(o.loadCell(T-1,this._workCell));){o.loadCell(T-1,this._workCell);let O=this._workCell.getChars().length;this._workCell.getWidth()===0?(v++,T--):O>1&&(y+=O-1,f-=O-1),f--,T--}for(;M<o.length&&p+1<u.length&&!this._isCharWordSeparator(o.loadCell(M+1,this._workCell));){o.loadCell(M+1,this._workCell);let O=this._workCell.getChars().length;this._workCell.getWidth()===2?(m++,M++):O>1&&(b+=O-1,p+=O-1),p++,M++}}p++;let S=f+d-v+y,x=Math.min(this._bufferService.cols,p-f+v+m-y-b);if(!(!t&&u.slice(f,p).trim()==="")){if(r&&S===0&&o.getCodePoint(0)!==32){let T=l.lines.get(e[1]-1);if(T&&o.isWrapped&&T.getCodePoint(this._bufferService.cols-1)!==32){let M=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(M){let z=this._bufferService.cols-M.start;S-=z,x+=z}}}if(n&&S+x===this._bufferService.cols&&o.getCodePoint(this._bufferService.cols-1)!==32){let T=l.lines.get(e[1]+1);if(T!=null&&T.isWrapped&&T.getCodePoint(0)!==32){let M=this._getWordAt([0,e[1]+1],!1,!1,!0);M&&(x+=M.length)}}return{start:S,length:x}}}_selectWordAt(e,t){let r=this._getWordAt(e,t);if(r){for(;r.start<0;)r.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[r.start,e[1]],this._model.selectionStartLength=r.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let r=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,r--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,r++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,r]}}_isCharWordSeparator(e){return e.getWidth()===0?!1:this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),r={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=C3(r,this._bufferService.cols)}};sd=ft([he(3,si),he(4,ln),he(5,Hd),he(6,ni),he(7,zr),he(8,Br)],sd);var E3=class{constructor(){this._data={}}set(e,t,r){this._data[e]||(this._data[e]={}),this._data[e][t]=r}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}},x3=class{constructor(){this._color=new E3,this._css=new E3}setCss(e,t,r){this._css.set(e,t,r)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,r){this._color.set(e,t,r)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}},kt=Object.freeze((()=>{let e=[lt.toColor("#2e3436"),lt.toColor("#cc0000"),lt.toColor("#4e9a06"),lt.toColor("#c4a000"),lt.toColor("#3465a4"),lt.toColor("#75507b"),lt.toColor("#06989a"),lt.toColor("#d3d7cf"),lt.toColor("#555753"),lt.toColor("#ef2929"),lt.toColor("#8ae234"),lt.toColor("#fce94f"),lt.toColor("#729fcf"),lt.toColor("#ad7fa8"),lt.toColor("#34e2e2"),lt.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let r=0;r<216;r++){let n=t[r/36%6|0],l=t[r/6%6|0],o=t[r%6];e.push({css:xt.toCss(n,l,o),rgba:xt.toRgba(n,l,o)})}for(let r=0;r<24;r++){let n=8+r*10;e.push({css:xt.toCss(n,n,n),rgba:xt.toRgba(n,n,n)})}return e})()),Zs=lt.toColor("#ffffff"),gl=lt.toColor("#000000"),A3=lt.toColor("#ffffff"),k3=gl,hl={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117},QC=Zs,nd=class extends Oe{constructor(e){super(),this._optionsService=e,this._contrastCache=new x3,this._halfContrastCache=new x3,this._onChangeColors=this._register(new ce),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:Zs,background:gl,cursor:A3,cursorAccent:k3,selectionForeground:void 0,selectionBackgroundTransparent:hl,selectionBackgroundOpaque:rt.blend(gl,hl),selectionInactiveBackgroundTransparent:hl,selectionInactiveBackgroundOpaque:rt.blend(gl,hl),scrollbarSliderBackground:rt.opacity(Zs,.2),scrollbarSliderHoverBackground:rt.opacity(Zs,.4),scrollbarSliderActiveBackground:rt.opacity(Zs,.5),overviewRulerBorder:Zs,ansi:kt.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this._register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this._register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}get colors(){return this._colors}_setTheme(e={}){let t=this._colors;if(t.foreground=Xe(e.foreground,Zs),t.background=Xe(e.background,gl),t.cursor=rt.blend(t.background,Xe(e.cursor,A3)),t.cursorAccent=rt.blend(t.background,Xe(e.cursorAccent,k3)),t.selectionBackgroundTransparent=Xe(e.selectionBackground,hl),t.selectionBackgroundOpaque=rt.blend(t.background,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundTransparent=Xe(e.selectionInactiveBackground,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundOpaque=rt.blend(t.background,t.selectionInactiveBackgroundTransparent),t.selectionForeground=e.selectionForeground?Xe(e.selectionForeground,S3):void 0,t.selectionForeground===S3&&(t.selectionForeground=void 0),rt.isOpaque(t.selectionBackgroundTransparent)&&(t.selectionBackgroundTransparent=rt.opacity(t.selectionBackgroundTransparent,.3)),rt.isOpaque(t.selectionInactiveBackgroundTransparent)&&(t.selectionInactiveBackgroundTransparent=rt.opacity(t.selectionInactiveBackgroundTransparent,.3)),t.scrollbarSliderBackground=Xe(e.scrollbarSliderBackground,rt.opacity(t.foreground,.2)),t.scrollbarSliderHoverBackground=Xe(e.scrollbarSliderHoverBackground,rt.opacity(t.foreground,.4)),t.scrollbarSliderActiveBackground=Xe(e.scrollbarSliderActiveBackground,rt.opacity(t.foreground,.5)),t.overviewRulerBorder=Xe(e.overviewRulerBorder,QC),t.ansi=kt.slice(),t.ansi[0]=Xe(e.black,kt[0]),t.ansi[1]=Xe(e.red,kt[1]),t.ansi[2]=Xe(e.green,kt[2]),t.ansi[3]=Xe(e.yellow,kt[3]),t.ansi[4]=Xe(e.blue,kt[4]),t.ansi[5]=Xe(e.magenta,kt[5]),t.ansi[6]=Xe(e.cyan,kt[6]),t.ansi[7]=Xe(e.white,kt[7]),t.ansi[8]=Xe(e.brightBlack,kt[8]),t.ansi[9]=Xe(e.brightRed,kt[9]),t.ansi[10]=Xe(e.brightGreen,kt[10]),t.ansi[11]=Xe(e.brightYellow,kt[11]),t.ansi[12]=Xe(e.brightBlue,kt[12]),t.ansi[13]=Xe(e.brightMagenta,kt[13]),t.ansi[14]=Xe(e.brightCyan,kt[14]),t.ansi[15]=Xe(e.brightWhite,kt[15]),e.extendedAnsi){let r=Math.min(t.ansi.length-16,e.extendedAnsi.length);for(let n=0;n<r;n++)t.ansi[n+16]=Xe(e.extendedAnsi[n],kt[n+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}_restoreColor(e){if(e===void 0){for(let t=0;t<this._restoreColors.ansi.length;++t)this._colors.ansi[t]=this._restoreColors.ansi[t];return}switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}}modifyColors(e){e(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};nd=ft([he(0,ni)],nd);function Xe(e,t){if(e!==void 0)try{return lt.toColor(e)}catch{}return t}var JC=class{constructor(...e){this._entries=new Map;for(let[t,r]of e)this.set(t,r)}set(e,t){let r=this._entries.get(e);return this._entries.set(e,t),r}forEach(e){for(let[t,r]of this._entries.entries())e(t,r)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}},eE=class{constructor(){this._services=new JC,this._services.set(zd,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let r=Wb(e).sort((o,u)=>o.index-u.index),n=[];for(let o of r){let u=this._services.get(o.id);if(!u)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${o.id._id}.`);n.push(u)}let l=r.length>0?r[0].index:t.length;if(t.length!==l)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${l+1} conflicts with ${t.length} static arguments`);return new e(...t,...n)}},tE={trace:0,debug:1,info:2,warn:3,error:4,off:5},iE="xterm.js: ",ad=class extends Oe{constructor(e){super(),this._optionsService=e,this._logLevel=5,this._updateLogLevel(),this._register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel()))}get logLevel(){return this._logLevel}_updateLogLevel(){this._logLevel=tE[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t<e.length;t++)typeof e[t]=="function"&&(e[t]=e[t]())}_log(e,t,r){this._evalLazyOptionalParams(r),e.call(console,(this._optionsService.options.logger?"":iE)+t,...r)}trace(e,...t){var r;this._logLevel<=0&&this._log(((r=this._optionsService.options.logger)==null?void 0:r.trace.bind(this._optionsService.options.logger))??console.log,e,t)}debug(e,...t){var r;this._logLevel<=1&&this._log(((r=this._optionsService.options.logger)==null?void 0:r.debug.bind(this._optionsService.options.logger))??console.log,e,t)}info(e,...t){var r;this._logLevel<=2&&this._log(((r=this._optionsService.options.logger)==null?void 0:r.info.bind(this._optionsService.options.logger))??console.info,e,t)}warn(e,...t){var r;this._logLevel<=3&&this._log(((r=this._optionsService.options.logger)==null?void 0:r.warn.bind(this._optionsService.options.logger))??console.warn,e,t)}error(e,...t){var r;this._logLevel<=4&&this._log(((r=this._optionsService.options.logger)==null?void 0:r.error.bind(this._optionsService.options.logger))??console.error,e,t)}};ad=ft([he(0,ni)],ad);var T3=class extends Oe{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this._register(new ce),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this._register(new ce),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this._register(new ce),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;let t=new Array(e);for(let r=0;r<Math.min(e,this.length);r++)t[r]=this._array[this._getCyclicIndex(r)];this._array=t,this._maxLength=e,this._startIndex=0}get length(){return this._length}set length(e){if(e>this._length)for(let t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(e,t,...r){if(t){for(let n=e;n<this._length-t;n++)this._array[this._getCyclicIndex(n)]=this._array[this._getCyclicIndex(n+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let n=this._length-1;n>=e;n--)this._array[this._getCyclicIndex(n+r.length)]=this._array[this._getCyclicIndex(n)];for(let n=0;n<r.length;n++)this._array[this._getCyclicIndex(e+n)]=r[n];if(r.length&&this.onInsertEmitter.fire({index:e,amount:r.length}),this._length+r.length>this._maxLength){let n=this._length+r.length-this._maxLength;this._startIndex+=n,this._length=this._maxLength,this.onTrimEmitter.fire(n)}else this._length+=r.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,r){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+r<0)throw new Error("Cannot shift elements in list beyond index 0");if(r>0){for(let l=t-1;l>=0;l--)this.set(e+l+r,this.get(e+l));let n=e+t+r-this._length;if(n>0)for(this._length+=n;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let n=0;n<t;n++)this.set(e+n+r,this.get(e+n))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}},De=3,Et=Object.freeze(new zl),Sc=0,nf=2,vl=class g5{constructor(t,r,n=!1){this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(t*De);let l=r||qi.fromCharData([0,z4,1,0]);for(let o=0;o<t;++o)this.setCell(o,l);this.length=t}get(t){let r=this._data[t*De+0],n=r&2097151;return[this._data[t*De+1],r&2097152?this._combined[t]:n?ds(n):"",r>>22,r&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):n]}set(t,r){this._data[t*De+1]=r[0],r[1].length>1?(this._combined[t]=r[1],this._data[t*De+0]=t|2097152|r[2]<<22):this._data[t*De+0]=r[1].charCodeAt(0)|r[2]<<22}getWidth(t){return this._data[t*De+0]>>22}hasWidth(t){return this._data[t*De+0]&12582912}getFg(t){return this._data[t*De+1]}getBg(t){return this._data[t*De+2]}hasContent(t){return this._data[t*De+0]&4194303}getCodePoint(t){let r=this._data[t*De+0];return r&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):r&2097151}isCombined(t){return this._data[t*De+0]&2097152}getString(t){let r=this._data[t*De+0];return r&2097152?this._combined[t]:r&2097151?ds(r&2097151):""}isProtected(t){return this._data[t*De+2]&536870912}loadCell(t,r){return Sc=t*De,r.content=this._data[Sc+0],r.fg=this._data[Sc+1],r.bg=this._data[Sc+2],r.content&2097152&&(r.combinedData=this._combined[t]),r.bg&268435456&&(r.extended=this._extendedAttrs[t]),r}setCell(t,r){r.content&2097152&&(this._combined[t]=r.combinedData),r.bg&268435456&&(this._extendedAttrs[t]=r.extended),this._data[t*De+0]=r.content,this._data[t*De+1]=r.fg,this._data[t*De+2]=r.bg}setCellFromCodepoint(t,r,n,l){l.bg&268435456&&(this._extendedAttrs[t]=l.extended),this._data[t*De+0]=r|n<<22,this._data[t*De+1]=l.fg,this._data[t*De+2]=l.bg}addCodepointToCell(t,r,n){let l=this._data[t*De+0];l&2097152?this._combined[t]+=ds(r):l&2097151?(this._combined[t]=ds(l&2097151)+ds(r),l&=-2097152,l|=2097152):l=r|1<<22,n&&(l&=-12582913,l|=n<<22),this._data[t*De+0]=l}insertCells(t,r,n){if(t%=this.length,t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,n),r<this.length-t){let l=new qi;for(let o=this.length-t-r-1;o>=0;--o)this.setCell(t+r+o,this.loadCell(t+o,l));for(let o=0;o<r;++o)this.setCell(t+o,n)}else for(let l=t;l<this.length;++l)this.setCell(l,n);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,n)}deleteCells(t,r,n){if(t%=this.length,r<this.length-t){let l=new qi;for(let o=0;o<this.length-t-r;++o)this.setCell(t+o,this.loadCell(t+r+o,l));for(let o=this.length-r;o<this.length;++o)this.setCell(o,n)}else for(let l=t;l<this.length;++l)this.setCell(l,n);t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,n),this.getWidth(t)===0&&!this.hasContent(t)&&this.setCellFromCodepoint(t,0,1,n)}replaceCells(t,r,n,l=!1){if(l){for(t&&this.getWidth(t-1)===2&&!this.isProtected(t-1)&&this.setCellFromCodepoint(t-1,0,1,n),r<this.length&&this.getWidth(r-1)===2&&!this.isProtected(r)&&this.setCellFromCodepoint(r,0,1,n);t<r&&t<this.length;)this.isProtected(t)||this.setCell(t,n),t++;return}for(t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,n),r<this.length&&this.getWidth(r-1)===2&&this.setCellFromCodepoint(r,0,1,n);t<r&&t<this.length;)this.setCell(t++,n)}resize(t,r){if(t===this.length)return this._data.length*4*nf<this._data.buffer.byteLength;let n=t*De;if(t>this.length){if(this._data.buffer.byteLength>=n*4)this._data=new Uint32Array(this._data.buffer,0,n);else{let l=new Uint32Array(n);l.set(this._data),this._data=l}for(let l=this.length;l<t;++l)this.setCell(l,r)}else{this._data=this._data.subarray(0,n);let l=Object.keys(this._combined);for(let u=0;u<l.length;u++){let f=parseInt(l[u],10);f>=t&&delete this._combined[f]}let o=Object.keys(this._extendedAttrs);for(let u=0;u<o.length;u++){let f=parseInt(o[u],10);f>=t&&delete this._extendedAttrs[f]}}return this.length=t,n*4*nf<this._data.buffer.byteLength}cleanupMemory(){if(this._data.length*4*nf<this._data.buffer.byteLength){let t=new Uint32Array(this._data.length);return t.set(this._data),this._data=t,1}return 0}fill(t,r=!1){if(r){for(let n=0;n<this.length;++n)this.isProtected(n)||this.setCell(n,t);return}this._combined={},this._extendedAttrs={};for(let n=0;n<this.length;++n)this.setCell(n,t)}copyFrom(t){this.length!==t.length?this._data=new Uint32Array(t._data):this._data.set(t._data),this.length=t.length,this._combined={};for(let r in t._combined)this._combined[r]=t._combined[r];this._extendedAttrs={};for(let r in t._extendedAttrs)this._extendedAttrs[r]=t._extendedAttrs[r];this.isWrapped=t.isWrapped}clone(){let t=new g5(0);t._data=new Uint32Array(this._data),t.length=this.length;for(let r in this._combined)t._combined[r]=this._combined[r];for(let r in this._extendedAttrs)t._extendedAttrs[r]=this._extendedAttrs[r];return t.isWrapped=this.isWrapped,t}getTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*De+0]&4194303)return t+(this._data[t*De+0]>>22);return 0}getNoBgTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*De+0]&4194303||this._data[t*De+2]&50331648)return t+(this._data[t*De+0]>>22);return 0}copyCellsFrom(t,r,n,l,o){let u=t._data;if(o)for(let p=l-1;p>=0;p--){for(let d=0;d<De;d++)this._data[(n+p)*De+d]=u[(r+p)*De+d];u[(r+p)*De+2]&268435456&&(this._extendedAttrs[n+p]=t._extendedAttrs[r+p])}else for(let p=0;p<l;p++){for(let d=0;d<De;d++)this._data[(n+p)*De+d]=u[(r+p)*De+d];u[(r+p)*De+2]&268435456&&(this._extendedAttrs[n+p]=t._extendedAttrs[r+p])}let f=Object.keys(t._combined);for(let p=0;p<f.length;p++){let d=parseInt(f[p],10);d>=r&&(this._combined[d-r+n]=t._combined[d])}}translateToString(t,r,n,l){r=r??0,n=n??this.length,t&&(n=Math.min(n,this.getTrimmedLength())),l&&(l.length=0);let o="";for(;r<n;){let u=this._data[r*De+0],f=u&2097151,p=u&2097152?this._combined[r]:f?ds(f):gs;if(o+=p,l)for(let d=0;d<p.length;++d)l.push(r);r+=u>>22||1}return l&&l.push(r),o}};function rE(e,t,r,n,l,o){let u=[];for(let f=0;f<e.length-1;f++){let p=f,d=e.get(++p);if(!d.isWrapped)continue;let v=[e.get(f)];for(;p<e.length&&d.isWrapped;)v.push(d),d=e.get(++p);if(!o&&n>=f&&n<p){f+=v.length-1;continue}let m=0,y=Ml(v,m,t),b=1,S=0;for(;b<v.length;){let T=Ml(v,b,t),M=T-S,z=r-y,O=Math.min(M,z);v[m].copyCellsFrom(v[b],S,y,O,!1),y+=O,y===r&&(m++,y=0),S+=O,S===T&&(b++,S=0),y===0&&m!==0&&v[m-1].getWidth(r-1)===2&&(v[m].copyCellsFrom(v[m-1],r-1,y++,1,!1),v[m-1].setCell(r-1,l))}v[m].replaceCells(y,r,l);let x=0;for(let T=v.length-1;T>0&&(T>m||v[T].getTrimmedLength()===0);T--)x++;x>0&&(u.push(f+v.length-x),u.push(x)),f+=v.length-1}return u}function sE(e,t){let r=[],n=0,l=t[n],o=0;for(let u=0;u<e.length;u++)if(l===u){let f=t[++n];e.onDeleteEmitter.fire({index:u-o,amount:f}),u+=f-1,o+=f,l=t[++n]}else r.push(u);return{layout:r,countRemoved:o}}function nE(e,t){let r=[];for(let n=0;n<t.length;n++)r.push(e.get(t[n]));for(let n=0;n<r.length;n++)e.set(n,r[n]);e.length=t.length}function aE(e,t,r){let n=[],l=e.map((p,d)=>Ml(e,d,t)).reduce((p,d)=>p+d),o=0,u=0,f=0;for(;f<l;){if(l-f<r){n.push(l-f);break}o+=r;let p=Ml(e,u,t);o>p&&(o-=p,u++);let d=e[u].getWidth(o-1)===2;d&&o--;let v=d?r-1:r;n.push(v),f+=v}return n}function Ml(e,t,r){if(t===e.length-1)return e[t].getTrimmedLength();let n=!e[t].hasContent(r-1)&&e[t].getWidth(r-1)===1,l=e[t+1].getWidth(0)===2;return n&&l?r-1:r}var v5=class y5{constructor(t){this.line=t,this.isDisposed=!1,this._disposables=[],this._id=y5._nextId++,this._onDispose=this.register(new ce),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),sn(this._disposables),this._disposables.length=0)}register(t){return this._disposables.push(t),t}};v5._nextId=1;var lE=v5,Mt={},Ws=Mt.B;Mt[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"};Mt.A={"#":"£"};Mt.B=void 0;Mt[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"};Mt.C=Mt[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"};Mt.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"};Mt.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"};Mt.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"};Mt.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"};Mt.E=Mt[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"};Mt.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"};Mt.H=Mt[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"};Mt["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"};var R3=4294967295,L3=class{constructor(e,t,r){this._hasScrollback=e,this._optionsService=t,this._bufferService=r,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=Et.clone(),this.savedCharset=Ws,this.markers=[],this._nullCell=qi.fromCharData([0,z4,1,0]),this._whitespaceCell=qi.fromCharData([0,gs,1,32]),this._isClearing=!1,this._memoryCleanupQueue=new Fc,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new T3(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new qc),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new qc),this._whitespaceCell}getBlankLine(e,t){return new vl(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}_getCorrectBufferLength(e){if(!this._hasScrollback)return e;let t=e+this._optionsService.rawOptions.scrollback;return t>R3?R3:t}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=Et);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new T3(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let r=this.getNullCell(Et),n=0,l=this._getCorrectBufferLength(t);if(l>this.lines.maxLength&&(this.lines.maxLength=l),this.lines.length>0){if(this._cols<e)for(let u=0;u<this.lines.length;u++)n+=+this.lines.get(u).resize(e,r);let o=0;if(this._rows<t)for(let u=this._rows;u<t;u++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new vl(e,r)):this.ybase>0&&this.lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this.lines.push(new vl(e,r)));else for(let u=this._rows;u>t;u--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(l<this.lines.maxLength){let u=this.lines.length-l;u>0&&(this.lines.trimStart(u),this.ybase=Math.max(this.ybase-u,0),this.ydisp=Math.max(this.ydisp-u,0),this.savedY=Math.max(this.savedY-u,0)),this.lines.maxLength=l}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),o&&(this.y+=o),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let o=0;o<this.lines.length;o++)n+=+this.lines.get(o).resize(e,r);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),n>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition<this.lines.length;)if(t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),t>100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&e.backend==="conpty"&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let r=this._optionsService.rawOptions.reflowCursorLine,n=rE(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(Et),r);if(n.length>0){let l=sE(this.lines,n);nE(this.lines,l.layout),this._reflowLargerAdjustViewport(e,t,l.countRemoved)}}_reflowLargerAdjustViewport(e,t,r){let n=this.getNullCell(Et),l=r;for(;l-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new vl(e,n))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-r,0)}_reflowSmaller(e,t){let r=this._optionsService.rawOptions.reflowCursorLine,n=this.getNullCell(Et),l=[],o=0;for(let u=this.lines.length-1;u>=0;u--){let f=this.lines.get(u);if(!f||!f.isWrapped&&f.getTrimmedLength()<=e)continue;let p=[f];for(;f.isWrapped&&u>0;)f=this.lines.get(--u),p.unshift(f);if(!r){let O=this.ybase+this.y;if(O>=u&&O<u+p.length)continue}let d=p[p.length-1].getTrimmedLength(),v=aE(p,this._cols,e),m=v.length-p.length,y;this.ybase===0&&this.y!==this.lines.length-1?y=Math.max(0,this.y-this.lines.maxLength+m):y=Math.max(0,this.lines.length-this.lines.maxLength+m);let b=[];for(let O=0;O<m;O++){let P=this.getBlankLine(Et,!0);b.push(P)}b.length>0&&(l.push({start:u+p.length+o,newLines:b}),o+=b.length),p.push(...b);let S=v.length-1,x=v[S];x===0&&(S--,x=v[S]);let T=p.length-m-1,M=d;for(;T>=0;){let O=Math.min(M,x);if(p[S]===void 0)break;if(p[S].copyCellsFrom(p[T],M-O,x-O,O,!0),x-=O,x===0&&(S--,x=v[S]),M-=O,M===0){T--;let P=Math.max(T,0);M=Ml(p,P,this._cols)}}for(let O=0;O<p.length;O++)v[O]<e&&p[O].setCell(v[O],n);let z=m-y;for(;z-- >0;)this.ybase===0?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+o)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+m,this.ybase+t-1)}if(l.length>0){let u=[],f=[];for(let x=0;x<this.lines.length;x++)f.push(this.lines.get(x));let p=this.lines.length,d=p-1,v=0,m=l[v];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+o);let y=0;for(let x=Math.min(this.lines.maxLength-1,p+o-1);x>=0;x--)if(m&&m.start>d+y){for(let T=m.newLines.length-1;T>=0;T--)this.lines.set(x--,m.newLines[T]);x++,u.push({index:d+1,amount:m.newLines.length}),y+=m.newLines.length,m=l[++v]}else this.lines.set(x,f[d--]);let b=0;for(let x=u.length-1;x>=0;x--)u[x].index+=b,this.lines.onInsertEmitter.fire(u[x]),b+=u[x].amount;let S=Math.max(0,p+o-this.lines.maxLength);S>0&&this.lines.onTrimEmitter.fire(S)}}translateBufferLineToString(e,t,r=0,n){let l=this.lines.get(e);return l?l.translateToString(t,r,n):""}getWrappedRangeForLine(e){let t=e,r=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;r+1<this.lines.length&&this.lines.get(r+1).isWrapped;)r++;return{first:t,last:r}}setupTabStops(e){for(e!=null?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(e==null&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(e==null&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose();this.markers.length=0,this._isClearing=!1}addMarker(e){let t=new lE(e);return this.markers.push(t),t.register(this.lines.onTrim(r=>{t.line-=r,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(r=>{t.line>=r.index&&(t.line+=r.amount)})),t.register(this.lines.onDelete(r=>{t.line>=r.index&&t.line<r.index+r.amount&&t.dispose(),t.line>r.index&&(t.line-=r.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}},oE=class extends Oe{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this._register(new ce),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this._register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this._register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new L3(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new L3(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}},S5=2,b5=1,ld=class extends Oe{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this._register(new ce),this.onResize=this._onResize.event,this._onScroll=this._register(new ce),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,S5),this.rows=Math.max(e.rawOptions.rows||0,b5),this.buffers=this._register(new oE(e,this)),this._register(this.buffers.onBufferActivate(t=>{this._onScroll.fire(t.activeBuffer.ydisp)}))}get buffer(){return this.buffers.active}resize(e,t){let r=this.cols!==e,n=this.rows!==t;this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t,colsChanged:r,rowsChanged:n})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let r=this.buffer,n;n=this._cachedBlankLine,(!n||n.length!==this.cols||n.getFg(0)!==e.fg||n.getBg(0)!==e.bg)&&(n=r.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;let l=r.ybase+r.scrollTop,o=r.ybase+r.scrollBottom;if(r.scrollTop===0){let u=r.lines.isFull;o===r.lines.length-1?u?r.lines.recycle().copyFrom(n):r.lines.push(n.clone()):r.lines.splice(o+1,0,n.clone()),u?this.isUserScrolling&&(r.ydisp=Math.max(r.ydisp-1,0)):(r.ybase++,this.isUserScrolling||r.ydisp++)}else{let u=o-l+1;r.lines.shiftElements(l+1,u-1,-1),r.lines.set(o,n.clone())}this.isUserScrolling||(r.ydisp=r.ybase),this._onScroll.fire(r.ydisp)}scrollLines(e,t){let r=this.buffer;if(e<0){if(r.ydisp===0)return;this.isUserScrolling=!0}else e+r.ydisp>=r.ybase&&(this.isUserScrolling=!1);let n=r.ydisp;r.ydisp=Math.max(Math.min(r.ydisp+e,r.ybase),0),n!==r.ydisp&&(t||this._onScroll.fire(r.ydisp))}};ld=ft([he(0,ni)],ld);var Kn={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnEraseInDisplay:!1,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},reflowCursorLine:!1,rescaleOverlappingGlyphs:!1,rightClickSelectsWord:Wc,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRuler:{}},cE=["normal","bold","100","200","300","400","500","600","700","800","900"],uE=class extends Oe{constructor(e){super(),this._onOptionChange=this._register(new ce),this.onOptionChange=this._onOptionChange.event;let t={...Kn};for(let r in e)if(r in t)try{let n=e[r];t[r]=this._sanitizeAndValidateOption(r,n)}catch(n){console.error(n)}this.rawOptions=t,this.options={...t},this._setupOptions(),this._register(nt(()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null}))}onSpecificOptionChange(e,t){return this.onOptionChange(r=>{r===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(r=>{e.indexOf(r)!==-1&&t()})}_setupOptions(){let e=r=>{if(!(r in Kn))throw new Error(`No option with key "${r}"`);return this.rawOptions[r]},t=(r,n)=>{if(!(r in Kn))throw new Error(`No option with key "${r}"`);n=this._sanitizeAndValidateOption(r,n),this.rawOptions[r]!==n&&(this.rawOptions[r]=n,this._onOptionChange.fire(r))};for(let r in this.rawOptions){let n={get:e.bind(this,r),set:t.bind(this,r)};Object.defineProperty(this.options,r,n)}}_sanitizeAndValidateOption(e,t){switch(e){case"cursorStyle":if(t||(t=Kn[e]),!hE(t))throw new Error(`"${t}" is not a valid value for ${e}`);break;case"wordSeparator":t||(t=Kn[e]);break;case"fontWeight":case"fontWeightBold":if(typeof t=="number"&&1<=t&&t<=1e3)break;t=cE.includes(t)?t:Kn[e];break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(`${e} cannot be less than 1, value: ${t}`);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(t*10)/10));break;case"scrollback":if(t=Math.min(t,4294967295),t<0)throw new Error(`${e} cannot be less than 0, value: ${t}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${t}`);break;case"rows":case"cols":if(!t&&t!==0)throw new Error(`${e} must be numeric, value: ${t}`);break;case"windowsPty":t=t??{};break}return t}};function hE(e){return e==="block"||e==="underline"||e==="bar"}function yl(e,t=5){if(typeof e!="object")return e;let r=Array.isArray(e)?[]:{};for(let n in e)r[n]=t<=1?e[n]:e[n]&&yl(e[n],t-1);return r}var M3=Object.freeze({insertMode:!1}),D3=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,cursorBlink:void 0,cursorStyle:void 0,origin:!1,reverseWraparound:!1,sendFocus:!1,synchronizedOutput:!1,wraparound:!0}),od=class extends Oe{constructor(e,t,r){super(),this._bufferService=e,this._logService=t,this._optionsService=r,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this._register(new ce),this.onData=this._onData.event,this._onUserInput=this._register(new ce),this.onUserInput=this._onUserInput.event,this._onBinary=this._register(new ce),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this._register(new ce),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=yl(M3),this.decPrivateModes=yl(D3)}reset(){this.modes=yl(M3),this.decPrivateModes=yl(D3)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let r=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&r.ybase!==r.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`),this._logService.trace("sending data (codes)",()=>e.split("").map(n=>n.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`),this._logService.trace("sending binary (codes)",()=>e.split("").map(t=>t.charCodeAt(0))),this._onBinary.fire(e))}};od=ft([he(0,si),he(1,I4),he(2,ni)],od);var O3={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>e.button===4||e.action!==1?!1:(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>e.action!==32},DRAG:{events:23,restrict:e=>!(e.action===32&&e.button===3)},ANY:{events:31,restrict:e=>!0}};function af(e,t){let r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(r|=64,r|=e.action):(r|=e.button&3,e.button&4&&(r|=64),e.button&8&&(r|=128),e.action===32?r|=32:e.action===0&&!t&&(r|=3)),r}var lf=String.fromCharCode,N3={DEFAULT:e=>{let t=[af(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`\x1B[M${lf(t[0])}${lf(t[1])}${lf(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${af(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${af(e,!0)};${e.x};${e.y}${t}`}},cd=class extends Oe{constructor(e,t,r){super(),this._bufferService=e,this._coreService=t,this._optionsService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._wheelPartialScroll=0,this._onProtocolChange=this._register(new ce),this.onProtocolChange=this._onProtocolChange.event;for(let n of Object.keys(O3))this.addProtocol(n,O3[n]);for(let n of Object.keys(N3))this.addEncoding(n,N3[n]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null,this._wheelPartialScroll=0}consumeWheelEvent(e,t,r){if(e.deltaY===0||e.shiftKey||t===void 0||r===void 0)return 0;let n=t/r,l=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(l/=n+0,Math.abs(e.deltaY)<50&&(l*=.3),this._wheelPartialScroll+=l,l=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(l*=this._bufferService.rows),l}_applyScrollModifier(e,t){return t.altKey||t.ctrlKey||t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||e.button===4&&e.action===32||e.button===3&&e.action!==32||e.button!==4&&(e.action===2||e.action===3)||(e.col++,e.row++,e.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,e,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(e))return!1;let t=this._encodings[this._activeEncoding](e);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(e&1),up:!!(e&2),drag:!!(e&4),move:!!(e&8),wheel:!!(e&16)}}_equalEvents(e,t,r){if(r){if(e.x!==t.x||e.y!==t.y)return!1}else if(e.col!==t.col||e.row!==t.row)return!1;return!(e.button!==t.button||e.action!==t.action||e.ctrl!==t.ctrl||e.alt!==t.alt||e.shift!==t.shift)}};cd=ft([he(0,si),he(1,ln),he(2,ni)],cd);var of=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],fE=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],Tt;function dE(e,t){let r=0,n=t.length-1,l;if(e<t[0][0]||e>t[n][1])return!1;for(;n>=r;)if(l=r+n>>1,e>t[l][1])r=l+1;else if(e<t[l][0])n=l-1;else return!0;return!1}var pE=class{constructor(){if(this.version="6",!Tt){Tt=new Uint8Array(65536),Tt.fill(1),Tt[0]=0,Tt.fill(0,1,32),Tt.fill(0,127,160),Tt.fill(2,4352,4448),Tt[9001]=2,Tt[9002]=2,Tt.fill(2,11904,42192),Tt[12351]=1,Tt.fill(2,44032,55204),Tt.fill(2,63744,64256),Tt.fill(2,65040,65050),Tt.fill(2,65072,65136),Tt.fill(2,65280,65377),Tt.fill(2,65504,65511);for(let e=0;e<of.length;++e)Tt.fill(0,of[e][0],of[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?Tt[e]:dE(e,fE)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let r=this.wcwidth(e),n=r===0&&t!==0;if(n){let l=Xs.extractWidth(t);l===0?n=!1:l>r&&(r=l)}return Xs.createPropertyValue(0,r,n)}},Xs=class Rc{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new ce,this.onChange=this._onChange.event;let t=new pE;this.register(t),this._active=t.version,this._activeProvider=t}static extractShouldJoin(t){return(t&1)!==0}static extractWidth(t){return t>>1&3}static extractCharKind(t){return t>>3}static createPropertyValue(t,r,n=!1){return(t&16777215)<<3|(r&3)<<1|(n?1:0)}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(t){if(!this._providers[t])throw new Error(`unknown Unicode version "${t}"`);this._active=t,this._activeProvider=this._providers[t],this._onChange.fire(t)}register(t){this._providers[t.version]=t}wcwidth(t){return this._activeProvider.wcwidth(t)}getStringCellWidth(t){let r=0,n=0,l=t.length;for(let o=0;o<l;++o){let u=t.charCodeAt(o);if(55296<=u&&u<=56319){if(++o>=l)return r+this.wcwidth(u);let d=t.charCodeAt(o);56320<=d&&d<=57343?u=(u-55296)*1024+d-56320+65536:r+=this.wcwidth(d)}let f=this.charProperties(u,n),p=Rc.extractWidth(f);Rc.extractShouldJoin(f)&&(p-=Rc.extractWidth(n)),r+=p,n=f}return r}charProperties(t,r){return this._activeProvider.charProperties(t,r)}},_E=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}};function B3(e){var n;let t=(n=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1))==null?void 0:n.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&t&&(r.isWrapped=t[3]!==0&&t[3]!==32)}var fl=2147483647,mE=256,w5=class ud{constructor(t=32,r=32){if(this.maxLength=t,this.maxSubParamsLength=r,r>mE)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(t),this.length=0,this._subParams=new Int32Array(r),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(t),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){let r=new ud;if(!t.length)return r;for(let n=Array.isArray(t[0])?1:0;n<t.length;++n){let l=t[n];if(Array.isArray(l))for(let o=0;o<l.length;++o)r.addSubParam(l[o]);else r.addParam(l)}return r}clone(){let t=new ud(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t}toArray(){let t=[];for(let r=0;r<this.length;++r){t.push(this.params[r]);let n=this._subParamsIdx[r]>>8,l=this._subParamsIdx[r]&255;l-n>0&&t.push(Array.prototype.slice.call(this._subParams,n,l))}return t}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(t){if(this._digitIsSub=!1,this.length>=this.maxLength){this._rejectDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=t>fl?fl:t}addSubParam(t){if(this._digitIsSub=!0,!!this.length){if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength){this._rejectSubDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=t>fl?fl:t,this._subParamsIdx[this.length-1]++}}hasSubParams(t){return(this._subParamsIdx[t]&255)-(this._subParamsIdx[t]>>8)>0}getSubParams(t){let r=this._subParamsIdx[t]>>8,n=this._subParamsIdx[t]&255;return n-r>0?this._subParams.subarray(r,n):null}getSubParamsAll(){let t={};for(let r=0;r<this.length;++r){let n=this._subParamsIdx[r]>>8,l=this._subParamsIdx[r]&255;l-n>0&&(t[r]=this._subParams.slice(n,l))}return t}addDigit(t){let r;if(this._rejectDigits||!(r=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let n=this._digitIsSub?this._subParams:this.params,l=n[r-1];n[r-1]=~l?Math.min(l*10+t,fl):t}},dl=[],gE=class{constructor(){this._state=0,this._active=dl,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let r=this._handlers[e];return r.push(t),{dispose:()=>{let n=r.indexOf(t);n!==-1&&r.splice(n,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=dl}reset(){if(this._state===2)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=dl,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||dl,!this._active.length)this._handlerFb(this._id,"START");else for(let e=this._active.length-1;e>=0;e--)this._active[e].start()}_put(e,t,r){if(!this._active.length)this._handlerFb(this._id,"PUT",ou(e,t,r));else for(let n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,r)}start(){this.reset(),this._state=1}put(e,t,r){if(this._state!==3){if(this._state===1)for(;t<r;){let n=e[t++];if(n===59){this._state=2,this._start();break}if(n<48||57<n){this._state=3;return}this._id===-1&&(this._id=0),this._id=this._id*10+n-48}this._state===2&&r-t>0&&this._put(e,t,r)}}end(e,t=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),!this._active.length)this._handlerFb(this._id,"END",e);else{let r=!1,n=this._active.length-1,l=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,r=t,l=this._stack.fallThrough,this._stack.paused=!1),!l&&r===!1){for(;n>=0&&(r=this._active[n].end(e),r!==!0);n--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,r;n--}for(;n>=0;n--)if(r=this._active[n].end(!1),r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,r}this._active=dl,this._id=-1,this._state=0}}},Ei=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,r){this._hitLimit||(this._data+=ou(e,t,r),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then(r=>(this._data="",this._hitLimit=!1,r));return this._data="",this._hitLimit=!1,t}},pl=[],vE=class{constructor(){this._handlers=Object.create(null),this._active=pl,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=pl}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let r=this._handlers[e];return r.push(t),{dispose:()=>{let n=r.indexOf(t);n!==-1&&r.splice(n,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=pl,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||pl,!this._active.length)this._handlerFb(this._ident,"HOOK",t);else for(let r=this._active.length-1;r>=0;r--)this._active[r].hook(t)}put(e,t,r){if(!this._active.length)this._handlerFb(this._ident,"PUT",ou(e,t,r));else for(let n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,r)}unhook(e,t=!0){if(!this._active.length)this._handlerFb(this._ident,"UNHOOK",e);else{let r=!1,n=this._active.length-1,l=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,r=t,l=this._stack.fallThrough,this._stack.paused=!1),!l&&r===!1){for(;n>=0&&(r=this._active[n].unhook(e),r!==!0);n--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,r;n--}for(;n>=0;n--)if(r=this._active[n].unhook(!1),r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,r}this._active=pl,this._ident=0}},Sl=new w5;Sl.addParam(0);var z3=class{constructor(e){this._handler=e,this._data="",this._params=Sl,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():Sl,this._data="",this._hitLimit=!1}put(e,t,r){this._hitLimit||(this._data+=ou(e,t,r),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then(r=>(this._params=Sl,this._data="",this._hitLimit=!1,r));return this._params=Sl,this._data="",this._hitLimit=!1,t}},yE=class{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,r,n){this.table[t<<8|e]=r<<4|n}addMany(e,t,r,n){for(let l=0;l<e.length;l++)this.table[t<<8|e[l]]=r<<4|n}},Gi=160,SE=(function(){let e=new yE(4095),t=Array.apply(null,Array(256)).map((f,p)=>p),r=(f,p)=>t.slice(f,p),n=r(32,127),l=r(0,24);l.push(25),l.push.apply(l,r(28,32));let o=r(0,14),u;e.setDefault(1,0),e.addMany(n,0,2,0);for(u in o)e.addMany([24,26,153,154],u,3,0),e.addMany(r(128,144),u,3,0),e.addMany(r(144,152),u,3,0),e.add(156,u,0,0),e.add(27,u,11,1),e.add(157,u,4,8),e.addMany([152,158,159],u,0,7),e.add(155,u,11,3),e.add(144,u,11,9);return e.addMany(l,0,3,0),e.addMany(l,1,3,1),e.add(127,1,0,1),e.addMany(l,8,0,8),e.addMany(l,3,3,3),e.add(127,3,0,3),e.addMany(l,4,3,4),e.add(127,4,0,4),e.addMany(l,6,3,6),e.addMany(l,5,3,5),e.add(127,5,0,5),e.addMany(l,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(n,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(n,7,0,7),e.addMany(l,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(96,127),1,10,0),e.add(80,1,11,9),e.addMany(l,9,0,9),e.add(127,9,0,9),e.addMany(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(l,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(l,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(l,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(l,13,13,13),e.addMany(n,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(Gi,0,2,0),e.add(Gi,8,5,8),e.add(Gi,6,0,6),e.add(Gi,11,0,11),e.add(Gi,13,13,13),e})(),bE=class extends Oe{constructor(e=SE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new w5,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(t,r,n)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,r)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this._register(nt(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this._register(new gE),this._dcsParser=this._register(new vE),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(e,t=[64,126]){let r=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(r=e.prefix.charCodeAt(0),r&&60>r||r>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let l=0;l<e.intermediates.length;++l){let o=e.intermediates.charCodeAt(l);if(32>o||o>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");r<<=8,r|=o}}if(e.final.length!==1)throw new Error("final must be a single byte");let n=e.final.charCodeAt(0);if(t[0]>n||n>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return r<<=8,r|=n,r}identToString(e){let t=[];for(;e;)t.push(String.fromCharCode(e&255)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){let r=this._identifier(e,[48,126]);this._escHandlers[r]===void 0&&(this._escHandlers[r]=[]);let n=this._escHandlers[r];return n.push(t),{dispose:()=>{let l=n.indexOf(t);l!==-1&&n.splice(l,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){let r=this._identifier(e);this._csiHandlers[r]===void 0&&(this._csiHandlers[r]=[]);let n=this._csiHandlers[r];return n.push(t),{dispose:()=>{let l=n.indexOf(t);l!==-1&&n.splice(l,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,r,n,l){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=r,this._parseStack.transition=n,this._parseStack.chunkPos=l}parse(e,t,r){let n=0,l=0,o=0,u;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,o=this._parseStack.chunkPos+1;else{if(r===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");let f=this._parseStack.handlers,p=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(r===!1&&p>-1){for(;p>=0&&(u=f[p](this._params),u!==!0);p--)if(u instanceof Promise)return this._parseStack.handlerPos=p,u}this._parseStack.handlers=[];break;case 4:if(r===!1&&p>-1){for(;p>=0&&(u=f[p](),u!==!0);p--)if(u instanceof Promise)return this._parseStack.handlerPos=p,u}this._parseStack.handlers=[];break;case 6:if(n=e[this._parseStack.chunkPos],u=this._dcsParser.unhook(n!==24&&n!==26,r),u)return u;n===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(n=e[this._parseStack.chunkPos],u=this._oscParser.end(n!==24&&n!==26,r),u)return u;n===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break}this._parseStack.state=0,o=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=this._parseStack.transition&15}for(let f=o;f<t;++f){switch(n=e[f],l=this._transitions.table[this.currentState<<8|(n<160?n:Gi)],l>>4){case 2:for(let y=f+1;;++y){if(y>=t||(n=e[y])<32||n>126&&n<Gi){this._printHandler(e,f,y),f=y-1;break}if(++y>=t||(n=e[y])<32||n>126&&n<Gi){this._printHandler(e,f,y),f=y-1;break}if(++y>=t||(n=e[y])<32||n>126&&n<Gi){this._printHandler(e,f,y),f=y-1;break}if(++y>=t||(n=e[y])<32||n>126&&n<Gi){this._printHandler(e,f,y),f=y-1;break}}break;case 3:this._executeHandlers[n]?this._executeHandlers[n]():this._executeHandlerFb(n),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:f,code:n,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let p=this._csiHandlers[this._collect<<8|n],d=p?p.length-1:-1;for(;d>=0&&(u=p[d](this._params),u!==!0);d--)if(u instanceof Promise)return this._preserveStack(3,p,d,l,f),u;d<0&&this._csiHandlerFb(this._collect<<8|n,this._params),this.precedingJoinState=0;break;case 8:do switch(n){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(n-48)}while(++f<t&&(n=e[f])>47&&n<60);f--;break;case 9:this._collect<<=8,this._collect|=n;break;case 10:let v=this._escHandlers[this._collect<<8|n],m=v?v.length-1:-1;for(;m>=0&&(u=v[m](),u!==!0);m--)if(u instanceof Promise)return this._preserveStack(4,v,m,l,f),u;m<0&&this._escHandlerFb(this._collect<<8|n),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|n,this._params);break;case 13:for(let y=f+1;;++y)if(y>=t||(n=e[y])===24||n===26||n===27||n>127&&n<Gi){this._dcsParser.put(e,f,y),f=y-1;break}break;case 14:if(u=this._dcsParser.unhook(n!==24&&n!==26),u)return this._preserveStack(6,[],0,l,f),u;n===27&&(l|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let y=f+1;;y++)if(y>=t||(n=e[y])<32||n>127&&n<Gi){this._oscParser.put(e,f,y),f=y-1;break}break;case 6:if(u=this._oscParser.end(n!==24&&n!==26),u)return this._preserveStack(5,[],0,l,f),u;n===27&&(l|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break}this.currentState=l&15}}},wE=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,CE=/^[\da-f]+$/;function H3(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf("rgb:")===0){t=t.slice(4);let r=wE.exec(t);if(r){let n=r[1]?15:r[4]?255:r[7]?4095:65535;return[Math.round(parseInt(r[1]||r[4]||r[7]||r[10],16)/n*255),Math.round(parseInt(r[2]||r[5]||r[8]||r[11],16)/n*255),Math.round(parseInt(r[3]||r[6]||r[9]||r[12],16)/n*255)]}}else if(t.indexOf("#")===0&&(t=t.slice(1),CE.exec(t)&&[3,6,9,12].includes(t.length))){let r=t.length/3,n=[0,0,0];for(let l=0;l<3;++l){let o=parseInt(t.slice(r*l,r*l+r),16);n[l]=r===1?o<<4:r===2?o:r===3?o>>4:o>>8}return n}}function cf(e,t){let r=e.toString(16),n=r.length<2?"0"+r:r;switch(t){case 4:return r[0];case 8:return n;case 12:return(n+n).slice(0,3);default:return n+n}}function EE(e,t=16){let[r,n,l]=e;return`rgb:${cf(r,t)}/${cf(n,t)}/${cf(l,t)}`}var xE={"(":0,")":1,"*":2,"+":3,"-":1,".":2},cs=131072,V3=10;function P3(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var G3=5e3,I3=0,AE=class extends Oe{constructor(e,t,r,n,l,o,u,f,p=new bE){super(),this._bufferService=e,this._charsetService=t,this._coreService=r,this._logService=n,this._optionsService=l,this._oscLinkService=o,this._coreMouseService=u,this._unicodeService=f,this._parser=p,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new $b,this._utf8Decoder=new Zb,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=Et.clone(),this._eraseAttrDataInternal=Et.clone(),this._onRequestBell=this._register(new ce),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this._register(new ce),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this._register(new ce),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this._register(new ce),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this._register(new ce),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this._register(new ce),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this._register(new ce),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this._register(new ce),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this._register(new ce),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this._register(new ce),this.onLineFeed=this._onLineFeed.event,this._onScroll=this._register(new ce),this.onScroll=this._onScroll.event,this._onTitleChange=this._register(new ce),this.onTitleChange=this._onTitleChange.event,this._onColor=this._register(new ce),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this._register(this._parser),this._dirtyRowTracker=new hd(this._bufferService),this._activeBuffer=this._bufferService.buffer,this._register(this._bufferService.buffers.onBufferActivate(d=>this._activeBuffer=d.activeBuffer)),this._parser.setCsiHandlerFallback((d,v)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(d),params:v.toArray()})}),this._parser.setEscHandlerFallback(d=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(d)})}),this._parser.setExecuteHandlerFallback(d=>{this._logService.debug("Unknown EXECUTE code: ",{code:d})}),this._parser.setOscHandlerFallback((d,v,m)=>{this._logService.debug("Unknown OSC code: ",{identifier:d,action:v,data:m})}),this._parser.setDcsHandlerFallback((d,v,m)=>{v==="HOOK"&&(m=m.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(d),action:v,payload:m})}),this._parser.setPrintHandler((d,v,m)=>this.print(d,v,m)),this._parser.registerCsiHandler({final:"@"},d=>this.insertChars(d)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},d=>this.scrollLeft(d)),this._parser.registerCsiHandler({final:"A"},d=>this.cursorUp(d)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},d=>this.scrollRight(d)),this._parser.registerCsiHandler({final:"B"},d=>this.cursorDown(d)),this._parser.registerCsiHandler({final:"C"},d=>this.cursorForward(d)),this._parser.registerCsiHandler({final:"D"},d=>this.cursorBackward(d)),this._parser.registerCsiHandler({final:"E"},d=>this.cursorNextLine(d)),this._parser.registerCsiHandler({final:"F"},d=>this.cursorPrecedingLine(d)),this._parser.registerCsiHandler({final:"G"},d=>this.cursorCharAbsolute(d)),this._parser.registerCsiHandler({final:"H"},d=>this.cursorPosition(d)),this._parser.registerCsiHandler({final:"I"},d=>this.cursorForwardTab(d)),this._parser.registerCsiHandler({final:"J"},d=>this.eraseInDisplay(d,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},d=>this.eraseInDisplay(d,!0)),this._parser.registerCsiHandler({final:"K"},d=>this.eraseInLine(d,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},d=>this.eraseInLine(d,!0)),this._parser.registerCsiHandler({final:"L"},d=>this.insertLines(d)),this._parser.registerCsiHandler({final:"M"},d=>this.deleteLines(d)),this._parser.registerCsiHandler({final:"P"},d=>this.deleteChars(d)),this._parser.registerCsiHandler({final:"S"},d=>this.scrollUp(d)),this._parser.registerCsiHandler({final:"T"},d=>this.scrollDown(d)),this._parser.registerCsiHandler({final:"X"},d=>this.eraseChars(d)),this._parser.registerCsiHandler({final:"Z"},d=>this.cursorBackwardTab(d)),this._parser.registerCsiHandler({final:"`"},d=>this.charPosAbsolute(d)),this._parser.registerCsiHandler({final:"a"},d=>this.hPositionRelative(d)),this._parser.registerCsiHandler({final:"b"},d=>this.repeatPrecedingCharacter(d)),this._parser.registerCsiHandler({final:"c"},d=>this.sendDeviceAttributesPrimary(d)),this._parser.registerCsiHandler({prefix:">",final:"c"},d=>this.sendDeviceAttributesSecondary(d)),this._parser.registerCsiHandler({final:"d"},d=>this.linePosAbsolute(d)),this._parser.registerCsiHandler({final:"e"},d=>this.vPositionRelative(d)),this._parser.registerCsiHandler({final:"f"},d=>this.hVPosition(d)),this._parser.registerCsiHandler({final:"g"},d=>this.tabClear(d)),this._parser.registerCsiHandler({final:"h"},d=>this.setMode(d)),this._parser.registerCsiHandler({prefix:"?",final:"h"},d=>this.setModePrivate(d)),this._parser.registerCsiHandler({final:"l"},d=>this.resetMode(d)),this._parser.registerCsiHandler({prefix:"?",final:"l"},d=>this.resetModePrivate(d)),this._parser.registerCsiHandler({final:"m"},d=>this.charAttributes(d)),this._parser.registerCsiHandler({final:"n"},d=>this.deviceStatus(d)),this._parser.registerCsiHandler({prefix:"?",final:"n"},d=>this.deviceStatusPrivate(d)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},d=>this.softReset(d)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},d=>this.setCursorStyle(d)),this._parser.registerCsiHandler({final:"r"},d=>this.setScrollRegion(d)),this._parser.registerCsiHandler({final:"s"},d=>this.saveCursor(d)),this._parser.registerCsiHandler({final:"t"},d=>this.windowOptions(d)),this._parser.registerCsiHandler({final:"u"},d=>this.restoreCursor(d)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},d=>this.insertColumns(d)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},d=>this.deleteColumns(d)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},d=>this.selectProtected(d)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},d=>this.requestMode(d,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},d=>this.requestMode(d,!1)),this._parser.setExecuteHandler(te.BEL,()=>this.bell()),this._parser.setExecuteHandler(te.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(te.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(te.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(te.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(te.BS,()=>this.backspace()),this._parser.setExecuteHandler(te.HT,()=>this.tab()),this._parser.setExecuteHandler(te.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(te.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(kc.IND,()=>this.index()),this._parser.setExecuteHandler(kc.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(kc.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new Ei(d=>(this.setTitle(d),this.setIconName(d),!0))),this._parser.registerOscHandler(1,new Ei(d=>this.setIconName(d))),this._parser.registerOscHandler(2,new Ei(d=>this.setTitle(d))),this._parser.registerOscHandler(4,new Ei(d=>this.setOrReportIndexedColor(d))),this._parser.registerOscHandler(8,new Ei(d=>this.setHyperlink(d))),this._parser.registerOscHandler(10,new Ei(d=>this.setOrReportFgColor(d))),this._parser.registerOscHandler(11,new Ei(d=>this.setOrReportBgColor(d))),this._parser.registerOscHandler(12,new Ei(d=>this.setOrReportCursorColor(d))),this._parser.registerOscHandler(104,new Ei(d=>this.restoreIndexedColor(d))),this._parser.registerOscHandler(110,new Ei(d=>this.restoreFgColor(d))),this._parser.registerOscHandler(111,new Ei(d=>this.restoreBgColor(d))),this._parser.registerOscHandler(112,new Ei(d=>this.restoreCursorColor(d))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(let d in Mt)this._parser.registerEscHandler({intermediates:"(",final:d},()=>this.selectCharset("("+d)),this._parser.registerEscHandler({intermediates:")",final:d},()=>this.selectCharset(")"+d)),this._parser.registerEscHandler({intermediates:"*",final:d},()=>this.selectCharset("*"+d)),this._parser.registerEscHandler({intermediates:"+",final:d},()=>this.selectCharset("+"+d)),this._parser.registerEscHandler({intermediates:"-",final:d},()=>this.selectCharset("-"+d)),this._parser.registerEscHandler({intermediates:".",final:d},()=>this.selectCharset("."+d)),this._parser.registerEscHandler({intermediates:"/",final:d},()=>this.selectCharset("/"+d));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(d=>(this._logService.error("Parsing error: ",d),d)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new z3((d,v)=>this.requestStatusString(d,v)))}getAttrData(){return this._curAttrData}_preserveStack(e,t,r,n){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=r,this._parseStack.position=n}_logSlowResolvingAsync(e){this._logService.logLevel<=3&&Promise.race([e,new Promise((t,r)=>setTimeout(()=>r("#SLOW_TIMEOUT"),G3))]).catch(t=>{if(t!=="#SLOW_TIMEOUT")throw t;console.warn(`async parser handler taking longer than ${G3} ms`)})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let r,n=this._activeBuffer.x,l=this._activeBuffer.y,o=0,u=this._parseStack.paused;if(u){if(r=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(r),r;n=this._parseStack.cursorStartX,l=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>cs&&(o=this._parseStack.position+cs)}if(this._logService.logLevel<=1&&this._logService.debug(`parsing data ${typeof e=="string"?` "${e}"`:` "${Array.prototype.map.call(e,d=>String.fromCharCode(d)).join("")}"`}`),this._logService.logLevel===0&&this._logService.trace("parsing data (codes)",typeof e=="string"?e.split("").map(d=>d.charCodeAt(0)):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<cs&&(this._parseBuffer=new Uint32Array(Math.min(e.length,cs))),u||this._dirtyRowTracker.clearRange(),e.length>cs)for(let d=o;d<e.length;d+=cs){let v=d+cs<e.length?d+cs:e.length,m=typeof e=="string"?this._stringDecoder.decode(e.substring(d,v),this._parseBuffer):this._utf8Decoder.decode(e.subarray(d,v),this._parseBuffer);if(r=this._parser.parse(this._parseBuffer,m))return this._preserveStack(n,l,m,d),this._logSlowResolvingAsync(r),r}else if(!u){let d=typeof e=="string"?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(r=this._parser.parse(this._parseBuffer,d))return this._preserveStack(n,l,d,0),this._logSlowResolvingAsync(r),r}(this._activeBuffer.x!==n||this._activeBuffer.y!==l)&&this._onCursorMove.fire();let f=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),p=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);p<this._bufferService.rows&&this._onRequestRefreshRows.fire({start:Math.min(p,this._bufferService.rows-1),end:Math.min(f,this._bufferService.rows-1)})}print(e,t,r){let n,l,o=this._charsetService.charset,u=this._optionsService.rawOptions.screenReaderMode,f=this._bufferService.cols,p=this._coreService.decPrivateModes.wraparound,d=this._coreService.modes.insertMode,v=this._curAttrData,m=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&r-t>0&&m.getWidth(this._activeBuffer.x-1)===2&&m.setCellFromCodepoint(this._activeBuffer.x-1,0,1,v);let y=this._parser.precedingJoinState;for(let b=t;b<r;++b){if(n=e[b],n<127&&o){let M=o[String.fromCharCode(n)];M&&(n=M.charCodeAt(0))}let S=this._unicodeService.charProperties(n,y);l=Xs.extractWidth(S);let x=Xs.extractShouldJoin(S),T=x?Xs.extractWidth(y):0;if(y=S,u&&this._onA11yChar.fire(ds(n)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+l-T>f){if(p){let M=m,z=this._activeBuffer.x-T;for(this._activeBuffer.x=T,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),m=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),T>0&&m instanceof vl&&m.copyCellsFrom(M,z,0,T,!1);z<f;)M.setCellFromCodepoint(z++,0,1,v)}else if(this._activeBuffer.x=f-1,l===2)continue}if(x&&this._activeBuffer.x){let M=m.getWidth(this._activeBuffer.x-1)?1:2;m.addCodepointToCell(this._activeBuffer.x-M,n,l);for(let z=l-T;--z>=0;)m.setCellFromCodepoint(this._activeBuffer.x++,0,0,v);continue}if(d&&(m.insertCells(this._activeBuffer.x,l-T,this._activeBuffer.getNullCell(v)),m.getWidth(f-1)===2&&m.setCellFromCodepoint(f-1,0,1,v)),m.setCellFromCodepoint(this._activeBuffer.x++,n,l,v),l>0)for(;--l;)m.setCellFromCodepoint(this._activeBuffer.x++,0,0,v)}this._parser.precedingJoinState=y,this._activeBuffer.x<f&&r-t>0&&m.getWidth(this._activeBuffer.x)===0&&!m.hasContent(this._activeBuffer.x)&&m.setCellFromCodepoint(this._activeBuffer.x,0,1,v),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return e.final==="t"&&!e.prefix&&!e.intermediates?this._parser.registerCsiHandler(e,r=>P3(r.params[0],this._optionsService.rawOptions.windowOptions)?t(r):!0):this._parser.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new z3(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new Ei(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){let t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){let t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){let t=e.params[0];return t===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:t===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){let t=e.params[0];return t===1&&(this._curAttrData.bg|=536870912),(t===2||t===0)&&(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,r,n=!1,l=!1){let o=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);o.replaceCells(t,r,this._activeBuffer.getNullCell(this._eraseAttrData()),l),n&&(o.isWrapped=!1)}_resetBufferLine(e,t=!1){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);r&&(r.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),r.isWrapped=!1)}eraseInDisplay(e,t=!1){var n;this._restrictCursor(this._bufferService.cols);let r;switch(e.params[0]){case 0:for(r=this._activeBuffer.y,this._dirtyRowTracker.markDirty(r),this._eraseInBufferLine(r++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);r<this._bufferService.rows;r++)this._resetBufferLine(r,t);this._dirtyRowTracker.markDirty(r);break;case 1:for(r=this._activeBuffer.y,this._dirtyRowTracker.markDirty(r),this._eraseInBufferLine(r,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(r+1).isWrapped=!1);r--;)this._resetBufferLine(r,t);this._dirtyRowTracker.markDirty(0);break;case 2:if(this._optionsService.rawOptions.scrollOnEraseInDisplay){for(r=this._bufferService.rows,this._dirtyRowTracker.markRangeDirty(0,r-1);r--&&!((n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r))!=null&&n.getTrimmedLength()););for(;r>=0;r--)this._bufferService.scroll(this._eraseAttrData())}else{for(r=this._bufferService.rows,this._dirtyRowTracker.markDirty(r-1);r--;)this._resetBufferLine(r,t);this._dirtyRowTracker.markDirty(0)}break;case 3:let l=this._activeBuffer.lines.length-this._bufferService.rows;l>0&&(this._activeBuffer.lines.trimStart(l),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-l,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-l,0),this._onScroll.fire(0));break}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t);break}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let r=this._activeBuffer.ybase+this._activeBuffer.y,n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,l=this._bufferService.rows-1+this._activeBuffer.ybase-n+1;for(;t--;)this._activeBuffer.lines.splice(l-1,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let r=this._activeBuffer.ybase+this._activeBuffer.y,n;for(n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,n=this._bufferService.rows-1+this._activeBuffer.ybase-n;t--;)this._activeBuffer.lines.splice(r,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(Et));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);n.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){let t=this._parser.precedingJoinState;if(!t)return!0;let r=e.params[0]||1,n=Xs.extractWidth(t),l=this._activeBuffer.x-n,o=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(l),u=new Uint32Array(o.length*r),f=0;for(let d=0;d<o.length;){let v=o.codePointAt(d)||0;u[f++]=v,d+=v>65535?2:1}let p=f;for(let d=1;d<r;++d)u.copyWithin(p,0,f),p+=f;return this.print(u,0,p),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(te.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(te.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(te.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(te.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(te.ESC+"[>83;40003;0c")),!0}_is(e){return(this._optionsService.rawOptions.termName+"").indexOf(e)===0}setMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0;break}return!0}setModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,Ws),this._charsetService.setgCharset(1,Ws),this._charsetService.setgCharset(2,Ws),this._charsetService.setgCharset(3,Ws);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!0;break}return!0}resetMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1;break}return!0}resetModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),e.params[t]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!1,this._onRequestRefreshRows.fire(void 0);break}return!0}requestMode(e,t){(x=>(x[x.NOT_RECOGNIZED=0]="NOT_RECOGNIZED",x[x.SET=1]="SET",x[x.RESET=2]="RESET",x[x.PERMANENTLY_SET=3]="PERMANENTLY_SET",x[x.PERMANENTLY_RESET=4]="PERMANENTLY_RESET"))(void 0||(r={}));let n=this._coreService.decPrivateModes,{activeProtocol:l,activeEncoding:o}=this._coreMouseService,u=this._coreService,{buffers:f,cols:p}=this._bufferService,{active:d,alt:v}=f,m=this._optionsService.rawOptions,y=(x,T)=>(u.triggerDataEvent(`${te.ESC}[${t?"":"?"}${x};${T}$y`),!0),b=x=>x?1:2,S=e.params[0];return t?S===2?y(S,4):S===4?y(S,b(u.modes.insertMode)):S===12?y(S,3):S===20?y(S,b(m.convertEol)):y(S,0):S===1?y(S,b(n.applicationCursorKeys)):S===3?y(S,m.windowOptions.setWinLines?p===80?2:p===132?1:0:0):S===6?y(S,b(n.origin)):S===7?y(S,b(n.wraparound)):S===8?y(S,3):S===9?y(S,b(l==="X10")):S===12?y(S,b(m.cursorBlink)):S===25?y(S,b(!u.isCursorHidden)):S===45?y(S,b(n.reverseWraparound)):S===66?y(S,b(n.applicationKeypad)):S===67?y(S,4):S===1e3?y(S,b(l==="VT200")):S===1002?y(S,b(l==="DRAG")):S===1003?y(S,b(l==="ANY")):S===1004?y(S,b(n.sendFocus)):S===1005?y(S,4):S===1006?y(S,b(o==="SGR")):S===1015?y(S,4):S===1016?y(S,b(o==="SGR_PIXELS")):S===1048?y(S,1):S===47||S===1047||S===1049?y(S,b(d===v)):S===2004?y(S,b(n.bracketedPasteMode)):S===2026?y(S,b(n.synchronizedOutput)):y(S,0)}_updateAttrColor(e,t,r,n,l){return t===2?(e|=50331648,e&=-16777216,e|=zl.fromColorRGB([r,n,l])):t===5&&(e&=-50331904,e|=33554432|r&255),e}_extractColor(e,t,r){let n=[0,0,-1,0,0,0],l=0,o=0;do{if(n[o+l]=e.params[t+o],e.hasSubParams(t+o)){let u=e.getSubParams(t+o),f=0;do n[1]===5&&(l=1),n[o+f+1+l]=u[f];while(++f<u.length&&f+o+1+l<n.length);break}if(n[1]===5&&o+l>=2||n[1]===2&&o+l>=5)break;n[1]&&(l=1)}while(++o+t<e.length&&o+l<n.length);for(let u=2;u<n.length;++u)n[u]===-1&&(n[u]=0);switch(n[0]){case 38:r.fg=this._updateAttrColor(r.fg,n[1],n[3],n[4],n[5]);break;case 48:r.bg=this._updateAttrColor(r.bg,n[1],n[3],n[4],n[5]);break;case 58:r.extended=r.extended.clone(),r.extended.underlineColor=this._updateAttrColor(r.extended.underlineColor,n[1],n[3],n[4],n[5])}return o}_processUnderline(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,e===0&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=Et.fg,e.bg=Et.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(e.length===1&&e.params[0]===0)return this._processSGR0(this._curAttrData),!0;let t=e.length,r,n=this._curAttrData;for(let l=0;l<t;l++)r=e.params[l],r>=30&&r<=37?(n.fg&=-50331904,n.fg|=16777216|r-30):r>=40&&r<=47?(n.bg&=-50331904,n.bg|=16777216|r-40):r>=90&&r<=97?(n.fg&=-50331904,n.fg|=16777216|r-90|8):r>=100&&r<=107?(n.bg&=-50331904,n.bg|=16777216|r-100|8):r===0?this._processSGR0(n):r===1?n.fg|=134217728:r===3?n.bg|=67108864:r===4?(n.fg|=268435456,this._processUnderline(e.hasSubParams(l)?e.getSubParams(l)[0]:1,n)):r===5?n.fg|=536870912:r===7?n.fg|=67108864:r===8?n.fg|=1073741824:r===9?n.fg|=2147483648:r===2?n.bg|=134217728:r===21?this._processUnderline(2,n):r===22?(n.fg&=-134217729,n.bg&=-134217729):r===23?n.bg&=-67108865:r===24?(n.fg&=-268435457,this._processUnderline(0,n)):r===25?n.fg&=-536870913:r===27?n.fg&=-67108865:r===28?n.fg&=-1073741825:r===29?n.fg&=2147483647:r===39?(n.fg&=-67108864,n.fg|=Et.fg&16777215):r===49?(n.bg&=-67108864,n.bg|=Et.bg&16777215):r===38||r===48||r===58?l+=this._extractColor(e,l,n):r===53?n.bg|=1073741824:r===55?n.bg&=-1073741825:r===59?(n.extended=n.extended.clone(),n.extended.underlineColor=-1,n.updateExtended()):r===100?(n.fg&=-67108864,n.fg|=Et.fg&16777215,n.bg&=-67108864,n.bg|=Et.bg&16777215):this._logService.debug("Unknown SGR attribute: %d.",r);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${te.ESC}[0n`);break;case 6:let t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${te.ESC}[${t};${r}R`);break}return!0}deviceStatusPrivate(e){switch(e.params[0]){case 6:let t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${te.ESC}[?${t};${r}R`);break}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=Et.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){let t=e.length===0?1:e.params[0];if(t===0)this._coreService.decPrivateModes.cursorStyle=void 0,this._coreService.decPrivateModes.cursorBlink=void 0;else{switch(t){case 1:case 2:this._coreService.decPrivateModes.cursorStyle="block";break;case 3:case 4:this._coreService.decPrivateModes.cursorStyle="underline";break;case 5:case 6:this._coreService.decPrivateModes.cursorStyle="bar";break}let r=t%2===1;this._coreService.decPrivateModes.cursorBlink=r}return!0}setScrollRegion(e){let t=e.params[0]||1,r;return(e.length<2||(r=e.params[1])>this._bufferService.rows||r===0)&&(r=this._bufferService.rows),r>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=r-1,this._setCursor(0,0)),!0}windowOptions(e){if(!P3(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;let t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:t!==2&&this._onRequestWindowsOptionsReport.fire(0);break;case 16:this._onRequestWindowsOptionsReport.fire(1);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${te.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:(t===0||t===2)&&(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>V3&&this._windowTitleStack.shift()),(t===0||t===1)&&(this._iconNameStack.push(this._iconName),this._iconNameStack.length>V3&&this._iconNameStack.shift());break;case 23:(t===0||t===2)&&this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),(t===0||t===1)&&this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop());break}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){let t=[],r=e.split(";");for(;r.length>1;){let n=r.shift(),l=r.shift();if(/^\d+$/.exec(n)){let o=parseInt(n);if(U3(o))if(l==="?")t.push({type:0,index:o});else{let u=H3(l);u&&t.push({type:1,index:o,color:u})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.indexOf(";");if(t===-1)return!0;let r=e.slice(0,t).trim(),n=e.slice(t+1);return n?this._createHyperlink(r,n):r.trim()?!1:this._finishHyperlink()}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let r=e.split(":"),n,l=r.findIndex(o=>o.startsWith("id="));return l!==-1&&(n=r[l].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:n,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let r=e.split(";");for(let n=0;n<r.length&&!(t>=this._specialColors.length);++n,++t)if(r[n]==="?")this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let l=H3(r[n]);l&&this._onColor.fire([{type:1,index:this._specialColors[t],color:l}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;let t=[],r=e.split(";");for(let n=0;n<r.length;++n)if(/^\d+$/.exec(r[n])){let l=parseInt(r[n]);U3(l)&&t.push({type:2,index:l})}return t.length&&this._onColor.fire(t),!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,Ws),!0}selectCharset(e){return e.length!==2?(this.selectDefaultCharset(),!0):(e[0]==="/"||this._charsetService.setgCharset(xE[e[0]],Mt[e[1]]||Ws),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=Et.clone(),this._eraseAttrDataInternal=Et.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=this._curAttrData.bg&67108863,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){let e=new qi;e.content=1<<22|69,e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t<this._bufferService.rows;++t){let r=this._activeBuffer.ybase+this._activeBuffer.y+t,n=this._activeBuffer.lines.get(r);n&&(n.fill(e),n.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){let r=u=>(this._coreService.triggerDataEvent(`${te.ESC}${u}${te.ESC}\\`),!0),n=this._bufferService.buffer,l=this._optionsService.rawOptions;return r(e==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:e==='"p'?'P1$r61;1"p':e==="r"?`P1$r${n.scrollTop+1};${n.scrollBottom+1}r`:e==="m"?"P1$r0m":e===" q"?`P1$r${{block:2,underline:4,bar:6}[l.cursorStyle]-(l.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}},hd=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(I3=e,e=t,t=I3),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};hd=ft([he(0,si)],hd);function U3(e){return 0<=e&&e<256}var kE=5e7,j3=12,TE=50,RE=class extends Oe{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this._register(new ce),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(t!==void 0&&this._syncCalls>t){this._syncCalls=0;return}if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;this._isSyncWriting=!0;let r;for(;r=this._writeBuffer.shift();){this._action(r);let n=this._callbacks.shift();n&&n()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>kE)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput){this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),this._innerWrite();return}setTimeout(()=>this._innerWrite())}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){let r=e||performance.now();for(;this._writeBuffer.length>this._bufferOffset;){let n=this._writeBuffer[this._bufferOffset],l=this._action(n,t);if(l){let u=f=>performance.now()-r>=j3?setTimeout(()=>this._innerWrite(0,f)):this._innerWrite(r,f);l.catch(f=>(queueMicrotask(()=>{throw f}),Promise.resolve(!1))).then(u);return}let o=this._callbacks[this._bufferOffset];if(o&&o(),this._bufferOffset++,this._pendingData-=n.length,performance.now()-r>=j3)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>TE&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}},fd=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){let t=this._bufferService.buffer;if(e.id===void 0){let f=t.addMarker(t.ybase+t.y),p={data:e,id:this._nextId++,lines:[f]};return f.onDispose(()=>this._removeMarkerFromLink(p,f)),this._dataByLinkId.set(p.id,p),p.id}let r=e,n=this._getEntryIdKey(r),l=this._entriesWithId.get(n);if(l)return this.addLineToLink(l.id,t.ybase+t.y),l.id;let o=t.addMarker(t.ybase+t.y),u={id:this._nextId++,key:this._getEntryIdKey(r),data:r,lines:[o]};return o.onDispose(()=>this._removeMarkerFromLink(u,o)),this._entriesWithId.set(u.key,u),this._dataByLinkId.set(u.id,u),u.id}addLineToLink(e,t){let r=this._dataByLinkId.get(e);if(r&&r.lines.every(n=>n.line!==t)){let n=this._bufferService.buffer.addMarker(t);r.lines.push(n),n.onDispose(()=>this._removeMarkerFromLink(r,n))}}getLinkData(e){var t;return(t=this._dataByLinkId.get(e))==null?void 0:t.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let r=e.lines.indexOf(t);r!==-1&&(e.lines.splice(r,1),e.lines.length===0&&(e.data.id!==void 0&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};fd=ft([he(0,si)],fd);var q3=!1,LE=class extends Oe{constructor(e){super(),this._windowsWrappingHeuristics=this._register(new ra),this._onBinary=this._register(new ce),this.onBinary=this._onBinary.event,this._onData=this._register(new ce),this.onData=this._onData.event,this._onLineFeed=this._register(new ce),this.onLineFeed=this._onLineFeed.event,this._onResize=this._register(new ce),this.onResize=this._onResize.event,this._onWriteParsed=this._register(new ce),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this._register(new ce),this._instantiationService=new eE,this.optionsService=this._register(new uE(e)),this._instantiationService.setService(ni,this.optionsService),this._bufferService=this._register(this._instantiationService.createInstance(ld)),this._instantiationService.setService(si,this._bufferService),this._logService=this._register(this._instantiationService.createInstance(ad)),this._instantiationService.setService(I4,this._logService),this.coreService=this._register(this._instantiationService.createInstance(od)),this._instantiationService.setService(ln,this.coreService),this.coreMouseService=this._register(this._instantiationService.createInstance(cd)),this._instantiationService.setService(G4,this.coreMouseService),this.unicodeService=this._register(this._instantiationService.createInstance(Xs)),this._instantiationService.setService(Kb,this.unicodeService),this._charsetService=this._instantiationService.createInstance(_E),this._instantiationService.setService(Yb,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(fd),this._instantiationService.setService(U4,this._oscLinkService),this._inputHandler=this._register(new AE(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this._register(Ft.forward(this._inputHandler.onLineFeed,this._onLineFeed)),this._register(this._inputHandler),this._register(Ft.forward(this._bufferService.onResize,this._onResize)),this._register(Ft.forward(this.coreService.onData,this._onData)),this._register(Ft.forward(this.coreService.onBinary,this._onBinary)),this._register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom(!0))),this._register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this._register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this._register(this._bufferService.onScroll(()=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this._register(new RE((t,r)=>this._inputHandler.parse(t,r))),this._register(Ft.forward(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this._register(new ce),this._onScroll.event(e=>{var t;(t=this._onScrollApi)==null||t.fire(e.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(let t in e)this.optionsService.options[t]=e[t]}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=3&&!q3&&(this._logService.warn("writeSync is unreliable and will be removed soon."),q3=!0),this._writeBuffer.writeSync(e,t)}input(e,t=!0){this.coreService.triggerDataEvent(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,S5),t=Math.max(t,b5),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t){this._bufferService.scrollLines(e,t)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1,t=this.optionsService.rawOptions.windowsPty;t&&t.buildNumber!==void 0&&t.buildNumber!==void 0?e=t.backend==="conpty"&&t.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let e=[];e.push(this.onLineFeed(B3.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},()=>(B3(this._bufferService),!1))),this._windowsWrappingHeuristics.value=nt(()=>{for(let t of e)t.dispose()})}}},ME={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};function DE(e,t,r,n){var u;let l={type:0,cancel:!1,key:void 0},o=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key==="UIKeyInputUpArrow"?t?l.key=te.ESC+"OA":l.key=te.ESC+"[A":e.key==="UIKeyInputLeftArrow"?t?l.key=te.ESC+"OD":l.key=te.ESC+"[D":e.key==="UIKeyInputRightArrow"?t?l.key=te.ESC+"OC":l.key=te.ESC+"[C":e.key==="UIKeyInputDownArrow"&&(t?l.key=te.ESC+"OB":l.key=te.ESC+"[B");break;case 8:l.key=e.ctrlKey?"\b":te.DEL,e.altKey&&(l.key=te.ESC+l.key);break;case 9:if(e.shiftKey){l.key=te.ESC+"[Z";break}l.key=te.HT,l.cancel=!0;break;case 13:l.key=e.altKey?te.ESC+te.CR:te.CR,l.cancel=!0;break;case 27:l.key=te.ESC,e.altKey&&(l.key=te.ESC+te.ESC),l.cancel=!0;break;case 37:if(e.metaKey)break;o?l.key=te.ESC+"[1;"+(o+1)+"D":t?l.key=te.ESC+"OD":l.key=te.ESC+"[D";break;case 39:if(e.metaKey)break;o?l.key=te.ESC+"[1;"+(o+1)+"C":t?l.key=te.ESC+"OC":l.key=te.ESC+"[C";break;case 38:if(e.metaKey)break;o?l.key=te.ESC+"[1;"+(o+1)+"A":t?l.key=te.ESC+"OA":l.key=te.ESC+"[A";break;case 40:if(e.metaKey)break;o?l.key=te.ESC+"[1;"+(o+1)+"B":t?l.key=te.ESC+"OB":l.key=te.ESC+"[B";break;case 45:!e.shiftKey&&!e.ctrlKey&&(l.key=te.ESC+"[2~");break;case 46:o?l.key=te.ESC+"[3;"+(o+1)+"~":l.key=te.ESC+"[3~";break;case 36:o?l.key=te.ESC+"[1;"+(o+1)+"H":t?l.key=te.ESC+"OH":l.key=te.ESC+"[H";break;case 35:o?l.key=te.ESC+"[1;"+(o+1)+"F":t?l.key=te.ESC+"OF":l.key=te.ESC+"[F";break;case 33:e.shiftKey?l.type=2:e.ctrlKey?l.key=te.ESC+"[5;"+(o+1)+"~":l.key=te.ESC+"[5~";break;case 34:e.shiftKey?l.type=3:e.ctrlKey?l.key=te.ESC+"[6;"+(o+1)+"~":l.key=te.ESC+"[6~";break;case 112:o?l.key=te.ESC+"[1;"+(o+1)+"P":l.key=te.ESC+"OP";break;case 113:o?l.key=te.ESC+"[1;"+(o+1)+"Q":l.key=te.ESC+"OQ";break;case 114:o?l.key=te.ESC+"[1;"+(o+1)+"R":l.key=te.ESC+"OR";break;case 115:o?l.key=te.ESC+"[1;"+(o+1)+"S":l.key=te.ESC+"OS";break;case 116:o?l.key=te.ESC+"[15;"+(o+1)+"~":l.key=te.ESC+"[15~";break;case 117:o?l.key=te.ESC+"[17;"+(o+1)+"~":l.key=te.ESC+"[17~";break;case 118:o?l.key=te.ESC+"[18;"+(o+1)+"~":l.key=te.ESC+"[18~";break;case 119:o?l.key=te.ESC+"[19;"+(o+1)+"~":l.key=te.ESC+"[19~";break;case 120:o?l.key=te.ESC+"[20;"+(o+1)+"~":l.key=te.ESC+"[20~";break;case 121:o?l.key=te.ESC+"[21;"+(o+1)+"~":l.key=te.ESC+"[21~";break;case 122:o?l.key=te.ESC+"[23;"+(o+1)+"~":l.key=te.ESC+"[23~";break;case 123:o?l.key=te.ESC+"[24;"+(o+1)+"~":l.key=te.ESC+"[24~";break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?l.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?l.key=te.NUL:e.keyCode>=51&&e.keyCode<=55?l.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?l.key=te.DEL:e.keyCode===219?l.key=te.ESC:e.keyCode===220?l.key=te.FS:e.keyCode===221&&(l.key=te.GS);else if((!r||n)&&e.altKey&&!e.metaKey){let f=(u=ME[e.keyCode])==null?void 0:u[e.shiftKey?1:0];if(f)l.key=te.ESC+f;else if(e.keyCode>=65&&e.keyCode<=90){let p=e.ctrlKey?e.keyCode-64:e.keyCode+32,d=String.fromCharCode(p);e.shiftKey&&(d=d.toUpperCase()),l.key=te.ESC+d}else if(e.keyCode===32)l.key=te.ESC+(e.ctrlKey?te.NUL:" ");else if(e.key==="Dead"&&e.code.startsWith("Key")){let p=e.code.slice(3,4);e.shiftKey||(p=p.toLowerCase()),l.key=te.ESC+p,l.cancel=!0}}else r&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(l.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?l.key=e.key:e.key&&e.ctrlKey&&(e.key==="_"&&(l.key=te.US),e.key==="@"&&(l.key=te.NUL));break}return l}var mt=0,OE=class{constructor(e){this._getKey=e,this._array=[],this._insertedValues=[],this._flushInsertedTask=new Fc,this._isFlushingInserted=!1,this._deletedIndices=[],this._flushDeletedTask=new Fc,this._isFlushingDeleted=!1}clear(){this._array.length=0,this._insertedValues.length=0,this._flushInsertedTask.clear(),this._isFlushingInserted=!1,this._deletedIndices.length=0,this._flushDeletedTask.clear(),this._isFlushingDeleted=!1}insert(e){this._flushCleanupDeleted(),this._insertedValues.length===0&&this._flushInsertedTask.enqueue(()=>this._flushInserted()),this._insertedValues.push(e)}_flushInserted(){let e=this._insertedValues.sort((l,o)=>this._getKey(l)-this._getKey(o)),t=0,r=0,n=new Array(this._array.length+this._insertedValues.length);for(let l=0;l<n.length;l++)r>=this._array.length||this._getKey(e[t])<=this._getKey(this._array[r])?(n[l]=e[t],t++):n[l]=this._array[r++];this._array=n,this._insertedValues.length=0}_flushCleanupInserted(){!this._isFlushingInserted&&this._insertedValues.length>0&&this._flushInsertedTask.flush()}delete(e){if(this._flushCleanupInserted(),this._array.length===0)return!1;let t=this._getKey(e);if(t===void 0||(mt=this._search(t),mt===-1)||this._getKey(this._array[mt])!==t)return!1;do if(this._array[mt]===e)return this._deletedIndices.length===0&&this._flushDeletedTask.enqueue(()=>this._flushDeleted()),this._deletedIndices.push(mt),!0;while(++mt<this._array.length&&this._getKey(this._array[mt])===t);return!1}_flushDeleted(){this._isFlushingDeleted=!0;let e=this._deletedIndices.sort((l,o)=>l-o),t=0,r=new Array(this._array.length-e.length),n=0;for(let l=0;l<this._array.length;l++)e[t]===l?t++:r[n++]=this._array[l];this._array=r,this._deletedIndices.length=0,this._isFlushingDeleted=!1}_flushCleanupDeleted(){!this._isFlushingDeleted&&this._deletedIndices.length>0&&this._flushDeletedTask.flush()}*getKeyIterator(e){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(mt=this._search(e),!(mt<0||mt>=this._array.length)&&this._getKey(this._array[mt])===e))do yield this._array[mt];while(++mt<this._array.length&&this._getKey(this._array[mt])===e)}forEachByKey(e,t){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(mt=this._search(e),!(mt<0||mt>=this._array.length)&&this._getKey(this._array[mt])===e))do t(this._array[mt]);while(++mt<this._array.length&&this._getKey(this._array[mt])===e)}values(){return this._flushCleanupInserted(),this._flushCleanupDeleted(),[...this._array].values()}_search(e){let t=0,r=this._array.length-1;for(;r>=t;){let n=t+r>>1,l=this._getKey(this._array[n]);if(l>e)r=n-1;else if(l<e)t=n+1;else{for(;n>0&&this._getKey(this._array[n-1])===e;)n--;return n}}return t}},uf=0,$3=0,NE=class extends Oe{constructor(){super(),this._decorations=new OE(e=>e==null?void 0:e.marker.line),this._onDecorationRegistered=this._register(new ce),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this._register(new ce),this.onDecorationRemoved=this._onDecorationRemoved.event,this._register(nt(()=>this.reset()))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;let t=new BE(e);if(t){let r=t.marker.onDispose(()=>t.dispose()),n=t.onDispose(()=>{n.dispose(),t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),r.dispose())});this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(let e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,r){let n=0,l=0;for(let o of this._decorations.getKeyIterator(t))n=o.options.x??0,l=n+(o.options.width??1),e>=n&&e<l&&(!r||(o.options.layer??"bottom")===r)&&(yield o)}forEachDecorationAtCell(e,t,r,n){this._decorations.forEachByKey(t,l=>{uf=l.options.x??0,$3=uf+(l.options.width??1),e>=uf&&e<$3&&(!r||(l.options.layer??"bottom")===r)&&n(l)})}},BE=class extends Ss{constructor(e){super(),this.options=e,this.onRenderEmitter=this.add(new ce),this.onRender=this.onRenderEmitter.event,this._onDispose=this.add(new ce),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=lt.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=lt.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._onDispose.fire(),super.dispose()}},zE=1e3,HE=class{constructor(e,t=zE){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,r){this._rowCount=r,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t;let n=performance.now();if(n-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=n,this._innerRefresh();else if(!this._additionalRefreshRequested){let l=n-this._lastRefreshMs,o=this._debounceThresholdMS-l;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=performance.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},o)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},Z3=20,Yc=class extends Oe{constructor(e,t,r,n){super(),this._terminal=e,this._coreBrowserService=r,this._renderService=n,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="";let l=this._coreBrowserService.mainDocument;this._accessibilityContainer=l.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=l.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let o=0;o<this._terminal.rows;o++)this._rowElements[o]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[o]);if(this._topBoundaryFocusListener=o=>this._handleBoundaryFocus(o,0),this._bottomBoundaryFocusListener=o=>this._handleBoundaryFocus(o,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=l.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this._register(new HE(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this._register(this._terminal.onResize(o=>this._handleResize(o.rows))),this._register(this._terminal.onRender(o=>this._refreshRows(o.start,o.end))),this._register(this._terminal.onScroll(()=>this._refreshRows())),this._register(this._terminal.onA11yChar(o=>this._handleChar(o))),this._register(this._terminal.onLineFeed(()=>this._handleChar(`
225
+ `))),this._register(this._terminal.onA11yTab(o=>this._handleTab(o))),this._register(this._terminal.onKey(o=>this._handleKey(o.key))),this._register(this._terminal.onBlur(()=>this._clearLiveRegion())),this._register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._register(Ce(l,"selectionchange",()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(nt(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<Z3+1&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
226
+ `&&(this._liveRegionLineCount++,this._liveRegionLineCount===Z3+1&&(this._liveRegion.textContent+=Df.get())))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){let r=this._terminal.buffer,n=r.lines.length.toString();for(let l=e;l<=t;l++){let o=r.lines.get(r.ydisp+l),u=[],f=(o==null?void 0:o.translateToString(!0,void 0,void 0,u))||"",p=(r.ydisp+l+1).toString(),d=this._rowElements[l];d&&(f.length===0?(d.textContent=" ",this._rowColumns.set(d,[0,1])):(d.textContent=f,this._rowColumns.set(d,u)),d.setAttribute("aria-posinset",p),d.setAttribute("aria-setsize",n),this._alignRowWidth(d))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){let r=e.target,n=this._rowElements[t===0?1:this._rowElements.length-2],l=r.getAttribute("aria-posinset"),o=t===0?"1":`${this._terminal.buffer.lines.length}`;if(l===o||e.relatedTarget!==n)return;let u,f;if(t===0?(u=r,f=this._rowElements.pop(),this._rowContainer.removeChild(f)):(u=this._rowElements.shift(),f=r,this._rowContainer.removeChild(u)),u.removeEventListener("focus",this._topBoundaryFocusListener),f.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){let p=this._createAccessibilityTreeNode();this._rowElements.unshift(p),this._rowContainer.insertAdjacentElement("afterbegin",p)}else{let p=this._createAccessibilityTreeNode();this._rowElements.push(p),this._rowContainer.appendChild(p)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){var f;if(this._rowElements.length===0)return;let e=this._coreBrowserService.mainDocument.getSelection();if(!e)return;if(e.isCollapsed){this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection();return}if(!e.anchorNode||!e.focusNode){console.error("anchorNode and/or focusNode are null");return}let t={node:e.anchorNode,offset:e.anchorOffset},r={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(r.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===r.node&&t.offset>r.offset)&&([t,r]=[r,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;let n=this._rowElements.slice(-1)[0];if(r.node.compareDocumentPosition(n)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(r={node:n,offset:((f=n.textContent)==null?void 0:f.length)??0}),!this._rowContainer.contains(r.node))return;let l=({node:p,offset:d})=>{let v=p instanceof Text?p.parentNode:p,m=parseInt(v==null?void 0:v.getAttribute("aria-posinset"),10)-1;if(isNaN(m))return console.warn("row is invalid. Race condition?"),null;let y=this._rowColumns.get(v);if(!y)return console.warn("columns is null. Race condition?"),null;let b=d<y.length?y[d]:y.slice(-1)[0]+1;return b>=this._terminal.cols&&(++m,b=0),{row:m,column:b}},o=l(t),u=l(r);if(!(!o||!u)){if(o.row>u.row||o.row===u.row&&o.column>=u.column)throw new Error("invalid range");this._terminal.select(o.column,o.row,(u.row-o.row)*this._terminal.cols-o.column+u.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){Object.assign(this._accessibilityContainer.style,{width:`${this._renderService.dimensions.css.canvas.width}px`,fontSize:`${this._terminal.options.fontSize}px`}),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e]),this._alignRowWidth(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}_alignRowWidth(e){var l,o;e.style.transform="";let t=e.getBoundingClientRect().width,r=(o=(l=this._rowColumns.get(e))==null?void 0:l.slice(-1))==null?void 0:o[0];if(!r)return;let n=r*this._renderService.dimensions.css.cell.width;e.style.transform=`scaleX(${n/t})`}};Yc=ft([he(1,zd),he(2,Br),he(3,zr)],Yc);var dd=class extends Oe{constructor(e,t,r,n,l){super(),this._element=e,this._mouseService=t,this._renderService=r,this._bufferService=n,this._linkProviderService=l,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this._register(new ce),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this._register(new ce),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this._register(nt(()=>{var o;sn(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,(o=this._activeProviderReplies)==null||o.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(Ce(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(Ce(this._element,"mousemove",this._handleMouseMove.bind(this))),this._register(Ce(this._element,"mousedown",this._handleMouseDown.bind(this))),this._register(Ce(this._element,"mouseup",this._handleMouseUp.bind(this)))}get currentLink(){return this._currentLink}_handleMouseMove(e){this._lastMouseEvent=e;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;let r=e.composedPath();for(let n=0;n<r.length;n++){let l=r[n];if(l.classList.contains("xterm"))break;if(l.classList.contains("xterm-hover"))return}(!this._lastBufferCell||t.x!==this._lastBufferCell.x||t.y!==this._lastBufferCell.y)&&(this._handleHover(t),this._lastBufferCell=t)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized){this._clearCurrentLink(),this._askForLink(e,!1),this._wasResized=!1;return}this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,t){var n,l;(!this._activeProviderReplies||!t)&&((n=this._activeProviderReplies)==null||n.forEach(o=>{o==null||o.forEach(u=>{u.link.dispose&&u.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let r=!1;for(let[o,u]of this._linkProviderService.linkProviders.entries())t?(l=this._activeProviderReplies)!=null&&l.get(o)&&(r=this._checkLinkProviderResult(o,e,r)):u.provideLinks(e.y,f=>{var d,v;if(this._isMouseOut)return;let p=f==null?void 0:f.map(m=>({link:m}));(d=this._activeProviderReplies)==null||d.set(o,p),r=this._checkLinkProviderResult(o,e,r),((v=this._activeProviderReplies)==null?void 0:v.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let r=new Set;for(let n=0;n<t.size;n++){let l=t.get(n);if(l)for(let o=0;o<l.length;o++){let u=l[o],f=u.link.range.start.y<e?0:u.link.range.start.x,p=u.link.range.end.y>e?this._bufferService.cols:u.link.range.end.x;for(let d=f;d<=p;d++){if(r.has(d)){l.splice(o--,1);break}r.add(d)}}}}_checkLinkProviderResult(e,t,r){var o;if(!this._activeProviderReplies)return r;let n=this._activeProviderReplies.get(e),l=!1;for(let u=0;u<e;u++)(!this._activeProviderReplies.has(u)||this._activeProviderReplies.get(u))&&(l=!0);if(!l&&n){let u=n.find(f=>this._linkAtPosition(f.link,t));u&&(r=!0,this._handleNewLink(u))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!r)for(let u=0;u<this._activeProviderReplies.size;u++){let f=(o=this._activeProviderReplies.get(u))==null?void 0:o.find(p=>this._linkAtPosition(p.link,t));if(f){r=!0,this._handleNewLink(f);break}}return r}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink&&VE(this._mouseDownLink.link,this._currentLink.link)&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){!this._currentLink||!this._lastMouseEvent||(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,sn(this._linkCacheDisposables),this._linkCacheDisposables.length=0)}_handleNewLink(e){if(!this._lastMouseEvent)return;let t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0?!0:e.link.decorations.underline,pointerCursor:e.link.decorations===void 0?!0:e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var r,n;return(n=(r=this._currentLink)==null?void 0:r.state)==null?void 0:n.decorations.pointerCursor},set:r=>{var n;(n=this._currentLink)!=null&&n.state&&this._currentLink.state.decorations.pointerCursor!==r&&(this._currentLink.state.decorations.pointerCursor=r,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",r))}},underline:{get:()=>{var r,n;return(n=(r=this._currentLink)==null?void 0:r.state)==null?void 0:n.decorations.underline},set:r=>{var n,l,o;(n=this._currentLink)!=null&&n.state&&((o=(l=this._currentLink)==null?void 0:l.state)==null?void 0:o.decorations.underline)!==r&&(this._currentLink.state.decorations.underline=r,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,r))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(r=>{if(!this._currentLink)return;let n=r.start===0?0:r.start+1+this._bufferService.buffer.ydisp,l=this._bufferService.buffer.ydisp+1+r.end;if(this._currentLink.link.range.start.y>=n&&this._currentLink.link.range.end.y<=l&&(this._clearCurrentLink(n,l),this._lastMouseEvent)){let o=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);o&&this._askForLink(o,!1)}})))}_linkHover(e,t,r){var n;(n=this._currentLink)!=null&&n.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(r,t.text)}_fireUnderlineEvent(e,t){let r=e.range,n=this._bufferService.buffer.ydisp,l=this._createLinkUnderlineEvent(r.start.x-1,r.start.y-n-1,r.end.x,r.end.y-n-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(l)}_linkLeave(e,t,r){var n;(n=this._currentLink)!=null&&n.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(r,t.text)}_linkAtPosition(e,t){let r=e.range.start.y*this._bufferService.cols+e.range.start.x,n=e.range.end.y*this._bufferService.cols+e.range.end.x,l=t.y*this._bufferService.cols+t.x;return r<=l&&l<=n}_positionFromMouseEvent(e,t,r){let n=r.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(n)return{x:n[0],y:n[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,r,n,l){return{x1:e,y1:t,x2:r,y2:n,cols:this._bufferService.cols,fg:l}}};dd=ft([he(1,Hd),he(2,zr),he(3,si),he(4,q4)],dd);function VE(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}var PE=class extends LE{constructor(e={}){super(e),this._linkifier=this._register(new ra),this.browser=c5,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new ra),this._onCursorMove=this._register(new ce),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new ce),this.onKey=this._onKey.event,this._onRender=this._register(new ce),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new ce),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new ce),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new ce),this.onBell=this._onBell.event,this._onFocus=this._register(new ce),this._onBlur=this._register(new ce),this._onA11yCharEmitter=this._register(new ce),this._onA11yTabEmitter=this._register(new ce),this._onWillOpen=this._register(new ce),this._setup(),this._decorationService=this._instantiationService.createInstance(NE),this._instantiationService.setService(Hl,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(TC),this._instantiationService.setService(q4,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(Nf)),this._register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this._register(this._inputHandler.onRequestRefreshRows(t=>this.refresh((t==null?void 0:t.start)??0,(t==null?void 0:t.end)??this.rows-1))),this._register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this._register(this._inputHandler.onRequestReset(()=>this.reset())),this._register(this._inputHandler.onRequestWindowsOptionsReport(t=>this._reportWindowsOptions(t))),this._register(this._inputHandler.onColor(t=>this._handleColorEvent(t))),this._register(Ft.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(Ft.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(Ft.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(Ft.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(t=>this._afterResize(t.cols,t.rows))),this._register(nt(()=>{var t,r;this._customKeyEventHandler=void 0,(r=(t=this.element)==null?void 0:t.parentNode)==null||r.removeChild(this.element)}))}get linkifier(){return this._linkifier.value}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}_handleColorEvent(e){if(this._themeService)for(let t of e){let r,n="";switch(t.index){case 256:r="foreground",n="10";break;case 257:r="background",n="11";break;case 258:r="cursor",n="12";break;default:r="ansi",n="4;"+t.index}switch(t.type){case 0:let l=rt.toColorRGB(r==="ansi"?this._themeService.colors.ansi[t.index]:this._themeService.colors[r]);this.coreService.triggerDataEvent(`${te.ESC}]${n};${EE(l)}${l5.ST}`);break;case 1:if(r==="ansi")this._themeService.modifyColors(o=>o.ansi[t.index]=xt.toColor(...t.color));else{let o=r;this._themeService.modifyColors(u=>u[o]=xt.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index);break}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(Yc,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(te.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return(e=this.textarea)==null?void 0:e.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(te.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;let r=Math.min(this.buffer.x,this.cols-1),n=this._renderService.dimensions.css.cell.height,l=t.getWidth(r),o=this._renderService.dimensions.css.cell.width*l,u=this.buffer.y*this._renderService.dimensions.css.cell.height,f=r*this._renderService.dimensions.css.cell.width;this.textarea.style.left=f+"px",this.textarea.style.top=u+"px",this.textarea.style.width=o+"px",this.textarea.style.height=n+"px",this.textarea.style.lineHeight=n+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this._register(Ce(this.element,"copy",t=>{this.hasSelection()&&jb(t,this._selectionService)}));let e=t=>qb(t,this.textarea,this.coreService,this.optionsService);this._register(Ce(this.textarea,"paste",e)),this._register(Ce(this.element,"paste",e)),u5?this._register(Ce(this.element,"mousedown",t=>{t.button===2&&i3(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(Ce(this.element,"contextmenu",t=>{i3(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),$d&&this._register(Ce(this.element,"auxclick",t=>{t.button===1&&B4(t,this.textarea,this.screenElement)}))}_bindKeys(){this._register(Ce(this.textarea,"keyup",e=>this._keyUp(e),!0)),this._register(Ce(this.textarea,"keydown",e=>this._keyDown(e),!0)),this._register(Ce(this.textarea,"keypress",e=>this._keyPress(e),!0)),this._register(Ce(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this._register(Ce(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this._register(Ce(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this._register(Ce(this.textarea,"input",e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){var l;if(!e)throw new Error("Terminal requires a parent element.");if(e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((l=this.element)==null?void 0:l.ownerDocument.defaultView)&&this._coreBrowserService){this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView);return}this._document=e.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);let t=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._register(Ce(this.screenElement,"mousemove",o=>this.updateCursorStyle(o))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement);let r=this.textarea=this._document.createElement("textarea");this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",Mf.get()),d5||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._register(this.optionsService.onSpecificOptionChange("disableStdin",()=>r.readOnly=this.optionsService.rawOptions.disableStdin)),this.textarea.readOnly=this.optionsService.rawOptions.disableStdin,this._coreBrowserService=this._register(this._instantiationService.createInstance(AC,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(Br,this._coreBrowserService),this._register(Ce(this.textarea,"focus",o=>this._handleTextAreaFocus(o))),this._register(Ce(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(td,this._document,this._helperContainer),this._instantiationService.setService(cu,this._charSizeService),this._themeService=this._instantiationService.createInstance(nd),this._instantiationService.setService(la,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(Zc),this._instantiationService.setService(j4,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(rd,this.rows,this.screenElement)),this._instantiationService.setService(zr,this._renderService),this._register(this._renderService.onRenderedViewportChange(o=>this._onRender.fire(o))),this.onResize(o=>this._renderService.resize(o.cols,o.rows)),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(Qf,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(id),this._instantiationService.setService(Hd,this._mouseService);let n=this._linkifier.value=this._register(this._instantiationService.createInstance(dd,this.screenElement));this.element.appendChild(t);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this._register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this._register(this.onBlur(()=>this._renderService.handleBlur())),this._register(this.onFocus(()=>this._renderService.handleFocus())),this._viewport=this._register(this._instantiationService.createInstance(Kf,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(o=>{super.scrollLines(o,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance(sd,this.element,this.screenElement,n)),this._instantiationService.setService(Qb,this._selectionService),this._register(this._selectionService.onRequestScrollLines(o=>this.scrollLines(o.amount,o.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(o=>this._renderService.handleSelectionChanged(o.start,o.end,o.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(o=>{this.textarea.value=o,this.textarea.focus(),this.textarea.select()})),this._register(Ft.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{var o;this._selectionService.refresh(),(o=this._viewport)==null||o.queueSync()})),this._register(this._instantiationService.createInstance(Xf,this.screenElement)),this._register(Ce(this.element,"mousedown",o=>this._selectionService.handleMouseDown(o))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(Yc,this)),this._register(this.optionsService.onSpecificOptionChange("screenReaderMode",o=>this._handleScreenReaderModeOptionChange(o))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance($c,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRuler",o=>{!this._overviewRulerRenderer&&o&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance($c,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(ed,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function r(o){var d,v,m,y,b;let u=e._mouseService.getMouseReportCoords(o,e.screenElement);if(!u)return!1;let f,p;switch(o.overrideType||o.type){case"mousemove":p=32,o.buttons===void 0?(f=3,o.button!==void 0&&(f=o.button<3?o.button:3)):f=o.buttons&1?0:o.buttons&4?1:o.buttons&2?2:3;break;case"mouseup":p=0,f=o.button<3?o.button:3;break;case"mousedown":p=1,f=o.button<3?o.button:3;break;case"wheel":if(e._customWheelEventHandler&&e._customWheelEventHandler(o)===!1)return!1;let S=o.deltaY;if(S===0||e.coreMouseService.consumeWheelEvent(o,(y=(m=(v=(d=e._renderService)==null?void 0:d.dimensions)==null?void 0:v.device)==null?void 0:m.cell)==null?void 0:y.height,(b=e._coreBrowserService)==null?void 0:b.dpr)===0)return!1;p=S<0?0:1,f=4;break;default:return!1}return p===void 0||f===void 0||f>4?!1:e.coreMouseService.triggerMouseEvent({col:u.col,row:u.row,x:u.x,y:u.y,button:f,action:p,ctrl:o.ctrlKey,alt:o.altKey,shift:o.shiftKey})}let n={mouseup:null,wheel:null,mousedrag:null,mousemove:null},l={mouseup:o=>(r(o),o.buttons||(this._document.removeEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.removeEventListener("mousemove",n.mousedrag)),this.cancel(o)),wheel:o=>(r(o),this.cancel(o,!0)),mousedrag:o=>{o.buttons&&r(o)},mousemove:o=>{o.buttons||r(o)}};this._register(this.coreMouseService.onProtocolChange(o=>{o?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(o)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),o&8?n.mousemove||(t.addEventListener("mousemove",l.mousemove),n.mousemove=l.mousemove):(t.removeEventListener("mousemove",n.mousemove),n.mousemove=null),o&16?n.wheel||(t.addEventListener("wheel",l.wheel,{passive:!1}),n.wheel=l.wheel):(t.removeEventListener("wheel",n.wheel),n.wheel=null),o&2?n.mouseup||(n.mouseup=l.mouseup):(this._document.removeEventListener("mouseup",n.mouseup),n.mouseup=null),o&4?n.mousedrag||(n.mousedrag=l.mousedrag):(this._document.removeEventListener("mousemove",n.mousedrag),n.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(Ce(t,"mousedown",o=>{if(o.preventDefault(),this.focus(),!(!this.coreMouseService.areMouseEventsActive||this._selectionService.shouldForceSelection(o)))return r(o),n.mouseup&&this._document.addEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.addEventListener("mousemove",n.mousedrag),this.cancel(o)})),this._register(Ce(t,"wheel",o=>{var u,f,p,d,v;if(!n.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(o)===!1)return!1;if(!this.buffer.hasScrollback){if(o.deltaY===0)return!1;if(e.coreMouseService.consumeWheelEvent(o,(d=(p=(f=(u=e._renderService)==null?void 0:u.dimensions)==null?void 0:f.device)==null?void 0:p.cell)==null?void 0:d.height,(v=e._coreBrowserService)==null?void 0:v.dpr)===0)return this.cancel(o,!0);let m=te.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(o.deltaY<0?"A":"B");return this.coreService.triggerDataEvent(m,!0),this.cancel(o,!0)}}},{passive:!1}))}refresh(e,t){var r;(r=this._renderService)==null||r.refreshRows(e,t)}updateCursorStyle(e){var t;(t=this._selectionService)!=null&&t.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t){this._viewport?this._viewport.scrollLines(e):super.scrollLines(e,t),this.refresh(0,this.rows-1)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){e&&this._viewport?this._viewport.scrollToLine(this.buffer.ybase,!0):this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}paste(e){N4(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}attachCustomWheelEventHandler(e){this._customWheelEventHandler=e}registerLinkProvider(e){return this._linkProviderService.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");let t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return this._selectionService?this._selectionService.hasSelection:!1}select(e,t,r){this._selectionService.setSelection(e,t,r)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(!(!this._selectionService||!this._selectionService.hasSelection))return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;(e=this._selectionService)==null||e.clearSelection()}selectAll(){var e;(e=this._selectionService)==null||e.selectAll()}selectLines(e,t){var r;(r=this._selectionService)==null||r.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;let t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(!0),!1;!t&&(e.key==="Dead"||e.key==="AltGraph")&&(this._unprocessedDeadKey=!0);let r=DE(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),r.type===3||r.type===2){let n=this.rows-1;return this.scrollLines(r.type===2?-n:n),this.cancel(e,!0)}if(r.type===1&&this.selectAll(),this._isThirdLevelShift(this.browser,e)||(r.cancel&&this.cancel(e,!0),!r.key)||e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.key.length===1&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)return!0;if(this._unprocessedDeadKey)return this._unprocessedDeadKey=!1,!0;if((r.key===te.ETX||r.key===te.CR)&&(this.textarea.value=""),this._onKey.fire({key:r.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(r.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey)return this.cancel(e,!0);this._keyDownHandled=!0}_isThirdLevelShift(e,t){let r=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return t.type==="keypress"?r:r&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,!(this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)&&(GE(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(e.which===null||e.which===void 0)t=e.keyCode;else if(e.which!==0&&e.charCode!==0)t=e.which;else return!1;return!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)?!1:(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,!0)}_inputEvent(e){if(e.data&&e.inputType==="insertText"&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){if(e===this.cols&&t===this.rows){this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure();return}super.resize(e,t)}_afterResize(e,t){var r;(r=this._charSizeService)==null||r.measure()}clear(){if(!(this.buffer.ybase===0&&this.buffer.y===0)){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(Et));this._onScroll.fire({position:this.buffer.ydisp}),this.refresh(0,this.rows-1)}}reset(){var t;this.options.rows=this.rows,this.options.cols=this.cols;let e=this._customKeyEventHandler;this._setup(),super.reset(),(t=this._selectionService)==null||t.reset(),this._decorationService.reset(),this._customKeyEventHandler=e,this.refresh(0,this.rows-1)}clearTextureAtlas(){var e;(e=this._renderService)==null||e.clearTextureAtlas()}_reportFocus(){var e;(e=this.element)!=null&&e.classList.contains("focus")?this.coreService.triggerDataEvent(te.ESC+"[I"):this.coreService.triggerDataEvent(te.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case 0:let t=this._renderService.dimensions.css.canvas.width.toFixed(0),r=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${te.ESC}[4;${r};${t}t`);break;case 1:let n=this._renderService.dimensions.css.cell.width.toFixed(0),l=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${te.ESC}[6;${l};${n}t`);break}}cancel(e,t){if(!(!this.options.cancelEvents&&!t))return e.preventDefault(),e.stopPropagation(),!1}};function GE(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var IE=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let r={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(r),t.dispose=()=>this._wrappedAddonDispose(r),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let r=0;r<this._addons.length;r++)if(this._addons[r]===e){t=r;break}if(t===-1)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},UE=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new qi)}translateToString(e,t,r){return this._line.translateToString(e,t,r)}},W3=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new UE(t)}getNullCell(){return new qi}},jE=class extends Oe{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new ce),this.onBufferChange=this._onBufferChange.event,this._normal=new W3(this._core.buffers.normal,"normal"),this._alternate=new W3(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}},qE=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,r=>t(r.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(r,n)=>t(r,n.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}},$E=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}},ZE=["cols","rows"],ir=0,WE=class extends Oe{constructor(e){super(),this._core=this._register(new PE(e)),this._addonManager=this._register(new IE),this._publicOptions={...this._core.options};let t=n=>this._core.options[n],r=(n,l)=>{this._checkReadonlyOptions(n),this._core.options[n]=l};for(let n in this._core.options){let l={get:t.bind(this,n),set:r.bind(this,n)};Object.defineProperty(this._publicOptions,n,l)}}_checkReadonlyOptions(e){if(ZE.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new qE(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new $E(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this._register(new jE(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any";break}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,synchronizedOutputMode:e.synchronizedOutput,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}input(e,t=!0){this._core.input(e,t)}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}attachCustomWheelEventHandler(e){this._core.attachCustomWheelEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,r){this._verifyIntegers(e,t,r),this._core.select(e,t,r)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write(`\r
227
+ `,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return{get promptLabel(){return Mf.get()},set promptLabel(e){Mf.set(e)},get tooMuchOutput(){return Df.get()},set tooMuchOutput(e){Df.set(e)}}}_verifyIntegers(...e){for(ir of e)if(ir===1/0||isNaN(ir)||ir%1!==0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(ir of e)if(ir&&(ir===1/0||isNaN(ir)||ir%1!==0||ir<0))throw new Error("This API only accepts positive integers")}};/**
228
+ * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
229
+ * @license MIT
230
+ *
231
+ * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
232
+ * @license MIT
233
+ *
234
+ * Originally forked from (with the author's permission):
235
+ * Fabrice Bellard's javascript vt100 for jslinux:
236
+ * http://bellard.org/jslinux/
237
+ * Copyright (c) 2011 Fabrice Bellard
238
+ */var FE=2,YE=1,KE=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){var m;if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:((m=this._terminal.options.overviewRuler)==null?void 0:m.width)||14,r=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(r.getPropertyValue("height")),l=Math.max(0,parseInt(r.getPropertyValue("width"))),o=window.getComputedStyle(this._terminal.element),u={top:parseInt(o.getPropertyValue("padding-top")),bottom:parseInt(o.getPropertyValue("padding-bottom")),right:parseInt(o.getPropertyValue("padding-right")),left:parseInt(o.getPropertyValue("padding-left"))},f=u.top+u.bottom,p=u.right+u.left,d=n-f,v=l-p-t;return{cols:Math.max(FE,Math.floor(v/e.css.cell.width)),rows:Math.max(YE,Math.floor(d/e.css.cell.height))}}};function XE({sessionId:e}){const t=B.useRef(null),r=B.useRef(null),n=B.useRef(null),[l,o]=B.useState(null);return B.useEffect(()=>{if(!t.current)return;const u=new WE({fontSize:11,fontFamily:"'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace",fontWeight:"400",letterSpacing:0,lineHeight:1.25,theme:{background:"#1e1e1e",foreground:"#e0e0e0",cursor:"rgba(255, 255, 255, 0.25)",cursorAccent:"transparent",selectionBackground:"rgba(255, 255, 255, 0.15)",selectionForeground:"#ffffff",black:"#1e1e1e",red:"#f47067",green:"#8ddb8c",yellow:"#e0af68",blue:"#6cb6ff",magenta:"#dcbdfb",cyan:"#76e3ea",white:"#e0e0e0",brightBlack:"#6e7681",brightRed:"#ff938a",brightGreen:"#a8e4a0",brightYellow:"#f0d399",brightBlue:"#96d0ff",brightMagenta:"#eedcff",brightCyan:"#a5f0f5",brightWhite:"#ffffff"},cursorBlink:!1,cursorInactiveStyle:"none",scrollback:5e3,allowProposedApi:!0}),f=new KE;u.loadAddon(f),u.open(t.current),f.fit(),r.current=u,n.current=f,u.onData(W=>{(p==null?void 0:p.readyState)===WebSocket.OPEN&&p.send(JSON.stringify({type:"terminal.input",data:W}))});let p=null,d=null,v=!1,m=1e3;function y(){(p==null?void 0:p.readyState)===WebSocket.OPEN&&p.send(JSON.stringify({type:"terminal.resize",cols:u.cols,rows:u.rows}))}function b(){v||(p=new WebSocket(sg(`/terminal?sessionId=${e}`)),p.onopen=()=>{m=1e3,y()},p.onmessage=W=>{try{const X=JSON.parse(W.data);X.type==="terminal.output"?u.write(X.data):X.type==="terminal.ready"?(o(!0),y()):(X.type==="terminal.none"||X.type==="terminal.exited")&&o(!1)}catch{}},p.onclose=()=>{p=null,!v&&(d=setTimeout(()=>{d=null,m=Math.min(m*1.5,1e4),b()},m))},p.onerror=()=>{})}b();const S=new ResizeObserver(()=>{f.fit(),y()});S.observe(t.current);let x=null;const T=()=>u.options.lineHeight*u.options.fontSize,M=W=>{W.touches.length===1&&(x=W.touches[0].clientY)},z=W=>{if(x===null||W.touches.length!==1)return;const X=x-W.touches[0].clientY,ne=Math.trunc(X/T());ne!==0&&(u.scrollLines(ne),x=W.touches[0].clientY),W.preventDefault()},O=()=>{x=null},P=t.current;return P.addEventListener("touchstart",M,{passive:!0}),P.addEventListener("touchmove",z,{passive:!1}),P.addEventListener("touchend",O),()=>{v=!0,d&&clearTimeout(d),S.disconnect(),P.removeEventListener("touchstart",M),P.removeEventListener("touchmove",z),P.removeEventListener("touchend",O),p&&p.close(),u.dispose(),r.current=null,n.current=null}},[e]),E.jsxs("div",{className:"terminal-tab",children:[E.jsx("div",{ref:t,className:"terminal-xterm",style:{display:l?"block":"none"}}),l===!1&&E.jsxs("div",{className:"terminal-empty",children:[E.jsx(ag,{size:36}),E.jsx("p",{children:"终端未启动"})]})]})}function QE({activeTab:e,topLevel:t,changes:r,directory:n,sessionId:l,previewPort:o,requestLs:u,requestFile:f,requestDiff:p,onFileContext:d}){const[v,m]=B.useState(!1);return B.useEffect(()=>{e==="terminal"&&m(!0)},[e]),E.jsx("div",{className:"main-view",children:E.jsxs("div",{className:"main-tab-area",children:[E.jsx("div",{className:"main-tab-panel",style:{display:e==="files"?"flex":"none"},children:E.jsx(Nb,{topLevel:t,requestLs:u,requestFile:f,onFileContext:d})}),E.jsx("div",{className:"main-tab-panel",style:{display:e==="changes"?"flex":"none"},children:E.jsx(Hb,{changes:r,requestFile:f,requestDiff:p,onFileContext:d})}),E.jsx("div",{className:"main-tab-panel",style:{display:e==="terminal"?"flex":"none"},children:v&&E.jsx(XE,{sessionId:l})}),E.jsx("div",{className:"main-tab-panel",style:{display:e==="preview"?"flex":"none"},children:E.jsx(Vb,{previewPort:o})}),e!=="files"&&e!=="changes"&&e!=="terminal"&&e!=="preview"&&E.jsx("iframe",{className:"main-view-iframe",src:e,title:"Agent View"})]})})}var F3=ig();function Y3(e){return e==null?"":e>=1e3?(e/1e3).toFixed(1)+"s":e+"ms"}function Lc(e){if(e==null)return"";if(typeof e=="string")return e.replace(/\s+/g," ").trim();try{return JSON.stringify(e).replace(/\s+/g," ").trim()}catch{return String(e).replace(/\s+/g," ").trim()}}function Mc(e){const t=e.trim().replaceAll("\\","/").replace(/\/+/g,"/");if(!t)return"";const r=t.length>1&&t.endsWith("/"),n=t.split("/").filter(Boolean);if(n.length===0)return t;if(n.length===1)return r?`${n[0]}/`:n[0];const l=n[n.length-1];return r?`${l}/`:l}function us(e,t){if(!e)return"";for(const r of t){const n=e[r];if(typeof n=="string"&&n.trim())return n.trim()}return""}function JE(e){if(!e)return"";const t=e.split(/\r?\n/),r=[];for(const l of t){const o=l.match(/^\*\*\* (?:Add|Delete|Update) File: (.+)$/);if(o){r.push(o[1].trim());continue}const u=l.match(/^\*\*\* Move to: (.+)$/);if(u&&r.length>0){r[r.length-1]=u[1].trim();continue}const f=l.match(/^[AMD] (.+)$/);f&&r.push(f[1].trim())}if(r.length===0)return Lc(e);const n=Mc(r[0]);return r.length===1?n:`${n} +${r.length-1}`}function ex(e){var t,r,n,l,o;if(e.status==="error")return e.error||"error";switch(e.name){case"apply_patch":return JE(e.title||us(e.args,["patchText"]));case"write":case"edit":case"multiedit":case"FileEdit":case"NotebookEdit":case"read":case"FileRead":{const u=Mc(e.title||us(e.args,["filePath","path","file_path","absolute_path"])),f=Number((t=e.args)==null?void 0:t.offset)||0,p=Number((r=e.args)==null?void 0:r.limit)||0;if(f||p){const d=p?f+p:"…";return`${u} L${f+1}–${d}`}return u}case"ls":case"glob":case"LS":case"GlobTool":return Mc(e.title||us(e.args,["filePath","path","dir_path","pattern"]));case"set_user_watch_project":{const u=((n=e.title)==null?void 0:n.replace(/^Set directory:\s*/,""))||"";return Mc(u||us(e.args,["directory"]))}case"codesearch":case"CodeSearch":return(((l=e.title)==null?void 0:l.replace(/^Code search:\s*/,""))||us(e.args,["query","search_term"])).trim();case"websearch":return(((o=e.title)==null?void 0:o.replace(/^Web search:\s*/,""))||us(e.args,["query"])).trim();case"grep":case"GrepTool":return us(e.args,["pattern","query","include"]);case"bash":case"Bash":return us(e.args,["command","description"])||Lc(e.title);default:return Lc(e.title)||Lc(e.args)}}const C5="anycode-conv-pos",E5="anycode-conv-size",K3="anycode-conv-floating",X3="anycode-conv-sidebar-w";function tx(){try{const e=JSON.parse(localStorage.getItem(C5)||"null"),t=JSON.parse(localStorage.getItem(E5)||"null");return{pos:e&&typeof e.x=="number"?e:{x:0,y:0},size:t&&typeof t.w=="number"?t:{w:220,h:280}}}catch{return{pos:{x:0,y:0},size:{w:220,h:280}}}}function Q3(){const e=window.innerWidth;return e>=1024?300:e>=600?250:150}function ix({sessionId:e,fileContext:t,chatHandlerRef:r,chatResetRef:n,chatBusy:l,sendMessage:o}){const[u,f]=B.useState([]),[p,d]=B.useState(""),[v,m]=B.useState(!1),[y,b]=B.useState(!1),[S,x]=B.useState(!1);B.useEffect(()=>{l!==void 0&&x(l)},[l]);const[T,M]=B.useState(!1),z=B.useRef(null),O=B.useRef(null);B.useEffect(()=>{const j=z.current;if(!j)return;const ie=new ResizeObserver(([ge])=>{M(ge.contentRect.width<200)});return ie.observe(j),()=>ie.disconnect()},[]);const P=B.useCallback(()=>{var j;F3.flushSync(()=>b(!1)),F3.flushSync(()=>b(!0)),(j=O.current)==null||j.focus()},[]),[W,X]=B.useState(()=>{try{return localStorage.getItem(K3)==="true"}catch{return!1}}),ne=B.useCallback(()=>{X(j=>{const ie=!j;try{localStorage.setItem(K3,String(ie))}catch{}return ie})},[]),_e=B.useRef(!1),[oe,Ee]=B.useState(()=>{try{const j=localStorage.getItem(X3);if(j)return _e.current=!0,Math.max(120,Math.min(600,Number(j)))}catch{}return Q3()});B.useEffect(()=>{if(_e.current)return;const j=()=>Ee(Q3());return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[]);const de=B.useRef(null),J=B.useCallback(j=>{de.current={startX:j,origW:oe}},[oe]),I=B.useCallback(j=>{if(!de.current)return;const ie=de.current.startX-j,ge=Math.max(120,Math.min(600,de.current.origW+ie));Ee(ge)},[]),K=B.useCallback(()=>{de.current&&(_e.current=!0,Ee(j=>{try{localStorage.setItem(X3,String(j))}catch{}return j})),de.current=null},[]),re=B.useCallback(j=>{j.preventDefault(),document.body.style.userSelect="none",J(j.clientX);const ie=we=>I(we.clientX),ge=()=>{document.body.style.userSelect="",K(),window.removeEventListener("mousemove",ie),window.removeEventListener("mouseup",ge)};window.addEventListener("mousemove",ie),window.addEventListener("mouseup",ge)},[J,I,K]),R=B.useCallback(j=>{document.body.style.userSelect="none",J(j.touches[0].clientX);const ie=we=>{we.preventDefault(),I(we.touches[0].clientX)},ge=()=>{document.body.style.userSelect="",K(),window.removeEventListener("touchmove",ie),window.removeEventListener("touchend",ge)};window.addEventListener("touchmove",ie,{passive:!1}),window.addEventListener("touchend",ge)},[J,I,K]),$=B.useRef(tx()),[q,me]=B.useState($.current.pos),[ye,A]=B.useState($.current.size);B.useEffect(()=>{W&&localStorage.setItem(C5,JSON.stringify(q))},[q,W]),B.useEffect(()=>{W&&localStorage.setItem(E5,JSON.stringify(ye))},[ye,W]);const N=B.useRef(null),Z=B.useRef(null),se=B.useRef(0),[ue,le]=B.useState(0),fe=B.useRef(null),Pe=B.useRef(new Map);B.useEffect(()=>{e&&(f([]),x(!1),Pe.current.clear(),(async()=>{try{const j=await fetch(`${ms()}/api/messages?sessionId=${encodeURIComponent(e)}`);if(!j.ok)return;const ie=await j.json();if(!Array.isArray(ie)||ie.length===0)return;const ge=[];for(const we of ie)if(we.role==="user")ge.push({role:"user",text:we.text||""});else{const Te=[];if(Array.isArray(we.parts))for(const $e of we.parts)$e.type==="text"?Te.push({kind:"text",content:$e.content||""}):$e.type==="tool"?Te.push({kind:"tool",id:"",name:$e.tool||"",status:"done",title:$e.content||""}):$e.type==="thinking"&&Te.push({kind:"thinking",content:$e.content||""});Te.length>0&&ge.push({role:"assistant",parts:Te})}ge.length>0&&f(ge)}catch{}})())},[e]);const Me=B.useRef(!0);B.useEffect(()=>{const j=fe.current;if(!j)return;const ie=()=>{const ge=j.scrollHeight-j.scrollTop-j.clientHeight<30;Me.current=ge};return j.addEventListener("scroll",ie,{passive:!0}),()=>j.removeEventListener("scroll",ie)},[]),B.useEffect(()=>{var j;Me.current&&((j=fe.current)==null||j.scrollTo(0,fe.current.scrollHeight))},[u]),B.useEffect(()=>{const j=fe.current;if(!j)return;const ie=new ResizeObserver(()=>{Me.current&&j.scrollTo(0,j.scrollHeight)});return ie.observe(j),()=>ie.disconnect()},[]),B.useEffect(()=>{if(!v){le(0);return}const j=setInterval(()=>le(Math.floor((Date.now()-se.current)/1e3)),100);return()=>clearInterval(j)},[v]);const vt=B.useCallback(j=>{f(ie=>{const ge=ie[ie.length-1];return ge&&ge.role==="assistant"?[...ie.slice(0,-1),{...ge,parts:[...ge.parts,j]}]:[...ie,{role:"assistant",parts:[j]}]})},[]),dt=B.useCallback((j,ie)=>{f(ge=>{const we=ge[ge.length-1];if(!we||we.role!=="assistant")return ge;const Te=[...we.parts];for(let $e=Te.length-1;$e>=0;$e--)if(Te[$e].kind===j){Te[$e]=ie(Te[$e]);break}return[...ge.slice(0,-1),{...we,parts:Te}]})},[]),ot=B.useCallback((j,ie)=>{f(ge=>{var Es;const we=ge[ge.length-1];if(!we||we.role!=="assistant")return ge;const Te=[...we.parts],$e=Pe.current.get(j);return $e!=null&&((Es=Te[$e])==null?void 0:Es.kind)==="tool"&&(Te[$e]=ie(Te[$e])),[...ge.slice(0,-1),{...we,parts:Te}]})},[]),Ne=B.useCallback(j=>{switch(j.type){case"thinking.start":vt({kind:"thinking",content:""});break;case"thinking.delta":dt("thinking",ie=>({...ie,content:ie.content+(j.thinkingContent||"")}));break;case"thinking.end":dt("thinking",ie=>({...ie,duration:j.thinkingDuration}));break;case"text.delta":f(ie=>{const ge=ie[ie.length-1];if(ge&&ge.role==="assistant"){const we=[...ge.parts],Te=we[we.length-1];return(Te==null?void 0:Te.kind)==="text"?we[we.length-1]={...Te,content:Te.content+(j.content||"")}:we.push({kind:"text",content:j.content||""}),[...ie.slice(0,-1),{...ge,parts:we}]}return[...ie,{role:"assistant",parts:[{kind:"text",content:j.content||""}]}]});break;case"tool.start":{const ie=j.toolCallId||"";if(ie&&Pe.current.has(ie))ot(ie,ge=>({...ge,...j.toolTitle!=null?{title:j.toolTitle}:{}}));else{const ge={kind:"tool",id:ie,name:j.toolName||"",args:j.toolArgs,title:j.toolTitle,status:"running"};f(we=>{const Te=we[we.length-1];if(Te&&Te.role==="assistant"){const $e=[...Te.parts,ge];return ie&&Pe.current.set(ie,$e.length-1),[...we.slice(0,-1),{...Te,parts:$e}]}return ie&&Pe.current.set(ie,0),[...we,{role:"assistant",parts:[ge]}]})}break}case"tool.done":j.toolCallId&&ot(j.toolCallId,ie=>({...ie,status:"done",duration:j.toolDuration,title:j.toolTitle}));break;case"tool.error":j.toolCallId&&ot(j.toolCallId,ie=>({...ie,status:"error",duration:j.toolDuration,error:j.error}));break;case"message.done":break;case"error":vt({kind:"error",message:j.error||"unknown error"});break;case"done":x(!1);break}},[vt,dt,ot]);B.useEffect(()=>{if(r)return r.current=j=>{switch(j.type){case"chat.userMessage":Pe.current.clear(),f(ie=>[...ie,{role:"user",text:j.text},{role:"assistant",parts:[]}]),x(!0);break;case"chat.event":j.event&&Ne(j.event);break;case"chat.done":x(!1);break}},()=>{r.current=void 0}},[Ne,r]),B.useEffect(()=>{if(n)return n.current=()=>{x(!1)},()=>{n.current=void 0}},[n]);const Ie=B.useCallback(()=>{const j=p.trim();if(!j||S)return;d(""),x(!0);const ie={type:"chat.send",message:j};t&&(ie.fileContext=t),o(ie)},[p,S,t,o]),Ai=B.useCallback(()=>{o({type:"chat.stop"})},[o]),ai=j=>{j.key==="Enter"&&!j.shiftKey&&!j.nativeEvent.isComposing&&(j.preventDefault(),Ie())},Gl=()=>{m(!0),se.current=Date.now()},ca=()=>{m(!1),Date.now()-se.current<300},ua=j=>{j.preventDefault(),Gl();const ie=()=>{ca(),window.removeEventListener("mouseup",ie)};window.addEventListener("mouseup",ie)},ha=j=>{j.preventDefault(),Gl();const ie=()=>{ca(),window.removeEventListener("touchend",ie)};window.addEventListener("touchend",ie)},on=B.useCallback((j,ie)=>{N.current={startX:j,startY:ie,origX:q.x,origY:q.y}},[q]),Il=B.useCallback((j,ie)=>{N.current&&me({x:N.current.origX+j-N.current.startX,y:N.current.origY+ie-N.current.startY})},[]),Ul=B.useCallback(()=>{N.current=null},[]),Jt=j=>{j.preventDefault(),on(j.clientX,j.clientY);const ie=we=>Il(we.clientX,we.clientY),ge=()=>{Ul(),window.removeEventListener("mousemove",ie),window.removeEventListener("mouseup",ge)};window.addEventListener("mousemove",ie),window.addEventListener("mouseup",ge)},fu=j=>{const ie=j.touches[0];on(ie.clientX,ie.clientY);const ge=Te=>{Te.preventDefault(),Il(Te.touches[0].clientX,Te.touches[0].clientY)},we=()=>{Ul(),window.removeEventListener("touchmove",ge),window.removeEventListener("touchend",we)};window.addEventListener("touchmove",ge,{passive:!1}),window.addEventListener("touchend",we)},fa=B.useRef("bl"),da=B.useCallback((j,ie,ge)=>{fa.current=ge,Z.current={startX:j,startY:ie,origW:ye.w,origH:ye.h}},[ye]),ws=B.useCallback((j,ie)=>{if(!Z.current)return;const ge=j-Z.current.startX,we=ie-Z.current.startY,Te=fa.current==="bl"?-ge:ge;A({w:Math.max(160,Math.min(600,Z.current.origW+Te)),h:Math.max(130,Math.min(800,Z.current.origH+we))})},[]),jl=B.useCallback(()=>{Z.current=null},[]),pa=j=>ie=>{ie.preventDefault(),ie.stopPropagation(),da(ie.clientX,ie.clientY,j);const ge=Te=>ws(Te.clientX,Te.clientY),we=()=>{jl(),window.removeEventListener("mousemove",ge),window.removeEventListener("mouseup",we)};window.addEventListener("mousemove",ge),window.addEventListener("mouseup",we)},ql=j=>ie=>{ie.stopPropagation();const ge=ie.touches[0];da(ge.clientX,ge.clientY,j);const we=$e=>{$e.preventDefault(),ws($e.touches[0].clientX,$e.touches[0].clientY)},Te=()=>{jl(),window.removeEventListener("touchmove",we),window.removeEventListener("touchend",Te)};window.addEventListener("touchmove",we,{passive:!1}),window.addEventListener("touchend",Te)},du=(j,ie)=>{switch(j.kind){case"thinking":return E.jsxs("details",{className:"co-thinking",children:[E.jsxs("summary",{children:["💭 Thinking ",E.jsx("span",{className:"co-thinking-dur",children:Y3(j.duration)||"…"})]}),E.jsx("div",{className:"co-thinking-content",children:j.content})]},ie);case"tool":const ge=ex(j);return E.jsxs("div",{className:`co-tool ${j.status}`,title:ge,children:[E.jsx("span",{className:"co-tool-icon",children:j.status==="running"?"⏳":j.status==="done"?"✓":"✗"}),E.jsx("span",{className:"co-tool-name",children:j.name}),E.jsx("span",{className:"co-tool-info",children:ge}),j.duration!=null&&E.jsx("span",{className:"co-tool-dur",children:Y3(j.duration)})]},ie);case"text":return E.jsx("div",{className:"co-text",children:j.content},ie);case"error":return E.jsxs("div",{className:"co-error",children:["⚠ ",j.message]},ie)}},Cs=W?"conversation-panel conversation-floating":"conversation-panel conversation-sidebar",ei=W?{transform:`translate(${q.x}px, ${q.y}px)`,width:ye.w,height:ye.h}:{width:oe};return E.jsxs("div",{className:Cs,style:ei,children:[!W&&E.jsx("div",{className:"co-sidebar-border",onMouseDown:re,onTouchStart:R}),E.jsxs("div",{className:"conversation-header",...W?{onMouseDown:Jt,onTouchStart:fu}:{},children:[W&&E.jsx("div",{className:"drag-grip"}),E.jsxs("div",{className:"conversation-header-content",children:[E.jsx(a7,{})," 对话",E.jsx("button",{className:"co-float-toggle",onClick:ne,title:W?"固定到侧边栏":"浮动窗口",children:W?E.jsx(l7,{}):E.jsx(o7,{})})]})]}),E.jsxs("div",{className:"conversation-messages",ref:fe,onClick:P,children:[u.length===0&&E.jsx("div",{className:"co-text",style:{color:"var(--color-text-dim)"},children:"你好!告诉我你想做什么"}),u.map((j,ie)=>j.role==="user"?E.jsx("div",{className:"co-user",children:j.text},ie):E.jsx("div",{className:"co-response",children:j.parts.map(du)},ie))]}),t&&E.jsx("div",{className:"co-file-context",children:E.jsxs("span",{className:"co-file-context-text",children:[t.file.split("/").pop()," L",t.lines[0],"–",t.lines[t.lines.length-1]]})}),E.jsx("div",{className:`conversation-input${T&&y?" conversation-input--stacked":""}`,ref:z,children:y?T?E.jsxs(E.Fragment,{children:[E.jsx("input",{ref:O,type:"text",value:S?"":p,onChange:j=>d(j.target.value),onKeyDown:ai,placeholder:S?"正在处理中...":"输入消息...",autoFocus:!0,disabled:S}),E.jsxs("div",{className:"text-buttons-row",children:[E.jsx("button",{className:"text-close-btn",onClick:()=>b(!1),children:E.jsx(hf,{})}),S?E.jsx("button",{className:"text-send-btn text-stop-btn",onClick:Ai,children:E.jsx(tm,{size:18})}):E.jsx("button",{className:"text-send-btn",onClick:Ie,children:E.jsx(em,{})})]})]}):E.jsxs(E.Fragment,{children:[E.jsx("input",{ref:O,type:"text",value:S?"":p,onChange:j=>d(j.target.value),onKeyDown:ai,placeholder:S?"正在处理中...":"输入消息...",autoFocus:!0,disabled:S}),S?E.jsx("button",{className:"text-send-btn text-stop-btn",onClick:Ai,children:E.jsx(tm,{size:18})}):E.jsx("button",{className:"text-send-btn",onClick:Ie,children:E.jsx(em,{})}),E.jsx("button",{className:"text-close-btn",onClick:()=>b(!1),children:E.jsx(hf,{})})]}):E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"mic-wrapper",children:[v&&E.jsxs("div",{className:"mic-tooltip",children:["录音中 ",ue,"s"]}),E.jsx("button",{className:`mic-btn ${v?"recording":""}`,onMouseDown:ua,onTouchStart:ha,children:E.jsx(t7,{})})]}),E.jsx("button",{className:"text-toggle-btn",onClick:()=>b(!0),children:E.jsx(i7,{})})]})}),W&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"co-resize-grip co-resize-bl",onMouseDown:pa("bl"),onTouchStart:ql("bl")}),E.jsx("div",{className:"co-resize-grip co-resize-br",onMouseDown:pa("br"),onTouchStart:ql("br")})]})]})}function rx(e){if(e.directory){const t=e.directory.split("/");return t[t.length-1]||e.directory}return e.title?e.title:e.isDefault?"默认":"新窗口"}function sx({onClose:e}){const[t,r]=B.useState(vs()||""),[n,l]=B.useState(!1),[o,u]=B.useState(!1),f=()=>{_d(t.trim()),l(!1),u(!0),setTimeout(()=>u(!1),1500)};return E.jsx("div",{className:"settings-overlay",onClick:e,children:E.jsxs("div",{className:"settings-modal",onClick:p=>p.stopPropagation(),children:[E.jsxs("div",{className:"settings-header",children:[E.jsx("span",{className:"settings-title",children:"设置"}),E.jsx("button",{className:"settings-close",onClick:e,children:E.jsx(hf,{size:12})})]}),E.jsx("div",{className:"settings-body",children:E.jsxs("div",{className:"settings-row",children:[E.jsx("label",{className:"settings-label",children:"服务器地址"}),n?E.jsxs("div",{className:"settings-edit-row",children:[E.jsx("input",{className:"settings-input",type:"url",value:t,onChange:p=>r(p.target.value),onKeyDown:p=>p.key==="Enter"&&f(),autoFocus:!0}),E.jsx("button",{className:"settings-btn",onClick:f,children:"保存"}),E.jsx("button",{className:"settings-btn settings-btn-dim",onClick:()=>{l(!1),r(vs()||"")},children:"取消"})]}):E.jsxs("div",{className:"settings-value-row",children:[E.jsx("span",{className:"settings-value",children:vs()||"(未配置)"}),E.jsx("button",{className:"settings-btn",onClick:()=>l(!0),children:"修改"})]}),o&&E.jsx("span",{className:"settings-saved",children:"✓ 已保存"})]})})]})})}function nx({windows:e,activeWindowId:t,onSwitch:r,onCreate:n,onDelete:l,creating:o=!1}){const[u,f]=B.useState(null),[p,d]=B.useState(null),[v,m]=B.useState(!1),y=B.useRef(null),b=B.useRef(new Map);B.useEffect(()=>{if(!u)return;const x=T=>{y.current&&!y.current.contains(T.target)&&f(null)};return document.addEventListener("mousedown",x),document.addEventListener("touchstart",x),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("touchstart",x)}},[u]);const S=B.useCallback(x=>{x.id===t?x.isDefault||f(T=>{if(T===x.id)return null;const M=b.current.get(x.id);if(M){const z=M.getBoundingClientRect();d({x:z.left+z.width/2,y:z.bottom})}return x.id}):(f(null),r(x.id))},[t,r]);return E.jsxs(E.Fragment,{children:[E.jsxs("nav",{className:"taskbar",ref:y,children:[E.jsx("div",{className:"taskbar-items",children:e.map(x=>E.jsx("button",{ref:T=>{T&&b.current.set(x.id,T)},className:`taskbar-item ${x.id===t?"active":""}`,onClick:()=>S(x),children:E.jsx("span",{className:"taskbar-label",children:rx(x)})},x.id))}),E.jsx("button",{className:"taskbar-add",onClick:n,disabled:o,title:"新建窗口",children:o?"…":"+"}),E.jsx("button",{className:"taskbar-gear",onClick:()=>m(!0),title:"设置",children:E.jsx(c7,{size:12})}),u&&p&&E.jsx("div",{className:"taskbar-popover",style:{left:p.x,top:p.y},children:E.jsx("button",{className:"taskbar-popover-btn",onClick:()=>{const x=u;f(null),l(x)},children:"关闭窗口"})})]}),v&&E.jsx(sx,{onClose:()=>m(!1)})]})}function ax({sessionId:e,visible:t,onWindowsChanged:r}){const[n,l]=B.useState(()=>{try{return localStorage.getItem(`anycode:tab:${e}`)||"files"}catch{return"files"}});B.useEffect(()=>{try{localStorage.setItem(`anycode:tab:${e}`,n)}catch{}},[e,n]);const[o,u]=B.useState(""),[f,p]=B.useState([]),[d,v]=B.useState([]),[m,y]=B.useState(null),[b,S]=B.useState(null),[x,T]=B.useState(!1),M=B.useRef(void 0),z=B.useRef(void 0),O=B.useRef(null),P=B.useCallback(_e=>{var oe;(oe=O.current)==null||oe.send(_e)},[]);B.useEffect(()=>{let _e=!1,oe=1e3,Ee;function de(){if(_e)return;const J=e7(e);O.current=J,J.onopen=()=>{var I;oe=1e3,(I=z.current)==null||I.call(z),r()},J.onmessage=I=>{var K,re;I.type==="state"?(I.directory&&u(I.directory),p(I.topLevel||[]),v(I.changes||[]),I.previewPort!==void 0&&S(I.previewPort),I.chatBusy!==void 0&&T(I.chatBusy)):I.type==="windows.updated"?r():(K=I.type)!=null&&K.startsWith("chat.")&&((re=M.current)==null||re.call(M,I))},J.onclose=()=>{O.current=null,_e||(Ee=setTimeout(()=>{oe=Math.min(oe*1.5,1e4),de()},oe))}}return de(),()=>{var J;_e=!0,clearTimeout(Ee),(J=O.current)==null||J.close(),O.current=null}},[e,r]);const W=B.useCallback(async _e=>{try{const oe=await fetch(`${ms()}/api/sessions/${e}/ls?path=${encodeURIComponent(_e)}`);return oe.ok?(await oe.json()).entries??[]:[]}catch{return[]}},[e]),X=B.useCallback(async _e=>{try{const oe=await fetch(`${ms()}/api/sessions/${e}/file?path=${encodeURIComponent(_e)}`);return oe.ok?(await oe.json()).content??null:null}catch{return null}},[e]),ne=B.useCallback(async _e=>{try{const oe=await fetch(`${ms()}/api/sessions/${e}/diff?path=${encodeURIComponent(_e)}`);return oe.ok?await oe.json():{added:[],removed:[]}}catch{return{added:[],removed:[]}}},[e]);return E.jsxs("div",{className:"app-content",style:{display:t?"flex":"none"},children:[o&&E.jsx("div",{className:"main-path-bar",children:E.jsx("span",{className:"main-path-text",children:o.split("/").filter(Boolean).pop()||o})}),E.jsxs("div",{className:"app-middle",children:[E.jsx("div",{className:"app-main",children:o?E.jsx(QE,{activeTab:n,topLevel:f,changes:d,directory:o,sessionId:e,previewPort:b,requestLs:W,requestFile:X,requestDiff:ne,onFileContext:y}):E.jsx("div",{className:"main-view",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsxs("div",{style:{textAlign:"center"},children:[E.jsx("p",{style:{color:"var(--color-text-dim)",fontSize:"14px",opacity:.4,fontWeight:500},children:"通过对话面板"}),E.jsx("p",{style:{color:"var(--color-text-dim)",fontSize:"11px",opacity:.3,marginTop:"6px"},children:"打开一个项目并开始"})]})})}),E.jsx(ix,{sessionId:e,fileContext:m,chatHandlerRef:M,chatResetRef:z,chatBusy:x,sendMessage:P})]}),E.jsx(u7,{activeTab:n,onTabChange:l,changeCount:d.length})]})}function x5(){const e=location.origin;return e.startsWith("capacitor://")||e.startsWith("ionic://")}function lx(){return x5()&&!Qv()}function ox(){var t;if(!x5())return;const e=document.querySelector('meta[name="viewport"]');e&&!((t=e.getAttribute("content"))!=null&&t.includes("viewport-fit"))&&e.setAttribute("content",e.getAttribute("content")+", viewport-fit=cover")}function cx({onDone:e}){const[t,r]=B.useState(vs()||"https://"),[n,l]=B.useState("idle"),[o,u]=B.useState("");B.useEffect(()=>{fetch("https://captive.apple.com").catch(()=>{})},[]);const f=async()=>{const p=t.trim();if(!(!p||p==="https://"||p==="http://")){l("connecting"),u(""),_d(p);try{const d=await fetch(`${p}/api/status`,{signal:AbortSignal.timeout(1e4)});if(!d.ok)throw new Error(`HTTP ${d.status}`);e()}catch(d){l("error"),u(d.message||"无法连接到服务器")}}};return E.jsx("div",{className:"app",style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"32px"},children:E.jsxs("div",{style:{width:"100%",maxWidth:"360px",textAlign:"center"},children:[E.jsx("h2",{style:{color:"var(--color-text)",fontSize:"20px",fontWeight:600,marginBottom:"8px"},children:"AnyCode"}),E.jsx("p",{style:{color:"var(--color-text-dim)",fontSize:"13px",marginBottom:"24px",opacity:.6},children:"输入服务器地址以连接"}),E.jsx("input",{type:"url",value:t,onChange:p=>r(p.target.value),placeholder:"https://your-server.com",onKeyDown:p=>p.key==="Enter"&&f(),disabled:n==="connecting",style:{width:"100%",padding:"12px 16px",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.15)",background:"rgba(255,255,255,0.06)",color:"var(--color-text)",fontSize:"15px",outline:"none",boxSizing:"border-box",opacity:n==="connecting"?.5:1},autoFocus:!0}),n==="error"&&E.jsx("p",{style:{color:"var(--red, #f47067)",fontSize:"12px",marginTop:"8px"},children:o}),E.jsx("button",{onClick:f,disabled:n==="connecting",style:{width:"100%",marginTop:"16px",padding:"12px",borderRadius:"10px",border:"none",background:"var(--blue, #6cb6ff)",color:"#fff",fontSize:"15px",fontWeight:600,cursor:"pointer",opacity:n==="connecting"?.6:1},children:n==="connecting"?"连接中…":n==="error"?"重试":"连接"})]})})}function ux(){const[e,t]=B.useState(!lx()),[r,n]=B.useState(null),[l,o]=B.useState([]),[u,f]=B.useState(null);B.useEffect(()=>{ox()},[]);const p=B.useCallback(async()=>{try{const S=await fetch(`${ms()}/api/windows`);if(S.ok){const x=await S.json();o(x)}}catch{}},[]);B.useEffect(()=>{e&&(async()=>{try{const x=await(await fetch(`${ms()}/api/sessions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})})).json();if(x.error)throw new Error(x.error);const T=localStorage.getItem("anycode:lastWindow");n(T||x.id),p()}catch(S){f(S.message)}})()},[p,e]),B.useEffect(()=>{if(!(!r||l.length===0)&&!l.some(S=>S.id===r)){const S=l.find(x=>x.isDefault)||l[0];if(S){n(S.id);try{localStorage.setItem("anycode:lastWindow",S.id)}catch{}}}},[r,l]);const d=B.useCallback(S=>{n(S);try{localStorage.setItem("anycode:lastWindow",S)}catch{}},[]),[v,m]=B.useState(!1),y=B.useCallback(async()=>{if(!v){m(!0);try{const x=await(await fetch(`${ms()}/api/windows`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})})).json();if(x.error)return;await p(),n(x.id);try{localStorage.setItem("anycode:lastWindow",x.id)}catch{}}catch{}finally{m(!1)}}},[p,v]),b=B.useCallback(async S=>{try{if(!(await fetch(`${ms()}/api/windows/${S}`,{method:"DELETE"})).ok)return;if(S===r){const T=l.filter(z=>z.id!==S),M=T.find(z=>z.isDefault)||T[0];M&&n(M.id)}p()}catch{}},[r,l,p]);return e?u?E.jsxs("div",{className:"app",style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"16px"},children:[E.jsxs("p",{style:{color:"var(--red)",fontSize:"14px"},children:["连接失败: ",u]}),E.jsx("button",{onClick:()=>{_d(""),location.reload()},style:{padding:"8px 20px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.15)",background:"rgba(255,255,255,0.08)",color:"var(--color-text-dim)",fontSize:"13px",cursor:"pointer"},children:"重新配置服务器"})]}):r?E.jsxs("div",{className:"app-root",children:[E.jsx(nx,{windows:l,activeWindowId:r,onSwitch:d,onCreate:y,onDelete:b,creating:v}),l.map(S=>E.jsx(ax,{sessionId:S.id,visible:S.id===r,onWindowsChanged:p},S.id))]}):E.jsx("div",{className:"app",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"14px"},children:"连接服务器中…"})}):E.jsx(cx,{onDone:()=>t(!0)})}Xv.createRoot(document.getElementById("root")).render(E.jsx(B.StrictMode,{children:E.jsx(ux,{})}));