@moritzwilksch/diffle 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/client/assets/{angular-html-CeRKnFwb.js → angular-html-DCs801AK.js} +1 -1
- package/dist/client/assets/{angular-ts-BC1svU7k.js → angular-ts-BWhN0w8_.js} +1 -1
- package/dist/client/assets/{apl-DLcHgTK9.js → apl-Djz0ErNW.js} +1 -1
- package/dist/client/assets/{astro-DUQI7urt.js → astro-MWC3rLUN.js} +1 -1
- package/dist/client/assets/{blade-BhnU1iv3.js → blade-B8pycf1w.js} +1 -1
- package/dist/client/assets/{c-CMu5jIVX.js → c-B-Jcxs--.js} +1 -1
- package/dist/client/assets/{chapel-CMnZt-JB.js → chapel-CuJCeKLf.js} +1 -1
- package/dist/client/assets/{cobol-DO9od4KA.js → cobol-DgquORVs.js} +1 -1
- package/dist/client/assets/{coffee-DsKgUUf6.js → coffee-ECOaIhT5.js} +1 -1
- package/dist/client/assets/{cpp-CN4unzDm.js → cpp-CqnSivHO.js} +1 -1
- package/dist/client/assets/{crystal-BhuvT6sA.js → crystal-Cs7ZYBfN.js} +1 -1
- package/dist/client/assets/{css-CfjdrINS.js → css-p0qk9Lci.js} +1 -1
- package/dist/client/assets/{edge-CL2Epm4e.js → edge-mMULBvUs.js} +1 -1
- package/dist/client/assets/{elixir-Doe2U_Cg.js → elixir-VIosceup.js} +1 -1
- package/dist/client/assets/{elm-CoINdkUq.js → elm-C3kw87lA.js} +1 -1
- package/dist/client/assets/{erb-BCn0RM4V.js → erb-DZjmloke.js} +1 -1
- package/dist/client/assets/{git-rebase-CNmD4c0v.js → git-rebase-qAMhScBw.js} +1 -1
- package/dist/client/assets/{glimmer-js-CD3Ia2qL.js → glimmer-js-DJdA7CEB.js} +1 -1
- package/dist/client/assets/{glimmer-ts-BxOVYEZy.js → glimmer-ts-6xtV4JQb.js} +1 -1
- package/dist/client/assets/{glsl-DK5AsFLJ.js → glsl-BRqSJ3dN.js} +1 -1
- package/dist/client/assets/{graphql-DyGyEESP.js → graphql-nm_X3Hg7.js} +1 -1
- package/dist/client/assets/{hack-BQ2MAuv0.js → hack-CQ7j-SLC.js} +1 -1
- package/dist/client/assets/{haml-BOKZhUBe.js → haml-nw30ZCFe.js} +1 -1
- package/dist/client/assets/{handlebars-BL4cycpI.js → handlebars-CbbUPaYB.js} +1 -1
- package/dist/client/assets/{html-DG16Bgvg.js → html-C-E44L0y.js} +1 -1
- package/dist/client/assets/{html-derivative-CHcF4Lpp.js → html-derivative-DTCnXXkR.js} +1 -1
- package/dist/client/assets/{http-usrmfqDt.js → http-Cg4Jw-kz.js} +1 -1
- package/dist/client/assets/{hurl-C4JjMlIM.js → hurl-CITbwYVL.js} +1 -1
- package/dist/client/assets/{index-BkdPjT98.js → index-BdA8MWLx.js} +6 -6
- package/dist/client/assets/{java-ibBouxxn.js → java-DNT_EPVr.js} +1 -1
- package/dist/client/assets/{javascript-BZRzf92u.js → javascript-DBrMK690.js} +1 -1
- package/dist/client/assets/{jinja-9QDSl6my.js → jinja-DqPnwJo-.js} +1 -1
- package/dist/client/assets/{jison-BHG-979q.js → jison-A5ieRkCJ.js} +1 -1
- package/dist/client/assets/{json-DwElmnQB.js → json-BolWLdCd.js} +1 -1
- package/dist/client/assets/{jsx-rBgzwRBS.js → jsx-CkIysgAJ.js} +1 -1
- package/dist/client/assets/{julia-CgiS75su.js → julia-jBzm267c.js} +1 -1
- package/dist/client/assets/{just-De3y7xb2.js → just-cr8UASbW.js} +1 -1
- package/dist/client/assets/{latex-Bk1wP9Tv.js → latex-DcdC0vak.js} +1 -1
- package/dist/client/assets/{liquid-CLTik2y8.js → liquid-BBR6eAOA.js} +1 -1
- package/dist/client/assets/{lua-B-AqNzj_.js → lua-CnUVAA9w.js} +1 -1
- package/dist/client/assets/{marko-DgFRqfls.js → marko-BxH5DxB_.js} +1 -1
- package/dist/client/assets/{mdc-BnZoJsPK.js → mdc-CVc0_tcy.js} +1 -1
- package/dist/client/assets/{nginx-DcKwYiIR.js → nginx-B1DQmN_N.js} +1 -1
- package/dist/client/assets/{nim-B7gmjUTZ.js → nim-C3rsdIhh.js} +1 -1
- package/dist/client/assets/{org-4KQ2g826.js → org-DICsbmv1.js} +1 -1
- package/dist/client/assets/{perl-CXjWWsgb.js → perl-B-6tgIaz.js} +1 -1
- package/dist/client/assets/{php-Dx7gazwr.js → php-CSZf1YiM.js} +1 -1
- package/dist/client/assets/{pug-DKbUPHHY.js → pug-BvQ97HKe.js} +1 -1
- package/dist/client/assets/{qml-BI-uhfIo.js → qml-B_gSWBeZ.js} +1 -1
- package/dist/client/assets/{r-oD9rwg3Q.js → r-Dbh43Ti8.js} +1 -1
- package/dist/client/assets/{razor-DqrY60Ia.js → razor-Dks3_W39.js} +1 -1
- package/dist/client/assets/{regexp-_wPM2tSe.js → regexp-cZE9On7Z.js} +1 -1
- package/dist/client/assets/{rst-CCjc99TE.js → rst-Cgn-1Zks.js} +1 -1
- package/dist/client/assets/{ruby-D4Ot4GwF.js → ruby-DkGM-R-6.js} +1 -1
- package/dist/client/assets/{sas-CohVHUYB.js → sas-D6c_PGbn.js} +1 -1
- package/dist/client/assets/{scss-BUvWF1R-.js → scss-BKxWJNFh.js} +1 -1
- package/dist/client/assets/{shellscript-BYChvHJY.js → shellscript-Bcg5lXvK.js} +1 -1
- package/dist/client/assets/{shellsession-CwfOGr4q.js → shellsession-Bf400BZo.js} +1 -1
- package/dist/client/assets/{soy-DDZl6fCd.js → soy-VDZj_scj.js} +1 -1
- package/dist/client/assets/{sql-Cg1bVnSa.js → sql-ushyJdRf.js} +1 -1
- package/dist/client/assets/{stata-DQ-G7ow_.js → stata-87RYcwm-.js} +1 -1
- package/dist/client/assets/{surrealql-PbaZyPEf.js → surrealql-DiJkNDgM.js} +1 -1
- package/dist/client/assets/{svelte-DWLvmChC.js → svelte-B6zEQCqX.js} +1 -1
- package/dist/client/assets/syntax.worker-Cc0dIGs8.js +1 -0
- package/dist/client/assets/{templ-Dh9gCl-U.js → templ-BbUkdxgW.js} +1 -1
- package/dist/client/assets/{tex-Bkx3emV1.js → tex-8DUlt0ja.js} +1 -1
- package/dist/client/assets/{ts-tags-qiqMwr4f.js → ts-tags-B9TjJt8W.js} +1 -1
- package/dist/client/assets/{tsx-82FujIkY.js → tsx-KtVv-1tC.js} +1 -1
- package/dist/client/assets/{twig-DlmOvDnP.js → twig-SRZcBkws.js} +1 -1
- package/dist/client/assets/{typescript-1Zmg8FSm.js → typescript-XxBZhs1X.js} +1 -1
- package/dist/client/assets/{typst-DgvT7Zfo.js → typst-zdrwuFs3.js} +1 -1
- package/dist/client/assets/{vue-d-TLnfkw.js → vue-CIJzu_ou.js} +1 -1
- package/dist/client/assets/{vue-html-BX2spiYV.js → vue-html-Cbh4Xclf.js} +1 -1
- package/dist/client/assets/{vue-vine-Brzvzd9Q.js → vue-vine-B3rP3Gia.js} +1 -1
- package/dist/client/assets/{xml-B861sfkh.js → xml-B8FuGGpH.js} +1 -1
- package/dist/client/assets/{xsl-BIl5e-a1.js → xsl-DGb4ZSQs.js} +1 -1
- package/dist/client/assets/{yaml-CinKI_rg.js → yaml-DgFlGzOM.js} +1 -1
- package/dist/client/index.html +11 -3
- package/dist/server/main.js +36 -26
- package/package.json +1 -1
- package/dist/client/assets/syntax.worker-BRjdyEIk.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["
|
|
2
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e){return new Worker(`/assets/worker-DZo603XT.js`,{type:`module`,name:e?.name})}var d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),f=o(((e,t)=>{t.exports=d()})),p=l(f(),1);function m(e){let t=(0,p.useRef)(e);return(0,p.useInsertionEffect)(()=>void(t.current=e)),(0,p.useCallback)((...e)=>t.current(...e),[])}var h=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),g=o(((e,t)=>{t.exports=h()}))(),_=(0,p.createContext)(void 0);function v(){return(0,p.useContext)(_)}var y={position:`absolute`,top:0,bottom:0,textAlign:`center`,whiteSpace:`normal`,touchAction:`none`},b={display:`contents`};function x(){return null}var S=`diffs-container`,C=(()=>{try{return!1}catch{return!1}})(),w=/(?=^From [a-f0-9]+ .+$)/m,T=/(?=^diff --git)/gm,E=/(?<=\n)/,D=/^(---|\+\+\+)\s+([^\t\r\n]+)/,O=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,k=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,A=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,j=`header-prefix`,M=`header-filename-suffix`,N=`header-metadata`,P=`header-custom`,F={dark:`pierre-dark`,light:`pierre-light`},I=`data-theme-css`,L=`data-unsafe-css`,ee=`data-diffs-scrollbar-measure`,te=`data-diffs-code-view-header`,ne=`data-diffs-code-view-footer`,R=`--diffs-scrollbar-gutter-measured`,z=1e5,B={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},re={...B,hunkLineCount:1},ie={paddingTop:8,paddingBottom:8,gap:8},ae={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},oe=Object.freeze({fromStart:0,fromEnd:0}),se={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ce={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function le(e){return`annotation-${`side`in e?`${e.side}-`:``}${e.lineNumber}`}function ue({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function V(e,t){return e-(t===0?0:1)}function de(e,t){return V(e,t)+t}function fe(e,t){let n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:pe(n,e.startContentIndex)}}function pe(e,t){let n=e.unifiedLineStart;for(let r=0;r<t;r++){let t=e.hunkContent[r];n+=t.type===`context`?t.lines:t.deletions+t.additions}return n}function me({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:r,renderHeaderFilenameSuffix:i,renderHeaderMetadata:a,renderAnnotation:o,renderGutterUtility:s,renderMergeConflictUtility:c,lineAnnotations:l,getHoveredLine:u,getInstance:d}){let f=n?.(e),p=r?.(e),m=i?.(e),h=a?.(e);return(0,g.jsxs)(g.Fragment,{children:[f==null?(0,g.jsxs)(g.Fragment,{children:[p!=null&&(0,g.jsx)(`div`,{slot:`header-prefix`,children:p}),m!=null&&(0,g.jsx)(`div`,{slot:`header-filename-suffix`,children:m}),h!=null&&(0,g.jsx)(`div`,{slot:`header-metadata`,children:h})]}):(0,g.jsx)(`div`,{slot:P,children:f}),o!=null&&l?.map((e,t)=>(0,g.jsx)(`div`,{slot:le(e),children:o(e)},t)),t!=null&&c!=null&&d!=null&&t.map(t=>{if(t==null)return;let n=he(t,e);return(0,g.jsx)(`div`,{slot:n,style:b,children:c(t,d)},n)}),s!=null&&(0,g.jsx)(`div`,{slot:`gutter-utility-slot`,style:y,children:s(u)})]})}function he(e,t){let n=fe(e,t);return n==null?void 0:ue({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex})}function ge({file:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:a,lineAnnotations:o,renderGutterUtility:s,getHoveredLine:c}){let l=t?.(e),u=n?.(e),d=r?.(e),f=i?.(e);return(0,g.jsxs)(g.Fragment,{children:[l==null?(0,g.jsxs)(g.Fragment,{children:[u!=null&&(0,g.jsx)(`div`,{slot:`header-prefix`,children:u}),d!=null&&(0,g.jsx)(`div`,{slot:`header-filename-suffix`,children:d}),f!=null&&(0,g.jsx)(`div`,{slot:`header-metadata`,children:f})]}):(0,g.jsx)(`div`,{slot:P,children:l}),a!=null&&o?.map((e,t)=>(0,g.jsx)(`div`,{slot:le(e),children:a(e)},t)),s!=null&&(0,g.jsx)(`div`,{slot:`gutter-utility-slot`,style:y,children:s(c)})]})}function _e(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}function ve(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}var ye=new Set;function be(e){let t=[],n=new Set;for(let r of xe(e.themes)){let e=we(r)?r.getThemes():[r];for(let r of e){if(n.has(r.name))throw Error(`Theme collection already contains theme "${r.name}"`);n.add(r.name),t.push(r)}}let r=Object.freeze([...t]),i=Object.freeze(r.filter(e=>e.colorScheme===`light`)),a=Object.freeze(r.filter(e=>e.colorScheme===`dark`)),o=new Map(r.map(e=>[e.name,e])),s=Object.freeze(r.map(e=>e.name)),c=Object.freeze(i.map(e=>e.name)),l=Object.freeze(a.map(e=>e.name));function u(e){if(e==null)return r;let{colorScheme:t,collection:n}=e;return n==null?t===`light`?i:t===`dark`?a:r:r.filter(e=>e.collection===n?t==null||e.colorScheme===t:!1)}return{getTheme(e){return o.get(e)},getThemes(e){return u(e)},getThemeNames(e){return e?.collection==null?e?.colorScheme===`light`?c:e?.colorScheme===`dark`?l:s:u(e).map(e=>e.name)},hasTheme(e){return o.has(e)},orderBy(e){return be({themes:r.map((e,t)=>({descriptor:e,index:t})).sort((t,n)=>{let r=e(t.descriptor,n.descriptor);return r===0?t.index-n.index:r}).map(e=>e.descriptor)})},pick(e){let t=[],n=new Set;for(let r of e){if(n.has(r))throw Error(`Theme collection pick already includes theme "${r}"`);n.add(r);let e=o.get(r);if(e==null)throw Error(`Theme collection does not contain theme "${r}"`);t.push(e)}return be({themes:t})},registerInto(e){for(let t of r)e.registerThemeIfAbsent(t.name,t.load)}}}function xe(e){return Se(e)?[e]:e}function Se(e){return we(e)||Ce(e)}function Ce(e){return typeof e.name==`string`&&typeof e.load==`function`}function we(e){return typeof e.getThemes==`function`}function Te(e){return typeof e==`object`&&e&&`default`in e?e.default:e}var Ee=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name=`DuplicateThemeError`}},De=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name=`UnregisteredThemeError`}},Oe=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name=`UnresolvedThemeError`}};function ke(){let e=new Map,t=new Map,n=new Map,r=0;function i(t,n){if(e.has(t))throw new Ee(t);e.set(t,n)}function a(t,n){return!e.has(t)&&(e.set(t,n),!0)}function o(t){return e.has(t)}function s(i){let a=t.get(i);if(a!==void 0)return Promise.resolve(a);let o=n.get(i);if(o!==void 0)return o;let s=e.get(i);if(s===void 0)return Promise.reject(new De(i));let c=r,l=s().then(e=>{let a=Te(e);return c===r&&t.set(i,a),n.get(i)===l&&n.delete(i),a}).catch(e=>{throw n.get(i)===l&&n.delete(i),e});return n.set(i,l),l}function c(e){return Promise.all(e.map(e=>s(e)))}function l(e,n){t.set(e,n)}function u(e){for(let[t,n]of e)l(t,n)}function d(e){return t.get(e)}function f(e){let n=[];for(let r of e){let e=t.get(r);if(e===void 0)throw new Oe(r);n.push(e)}return n}function p(e){return t.has(e)}function m(e){for(let n of e)if(!t.has(n))return!1;return!0}function h(e){let n=t.get(e);return n===void 0?s(e):n}function g(){r++,t.clear(),n.clear()}return{clearResolvedThemes:g,getResolvedOrResolveTheme:h,getResolvedTheme:d,getResolvedThemes:f,hasRegisteredTheme:o,hasResolvedTheme:p,hasResolvedThemes:m,registerTheme:i,registerThemeIfAbsent:a,resolveTheme:s,resolveThemes:c,seedResolvedTheme:l,seedResolvedThemes:u}}var Ae=ke();function je(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=Ae.getResolvedTheme(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,Ae.getResolvedTheme(n)??Ae.seedResolvedTheme(n,e);ye.has(n)||(ye.add(n),t.loadThemeSync(e))}}var Me=new Map,Ne=new Map,Pe=new Map,Fe=new Set;function Ie(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(Fe.has(n.name))continue;let e=Me.get(n.name);e??(e=n,Me.set(n.name,e)),Fe.add(e.name),t.loadLanguageSync(e.data)}}function Le(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var Re=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,Be=Object.getOwnPropertyNames,Ve=Object.prototype.hasOwnProperty,He=(e,t)=>{let n={};for(var r in e)Re(n,r,{get:e[r],enumerable:!0});return t||Re(n,Symbol.toStringTag,{value:`Module`}),n},Ue=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Be(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ve.call(e,s)&&s!==n&&Re(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ze(t,s))||r.enumerable});return e},We=(e,t,n)=>(Ue(e,t,`default`),n&&Ue(n,t,`default`)),Ge=`modulepreload`,Ke=function(e){return`/`+e},qe={},H=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ke(t,n),t=s(t),t in qe)return;qe[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Ge,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Je=[{id:`abap`,name:`ABAP`,import:(()=>H(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>H(()=>import(`./actionscript-3-Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>H(()=>import(`./ada-C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>H(()=>import(`./ahk-CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>H(()=>import(`./ahk2-_6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>H(()=>import(`./angular-html-CeRKnFwb.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>H(()=>import(`./angular-ts-BC1svU7k.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>H(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>H(()=>import(`./apex-KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>H(()=>import(`./apl-DLcHgTK9.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>H(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>H(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>H(()=>import(`./asciidoc-SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>H(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>H(()=>import(`./astro-DUQI7urt.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>H(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>H(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>H(()=>import(`./bat-qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>H(()=>import(`./beancount-D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>H(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>H(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>H(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>H(()=>import(`./bird2-CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>H(()=>import(`./blade-BhnU1iv3.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>H(()=>import(`./bsl-_VjlB9mv.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>H(()=>import(`./c-CMu5jIVX.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>H(()=>import(`./c3-D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>H(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>H(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>H(()=>import(`./chapel-CMnZt-JB.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>H(()=>import(`./clarity-CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>H(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>H(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>H(()=>import(`./cobol-DO9od4KA.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>H(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>H(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>H(()=>import(`./coffee-DsKgUUf6.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>H(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>H(()=>import(`./coq-DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>H(()=>import(`./cpp-CN4unzDm.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>H(()=>import(`./crystal-BhuvT6sA.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>H(()=>import(`./csharp-oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>H(()=>import(`./css-CfjdrINS.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>H(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>H(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>H(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>H(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>H(()=>import(`./dart-CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>H(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>H(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>H(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>H(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>H(()=>import(`./dotenv-_5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>H(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>H(()=>import(`./edge-CL2Epm4e.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>H(()=>import(`./elixir-Doe2U_Cg.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>H(()=>import(`./elm-CoINdkUq.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>H(()=>import(`./emacs-lisp-c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>H(()=>import(`./erb-BCn0RM4V.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>H(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>H(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>H(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>H(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>H(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>H(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>H(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>H(()=>import(`./gdresource-xMC7jr7x.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>H(()=>import(`./gdscript-DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>H(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>H(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>H(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>H(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>H(()=>import(`./git-rebase-CNmD4c0v.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>H(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>H(()=>import(`./glimmer-js-CD3Ia2qL.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>H(()=>import(`./glimmer-ts-BxOVYEZy.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>H(()=>import(`./glsl-DK5AsFLJ.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>H(()=>import(`./gn-ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>H(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>H(()=>import(`./go-rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>H(()=>import(`./graphql-DyGyEESP.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>H(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>H(()=>import(`./hack-BQ2MAuv0.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>H(()=>import(`./haml-BOKZhUBe.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>H(()=>import(`./handlebars-BL4cycpI.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>H(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>H(()=>import(`./haxe-C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>H(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>H(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>H(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>H(()=>import(`./html-DG16Bgvg.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>H(()=>import(`./html-derivative-CHcF4Lpp.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>H(()=>import(`./http-usrmfqDt.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>H(()=>import(`./hurl-C4JjMlIM.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>H(()=>import(`./hxml-Dcm88srW.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>H(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>H(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>H(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>H(()=>import(`./java-ibBouxxn.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>H(()=>import(`./javascript-BZRzf92u.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>H(()=>import(`./jinja-9QDSl6my.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>H(()=>import(`./jison-BHG-979q.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>H(()=>import(`./json-DwElmnQB.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>H(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>H(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>H(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>H(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>H(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>H(()=>import(`./jsx-rBgzwRBS.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>H(()=>import(`./julia-CgiS75su.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>H(()=>import(`./just-De3y7xb2.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>H(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>H(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>H(()=>import(`./kusto-C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>H(()=>import(`./latex-Bk1wP9Tv.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>H(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>H(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>H(()=>import(`./liquid-CLTik2y8.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>H(()=>import(`./llvm-DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>H(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>H(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>H(()=>import(`./lua-B-AqNzj_.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>H(()=>import(`./luau-C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>H(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>H(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>H(()=>import(`./marko-DgFRqfls.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>H(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>H(()=>import(`./mdc-BnZoJsPK.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>H(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>H(()=>import(`./mermaid-BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>H(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>H(()=>import(`./mojo-fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>H(()=>import(`./moonbit-DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>H(()=>import(`./move-BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>H(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>H(()=>import(`./nextflow-BJtWHP5T.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>H(()=>import(`./nextflow-groovy-DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>H(()=>import(`./nginx-DcKwYiIR.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>H(()=>import(`./nim-B7gmjUTZ.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>H(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>H(()=>import(`./nsis-CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>H(()=>import(`./nushell-DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>H(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>H(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>H(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>H(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>H(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>H(()=>import(`./org-4KQ2g826.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93])))},{id:`pascal`,name:`Pascal`,import:(()=>H(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>H(()=>import(`./perl-CXjWWsgb.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>H(()=>import(`./php-Dx7gazwr.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>H(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>H(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>H(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>H(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>H(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>H(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>H(()=>import(`./powershell-CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>H(()=>import(`./prisma-DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>H(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>H(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>H(()=>import(`./pug-DKbUPHHY.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>H(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>H(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>H(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>H(()=>import(`./qml-BI-uhfIo.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>H(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>H(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>H(()=>import(`./r-oD9rwg3Q.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>H(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>H(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>H(()=>import(`./razor-DqrY60Ia.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>H(()=>import(`./rbs-C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>H(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>H(()=>import(`./regexp-_wPM2tSe.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>H(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>H(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>H(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>H(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>H(()=>import(`./rst-CCjc99TE.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>H(()=>import(`./ruby-D4Ot4GwF.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>H(()=>import(`./rust-Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>H(()=>import(`./sas-CohVHUYB.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>H(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>H(()=>import(`./scala-BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>H(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>H(()=>import(`./scss-BUvWF1R-.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>H(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>H(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>H(()=>import(`./shellscript-BYChvHJY.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>H(()=>import(`./shellsession-CwfOGr4q.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>H(()=>import(`./smalltalk-BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>H(()=>import(`./smithy-Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>H(()=>import(`./solidity-Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>H(()=>import(`./soy-DDZl6fCd.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>H(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>H(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>H(()=>import(`./sql-Cg1bVnSa.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>H(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>H(()=>import(`./stata-DQ-G7ow_.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>H(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>H(()=>import(`./surrealql-PbaZyPEf.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>H(()=>import(`./svelte-DWLvmChC.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>H(()=>import(`./swift-CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>H(()=>import(`./system-verilog-Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>H(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>H(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>H(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>H(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>H(()=>import(`./templ-Dh9gCl-U.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>H(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>H(()=>import(`./tex-Bkx3emV1.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>H(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>H(()=>import(`./ts-tags-qiqMwr4f.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>H(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>H(()=>import(`./tsx-82FujIkY.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>H(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>H(()=>import(`./twig-DlmOvDnP.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>H(()=>import(`./typescript-1Zmg8FSm.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>H(()=>import(`./typespec-BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>H(()=>import(`./typst-DgvT7Zfo.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120])))},{id:`v`,name:`V`,import:(()=>H(()=>import(`./v-DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>H(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>H(()=>import(`./vb-DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>H(()=>import(`./verilog-B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>H(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>H(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>H(()=>import(`./vue-d-TLnfkw.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>H(()=>import(`./vue-html-BX2spiYV.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>H(()=>import(`./vue-vine-Brzvzd9Q.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>H(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>H(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>H(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>H(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>H(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>H(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>H(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>H(()=>import(`./xml-B861sfkh.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>H(()=>import(`./xsl-BIl5e-a1.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>H(()=>import(`./yaml-CinKI_rg.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>H(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>H(()=>import(`./zig-CMLA9XwU.js`),[]))}],Ye=Object.fromEntries(Je.map(e=>[e.id,e.import])),Xe=Object.fromEntries(Je.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Ze={...Ye,...Xe},Qe=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>H(()=>import(`./andromeeda-vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>H(()=>import(`./aurora-x-CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>H(()=>import(`./ayu-dark-DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>H(()=>import(`./ayu-light-C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>H(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>H(()=>import(`./catppuccin-frappe-C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>H(()=>import(`./catppuccin-latte-CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>H(()=>import(`./catppuccin-macchiato-R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>H(()=>import(`./catppuccin-mocha-DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>H(()=>import(`./dark-plus-Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>H(()=>import(`./dracula-BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>H(()=>import(`./dracula-soft-5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>H(()=>import(`./everforest-dark-sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>H(()=>import(`./everforest-light-Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>H(()=>import(`./github-dark-C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>H(()=>import(`./github-dark-default-DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>H(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>H(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>H(()=>import(`./github-light-EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>H(()=>import(`./github-light-default-BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>H(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>H(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>H(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>H(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>H(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>H(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>H(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>H(()=>import(`./horizon-CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>H(()=>import(`./horizon-bright-DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>H(()=>import(`./houston-CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>H(()=>import(`./kanagawa-dragon-Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>H(()=>import(`./kanagawa-lotus-BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>H(()=>import(`./kanagawa-wave-BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>H(()=>import(`./laserwave-C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>H(()=>import(`./light-plus-DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>H(()=>import(`./material-theme-Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>H(()=>import(`./material-theme-darker-2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>H(()=>import(`./material-theme-lighter-uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>H(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>H(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>H(()=>import(`./min-dark-BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>H(()=>import(`./min-light-DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>H(()=>import(`./monokai-B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>H(()=>import(`./night-owl-DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>H(()=>import(`./night-owl-light-eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>H(()=>import(`./nord-Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>H(()=>import(`./one-dark-pro-CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>H(()=>import(`./one-light-D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>H(()=>import(`./plastic-DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>H(()=>import(`./poimandres-DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>H(()=>import(`./red-DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>H(()=>import(`./rose-pine-aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>H(()=>import(`./rose-pine-dawn-8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>H(()=>import(`./rose-pine-moon-DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>H(()=>import(`./slack-dark-DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>H(()=>import(`./slack-ochin-B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>H(()=>import(`./snazzy-light-4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>H(()=>import(`./solarized-dark-UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>H(()=>import(`./solarized-light-C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>H(()=>import(`./synthwave-84-nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>H(()=>import(`./tokyo-night-oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>H(()=>import(`./vesper-DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>H(()=>import(`./vitesse-black-fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>H(()=>import(`./vitesse-dark-BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>H(()=>import(`./vitesse-light-VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),$e=s({createOnigurumaEngine:()=>Dt,getDefaultWasmLoader:()=>Et,loadWasm:()=>bt,setDefaultWasmLoader:()=>Tt}),et=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function tt(){return 2147483648}function nt(){return typeof performance<`u`?performance.now():Date.now()}var rt=(e,t)=>e+(t-e%t)%t;async function it(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=tt();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,rt(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:nt,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var at=Object.defineProperty,ot=(e,t,n)=>t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,st=(e,t,n)=>ot(e,typeof t==`symbol`?t:t+``,n),ct=null;function lt(e){throw new et(e.UTF8ToString(e.getLastOnigError()))}var ut=class e{constructor(t){st(this,`utf16Length`),st(this,`utf8Length`),st(this,`utf16Value`),st(this,`utf8Value`),st(this,`utf16OffsetToUtf8`),st(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},dt=class e{constructor(t){if(st(this,`id`,++e.LAST_ID),st(this,`_onigBinding`),st(this,`content`),st(this,`utf16Length`),st(this,`utf8Length`),st(this,`utf16OffsetToUtf8`),st(this,`utf8OffsetToUtf16`),st(this,`ptr`),!ct)throw new et(`Must invoke loadWasm first.`);this._onigBinding=ct,this.content=t;let n=new ut(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=ct.omalloc(1e4),e._sharedPtrInUse=!0,ct.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(ct)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};st(dt,`LAST_ID`,0),st(dt,`_sharedPtr`,0),st(dt,`_sharedPtrInUse`,!1);var ft=dt,pt=class{constructor(e){if(st(this,`_onigBinding`),st(this,`_ptr`),!ct)throw new et(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new ut(e[r]);t[r]=i.createString(ct),n[r]=i.utf8Length}let r=ct.omalloc(4*e.length);ct.HEAPU32.set(t,r/4);let i=ct.omalloc(4*e.length);ct.HEAPU32.set(n,i/4);let a=ct.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)ct.ofree(t[n]);ct.ofree(i),ct.ofree(r),a===0&<(ct),this._onigBinding=ct,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new ft(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function mt(e){return typeof e.instantiator==`function`}function ht(e){return typeof e.default==`function`}function gt(e){return e.data!==void 0}function _t(e){return typeof Response<`u`&&e instanceof Response}function vt(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var yt;function bt(e){if(yt)return yt;async function t(){ct=await it(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),mt(n)?n=await n.instantiator(t):ht(n)?n=await n.default(t):(gt(n)&&(n=n.data),_t(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await St(n)(t):await Ct(n)(t):vt(n)||n instanceof WebAssembly.Module?n=await xt(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await xt(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return yt=t(),yt}function xt(e){return t=>WebAssembly.instantiate(e,t)}function St(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ct(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var wt;function Tt(e){wt=e}function Et(){return wt}async function Dt(e){return e&&await bt(e),{createScanner(e){return new pt(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new ft(e)}}}var Ot=He({});We(Ot,$e);var kt=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function At(e){return jt(e)}function jt(e){return Array.isArray(e)?Mt(e):e instanceof RegExp?e:typeof e==`object`?Nt(e):e}function Mt(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=jt(e[n]);return t}function Nt(e){let t={};for(let n in e)t[n]=jt(e[n]);return t}function Pt(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Ft(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Ft(e.substring(0,e.length-1)):e.substr(~t+1)}var It=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Lt=class{static hasCaptures(e){return e!==null&&(It.lastIndex=0,It.test(e))}static replaceCaptures(e,t,n){return e.replace(It,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Rt(e,t){return e<t?-1:+(e>t)}function zt(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Rt(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Bt(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 Vt(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Ht=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Ut=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Jt(e),t)}static createFromParsedTheme(e,t){return Zt(e,t)}_cachedMatchRoot=new Ht(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Gt(e.parent,t.parentScopes));return n?new qt(n.fontStyle,n.foreground,n.background):null}},Wt=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Gt(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Kt(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Kt(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var qt=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Jt(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&Bt(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Bt(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new Yt(l,u,e,o,s,c)}}return n}var Yt=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},Xt=(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))(Xt||{});function Zt(e,t){e.sort((e,t)=>{let n=Rt(e.scope,t.scope);return n!==0||(n=zt(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Qt(t),o=new qt(n,a.getId(r),a.getId(i)),s=new tn(new en(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Ut(a,o,s)}var Qt=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;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 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)}},$t=Object.freeze([]),en=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||$t,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},tn=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),en.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(zt(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new en(e,t,n,r,i))}},nn=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=an(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function rn(e){return e}function an(e){return e}function on(e,t){let n=[],r=cn(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(sn(i)){let e=[];do e.push(i),i=r.next();while(sn(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function sn(e){return!!e&&!!e.match(/[\w\.:]+/)}function cn(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function ln(e){typeof e.dispose==`function`&&e.dispose()}var un=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},dn=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},fn=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},pn=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new un(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new fn;for(let n of e)mn(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof un){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function mn(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof un?gn({baseGrammar:a,selfGrammar:i},r):hn(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new un(e))}function hn(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];_n([r],t,n)}}function gn(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&_n(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&_n(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function _n(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Pt({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&_n(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Cn(i);switch(a.kind){case 0:gn({...t,selfGrammar:t.baseGrammar},n);break;case 1:gn(t,n);break;case 2:hn(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?hn(a.ruleName,i,n):gn(i,n)}else a.kind===4?n.add(new dn(a.scopeName,a.ruleName)):n.add(new un(a.scopeName))}}}var vn=class{kind=0},yn=class{kind=1},bn=class{constructor(e){this.ruleName=e}kind=2},xn=class{constructor(e){this.scopeName=e}kind=3},Sn=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Cn(e){if(e===`$base`)return new vn;if(e===`$self`)return new yn;let t=e.indexOf(`#`);return t===-1?new xn(e):t===0?new bn(e.substring(1)):new Sn(e.substring(0,t),e.substring(t+1))}var wn=/\\(\d+)/,Tn=/\\(\d+)/g,En=-1,Dn=-2;function On(e){return e}function kn(e){return e}var An=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Lt.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Lt.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Ft(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:Lt.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Lt.replaceCaptures(this._contentName,e,t)}},jn=class extends An{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Mn=class extends An{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Ln(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Rn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Nn=class extends An{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Rn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Pn=class extends An{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Ln(i,this.id),this.beginCaptures=a,this._end=new Ln(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Rn;for(let t of this.patterns)e.getRule(t).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Fn=class extends An{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Ln(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Ln(o,Dn),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Rn;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Rn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},In=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new jn(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Mn(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Pt({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Nn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Fn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Pn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Cn(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Nn||e instanceof Pn||e instanceof Fn)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Ln=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&wn.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Tn.lastIndex=0,this.source.replace(Tn,(e,t)=>Vt(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Rn=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){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(),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(e=>e.source);this._cached=new zn(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new zn(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},zn=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-DCs801AK.js","./html-C-E44L0y.js","./javascript-DBrMK690.js","./css-p0qk9Lci.js","./angular-ts-BWhN0w8_.js","./scss-BKxWJNFh.js","./apl-Djz0ErNW.js","./xml-B8FuGGpH.js","./java-DNT_EPVr.js","./json-BolWLdCd.js","./astro-MWC3rLUN.js","./typescript-XxBZhs1X.js","./postcss-BXeXVLqQ.js","./tsx-KtVv-1tC.js","./blade-B8pycf1w.js","./html-derivative-DTCnXXkR.js","./sql-ushyJdRf.js","./bsl-_VjlB9mv.js","./sdbl-bTVj8UrX.js","./cairo-DLTphjLi.js","./python-gzcpVVnB.js","./chapel-CuJCeKLf.js","./c-B-Jcxs--.js","./cobol-DgquORVs.js","./coffee-ECOaIhT5.js","./cpp-CqnSivHO.js","./regexp-cZE9On7Z.js","./glsl-BRqSJ3dN.js","./crystal-Cs7ZYBfN.js","./shellscript-Bcg5lXvK.js","./edge-mMULBvUs.js","./elixir-VIosceup.js","./elm-C3kw87lA.js","./erb-DZjmloke.js","./ruby-DkGM-R-6.js","./haml-nw30ZCFe.js","./graphql-nm_X3Hg7.js","./jsx-CkIysgAJ.js","./lua-CnUVAA9w.js","./yaml-DgFlGzOM.js","./erlang-Cphh6RMH.js","./markdown-BYOwaDjH.js","./fortran-fixed-form-DEKoE2YW.js","./fortran-free-form-CYNrtFtB.js","./fsharp-D13ZGOAj.js","./gdresource-xMC7jr7x.js","./gdshader-CBce3t8t.js","./gdscript-DYvRD3hg.js","./git-commit-BSykSTBG.js","./diff-woXpYk--.js","./git-rebase-qAMhScBw.js","./glimmer-js-DJdA7CEB.js","./glimmer-ts-6xtV4JQb.js","./hack-CQ7j-SLC.js","./handlebars-CbbUPaYB.js","./http-Cg4Jw-kz.js","./hurl-CITbwYVL.js","./csv-Dx-8-gkx.js","./hxml-Dcm88srW.js","./haxe-C8oCnwJJ.js","./jinja-DqPnwJo-.js","./jison-A5ieRkCJ.js","./julia-jBzm267c.js","./r-Dbh43Ti8.js","./just-cr8UASbW.js","./perl-B-6tgIaz.js","./latex-DcdC0vak.js","./tex-8DUlt0ja.js","./liquid-BBR6eAOA.js","./marko-BxH5DxB_.js","./less-DVTAwKKz.js","./mdc-CVc0_tcy.js","./nextflow-BJtWHP5T.js","./nextflow-groovy-DJMQeKeT.js","./nginx-B1DQmN_N.js","./nim-C3rsdIhh.js","./org-DICsbmv1.js","./clojure-DqKBuwfJ.js","./csharp-oqKa8noW.js","./dart-CnvKMtbv.js","./docker-IyjqRm3v.js","./go-rLFTqkRN.js","./groovy-CacY0gHj.js","./ini-B5eOa1yu.js","./make-Dixweg8N.js","./objective-c-D1A_Heim.js","./ocaml-O90oeIOV.js","./php-CSZf1YiM.js","./vb-DOwzaHZ0.js","./raku-B3gFvitq.js","./rust-Cfkwpbl8.js","./scala-BiFt_7mu.js","./zig-CMLA9XwU.js","./xsl-DGb4ZSQs.js","./pug-BvQ97HKe.js","./qml-B_gSWBeZ.js","./razor-Dks3_W39.js","./rst-Cgn-1Zks.js","./cmake-Bj61d0ZC.js","./sas-D6c_PGbn.js","./shaderlab-TOUzSsQk.js","./hlsl-Cvrh5tZx.js","./shellsession-Bf400BZo.js","./soy-VDZj_scj.js","./sparql-D_iOobhT.js","./turtle-ByJddavk.js","./stata-87RYcwm-.js","./surrealql-DiJkNDgM.js","./svelte-B6zEQCqX.js","./templ-BbUkdxgW.js","./ts-tags-B9TjJt8W.js","./twig-SRZcBkws.js","./typst-zdrwuFs3.js","./bat-qdxAdBWQ.js","./bibtex-Ci_nEsc7.js","./jsonc-CYpm1nAK.js","./log-BNLmms1o.js","./powershell-CCSX75yM.js","./swift-CyEgAFGc.js","./system-verilog-Dh5ihWbf.js","./verilog-B2gwz-sJ.js","./vue-CIJzu_ou.js","./vue-html-Cbh4Xclf.js","./vue-vine-B3rP3Gia.js","./stylus-B6D30XZt.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e){return new Worker(``+new URL(`worker-DZo603XT.js`,import.meta.url).href,{type:`module`,name:e?.name})}var d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),f=o(((e,t)=>{t.exports=d()})),p=l(f(),1);function m(e){let t=(0,p.useRef)(e);return(0,p.useInsertionEffect)(()=>void(t.current=e)),(0,p.useCallback)((...e)=>t.current(...e),[])}var h=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),g=o(((e,t)=>{t.exports=h()}))(),_=(0,p.createContext)(void 0);function v(){return(0,p.useContext)(_)}var y={position:`absolute`,top:0,bottom:0,textAlign:`center`,whiteSpace:`normal`,touchAction:`none`},b={display:`contents`};function x(){return null}var S=`diffs-container`,C=(()=>{try{return!1}catch{return!1}})(),w=/(?=^From [a-f0-9]+ .+$)/m,T=/(?=^diff --git)/gm,E=/(?<=\n)/,D=/^(---|\+\+\+)\s+([^\t\r\n]+)/,O=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,k=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,A=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,j=`header-prefix`,M=`header-filename-suffix`,N=`header-metadata`,P=`header-custom`,F={dark:`pierre-dark`,light:`pierre-light`},I=`data-theme-css`,L=`data-unsafe-css`,ee=`data-diffs-scrollbar-measure`,te=`data-diffs-code-view-header`,ne=`data-diffs-code-view-footer`,R=`--diffs-scrollbar-gutter-measured`,z=1e5,B={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},re={...B,hunkLineCount:1},ie={paddingTop:8,paddingBottom:8,gap:8},ae={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},oe=Object.freeze({fromStart:0,fromEnd:0}),se={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ce={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function le(e){return`annotation-${`side`in e?`${e.side}-`:``}${e.lineNumber}`}function ue({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function V(e,t){return e-(t===0?0:1)}function de(e,t){return V(e,t)+t}function fe(e,t){let n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:pe(n,e.startContentIndex)}}function pe(e,t){let n=e.unifiedLineStart;for(let r=0;r<t;r++){let t=e.hunkContent[r];n+=t.type===`context`?t.lines:t.deletions+t.additions}return n}function me({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:r,renderHeaderFilenameSuffix:i,renderHeaderMetadata:a,renderAnnotation:o,renderGutterUtility:s,renderMergeConflictUtility:c,lineAnnotations:l,getHoveredLine:u,getInstance:d}){let f=n?.(e),p=r?.(e),m=i?.(e),h=a?.(e);return(0,g.jsxs)(g.Fragment,{children:[f==null?(0,g.jsxs)(g.Fragment,{children:[p!=null&&(0,g.jsx)(`div`,{slot:`header-prefix`,children:p}),m!=null&&(0,g.jsx)(`div`,{slot:`header-filename-suffix`,children:m}),h!=null&&(0,g.jsx)(`div`,{slot:`header-metadata`,children:h})]}):(0,g.jsx)(`div`,{slot:P,children:f}),o!=null&&l?.map((e,t)=>(0,g.jsx)(`div`,{slot:le(e),children:o(e)},t)),t!=null&&c!=null&&d!=null&&t.map(t=>{if(t==null)return;let n=he(t,e);return(0,g.jsx)(`div`,{slot:n,style:b,children:c(t,d)},n)}),s!=null&&(0,g.jsx)(`div`,{slot:`gutter-utility-slot`,style:y,children:s(u)})]})}function he(e,t){let n=fe(e,t);return n==null?void 0:ue({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex})}function ge({file:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:a,lineAnnotations:o,renderGutterUtility:s,getHoveredLine:c}){let l=t?.(e),u=n?.(e),d=r?.(e),f=i?.(e);return(0,g.jsxs)(g.Fragment,{children:[l==null?(0,g.jsxs)(g.Fragment,{children:[u!=null&&(0,g.jsx)(`div`,{slot:`header-prefix`,children:u}),d!=null&&(0,g.jsx)(`div`,{slot:`header-filename-suffix`,children:d}),f!=null&&(0,g.jsx)(`div`,{slot:`header-metadata`,children:f})]}):(0,g.jsx)(`div`,{slot:P,children:l}),a!=null&&o?.map((e,t)=>(0,g.jsx)(`div`,{slot:le(e),children:a(e)},t)),s!=null&&(0,g.jsx)(`div`,{slot:`gutter-utility-slot`,style:y,children:s(c)})]})}function _e(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}function ve(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}var ye=new Set;function be(e){let t=[],n=new Set;for(let r of xe(e.themes)){let e=we(r)?r.getThemes():[r];for(let r of e){if(n.has(r.name))throw Error(`Theme collection already contains theme "${r.name}"`);n.add(r.name),t.push(r)}}let r=Object.freeze([...t]),i=Object.freeze(r.filter(e=>e.colorScheme===`light`)),a=Object.freeze(r.filter(e=>e.colorScheme===`dark`)),o=new Map(r.map(e=>[e.name,e])),s=Object.freeze(r.map(e=>e.name)),c=Object.freeze(i.map(e=>e.name)),l=Object.freeze(a.map(e=>e.name));function u(e){if(e==null)return r;let{colorScheme:t,collection:n}=e;return n==null?t===`light`?i:t===`dark`?a:r:r.filter(e=>e.collection===n?t==null||e.colorScheme===t:!1)}return{getTheme(e){return o.get(e)},getThemes(e){return u(e)},getThemeNames(e){return e?.collection==null?e?.colorScheme===`light`?c:e?.colorScheme===`dark`?l:s:u(e).map(e=>e.name)},hasTheme(e){return o.has(e)},orderBy(e){return be({themes:r.map((e,t)=>({descriptor:e,index:t})).sort((t,n)=>{let r=e(t.descriptor,n.descriptor);return r===0?t.index-n.index:r}).map(e=>e.descriptor)})},pick(e){let t=[],n=new Set;for(let r of e){if(n.has(r))throw Error(`Theme collection pick already includes theme "${r}"`);n.add(r);let e=o.get(r);if(e==null)throw Error(`Theme collection does not contain theme "${r}"`);t.push(e)}return be({themes:t})},registerInto(e){for(let t of r)e.registerThemeIfAbsent(t.name,t.load)}}}function xe(e){return Se(e)?[e]:e}function Se(e){return we(e)||Ce(e)}function Ce(e){return typeof e.name==`string`&&typeof e.load==`function`}function we(e){return typeof e.getThemes==`function`}function Te(e){return typeof e==`object`&&e&&`default`in e?e.default:e}var Ee=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name=`DuplicateThemeError`}},De=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name=`UnregisteredThemeError`}},Oe=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name=`UnresolvedThemeError`}};function ke(){let e=new Map,t=new Map,n=new Map,r=0;function i(t,n){if(e.has(t))throw new Ee(t);e.set(t,n)}function a(t,n){return!e.has(t)&&(e.set(t,n),!0)}function o(t){return e.has(t)}function s(i){let a=t.get(i);if(a!==void 0)return Promise.resolve(a);let o=n.get(i);if(o!==void 0)return o;let s=e.get(i);if(s===void 0)return Promise.reject(new De(i));let c=r,l=s().then(e=>{let a=Te(e);return c===r&&t.set(i,a),n.get(i)===l&&n.delete(i),a}).catch(e=>{throw n.get(i)===l&&n.delete(i),e});return n.set(i,l),l}function c(e){return Promise.all(e.map(e=>s(e)))}function l(e,n){t.set(e,n)}function u(e){for(let[t,n]of e)l(t,n)}function d(e){return t.get(e)}function f(e){let n=[];for(let r of e){let e=t.get(r);if(e===void 0)throw new Oe(r);n.push(e)}return n}function p(e){return t.has(e)}function m(e){for(let n of e)if(!t.has(n))return!1;return!0}function h(e){let n=t.get(e);return n===void 0?s(e):n}function g(){r++,t.clear(),n.clear()}return{clearResolvedThemes:g,getResolvedOrResolveTheme:h,getResolvedTheme:d,getResolvedThemes:f,hasRegisteredTheme:o,hasResolvedTheme:p,hasResolvedThemes:m,registerTheme:i,registerThemeIfAbsent:a,resolveTheme:s,resolveThemes:c,seedResolvedTheme:l,seedResolvedThemes:u}}var Ae=ke();function je(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=Ae.getResolvedTheme(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,Ae.getResolvedTheme(n)??Ae.seedResolvedTheme(n,e);ye.has(n)||(ye.add(n),t.loadThemeSync(e))}}var Me=new Map,Ne=new Map,Pe=new Map,Fe=new Set;function Ie(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(Fe.has(n.name))continue;let e=Me.get(n.name);e??(e=n,Me.set(n.name,e)),Fe.add(e.name),t.loadLanguageSync(e.data)}}function Le(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var Re=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,Be=Object.getOwnPropertyNames,Ve=Object.prototype.hasOwnProperty,He=(e,t)=>{let n={};for(var r in e)Re(n,r,{get:e[r],enumerable:!0});return t||Re(n,Symbol.toStringTag,{value:`Module`}),n},Ue=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Be(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ve.call(e,s)&&s!==n&&Re(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ze(t,s))||r.enumerable});return e},We=(e,t,n)=>(Ue(e,t,`default`),n&&Ue(n,t,`default`)),Ge=`modulepreload`,Ke=function(e,t){return new URL(e,t).href},qe={},H=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ke(t,n),t=s(t),t in qe)return;qe[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Ge,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Je=[{id:`abap`,name:`ABAP`,import:(()=>H(()=>import(`./abap-CLvhMVsD.js`),[],import.meta.url))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>H(()=>import(`./actionscript-3-Cs6JJXT5.js`),[],import.meta.url))},{id:`ada`,name:`Ada`,import:(()=>H(()=>import(`./ada-C5qYipkI.js`),[],import.meta.url))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>H(()=>import(`./ahk-CA9gdOdF.js`),[],import.meta.url))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>H(()=>import(`./ahk2-_6rzW9BS.js`),[],import.meta.url))},{id:`angular-html`,name:`Angular HTML`,import:(()=>H(()=>import(`./angular-html-DCs801AK.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>H(()=>import(`./angular-ts-BWhN0w8_.js`),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:`apache`,name:`Apache Conf`,import:(()=>H(()=>import(`./apache-U0d_L8uA.js`),[],import.meta.url))},{id:`apex`,name:`Apex`,import:(()=>H(()=>import(`./apex-KFGFyKwG.js`),[],import.meta.url))},{id:`apl`,name:`APL`,import:(()=>H(()=>import(`./apl-Djz0ErNW.js`),__vite__mapDeps([6,2,3,1,7,8,9]),import.meta.url))},{id:`applescript`,name:`AppleScript`,import:(()=>H(()=>import(`./applescript-CCn79oCD.js`),[],import.meta.url))},{id:`ara`,name:`Ara`,import:(()=>H(()=>import(`./ara-4CJ0cIlV.js`),[],import.meta.url))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>H(()=>import(`./asciidoc-SCjQUq34.js`),[],import.meta.url))},{id:`asm`,name:`Assembly`,import:(()=>H(()=>import(`./asm-Cmm7eHzH.js`),[],import.meta.url))},{id:`astro`,name:`Astro`,import:(()=>H(()=>import(`./astro-MWC3rLUN.js`),__vite__mapDeps([10,2,3,9,11,12,13]),import.meta.url))},{id:`awk`,name:`AWK`,import:(()=>H(()=>import(`./awk-BWXHIvNe.js`),[],import.meta.url))},{id:`ballerina`,name:`Ballerina`,import:(()=>H(()=>import(`./ballerina-B7ZEbQpA.js`),[],import.meta.url))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>H(()=>import(`./bat-qdxAdBWQ.js`),[],import.meta.url))},{id:`beancount`,name:`Beancount`,import:(()=>H(()=>import(`./beancount-D-usSTwE.js`),[],import.meta.url))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>H(()=>import(`./berry-DKpUyyne.js`),[],import.meta.url))},{id:`bibtex`,name:`BibTeX`,import:(()=>H(()=>import(`./bibtex-Ci_nEsc7.js`),[],import.meta.url))},{id:`bicep`,name:`Bicep`,import:(()=>H(()=>import(`./bicep-CUHmPFLl.js`),[],import.meta.url))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>H(()=>import(`./bird2-CYIUgYqB.js`),[],import.meta.url))},{id:`blade`,name:`Blade`,import:(()=>H(()=>import(`./blade-B8pycf1w.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16]),import.meta.url))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>H(()=>import(`./bsl-_VjlB9mv.js`),__vite__mapDeps([17,18]),import.meta.url))},{id:`c`,name:`C`,import:(()=>H(()=>import(`./c-B-Jcxs--.js`).then(e=>e.n),[],import.meta.url))},{id:`c3`,name:`C3`,import:(()=>H(()=>import(`./c3-D0apG41V.js`),[],import.meta.url))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>H(()=>import(`./cadence-CQ2zXKGN.js`),[],import.meta.url))},{id:`cairo`,name:`Cairo`,import:(()=>H(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([19,20]),import.meta.url))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>H(()=>import(`./chapel-CuJCeKLf.js`),__vite__mapDeps([21,22]),import.meta.url))},{id:`clarity`,name:`Clarity`,import:(()=>H(()=>import(`./clarity-CtfBBspg.js`),[],import.meta.url))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>H(()=>import(`./clojure-DqKBuwfJ.js`),[],import.meta.url))},{id:`cmake`,name:`CMake`,import:(()=>H(()=>import(`./cmake-Bj61d0ZC.js`),[],import.meta.url))},{id:`cobol`,name:`COBOL`,import:(()=>H(()=>import(`./cobol-DgquORVs.js`),__vite__mapDeps([23,1,2,3,8]),import.meta.url))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>H(()=>import(`./codeowners-C8r90Shi.js`),[],import.meta.url))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>H(()=>import(`./codeql-oeQT6MSM.js`),[],import.meta.url))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>H(()=>import(`./coffee-ECOaIhT5.js`),__vite__mapDeps([24,2]),import.meta.url))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>H(()=>import(`./common-lisp-Cv5bFMCO.js`),[],import.meta.url))},{id:`coq`,name:`Rocq`,import:(()=>H(()=>import(`./coq-DuBRPxYg.js`),[],import.meta.url))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>H(()=>import(`./cpp-CqnSivHO.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22]),import.meta.url))},{id:`crystal`,name:`Crystal`,import:(()=>H(()=>import(`./crystal-Cs7ZYBfN.js`),__vite__mapDeps([28,2,3,1,16,22,29]),import.meta.url))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>H(()=>import(`./csharp-oqKa8noW.js`),[],import.meta.url))},{id:`css`,name:`CSS`,import:(()=>H(()=>import(`./css-p0qk9Lci.js`).then(e=>e.n),[],import.meta.url))},{id:`csv`,name:`CSV`,import:(()=>H(()=>import(`./csv-Dx-8-gkx.js`),[],import.meta.url))},{id:`cue`,name:`CUE`,import:(()=>H(()=>import(`./cue-CE9AQfxI.js`),[],import.meta.url))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>H(()=>import(`./cypher-ClKdZ_lG.js`),[],import.meta.url))},{id:`d`,name:`D`,import:(()=>H(()=>import(`./d-qD-0Kul2.js`),[],import.meta.url))},{id:`dart`,name:`Dart`,import:(()=>H(()=>import(`./dart-CnvKMtbv.js`),[],import.meta.url))},{id:`dax`,name:`DAX`,import:(()=>H(()=>import(`./dax-BkyTk9wS.js`),[],import.meta.url))},{id:`desktop`,name:`Desktop`,import:(()=>H(()=>import(`./desktop-Dlh5hvp9.js`),[],import.meta.url))},{id:`diff`,name:`Diff`,import:(()=>H(()=>import(`./diff-woXpYk--.js`),[],import.meta.url))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>H(()=>import(`./docker-IyjqRm3v.js`),[],import.meta.url))},{id:`dotenv`,name:`dotEnv`,import:(()=>H(()=>import(`./dotenv-_5a1GRtc.js`),[],import.meta.url))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>H(()=>import(`./dream-maker-DW3nJb8Q.js`),[],import.meta.url))},{id:`edge`,name:`Edge`,import:(()=>H(()=>import(`./edge-mMULBvUs.js`),__vite__mapDeps([30,1,2,3,11,15]),import.meta.url))},{id:`elixir`,name:`Elixir`,import:(()=>H(()=>import(`./elixir-VIosceup.js`),__vite__mapDeps([31,1,2,3]),import.meta.url))},{id:`elm`,name:`Elm`,import:(()=>H(()=>import(`./elm-C3kw87lA.js`),__vite__mapDeps([32,27,22]),import.meta.url))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>H(()=>import(`./emacs-lisp-c_oH4hRZ.js`),[],import.meta.url))},{id:`erb`,name:`ERB`,import:(()=>H(()=>import(`./erb-DZjmloke.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39]),import.meta.url))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>H(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([40,41]),import.meta.url))},{id:`fennel`,name:`Fennel`,import:(()=>H(()=>import(`./fennel-DQxkIbk2.js`),[],import.meta.url))},{id:`fish`,name:`Fish`,import:(()=>H(()=>import(`./fish-BJitypiv.js`),[],import.meta.url))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>H(()=>import(`./fluent-C03EYrpw.js`),[],import.meta.url))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>H(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([42,43]),import.meta.url))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>H(()=>import(`./fortran-free-form-CYNrtFtB.js`),[],import.meta.url))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>H(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([44,41]),import.meta.url))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>H(()=>import(`./gdresource-xMC7jr7x.js`),__vite__mapDeps([45,46,47]),import.meta.url))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>H(()=>import(`./gdscript-DYvRD3hg.js`),[],import.meta.url))},{id:`gdshader`,name:`GDShader`,import:(()=>H(()=>import(`./gdshader-CBce3t8t.js`),[],import.meta.url))},{id:`genie`,name:`Genie`,import:(()=>H(()=>import(`./genie-CV2tkWYe.js`),[],import.meta.url))},{id:`gherkin`,name:`Gherkin`,import:(()=>H(()=>import(`./gherkin-DExj1W_8.js`),[],import.meta.url))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>H(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([48,49]),import.meta.url))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>H(()=>import(`./git-rebase-qAMhScBw.js`),__vite__mapDeps([50,29]),import.meta.url))},{id:`gleam`,name:`Gleam`,import:(()=>H(()=>import(`./gleam-CSRkHgEL.js`),[],import.meta.url))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>H(()=>import(`./glimmer-js-DJdA7CEB.js`),__vite__mapDeps([51,2,3,1,11]),import.meta.url))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>H(()=>import(`./glimmer-ts-6xtV4JQb.js`),__vite__mapDeps([52,2,3,1,11]),import.meta.url))},{id:`glsl`,name:`GLSL`,import:(()=>H(()=>import(`./glsl-BRqSJ3dN.js`).then(e=>e.n),__vite__mapDeps([27,22]),import.meta.url))},{id:`gn`,name:`GN`,import:(()=>H(()=>import(`./gn-ilITqXS6.js`),[],import.meta.url))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>H(()=>import(`./gnuplot-7GGW24-e.js`),[],import.meta.url))},{id:`go`,name:`Go`,import:(()=>H(()=>import(`./go-rLFTqkRN.js`),[],import.meta.url))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>H(()=>import(`./graphql-nm_X3Hg7.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37]),import.meta.url))},{id:`groovy`,name:`Groovy`,import:(()=>H(()=>import(`./groovy-CacY0gHj.js`),[],import.meta.url))},{id:`hack`,name:`Hack`,import:(()=>H(()=>import(`./hack-CQ7j-SLC.js`),__vite__mapDeps([53,1,2,3,16]),import.meta.url))},{id:`haml`,name:`Ruby Haml`,import:(()=>H(()=>import(`./haml-nw30ZCFe.js`).then(e=>e.n),__vite__mapDeps([35,2,3]),import.meta.url))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>H(()=>import(`./handlebars-CbbUPaYB.js`),__vite__mapDeps([54,2,3,1,39]),import.meta.url))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>H(()=>import(`./haskell-D8IpX4py.js`),[],import.meta.url))},{id:`haxe`,name:`Haxe`,import:(()=>H(()=>import(`./haxe-C8oCnwJJ.js`),[],import.meta.url))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>H(()=>import(`./hcl-Dh228itO.js`),[],import.meta.url))},{id:`hjson`,name:`Hjson`,import:(()=>H(()=>import(`./hjson-CxZEssPk.js`),[],import.meta.url))},{id:`hlsl`,name:`HLSL`,import:(()=>H(()=>import(`./hlsl-Cvrh5tZx.js`),[],import.meta.url))},{id:`html`,name:`HTML`,import:(()=>H(()=>import(`./html-C-E44L0y.js`).then(e=>e.n),__vite__mapDeps([1,2,3]),import.meta.url))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>H(()=>import(`./html-derivative-DTCnXXkR.js`),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:`http`,name:`HTTP`,import:(()=>H(()=>import(`./http-Cg4Jw-kz.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37]),import.meta.url))},{id:`hurl`,name:`Hurl`,import:(()=>H(()=>import(`./hurl-CITbwYVL.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37]),import.meta.url))},{id:`hxml`,name:`HXML`,import:(()=>H(()=>import(`./hxml-Dcm88srW.js`),__vite__mapDeps([58,59]),import.meta.url))},{id:`hy`,name:`Hy`,import:(()=>H(()=>import(`./hy-CZbG8q4J.js`),[],import.meta.url))},{id:`imba`,name:`Imba`,import:(()=>H(()=>import(`./imba-DsUTQ-LC.js`),[],import.meta.url))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>H(()=>import(`./ini-B5eOa1yu.js`),[],import.meta.url))},{id:`java`,name:`Java`,import:(()=>H(()=>import(`./java-DNT_EPVr.js`).then(e=>e.n),[],import.meta.url))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>H(()=>import(`./javascript-DBrMK690.js`).then(e=>e.n),[],import.meta.url))},{id:`jinja`,name:`Jinja`,import:(()=>H(()=>import(`./jinja-DqPnwJo-.js`),__vite__mapDeps([60,1,2,3]),import.meta.url))},{id:`jison`,name:`Jison`,import:(()=>H(()=>import(`./jison-A5ieRkCJ.js`),__vite__mapDeps([61,2]),import.meta.url))},{id:`json`,name:`JSON`,import:(()=>H(()=>import(`./json-BolWLdCd.js`).then(e=>e.n),[],import.meta.url))},{id:`json5`,name:`JSON5`,import:(()=>H(()=>import(`./json5-BR5RXkoi.js`),[],import.meta.url))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>H(()=>import(`./jsonc-CYpm1nAK.js`),[],import.meta.url))},{id:`jsonl`,name:`JSON Lines`,import:(()=>H(()=>import(`./jsonl-CmCQp5Yx.js`),[],import.meta.url))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>H(()=>import(`./jsonnet-CJTPZ8u_.js`),[],import.meta.url))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>H(()=>import(`./jssm-DXw9l8Rf.js`),[],import.meta.url))},{id:`jsx`,name:`JSX`,import:(()=>H(()=>import(`./jsx-CkIysgAJ.js`).then(e=>e.n),[],import.meta.url))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>H(()=>import(`./julia-jBzm267c.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63]),import.meta.url))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>H(()=>import(`./just-cr8UASbW.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65]),import.meta.url))},{id:`kdl`,name:`KDL`,import:(()=>H(()=>import(`./kdl-CsD5j6eV.js`),[],import.meta.url))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>H(()=>import(`./kotlin-DhhofPvG.js`),[],import.meta.url))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>H(()=>import(`./kusto-C7mF5XQf.js`),[],import.meta.url))},{id:`latex`,name:`LaTeX`,import:(()=>H(()=>import(`./latex-DcdC0vak.js`),__vite__mapDeps([66,67,63]),import.meta.url))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>H(()=>import(`./lean-CewbzKMR.js`),[],import.meta.url))},{id:`less`,name:`Less`,import:(()=>H(()=>import(`./less-DVTAwKKz.js`),[],import.meta.url))},{id:`liquid`,name:`Liquid`,import:(()=>H(()=>import(`./liquid-BBR6eAOA.js`),__vite__mapDeps([68,2,3,1,9]),import.meta.url))},{id:`llvm`,name:`LLVM IR`,import:(()=>H(()=>import(`./llvm-DqHOMS-s.js`),[],import.meta.url))},{id:`log`,name:`Log file`,import:(()=>H(()=>import(`./log-BNLmms1o.js`),[],import.meta.url))},{id:`logo`,name:`Logo`,import:(()=>H(()=>import(`./logo-Cluzi2Zq.js`),[],import.meta.url))},{id:`lua`,name:`Lua`,import:(()=>H(()=>import(`./lua-CnUVAA9w.js`).then(e=>e.n),__vite__mapDeps([38,22]),import.meta.url))},{id:`luau`,name:`Luau`,import:(()=>H(()=>import(`./luau-C2pBCSgt.js`),[],import.meta.url))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>H(()=>import(`./make-Dixweg8N.js`),[],import.meta.url))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>H(()=>import(`./markdown-BYOwaDjH.js`),[],import.meta.url))},{id:`marko`,name:`Marko`,import:(()=>H(()=>import(`./marko-BxH5DxB_.js`),__vite__mapDeps([69,3,5,11,70]),import.meta.url))},{id:`matlab`,name:`MATLAB`,import:(()=>H(()=>import(`./matlab-D7qyCx1q.js`),[],import.meta.url))},{id:`mdc`,name:`MDC`,import:(()=>H(()=>import(`./mdc-CVc0_tcy.js`),__vite__mapDeps([71,15,1,2,3,39,41]),import.meta.url))},{id:`mdx`,name:`MDX`,import:(()=>H(()=>import(`./mdx-DQZ5AkYe.js`),[],import.meta.url))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>H(()=>import(`./mermaid-BxpfTIzt.js`),[],import.meta.url))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>H(()=>import(`./mipsasm-BMqwQI7S.js`),[],import.meta.url))},{id:`mojo`,name:`Mojo`,import:(()=>H(()=>import(`./mojo-fg40_ntQ.js`),[],import.meta.url))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>H(()=>import(`./moonbit-DgjMoLWr.js`),[],import.meta.url))},{id:`move`,name:`Move`,import:(()=>H(()=>import(`./move-BYnGhZoM.js`),[],import.meta.url))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>H(()=>import(`./narrat-_X_XdTYD.js`),[],import.meta.url))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>H(()=>import(`./nextflow-BJtWHP5T.js`),__vite__mapDeps([72,73]),import.meta.url))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>H(()=>import(`./nextflow-groovy-DJMQeKeT.js`),[],import.meta.url))},{id:`nginx`,name:`Nginx`,import:(()=>H(()=>import(`./nginx-B1DQmN_N.js`),__vite__mapDeps([74,38,22]),import.meta.url))},{id:`nim`,name:`Nim`,import:(()=>H(()=>import(`./nim-C3rsdIhh.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41]),import.meta.url))},{id:`nix`,name:`Nix`,import:(()=>H(()=>import(`./nix-IvuFDN5E.js`),[],import.meta.url))},{id:`nsis`,name:`NSIS`,import:(()=>H(()=>import(`./nsis-CjNLYCLg.js`),[],import.meta.url))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>H(()=>import(`./nushell-DHYfO66s.js`),[],import.meta.url))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>H(()=>import(`./objective-c-D1A_Heim.js`),[],import.meta.url))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>H(()=>import(`./objective-cpp-BsSzOQcm.js`),[],import.meta.url))},{id:`ocaml`,name:`OCaml`,import:(()=>H(()=>import(`./ocaml-O90oeIOV.js`),[],import.meta.url))},{id:`odin`,name:`Odin`,import:(()=>H(()=>import(`./odin-B1RWQWA5.js`),[],import.meta.url))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>H(()=>import(`./openscad-BUDT5pXO.js`),[],import.meta.url))},{id:`org`,name:`Org Markup`,import:(()=>H(()=>import(`./org-DICsbmv1.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93]),import.meta.url))},{id:`pascal`,name:`Pascal`,import:(()=>H(()=>import(`./pascal-4ZHwLPI5.js`),[],import.meta.url))},{id:`perl`,name:`Perl`,import:(()=>H(()=>import(`./perl-B-6tgIaz.js`),__vite__mapDeps([65,2,3,1,7,8,16]),import.meta.url))},{id:`php`,name:`PHP`,import:(()=>H(()=>import(`./php-CSZf1YiM.js`),__vite__mapDeps([87,2,3,1,7,8,9,16]),import.meta.url))},{id:`pkl`,name:`Pkl`,import:(()=>H(()=>import(`./pkl-ot-7Btpt.js`),[],import.meta.url))},{id:`plsql`,name:`PL/SQL`,import:(()=>H(()=>import(`./plsql-DGHpHOYJ.js`),[],import.meta.url))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>H(()=>import(`./po-BiJDBrnU.js`),[],import.meta.url))},{id:`polar`,name:`Polar`,import:(()=>H(()=>import(`./polar-C7UOKdEL.js`),[],import.meta.url))},{id:`postcss`,name:`PostCSS`,import:(()=>H(()=>import(`./postcss-BXeXVLqQ.js`),[],import.meta.url))},{id:`powerquery`,name:`PowerQuery`,import:(()=>H(()=>import(`./powerquery-DNMTfnFr.js`),[],import.meta.url))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>H(()=>import(`./powershell-CCSX75yM.js`),[],import.meta.url))},{id:`prisma`,name:`Prisma`,import:(()=>H(()=>import(`./prisma-DMgNhnYS.js`),[],import.meta.url))},{id:`prolog`,name:`Prolog`,import:(()=>H(()=>import(`./prolog-iXnhIJG7.js`),[],import.meta.url))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>H(()=>import(`./proto-DB4EqR-F.js`),[],import.meta.url))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>H(()=>import(`./pug-BvQ97HKe.js`),__vite__mapDeps([94,2,3,1]),import.meta.url))},{id:`puppet`,name:`Puppet`,import:(()=>H(()=>import(`./puppet-CDv2pdJW.js`),[],import.meta.url))},{id:`purescript`,name:`PureScript`,import:(()=>H(()=>import(`./purescript-9MfHhQsQ.js`),[],import.meta.url))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>H(()=>import(`./python-gzcpVVnB.js`),[],import.meta.url))},{id:`qml`,name:`QML`,import:(()=>H(()=>import(`./qml-B_gSWBeZ.js`),__vite__mapDeps([95,2]),import.meta.url))},{id:`qmldir`,name:`QML Directory`,import:(()=>H(()=>import(`./qmldir-DCQb3MpD.js`),[],import.meta.url))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>H(()=>import(`./qss-Fe1Jh2GI.js`),[],import.meta.url))},{id:`r`,name:`R`,import:(()=>H(()=>import(`./r-Dbh43Ti8.js`).then(e=>e.n),[],import.meta.url))},{id:`racket`,name:`Racket`,import:(()=>H(()=>import(`./racket-DcIDlBhZ.js`),[],import.meta.url))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>H(()=>import(`./raku-B3gFvitq.js`),[],import.meta.url))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>H(()=>import(`./razor-Dks3_W39.js`),__vite__mapDeps([96,1,2,3,78]),import.meta.url))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>H(()=>import(`./rbs-C0MpOrj4.js`),[],import.meta.url))},{id:`reg`,name:`Windows Registry Script`,import:(()=>H(()=>import(`./reg-CRGYupPL.js`),[],import.meta.url))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>H(()=>import(`./regexp-cZE9On7Z.js`).then(e=>e.n),[],import.meta.url))},{id:`rel`,name:`Rel`,import:(()=>H(()=>import(`./rel-BtDbiS_P.js`),[],import.meta.url))},{id:`riscv`,name:`RISC-V`,import:(()=>H(()=>import(`./riscv-Ckw8ddFX.js`),[],import.meta.url))},{id:`ron`,name:`RON`,import:(()=>H(()=>import(`./ron-VUp2lXgN.js`),[],import.meta.url))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>H(()=>import(`./rosmsg-CAekHB0j.js`),[],import.meta.url))},{id:`rst`,name:`reStructuredText`,import:(()=>H(()=>import(`./rst-Cgn-1Zks.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38]),import.meta.url))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>H(()=>import(`./ruby-DkGM-R-6.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39]),import.meta.url))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>H(()=>import(`./rust-Cfkwpbl8.js`),[],import.meta.url))},{id:`sas`,name:`SAS`,import:(()=>H(()=>import(`./sas-D6c_PGbn.js`),__vite__mapDeps([99,16]),import.meta.url))},{id:`sass`,name:`Sass`,import:(()=>H(()=>import(`./sass-DXrisJhu.js`),[],import.meta.url))},{id:`scala`,name:`Scala`,import:(()=>H(()=>import(`./scala-BiFt_7mu.js`),[],import.meta.url))},{id:`scheme`,name:`Scheme`,import:(()=>H(()=>import(`./scheme-DQCgrYNe.js`),[],import.meta.url))},{id:`scss`,name:`SCSS`,import:(()=>H(()=>import(`./scss-BKxWJNFh.js`).then(e=>e.n),__vite__mapDeps([5,3]),import.meta.url))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>H(()=>import(`./sdbl-bTVj8UrX.js`),[],import.meta.url))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>H(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([100,101]),import.meta.url))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>H(()=>import(`./shellscript-Bcg5lXvK.js`).then(e=>e.n),[],import.meta.url))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>H(()=>import(`./shellsession-Bf400BZo.js`),__vite__mapDeps([102,29]),import.meta.url))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>H(()=>import(`./smalltalk-BHpQb5nM.js`),[],import.meta.url))},{id:`smithy`,name:`Smithy`,import:(()=>H(()=>import(`./smithy-Dgaz7aur.js`),[],import.meta.url))},{id:`solidity`,name:`Solidity`,import:(()=>H(()=>import(`./solidity-Bj7E1mRn.js`),[],import.meta.url))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>H(()=>import(`./soy-VDZj_scj.js`),__vite__mapDeps([103,1,2,3]),import.meta.url))},{id:`sparql`,name:`SPARQL`,import:(()=>H(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([104,105]),import.meta.url))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>H(()=>import(`./splunk-BC2Px7Mm.js`),[],import.meta.url))},{id:`sql`,name:`SQL`,import:(()=>H(()=>import(`./sql-ushyJdRf.js`).then(e=>e.n),[],import.meta.url))},{id:`ssh-config`,name:`SSH Config`,import:(()=>H(()=>import(`./ssh-config-BgfXC-Er.js`),[],import.meta.url))},{id:`stata`,name:`Stata`,import:(()=>H(()=>import(`./stata-87RYcwm-.js`),__vite__mapDeps([106,16]),import.meta.url))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>H(()=>import(`./stylus-B6D30XZt.js`),[],import.meta.url))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>H(()=>import(`./surrealql-DiJkNDgM.js`),__vite__mapDeps([107,2]),import.meta.url))},{id:`svelte`,name:`Svelte`,import:(()=>H(()=>import(`./svelte-B6zEQCqX.js`),__vite__mapDeps([108,2,3,11,12]),import.meta.url))},{id:`swift`,name:`Swift`,import:(()=>H(()=>import(`./swift-CyEgAFGc.js`),[],import.meta.url))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>H(()=>import(`./system-verilog-Dh5ihWbf.js`),[],import.meta.url))},{id:`systemd`,name:`Systemd Units`,import:(()=>H(()=>import(`./systemd-BxMlprV5.js`),[],import.meta.url))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>H(()=>import(`./talonscript-CohzipZa.js`),[],import.meta.url))},{id:`tasl`,name:`Tasl`,import:(()=>H(()=>import(`./tasl-DMoTqEGO.js`),[],import.meta.url))},{id:`tcl`,name:`Tcl`,import:(()=>H(()=>import(`./tcl-CZd0xW_V.js`),[],import.meta.url))},{id:`templ`,name:`Templ`,import:(()=>H(()=>import(`./templ-BbUkdxgW.js`),__vite__mapDeps([109,2,3,81]),import.meta.url))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>H(()=>import(`./terraform-DswuEJGm.js`),[],import.meta.url))},{id:`tex`,name:`TeX`,import:(()=>H(()=>import(`./tex-8DUlt0ja.js`).then(e=>e.n),__vite__mapDeps([67,63]),import.meta.url))},{id:`toml`,name:`TOML`,import:(()=>H(()=>import(`./toml-CcmNWLt0.js`),[],import.meta.url))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>H(()=>import(`./ts-tags-B9TjJt8W.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22]),import.meta.url))},{id:`tsv`,name:`TSV`,import:(()=>H(()=>import(`./tsv-sltzmVWM.js`),[],import.meta.url))},{id:`tsx`,name:`TSX`,import:(()=>H(()=>import(`./tsx-KtVv-1tC.js`).then(e=>e.n),[],import.meta.url))},{id:`turtle`,name:`Turtle`,import:(()=>H(()=>import(`./turtle-ByJddavk.js`),[],import.meta.url))},{id:`twig`,name:`Twig`,import:(()=>H(()=>import(`./twig-SRZcBkws.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9]),import.meta.url))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>H(()=>import(`./typescript-XxBZhs1X.js`).then(e=>e.n),[],import.meta.url))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>H(()=>import(`./typespec-BRdr0IET.js`),[],import.meta.url))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>H(()=>import(`./typst-zdrwuFs3.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120]),import.meta.url))},{id:`v`,name:`V`,import:(()=>H(()=>import(`./v-DBj4K9d_.js`),[],import.meta.url))},{id:`vala`,name:`Vala`,import:(()=>H(()=>import(`./vala-zf12oZj6.js`),[],import.meta.url))},{id:`vb`,name:`Visual Basic`,import:(()=>H(()=>import(`./vb-DOwzaHZ0.js`),[],import.meta.url))},{id:`verilog`,name:`Verilog`,import:(()=>H(()=>import(`./verilog-B2gwz-sJ.js`),[],import.meta.url))},{id:`vhdl`,name:`VHDL`,import:(()=>H(()=>import(`./vhdl-BroJfC0k.js`),[],import.meta.url))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>H(()=>import(`./viml-DvXPmvsu.js`),[],import.meta.url))},{id:`vue`,name:`Vue`,import:(()=>H(()=>import(`./vue-CIJzu_ou.js`),__vite__mapDeps([121,2,3,1,9,11,15]),import.meta.url))},{id:`vue-html`,name:`Vue HTML`,import:(()=>H(()=>import(`./vue-html-Cbh4Xclf.js`),__vite__mapDeps([122,2]),import.meta.url))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>H(()=>import(`./vue-vine-B3rP3Gia.js`),__vite__mapDeps([123,2,3,5,12,70,124]),import.meta.url))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>H(()=>import(`./vyper-CgoNMtux.js`),[],import.meta.url))},{id:`wasm`,name:`WebAssembly`,import:(()=>H(()=>import(`./wasm-ByWQv1Qj.js`),[],import.meta.url))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>H(()=>import(`./wenyan-C8pVoKbM.js`),[],import.meta.url))},{id:`wgsl`,name:`WGSL`,import:(()=>H(()=>import(`./wgsl-BsKzXJz4.js`),[],import.meta.url))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>H(()=>import(`./wikitext-ClFFjSW2.js`),[],import.meta.url))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>H(()=>import(`./wit-DdvCle-K.js`),[],import.meta.url))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>H(()=>import(`./wolfram-DLL8P-h_.js`),[],import.meta.url))},{id:`xml`,name:`XML`,import:(()=>H(()=>import(`./xml-B8FuGGpH.js`).then(e=>e.n),__vite__mapDeps([7,8]),import.meta.url))},{id:`xsl`,name:`XSL`,import:(()=>H(()=>import(`./xsl-DGb4ZSQs.js`),__vite__mapDeps([93,7,8]),import.meta.url))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>H(()=>import(`./yaml-DgFlGzOM.js`).then(e=>e.n),[],import.meta.url))},{id:`zenscript`,name:`ZenScript`,import:(()=>H(()=>import(`./zenscript-BnlCZFoB.js`),[],import.meta.url))},{id:`zig`,name:`Zig`,import:(()=>H(()=>import(`./zig-CMLA9XwU.js`),[],import.meta.url))}],Ye=Object.fromEntries(Je.map(e=>[e.id,e.import])),Xe=Object.fromEntries(Je.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Ze={...Ye,...Xe},Qe=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>H(()=>import(`./andromeeda-vGVdxbeo.js`),[],import.meta.url))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>H(()=>import(`./aurora-x-CDeNXAV0.js`),[],import.meta.url))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>H(()=>import(`./ayu-dark-DluEY0Gj.js`),[],import.meta.url))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>H(()=>import(`./ayu-light-C3h-C4tm.js`),[],import.meta.url))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>H(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[],import.meta.url))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>H(()=>import(`./catppuccin-frappe-C9Q5zVZY.js`),[],import.meta.url))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>H(()=>import(`./catppuccin-latte-CtsyrtPq.js`),[],import.meta.url))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>H(()=>import(`./catppuccin-macchiato-R8nAf1vR.js`),[],import.meta.url))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>H(()=>import(`./catppuccin-mocha-DjuaAJKi.js`),[],import.meta.url))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>H(()=>import(`./dark-plus-Cs2F2srj.js`),[],import.meta.url))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>H(()=>import(`./dracula-BHWKrbxM.js`),[],import.meta.url))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>H(()=>import(`./dracula-soft-5eyTD99u.js`),[],import.meta.url))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>H(()=>import(`./everforest-dark-sB-x3p7T.js`),[],import.meta.url))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>H(()=>import(`./everforest-light-Df2xbC6M.js`),[],import.meta.url))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>H(()=>import(`./github-dark-C-LZuMrd.js`),[],import.meta.url))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>H(()=>import(`./github-dark-default-DXG-b-1a.js`),[],import.meta.url))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>H(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[],import.meta.url))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>H(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[],import.meta.url))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>H(()=>import(`./github-light-EUqPIrTm.js`),[],import.meta.url))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>H(()=>import(`./github-light-default-BXViO-2h.js`),[],import.meta.url))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>H(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[],import.meta.url))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>H(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[],import.meta.url))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>H(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[],import.meta.url))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>H(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[],import.meta.url))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>H(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[],import.meta.url))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>H(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[],import.meta.url))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>H(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[],import.meta.url))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>H(()=>import(`./horizon-CE9ld1lL.js`),[],import.meta.url))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>H(()=>import(`./horizon-bright-DSNQnXHK.js`),[],import.meta.url))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>H(()=>import(`./houston-CsvMBhTu.js`),[],import.meta.url))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>H(()=>import(`./kanagawa-dragon-Bozd7klA.js`),[],import.meta.url))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>H(()=>import(`./kanagawa-lotus-BmuOG9ZW.js`),[],import.meta.url))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>H(()=>import(`./kanagawa-wave-BML5mF2J.js`),[],import.meta.url))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>H(()=>import(`./laserwave-C_8bwKvT.js`),[],import.meta.url))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>H(()=>import(`./light-plus-DVQuIRkW.js`),[],import.meta.url))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>H(()=>import(`./material-theme-Bm3Qr25_.js`),[],import.meta.url))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>H(()=>import(`./material-theme-darker-2IIEA8gg.js`),[],import.meta.url))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>H(()=>import(`./material-theme-lighter-uhdI0v04.js`),[],import.meta.url))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>H(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[],import.meta.url))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>H(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[],import.meta.url))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>H(()=>import(`./min-dark-BSWPekZh.js`),[],import.meta.url))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>H(()=>import(`./min-light-DDpmG2fV.js`),[],import.meta.url))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>H(()=>import(`./monokai-B_bV9PQ9.js`),[],import.meta.url))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>H(()=>import(`./night-owl-DhmEMT88.js`),[],import.meta.url))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>H(()=>import(`./night-owl-light-eJ-hLW7d.js`),[],import.meta.url))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>H(()=>import(`./nord-Cb4Vim4T.js`),[],import.meta.url))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>H(()=>import(`./one-dark-pro-CLwyXe_n.js`),[],import.meta.url))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>H(()=>import(`./one-light-D7Lr4KcI.js`),[],import.meta.url))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>H(()=>import(`./plastic-DQwYfKfQ.js`),[],import.meta.url))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>H(()=>import(`./poimandres-DRFjx7u4.js`),[],import.meta.url))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>H(()=>import(`./red-DX1BQOs8.js`),[],import.meta.url))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>H(()=>import(`./rose-pine-aMsaMD1D.js`),[],import.meta.url))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>H(()=>import(`./rose-pine-dawn-8PwUyIlP.js`),[],import.meta.url))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>H(()=>import(`./rose-pine-moon-DO-qXg-I.js`),[],import.meta.url))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>H(()=>import(`./slack-dark-DnToyrRv.js`),[],import.meta.url))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>H(()=>import(`./slack-ochin-B2OO5cIa.js`),[],import.meta.url))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>H(()=>import(`./snazzy-light-4G7pJPwS.js`),[],import.meta.url))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>H(()=>import(`./solarized-dark-UdsmMDCL.js`),[],import.meta.url))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>H(()=>import(`./solarized-light-C1IUL_tW.js`),[],import.meta.url))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>H(()=>import(`./synthwave-84-nFMaYfgc.js`),[],import.meta.url))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>H(()=>import(`./tokyo-night-oM2G3aXe.js`),[],import.meta.url))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>H(()=>import(`./vesper-DdrHHSXu.js`),[],import.meta.url))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>H(()=>import(`./vitesse-black-fwtXNY1n.js`),[],import.meta.url))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>H(()=>import(`./vitesse-dark-BZCL-v6S.js`),[],import.meta.url))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>H(()=>import(`./vitesse-light-VbXTXTou.js`),[],import.meta.url))}].map(e=>[e.id,e.import])),$e=s({createOnigurumaEngine:()=>Dt,getDefaultWasmLoader:()=>Et,loadWasm:()=>bt,setDefaultWasmLoader:()=>Tt}),et=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function tt(){return 2147483648}function nt(){return typeof performance<`u`?performance.now():Date.now()}var rt=(e,t)=>e+(t-e%t)%t;async function it(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=tt();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,rt(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:nt,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var at=Object.defineProperty,ot=(e,t,n)=>t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,st=(e,t,n)=>ot(e,typeof t==`symbol`?t:t+``,n),ct=null;function lt(e){throw new et(e.UTF8ToString(e.getLastOnigError()))}var ut=class e{constructor(t){st(this,`utf16Length`),st(this,`utf8Length`),st(this,`utf16Value`),st(this,`utf8Value`),st(this,`utf16OffsetToUtf8`),st(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},dt=class e{constructor(t){if(st(this,`id`,++e.LAST_ID),st(this,`_onigBinding`),st(this,`content`),st(this,`utf16Length`),st(this,`utf8Length`),st(this,`utf16OffsetToUtf8`),st(this,`utf8OffsetToUtf16`),st(this,`ptr`),!ct)throw new et(`Must invoke loadWasm first.`);this._onigBinding=ct,this.content=t;let n=new ut(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=ct.omalloc(1e4),e._sharedPtrInUse=!0,ct.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(ct)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};st(dt,`LAST_ID`,0),st(dt,`_sharedPtr`,0),st(dt,`_sharedPtrInUse`,!1);var ft=dt,pt=class{constructor(e){if(st(this,`_onigBinding`),st(this,`_ptr`),!ct)throw new et(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new ut(e[r]);t[r]=i.createString(ct),n[r]=i.utf8Length}let r=ct.omalloc(4*e.length);ct.HEAPU32.set(t,r/4);let i=ct.omalloc(4*e.length);ct.HEAPU32.set(n,i/4);let a=ct.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)ct.ofree(t[n]);ct.ofree(i),ct.ofree(r),a===0&<(ct),this._onigBinding=ct,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new ft(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function mt(e){return typeof e.instantiator==`function`}function ht(e){return typeof e.default==`function`}function gt(e){return e.data!==void 0}function _t(e){return typeof Response<`u`&&e instanceof Response}function vt(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var yt;function bt(e){if(yt)return yt;async function t(){ct=await it(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),mt(n)?n=await n.instantiator(t):ht(n)?n=await n.default(t):(gt(n)&&(n=n.data),_t(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await St(n)(t):await Ct(n)(t):vt(n)||n instanceof WebAssembly.Module?n=await xt(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await xt(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return yt=t(),yt}function xt(e){return t=>WebAssembly.instantiate(e,t)}function St(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ct(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var wt;function Tt(e){wt=e}function Et(){return wt}async function Dt(e){return e&&await bt(e),{createScanner(e){return new pt(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new ft(e)}}}var Ot=He({});We(Ot,$e);var kt=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function At(e){return jt(e)}function jt(e){return Array.isArray(e)?Mt(e):e instanceof RegExp?e:typeof e==`object`?Nt(e):e}function Mt(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=jt(e[n]);return t}function Nt(e){let t={};for(let n in e)t[n]=jt(e[n]);return t}function Pt(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Ft(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Ft(e.substring(0,e.length-1)):e.substr(~t+1)}var It=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Lt=class{static hasCaptures(e){return e!==null&&(It.lastIndex=0,It.test(e))}static replaceCaptures(e,t,n){return e.replace(It,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Rt(e,t){return e<t?-1:+(e>t)}function zt(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Rt(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Bt(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 Vt(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Ht=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Ut=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Jt(e),t)}static createFromParsedTheme(e,t){return Zt(e,t)}_cachedMatchRoot=new Ht(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Gt(e.parent,t.parentScopes));return n?new qt(n.fontStyle,n.foreground,n.background):null}},Wt=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Gt(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Kt(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Kt(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var qt=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Jt(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&Bt(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Bt(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new Yt(l,u,e,o,s,c)}}return n}var Yt=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},Xt=(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))(Xt||{});function Zt(e,t){e.sort((e,t)=>{let n=Rt(e.scope,t.scope);return n!==0||(n=zt(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Qt(t),o=new qt(n,a.getId(r),a.getId(i)),s=new tn(new en(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Ut(a,o,s)}var Qt=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;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 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)}},$t=Object.freeze([]),en=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||$t,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},tn=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),en.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(zt(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new en(e,t,n,r,i))}},nn=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=an(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function rn(e){return e}function an(e){return e}function on(e,t){let n=[],r=cn(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(sn(i)){let e=[];do e.push(i),i=r.next();while(sn(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function sn(e){return!!e&&!!e.match(/[\w\.:]+/)}function cn(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function ln(e){typeof e.dispose==`function`&&e.dispose()}var un=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},dn=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},fn=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},pn=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new un(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new fn;for(let n of e)mn(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof un){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function mn(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof un?gn({baseGrammar:a,selfGrammar:i},r):hn(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new un(e))}function hn(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];_n([r],t,n)}}function gn(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&_n(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&_n(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function _n(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Pt({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&_n(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Cn(i);switch(a.kind){case 0:gn({...t,selfGrammar:t.baseGrammar},n);break;case 1:gn(t,n);break;case 2:hn(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?hn(a.ruleName,i,n):gn(i,n)}else a.kind===4?n.add(new dn(a.scopeName,a.ruleName)):n.add(new un(a.scopeName))}}}var vn=class{kind=0},yn=class{kind=1},bn=class{constructor(e){this.ruleName=e}kind=2},xn=class{constructor(e){this.scopeName=e}kind=3},Sn=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Cn(e){if(e===`$base`)return new vn;if(e===`$self`)return new yn;let t=e.indexOf(`#`);return t===-1?new xn(e):t===0?new bn(e.substring(1)):new Sn(e.substring(0,t),e.substring(t+1))}var wn=/\\(\d+)/,Tn=/\\(\d+)/g,En=-1,Dn=-2;function On(e){return e}function kn(e){return e}var An=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Lt.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Lt.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Ft(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:Lt.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Lt.replaceCaptures(this._contentName,e,t)}},jn=class extends An{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Mn=class extends An{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Ln(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Rn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Nn=class extends An{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Rn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Pn=class extends An{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Ln(i,this.id),this.beginCaptures=a,this._end=new Ln(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Rn;for(let t of this.patterns)e.getRule(t).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Fn=class extends An{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Ln(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Ln(o,Dn),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Rn;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Rn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},In=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new jn(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Mn(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Pt({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Nn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Fn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Pn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Cn(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Nn||e instanceof Pn||e instanceof Fn)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Ln=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&wn.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Tn.lastIndex=0,this.source.replace(Tn,(e,t)=>Vt(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Rn=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){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(),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(e=>e.source);this._cached=new zn(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new zn(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},zn=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
3
3
|
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Bn=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Vn=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Bn(e,8),this._embeddedLanguagesMatcher=new Hn(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Bn(0,0);_getBasicScopeAttributes=new Ht(e=>new Bn(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Hn=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>Vt(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var Un=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Wn(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=Gn(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new Un(i,!0);f()}return new Un(i,!1);function f(){let o=Kn(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===En){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),Zn(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Pn){let r=o;Zn(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof Fn){let r=o;Zn(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(Zn(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function Gn(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof Fn&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=Xn(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Dn){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),Zn(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function Kn(e,t,n,r,i,a){let o=qn(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Jn(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function qn(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=Yn(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Jn(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=Yn(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function Yn(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function Xn(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function Zn(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));Wn(e,p,n&&d.start===0,d.start,f,i,!1,0),ln(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new Qn(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Qn=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function $n(e,t,n,r,i,a,o,s){return new rr(e,t,n,r,i,a,o,s)}function er(e,t,n,r,i){let a=on(t,tr),o=In.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function tr(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(nr(t[r],e))return n=r+1,!0;return!1})}function nr(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var rr=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new Vn(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ir(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=on(e,tr);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let 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(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)er(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&er(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(On(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[kn(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ir(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=In.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===or.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=nn.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?ar.createRootAndLookUpScopeName(a,r,this):ar.createRoot(`unknown`,r),t=new or(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
|
|
4
4
|
`;let a=this.createOnigString(e),o=a.content.length,s=new cr(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Wn(this,a,i,0,t,s,!0,r);return ln(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function ir(e,t){return e=At(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 ar=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=Wt.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new Wt(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new Wt(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),nn.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},or=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?ar.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:kn(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=ar.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,On(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ar.fromExtension(r,n.contentNameScopesList))}},sr=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):on(e,tr).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>on(e,tr).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},cr=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=nn.set(n,0,rn(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=nn.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),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);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},lr=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let 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,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,$n(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},ur=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new lr(Ut.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Ut.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new sr(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new pn(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},dr=or.NULL;function fr(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function pr(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function mr(e){return Array.isArray(e)?e:[e]}async function hr(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function gr(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function _r(e){return e===`ansi`||gr(e)}function vr(e){return e===`none`}function yr(e){return vr(e)}var br=/(\r?\n)/g;function xr(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(br),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var Sr={light:`#333333`,dark:`#bbbbbb`},Cr={light:`#fffffe`,dark:`#1e1e1e`},wr=`__shiki_resolved`;function Tr(e){if(e?.[wr])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?Sr.light:Sr.dark,n||=t.type===`light`?Cr.light:Cr.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,wr,{enumerable:!1,writable:!1,value:!0}),t}async function Er(e){return[...new Set((await Promise.all(e.filter(e=>!_r(e)).map(async e=>await hr(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function Dr(e){return(await Promise.all(e.map(async e=>yr(e)?null:Tr(await hr(e))))).filter(e=>!!e)}function Or(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new kt(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var kr=class extends ur{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Tr(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Ut.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Or(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new kt(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Ar=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}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){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},jr=0;function Mr(e){jr+=1,e.warnings!==!1&&jr>=10&&jr%10==0&&console.warn(`[Shiki] ${jr} 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 kt("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Tr),i=new kr(new Ar(e.engine,n),r,n,e.langAlias),a;function o(t){return Or(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new kt(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new kt(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Er(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await Dr(e))}function g(){if(t)throw new kt(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--jr)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function Nr(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([Dr(e.themes||[]),Er(e.langs||[]),e.engine]);return Mr({...e,themes:t,langs:n,engine:r})}var Pr=new WeakMap;function Fr(e,t){Pr.set(e,t)}function Ir(e){return Pr.get(e)}var Lr=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(mr(n).map(e=>[e,dr])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Rr(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Rr(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function zr(e,t){if(!(e instanceof Lr))throw new kt(`Invalid grammar state`);return e.getInternalStack(t)}var Br=/,/,Vr=/ /;function Hr(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(gr(e.resolveLangAlias(n.lang||`text`))||vr(r))return xr(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new kt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new kt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Wr(t,o,i,a,n)}function Ur(...e){if(e.length===2)return Ir(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(gr(i)||vr(a))throw new kt(`Plain language does not have grammar state`);if(i===`ansi`)throw new kt(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Lr(Gr(n,c,o,s,r).stateStack,c.name,o.name)}function Wr(e,t,n,r,i){let a=Gr(e,t,n,r,i),o=new Lr(a.stateStack,t.name,n.name);return Fr(a.tokens,o),a.tokens}function Gr(e,t,n,r,i){let a=fr(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=xr(e),u=i.grammarState?zr(i.grammarState,n.name)??dr:i.grammarContextCode==null?dr:Gr(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=pr(r[nn.getForeground(s)],a),u=nn.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=nn.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(Br).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(Vr))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?Kr(t.scopes):qr(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function Kr(e){return e.map(e=>({scopeName:e}))}function qr(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:Xr(e,i,t.slice(0,r))}}return n}function Jr(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function Yr(e,t,n){if(!Jr(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Jr(e[r],n[i])&&--r,--i;return r===-1}function Xr(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Yr(e,t,n)){r.push(a);break}return r}function Zr(e,t,n,r=Hr){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:Ir(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=Qr(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new Lr(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&Fr(s,c),s}function Qr(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var $r=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],ei=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};ei.prototype.normal={},ei.prototype.property={},ei.prototype.space=void 0;function ti(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ei(n,r,t)}function ni(e){return e.toLowerCase()}var ri=class{constructor(e,t){this.attribute=t,this.property=e}};ri.prototype.attribute=``,ri.prototype.booleanish=!1,ri.prototype.boolean=!1,ri.prototype.commaOrSpaceSeparated=!1,ri.prototype.commaSeparated=!1,ri.prototype.defined=!1,ri.prototype.mustUseProperty=!1,ri.prototype.number=!1,ri.prototype.overloadedBoolean=!1,ri.prototype.property=``,ri.prototype.spaceSeparated=!1,ri.prototype.space=void 0;var ii=s({boolean:()=>oi,booleanish:()=>si,commaOrSpaceSeparated:()=>di,commaSeparated:()=>ui,number:()=>U,overloadedBoolean:()=>ci,spaceSeparated:()=>li}),ai=0,oi=fi(),si=fi(),ci=fi(),U=fi(),li=fi(),ui=fi(),di=fi();function fi(){return 2**++ai}var pi=Object.keys(ii),mi=class extends ri{constructor(e,t,n,r){let i=-1;if(super(e,t),hi(this,`space`,r),typeof n==`number`)for(;++i<pi.length;){let e=pi[i];hi(this,pi[i],(n&ii[e])===ii[e])}}};mi.prototype.defined=!0;function hi(e,t,n){n&&(e[t]=n)}function gi(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new mi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ni(r)]=r,n[ni(a.attribute)]=r}return new ei(t,n,e.space)}var _i=gi({properties:{ariaActiveDescendant:null,ariaAtomic:si,ariaAutoComplete:null,ariaBusy:si,ariaChecked:si,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:li,ariaCurrent:null,ariaDescribedBy:li,ariaDetails:null,ariaDisabled:si,ariaDropEffect:li,ariaErrorMessage:null,ariaExpanded:si,ariaFlowTo:li,ariaGrabbed:si,ariaHasPopup:null,ariaHidden:si,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:li,ariaLevel:U,ariaLive:null,ariaModal:si,ariaMultiLine:si,ariaMultiSelectable:si,ariaOrientation:null,ariaOwns:li,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:si,ariaReadOnly:si,ariaRelevant:null,ariaRequired:si,ariaRoleDescription:li,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:si,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function vi(e,t){return t in e?e[t]:t}function yi(e,t){return vi(e,t.toLowerCase())}var bi=gi({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ui,acceptCharset:li,accessKey:li,action:null,allow:null,allowFullScreen:oi,allowPaymentRequest:oi,allowUserMedia:oi,alpha:oi,alt:null,as:null,async:oi,autoCapitalize:null,autoComplete:li,autoFocus:oi,autoPlay:oi,blocking:li,capture:null,charSet:null,checked:oi,cite:null,className:li,closedBy:null,colorSpace:null,cols:U,colSpan:U,command:null,commandFor:null,content:null,contentEditable:si,controls:oi,controlsList:li,coords:U|ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oi,defer:oi,dir:null,dirName:null,disabled:oi,download:ci,draggable:si,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oi,formTarget:null,headers:li,height:U,hidden:ci,high:U,href:null,hrefLang:null,htmlFor:li,httpEquiv:li,id:null,imageSizes:null,imageSrcSet:null,inert:oi,inputMode:null,integrity:null,is:null,isMap:oi,itemId:null,itemProp:li,itemRef:li,itemScope:oi,itemType:li,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oi,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:oi,muted:oi,name:null,nonce:null,noModule:oi,noValidate:oi,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:oi,optimum:U,pattern:null,ping:li,placeholder:null,playsInline:oi,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oi,referrerPolicy:null,rel:li,required:oi,reversed:oi,rows:U,rowSpan:U,sandbox:li,scope:null,scoped:oi,seamless:oi,selected:oi,shadowRootClonable:oi,shadowRootCustomElementRegistry:oi,shadowRootDelegatesFocus:oi,shadowRootMode:null,shadowRootSerializable:oi,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:si,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:oi,useMap:null,value:si,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:li,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oi,declare:oi,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:oi,noHref:oi,noShade:oi,noWrap:oi,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:si,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:oi,disablePictureInPicture:oi,disableRemotePlayback:oi,exportParts:ui,part:li,prefix:null,property:null,results:U,security:null,unselectable:null},space:`html`,transform:yi}),xi=gi({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`,maskType:`mask-type`,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:di,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:li,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:oi,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:ui,g2:ui,glyphName:ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:di,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:li,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:di,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:di,rev:di,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:di,requiredFeatures:di,requiredFonts:di,requiredFormats:di,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:di,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:di,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:di,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:vi}),Si=gi({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()}}),Ci=gi({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:yi}),wi=gi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Ti={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Ei=/[A-Z]/g,Di=/-[a-z]/g,Oi=/^data[-\w.:]+$/i;function ki(e,t){let n=ni(t),r=t,i=ri;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Oi.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Di,ji);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Di.test(e)){let n=e.replace(Ei,Ai);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=mi}return new i(r,t)}function Ai(e){return`-`+e.toLowerCase()}function ji(e){return e.charAt(1).toUpperCase()}var Mi=ti([_i,bi,Si,Ci,wi],`html`),Ni=ti([_i,xi,Si,Ci,wi],`svg`),Pi={}.hasOwnProperty;function Fi(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Pi.call(t,e)){let n=String(t[e]);i=Pi.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Ii=/["&'<>`]/g,Li=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ri=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,zi=/[|\\{}()[\]^$+*?.]/g,Bi=new WeakMap;function Vi(e,t){if(e=e.replace(t.subset?Hi(t.subset):Ii,r),t.subset||t.escapeOnly)return e;return e.replace(Li,n).replace(Ri,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Hi(e){let t=Bi.get(e);return t||(t=Ui(e),Bi.set(e,t)),t}function Ui(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(zi,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Wi=/[\dA-Fa-f]/;function Gi(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Wi.test(String.fromCharCode(t))?r:r+`;`}var Ki=/\d/;function qi(e,t,n){let r=`&#`+String(e);return n&&t&&!Ki.test(String.fromCharCode(t))?r:r+`;`}var Ji=`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`.split(`.`),Yi={nbsp:`\xA0`,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:`€`},Xi=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],Zi={}.hasOwnProperty,Qi={},$i;for($i in Yi)Zi.call(Yi,$i)&&(Qi[Yi[$i]]=$i);var ea=/[^\dA-Za-z]/;function ta(e,t,n,r){let i=String.fromCharCode(e);if(Zi.call(Qi,i)){let e=Qi[i],a=`&`+e;return n&&Ji.includes(e)&&!Xi.includes(e)&&(!r||t&&t!==61&&ea.test(String.fromCharCode(t)))?a:a+`;`}return``}function na(e,t,n){let r=Gi(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=ta(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=qi(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function ra(e,t){return Vi(e,Object.assign({format:na},t))}var ia=/^>|^->|<!--|-->|--!>|<!-$/g,aa=[`>`],oa=[`<`,`>`];function sa(e,t,n,r){return r.settings.bogusComments?`<?`+ra(e.value,Object.assign({},r.settings.characterReferences,{subset:aa}))+`>`:`<!--`+e.value.replace(ia,i)+`-->`;function i(e){return ra(e,Object.assign({},r.settings.characterReferences,{subset:oa}))}}function ca(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function la(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ua(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function da(e){return e.join(` `).trim()}var fa=/[ \t\n\f\r]/g;function pa(e){return typeof e==`object`?e.type===`text`&&ma(e.value):ma(e)}function ma(e){return e.replace(fa,``)===``}var ha=va(1),ga=va(-1),_a=[];function va(e){return t;function t(t,n,r){let i=t?t.children:_a,a=(n||0)+e,o=i[a];if(!r)for(;o&&pa(o);)a+=e,o=i[a];return o}}var ya={}.hasOwnProperty;function ba(e){return t;function t(t,n,r){return ya.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var xa=ba({body:wa,caption:Sa,colgroup:Sa,dd:Oa,dt:Da,head:Sa,html:Ca,li:Ea,optgroup:Aa,option:ja,p:Ta,rp:ka,rt:ka,tbody:Na,td:Ia,tfoot:Pa,th:Ia,thead:Ma,tr:Fa});function Sa(e,t,n){let r=ha(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&pa(r.value.charAt(0)))}function Ca(e,t,n){let r=ha(n,t);return!r||r.type!==`comment`}function wa(e,t,n){let r=ha(n,t);return!r||r.type!==`comment`}function Ta(e,t,n){let r=ha(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||n.type!==`element`||n.tagName!==`a`&&n.tagName!==`audio`&&n.tagName!==`del`&&n.tagName!==`ins`&&n.tagName!==`map`&&n.tagName!==`noscript`&&n.tagName!==`video`}function Ea(e,t,n){let r=ha(n,t);return!r||r.type===`element`&&r.tagName===`li`}function Da(e,t,n){let r=ha(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function Oa(e,t,n){let r=ha(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function ka(e,t,n){let r=ha(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function Aa(e,t,n){let r=ha(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function ja(e,t,n){let r=ha(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function Ma(e,t,n){let r=ha(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function Na(e,t,n){let r=ha(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function Pa(e,t,n){return!ha(n,t)}function Fa(e,t,n){let r=ha(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function Ia(e,t,n){let r=ha(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var La=ba({body:Ba,colgroup:Va,head:za,html:Ra,tbody:Ha});function Ra(e){let t=ha(e,-1);return!t||t.type!==`comment`}function za(e){let t=new Set;for(let 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)}let n=e.children[0];return!n||n.type===`element`}function Ba(e){let t=ha(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&pa(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function Va(e,t,n){let r=ga(n,t),i=ha(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&xa(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Ha(e,t,n){let r=ga(n,t),i=ha(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&xa(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Ua={name:[[`
|
|
5
5
|
\f\r &/=>`.split(``),`
|
|
@@ -10,7 +10,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
10
10
|
\f\r "&'<=>\``.split(``)],[`\0
|
|
11
11
|
\f\r "&'<=>\``.split(``),`\0
|
|
12
12
|
\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function Wa(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Ni);let l=Ga(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!La(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!xa(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function Ga(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=Ka(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function Ka(e,t,n){let r=ki(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=ra(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Ua.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?ua:da)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=ra(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ua.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&la(n,o)>la(n,e.alternative)&&(o=e.alternative),s=o+ra(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?Ua.single:Ua.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var qa=[`<`,`&`];function Ja(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:ra(e.value,Object.assign({},r.settings.characterReferences,{subset:qa}))}function Ya(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Ja(e,t,n,r)}function Xa(e,t,n,r){return r.all(e)}var Za=Fi(`type`,{invalid:Qa,unknown:$a,handlers:{comment:sa,doctype:ca,element:Wa,raw:Ya,root:Xa,text:Ja}});function Qa(e){throw Error("Expected node, not `"+e+"`")}function $a(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var eo={},to={},no=[];function ro(e,t){let n=t||eo,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:io,all:ao,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||$r,characterReferences:n.characterReferences||to,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Ni:Mi,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function io(e,t,n){return Za(e,t,n,this)}function ao(e){let t=[],n=e&&e.children||no,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var oo=/\s+/g;function so(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(oo)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(oo);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}var co=/:?lang=["']([^"']+)["']/g,lo=/(?:```|~~~)([\w-]+)/g,uo=/\\begin\{([\w-]+)\}/g,fo=/<script\s+(?:type|lang)=["']([^"']+)["']/gi,po=/^\s*---\r?\n[\s\S]*?\r?\n---(?:\r?\n|\s*$)/;function mo(e){let t=xr(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function ho(e,t,n){let r=new Set;for(let t of e.matchAll(co)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(lo)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(uo)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(fo)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(po.test(e)&&r.add(`yaml`),!n)return[...r];let i=n.getBundledLanguages();return[...r].filter(e=>e&&i[e])}var go=[`color`,`background-color`];function _o(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function vo(e,t){let n=0,r=e.length;for(;n<r;){let i=n+(r-n>>1);e[i]<=t?n=i+1:r=i}return n}function yo(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,r=vo(n,e.offset),i=r;for(;i<n.length&&n[i]<t;)i++;if(r===i)return e;let a=n.slice(r,i);for(let t=0;t<a.length;t++)a[t]-=e.offset;return _o(e,a)})):e}function bo(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>xo(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&go.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new kt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function xo(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&Xt.Italic&&(t[`font-style`]=`italic`),e.fontStyle&Xt.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&Xt.Underline&&n.push(`underline`),e.fontStyle&Xt.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function So(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function Co(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=mo(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new kt(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(t===void 0)throw new kt(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new kt(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));wo(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return yo(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new kt(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=To(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new kt(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new kt(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&so(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function wo(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new kt(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new kt(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function To(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(To).join(``):``}var Eo=[Co()];function Do(e){let t=Oo(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Eo]}function Oo(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var ko=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],Ao={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function jo(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function Mo(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function No(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)Ao[r]&&t.push({type:`setDecoration`,value:Ao[r]});else if(r<=29){let e=Ao[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:ko[r-30]}});else if(r===38){let n=Mo(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:ko[r-40]}});else if(r===48){let n=Mo(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:ko[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:ko[r-100+8]}})}}return t}function Po(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=jo(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=No(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var Fo={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 Io(e=Fo){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<ko.length;e++)r.push(t(ko[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var Lo=/#([0-9a-f]{3,8})/i,Ro=/var\((--[\w-]+-ansi-[\w-]+)\)/,zo={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 Bo(e,t,n){let r=fr(e,n),i=xr(t),a=Io(Object.fromEntries(ko.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||zo[t]]}))),o=Po();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=pr(i,r),o=pr(o,r),n.decorations.has(`dim`)&&(i=Vo(i));let s=Xt.None;return n.decorations.has(`bold`)&&(s|=Xt.Bold),n.decorations.has(`italic`)&&(s|=Xt.Italic),n.decorations.has(`underline`)&&(s|=Xt.Underline),n.decorations.has(`strikethrough`)&&(s|=Xt.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function Vo(e){let t=e.match(Lo);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(Ro);return n?`var(${n[1]}-dim)`:e}function Ho(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!gr(r)&&!vr(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return Bo(r,t,n)}return Hr(e,t,n)}function Uo(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new kt("`themes` option must not be empty");let p=Zr(e,t,n,Ho);if(c=Ir(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new kt(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>bo(e,h,u,l,d))),c&&Fr(a,c);let g=f.map(e=>fr(e.theme,n));i=Wo(f,m,g,u,l,`fg`,d),r=Wo(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=fr(n.theme,n);a=Ho(e,t,n);let l=e.getTheme(n.theme);r=pr(l.bg,s),i=pr(l.fg,s),o=l.name,c=Ir(a)}else throw new kt("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function Wo(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=pr(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new kt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${pr(t[r][a],n[r])||`inherit`}, ${pr(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var Go=/^\s+$/,Ko=/^(\s*)(.*?)(\s*)$/;function qo(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>qo(e,t,n),codeToTokens:(t,n)=>Uo(e,t,n)}){let i=t;for(let e of Do(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=Uo(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=Yo(a):d===`never`&&(a=Xo(a)),f&&(a=Zo(a));let p={...r,get source(){return i}};for(let e of Do(n))a=e.tokens?.call(p,a)||a;return Jo(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function Jo(e,t,n,r=Ir(e)){let i=Do(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:so,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
|
|
13
|
-
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=So(a.htmlStyle||xo(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&Fr(m,r),m}function Yo(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&Xt.Underline||i.fontStyle&Xt.Strikethrough));o&&Go.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Xo(e){return e.map(e=>e.flatMap(e=>{if(Go.test(e.content))return e;let t=e.content.match(Ko);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function Zo(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=So(e.htmlStyle||xo(e)),i=So(n.htmlStyle||xo(n)),a=e.fontStyle&&(e.fontStyle&Xt.Underline||e.fontStyle&Xt.Strikethrough),o=n.fontStyle&&(n.fontStyle&Xt.Underline||n.fontStyle&Xt.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var Qo=ro;function $o(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>qo(e,t,n),codeToTokens:(t,n)=>Uo(e,t,n)},i=Qo(qo(e,t,n,r));for(let e of Do(n))i=e.postprocess?.call(r,i,n)||i;return i}async function es(e){let t=await Nr(e);return{getLastGrammarState:(...e)=>Ur(t,...e),codeToTokensBase:(e,n)=>Ho(t,e,n),codeToTokensWithThemes:(e,n)=>Zr(t,e,n),codeToTokens:(e,n)=>Uo(t,e,n),codeToHast:(e,n)=>qo(t,e,n),codeToHtml:(e,n)=>$o(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function ts(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,_r(n))return[];let r=t[n];if(!r)throw new kt(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(yr(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new kt(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await es({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function ns(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function rs(e,t){let n=ns(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var is=ts({langs:Ze,themes:Qe,engine:()=>(0,Ot.createOnigurumaEngine)(H(()=>import(`./wasm-BnjxR4X6.js`),[]))}),{codeToHtml:as,codeToHast:os,codeToTokens:ss,codeToTokensBase:cs,codeToTokensWithThemes:ls,getSingletonHighlighter:us,getLastGrammarState:ds}=rs(is,{guessEmbeddedLanguages:ho}),fs=4294967295,ps=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:fs,end:fs,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function ms(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function hs(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var gs=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),_s=String.raw;function vs(e,t){if(e==null)throw Error(t??`Value expected`);return e}var ys=_s`\[\^?`,bs=`c.? | C(?:-.?)?|${_s`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${_s`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${_s`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${_s`o\{[^\}]*\}?`}|${_s`\d{1,3}`}`,xs=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ss=new RegExp(_s`
|
|
13
|
+
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=So(a.htmlStyle||xo(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&Fr(m,r),m}function Yo(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&Xt.Underline||i.fontStyle&Xt.Strikethrough));o&&Go.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Xo(e){return e.map(e=>e.flatMap(e=>{if(Go.test(e.content))return e;let t=e.content.match(Ko);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function Zo(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=So(e.htmlStyle||xo(e)),i=So(n.htmlStyle||xo(n)),a=e.fontStyle&&(e.fontStyle&Xt.Underline||e.fontStyle&Xt.Strikethrough),o=n.fontStyle&&(n.fontStyle&Xt.Underline||n.fontStyle&Xt.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var Qo=ro;function $o(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>qo(e,t,n),codeToTokens:(t,n)=>Uo(e,t,n)},i=Qo(qo(e,t,n,r));for(let e of Do(n))i=e.postprocess?.call(r,i,n)||i;return i}async function es(e){let t=await Nr(e);return{getLastGrammarState:(...e)=>Ur(t,...e),codeToTokensBase:(e,n)=>Ho(t,e,n),codeToTokensWithThemes:(e,n)=>Zr(t,e,n),codeToTokens:(e,n)=>Uo(t,e,n),codeToHast:(e,n)=>qo(t,e,n),codeToHtml:(e,n)=>$o(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function ts(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,_r(n))return[];let r=t[n];if(!r)throw new kt(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(yr(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new kt(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await es({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function ns(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function rs(e,t){let n=ns(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var is=ts({langs:Ze,themes:Qe,engine:()=>(0,Ot.createOnigurumaEngine)(H(()=>import(`./wasm-BnjxR4X6.js`),[],import.meta.url))}),{codeToHtml:as,codeToHast:os,codeToTokens:ss,codeToTokensBase:cs,codeToTokensWithThemes:ls,getSingletonHighlighter:us,getLastGrammarState:ds}=rs(is,{guessEmbeddedLanguages:ho}),fs=4294967295,ps=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:fs,end:fs,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function ms(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function hs(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var gs=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),_s=String.raw;function vs(e,t){if(e==null)throw Error(t??`Value expected`);return e}var ys=_s`\[\^?`,bs=`c.? | C(?:-.?)?|${_s`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${_s`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${_s`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${_s`o\{[^\}]*\}?`}|${_s`\d{1,3}`}`,xs=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ss=new RegExp(_s`
|
|
14
14
|
\\ (?:
|
|
15
15
|
${bs}
|
|
16
16
|
| [gk]<[^>]*>?
|
|
@@ -150,7 +150,7 @@ XID_Continue XIDC
|
|
|
150
150
|
XID_Start XIDS`.split(/\s/).map(e=>[Hc(e),e])),Il=new Map([[`s`,bl(383)],[bl(383),`s`]]),Ll=new Map([[bl(223),bl(7838)],[bl(107),bl(8490)],[bl(229),bl(8491)],[bl(969),bl(8486)]]),Rl=new Map([Vl(453),Vl(456),Vl(459),Vl(498),...Hl(8072,8079),...Hl(8088,8095),...Hl(8104,8111),Vl(8124),Vl(8140),Vl(8188)]),zl=new Map([[`alnum`,xl`[\p{Alpha}\p{Nd}]`],[`alpha`,xl`\p{Alpha}`],[`ascii`,xl`\p{ASCII}`],[`blank`,xl`[\p{Zs}\t]`],[`cntrl`,xl`\p{Cc}`],[`digit`,xl`\p{Nd}`],[`graph`,xl`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,xl`\p{Lower}`],[`print`,xl`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,xl`[\p{P}\p{S}]`],[`space`,xl`\p{space}`],[`upper`,xl`\p{Upper}`],[`word`,xl`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,xl`\p{AHex}`]]);function Bl(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Vl(e){let t=bl(e);return[t.toLowerCase(),t]}function Hl(e,t){return Bl(e,t).map(e=>Vl(e))}var Ul=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function Wl(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};Jl(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:El(n.bestEffortTarget,`ES2024`),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Gc(e,Gl,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return Gc(e,Kl,a),Gc(e,ql,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var Gl={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=Dc();e.body[0].body.push(Oc({negate:!0,body:r}),Pc(`Any`));let i=Dc();i.body[0].body.push(jc(`greedy`,0,1/0,e)),n(pu(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];Tl(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=tu(t.get(e));if(n){let t=Dc({flags:n});t.body[0].body=e.body,e.body=[pu(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o(pu(Oc({body:[_c({body:[vc(`string_end`)]}),_c({body:[xc(10)]})]}),t));else if(c===`line_start`)o(pu(uu(xl`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`){if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&su(e))o(pu(Oc({negate:!0}),t));else if(d)throw Error(xl`Uses "\G" in a way that requires a subclass`);else o(fu(vc(`string_start`),t)),s.strategy=`clip_search`}}else if(c!==`string_end`&&c!==`string_start`){if(c===`string_end_newline`)o(pu(uu(xl`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${Nl})(?!${Nl})|(?<!${Nl})(?=${Nl}))`,n=`(?:(?<=${Nl})(?=${Nl})|(?<!${Nl})(?!${Nl}))`;o(pu(uu(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)}},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!lu(n)&&(n=eu(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!lu(r)&&(r=eu(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n(pu(Sc({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(fu(wc(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(pu(du(uu(jl),l),t));return}if(s&&(c===`word`||u===`word`)){n(fu(wc(`word`,{negate:l}),t));return}if(c===`any`)n(fu(Pc(`Any`),t));else if(c===`digit`)n(fu(Pc(`Nd`,{negate:l}),t));else if(c!==`dot`){if(c===`text_segment`){if(r===`strict`)throw Error(xl`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=xl`\p{RI}{2}|${e}(?:\u200D${e})*`;n(pu(uu(xl`(?>\r\n|${i?xl`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(fu(Pc(`AHex`,{negate:l}),t));else if(c===`newline`)n(pu(uu(l?`[^
|
|
151
151
|
]`:`(?>\r
|
|
152
152
|
?|[
|
|
153
|
-
\v\f
\u2028\u2029])`),t));else if(c===`posix`){if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${bl(e.codePointAt(0)-1)}${bl(e.codePointAt(2)+1)}-\u{10FFFF}`),n(pu(uu(`[${e}]`),t))}else n(pu(du(uu(zl.get(u)),l),t))}else if(c===`property`)Fl.has(Hc(u))||(e.key=`sc`);else if(c===`space`)n(fu(Pc(`space`,{negate:l}),t));else if(c===`word`)n(pu(du(uu(Nl),l),t));else throw Error(`Unexpected character set kind "${c}"`)}},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`){if(!c.enable&&!c.disable)r();else{let e=Dc({flags:c});e.body[0].body=o(),i(pu(e,t),{traverse:!0})}}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&ic(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(xl`Uses "\K" in a way that's unsupported`);let o=Oc({behind:!0});o.body[0].body=a(),i(pu(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),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;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(pu(Oc({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=Dc();t.body[0].body.push(e.body),e.body=pu(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=iu(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(xl`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!lu(n)&&(n=eu(n,t),e.ref=n)}},Kl={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=fu(Ql(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&Tl(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=Tl(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=wl(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&(n.type!==`CapturingGroup`||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?Ql(0):Zl(o,r.groupOriginByCopy,null),l=c;if(!s){let e=tu($l(o,e=>e.type===`Group`&&!!e.flags)),t=e?wl(r.globalFlags,e):r.globalFlags;Yl(t,r.currentFlags)||(l=Dc({flags:nu(t)}),l.body[0].body.push(c))}n(pu(l,t),{traverse:!s})}},ql={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>Xl(t,e));i.length?i.length>1?n(pu(Dc({atomic:!0,body:i.reverse().map(e=>_c({body:[yc(e.number)]}))}),t)):e.ref=i[0].number:n(pu(Oc({negate:!0}),t))},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){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=bc();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Jl(e){Gc(e,{"*"({node:e,parent:t}){e.parent=t}})}function Yl(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Xl(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=ru(n.parent);for(let r of t){if(r===n)break;if(r===e||au(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function Zl(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=Zl(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function Ql(e){let t=Nc(e);return t.isRecursive=!0,t}function $l(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function eu(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function tu(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function nu({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function ru(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function iu(e){let t=e.find(e=>e.kind===`search_start`||cu(e,{negate:!1})||!ou(e));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`){let e=[];for(let n of t.body){let t=iu(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function au(e,t){let n=ru(e)??[];for(let e of n)if(e===t||au(e,t))return!0;return!1}function ou({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function su(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function cu(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&ic(e.body[0],{type:`Assertion`,kind:`search_start`})}function lu(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function uu(e,t){let n=sc(e,{...t,unicodePropertyMap:Fl}).body;return n.length>1||n[0].body.length>1?Dc({body:n}):n[0].body[0]}function du(e,t){return e.negate=t,e}function fu(e,t){return e.parent=t,e}function pu(e,t){return Jl(e),e.parent=t,e}function mu(e,t){let n=Al(t),r=El(n.target,`ES2024`),i=El(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];Gc(e,hu,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,Dl(gu[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&Tl(f._captureTransfers,e.transferTo,[]).push(t)}),f}var hu={"*":{enter({node:e},t){if(Ou(e)){let n=t.getCurrentModI();t.pushModI(e.flags?wl({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Ou(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Su(bl(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Cu(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&Ul.has(e.value)&&t.setHasCasedChar()}},gu={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?xl`\B`:xl`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=bl(e),r=wu(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Su(n)){let e=Pl(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);Sl.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(Au)&&(o=[xc(45),...o.filter(e=>!Au(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||Sl.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=Dc(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=_c({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(Sl.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=wu(n,i),o=wu(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Tu(Cu(e)).forEach(e=>{s.add(Array.isArray(e)?`${wu(e[0],i)}-${wu(e[1],i)}`:wu(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:xl`[^\n]`;if(e===`digit`)return t?xl`\D`:xl`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Ul.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?xl`\P`:xl`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?xl`\W`:xl`\w`;throw 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:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=wl(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${Eu(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+Du(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:xl`\g<${t}&R=${r}>`}},_u=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),vu=new Set([`-`,`\\`,`]`,`^`,`[`]),yu=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),bu=new Map([[9,xl`\t`],[10,xl`\n`],[11,xl`\v`],[12,xl`\f`],[13,xl`\r`],[8232,xl`\u2028`],[8233,xl`\u2029`],[65279,xl`\uFEFF`]]),xu=/^\p{Cased}$/u;function Su(e){return xu.test(e)}function Cu(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=bl(e);if(!Su(t))continue;let o=Pl(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function wu(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(bu.has(e))return bu.get(e);if(e<32||e>126&&e<160||e>262143||t&&ku(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?yu:vu:_u,a=bl(e);return(i.has(a)?`\\`:``)+a}function Tu(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function Eu(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function Du({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function Ou({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function ku(e){return e>47&&e<58}function Au({type:e,value:t}){return e===`Character`&&t===45}var ju=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=Nu(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(Mu(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=Pu(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function Mu(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function Nu(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)Tl(n,t,{}).transferTo=e;return n}function Pu(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function Fu(e,t){let n=Iu(e,t);return n.options?new ju(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Iu(e,t){let n=Al(t),r=Wl(sc(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Fl}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=mu(r,n),a=ml(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=il(sl(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}function Lu(e,t){return Fu(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Ru(e={}){let t={target:`auto`,cache:new Map,...e};return t.regexConstructor||=e=>Lu(e,{target:t.target}),{createScanner(e){return new ps(e,t)},createString(e){return{content:e}}}}async function zu(e){if(Le())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=Ne.get(e);if(t!=null)return t;try{let t=Pe.get(e);if(t==null&&Object.prototype.hasOwnProperty.call(Ze,e)&&(t=Ze[e]),t==null)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let n=t().then(({default:t})=>{let n={name:e,data:t};return Me.has(e)||Me.set(e,n),n});return Ne.set(e,n),await n}finally{Ne.delete(e)}}function Bu(e){return Me.get(e)??zu(e)}function Vu({name:e,load:t,colorScheme:n,collection:r,displayName:i}){return{name:e,colorScheme:n,collection:r,displayName:i,load:Hu(t)}}function Hu(e){return async()=>Tr(Te(await e()))}var Uu=`pierre`,Wu=[`pierre-dark`,`pierre-dark-soft`,`pierre-dark-vibrant`,`pierre-dark-protanopia-deuteranopia`,`pierre-dark-tritanopia`],Gu=[`pierre-light`,`pierre-light-soft`,`pierre-light-vibrant`,`pierre-light-protanopia-deuteranopia`,`pierre-light-tritanopia`],Ku=[...Gu,...Wu],qu=new Set(Gu);function Ju(e){return qu.has(e)?`light`:`dark`}var Yu={"pierre-dark":`Pierre Dark`,"pierre-dark-soft":`Pierre Dark Soft`,"pierre-dark-vibrant":`Pierre Dark Vibrant`,"pierre-dark-protanopia-deuteranopia":`Pierre Dark Protanopia & Deuteranopia`,"pierre-dark-tritanopia":`Pierre Dark Tritanopia`,"pierre-light":`Pierre Light`,"pierre-light-soft":`Pierre Light Soft`,"pierre-light-vibrant":`Pierre Light Vibrant`,"pierre-light-protanopia-deuteranopia":`Pierre Light Protanopia & Deuteranopia`,"pierre-light-tritanopia":`Pierre Light Tritanopia`},Xu={"pierre-dark":()=>H(()=>import(`./pierre-dark-CpLgRqie.js`),[]),"pierre-dark-soft":()=>H(()=>import(`./pierre-dark-soft-kZQmAZld.js`),[]),"pierre-dark-vibrant":()=>H(()=>import(`./pierre-dark-vibrant-CpQYzh95.js`),[]),"pierre-dark-protanopia-deuteranopia":()=>H(()=>import(`./pierre-dark-protanopia-deuteranopia-B35FxJx-.js`),[]),"pierre-dark-tritanopia":()=>H(()=>import(`./pierre-dark-tritanopia-CpjhbsIL.js`),[]),"pierre-light":()=>H(()=>import(`./pierre-light-CoaEpmwp.js`),[]),"pierre-light-soft":()=>H(()=>import(`./pierre-light-soft-lWLdNTOI.js`),[]),"pierre-light-vibrant":()=>H(()=>import(`./pierre-light-vibrant-D80Fkn33.js`),[]),"pierre-light-protanopia-deuteranopia":()=>H(()=>import(`./pierre-light-protanopia-deuteranopia-0fSaH845.js`),[]),"pierre-light-tritanopia":()=>H(()=>import(`./pierre-light-tritanopia-CEbqgOJL.js`),[])};function Zu(e){return Vu({name:e,collection:Uu,colorScheme:Ju(e),displayName:Yu[e],load:Xu[e]})}var Qu=be({themes:Ku.map(e=>Zu(e))}),$u=`shiki`,ed=[`ayu-light`,`catppuccin-latte`,`everforest-light`,`github-light`,`github-light-default`,`github-light-high-contrast`,`gruvbox-light-hard`,`gruvbox-light-medium`,`gruvbox-light-soft`,`horizon-bright`,`kanagawa-lotus`,`light-plus`,`material-theme-lighter`,`min-light`,`night-owl-light`,`one-light`,`rose-pine-dawn`,`slack-ochin`,`snazzy-light`,`solarized-light`,`vitesse-light`],td=`andromeeda.aurora-x.ayu-dark.ayu-mirage.catppuccin-frappe.catppuccin-macchiato.catppuccin-mocha.dark-plus.dracula.dracula-soft.everforest-dark.github-dark.github-dark-default.github-dark-dimmed.github-dark-high-contrast.gruvbox-dark-hard.gruvbox-dark-medium.gruvbox-dark-soft.horizon.houston.kanagawa-dragon.kanagawa-wave.laserwave.material-theme.material-theme-darker.material-theme-ocean.material-theme-palenight.min-dark.monokai.night-owl.nord.one-dark-pro.plastic.poimandres.red.rose-pine.rose-pine-moon.slack-dark.solarized-dark.synthwave-84.tokyo-night.vesper.vitesse-black.vitesse-dark`.split(`.`),nd=new Set(ed);function rd(e){return nd.has(e)?`light`:`dark`}var id={andromeeda:()=>H(()=>import(`./andromeeda-vGVdxbeo.js`),[]),"aurora-x":()=>H(()=>import(`./aurora-x-CDeNXAV0.js`),[]),"ayu-dark":()=>H(()=>import(`./ayu-dark-DluEY0Gj.js`),[]),"ayu-light":()=>H(()=>import(`./ayu-light-C3h-C4tm.js`),[]),"ayu-mirage":()=>H(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[]),"catppuccin-frappe":()=>H(()=>import(`./catppuccin-frappe-C9Q5zVZY.js`),[]),"catppuccin-latte":()=>H(()=>import(`./catppuccin-latte-CtsyrtPq.js`),[]),"catppuccin-macchiato":()=>H(()=>import(`./catppuccin-macchiato-R8nAf1vR.js`),[]),"catppuccin-mocha":()=>H(()=>import(`./catppuccin-mocha-DjuaAJKi.js`),[]),"dark-plus":()=>H(()=>import(`./dark-plus-Cs2F2srj.js`),[]),dracula:()=>H(()=>import(`./dracula-BHWKrbxM.js`),[]),"dracula-soft":()=>H(()=>import(`./dracula-soft-5eyTD99u.js`),[]),"everforest-dark":()=>H(()=>import(`./everforest-dark-sB-x3p7T.js`),[]),"everforest-light":()=>H(()=>import(`./everforest-light-Df2xbC6M.js`),[]),"github-dark":()=>H(()=>import(`./github-dark-C-LZuMrd.js`),[]),"github-dark-default":()=>H(()=>import(`./github-dark-default-DXG-b-1a.js`),[]),"github-dark-dimmed":()=>H(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[]),"github-dark-high-contrast":()=>H(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[]),"github-light":()=>H(()=>import(`./github-light-EUqPIrTm.js`),[]),"github-light-default":()=>H(()=>import(`./github-light-default-BXViO-2h.js`),[]),"github-light-high-contrast":()=>H(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[]),"gruvbox-dark-hard":()=>H(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[]),"gruvbox-dark-medium":()=>H(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[]),"gruvbox-dark-soft":()=>H(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[]),"gruvbox-light-hard":()=>H(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[]),"gruvbox-light-medium":()=>H(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[]),"gruvbox-light-soft":()=>H(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[]),horizon:()=>H(()=>import(`./horizon-CE9ld1lL.js`),[]),"horizon-bright":()=>H(()=>import(`./horizon-bright-DSNQnXHK.js`),[]),houston:()=>H(()=>import(`./houston-CsvMBhTu.js`),[]),"kanagawa-dragon":()=>H(()=>import(`./kanagawa-dragon-Bozd7klA.js`),[]),"kanagawa-lotus":()=>H(()=>import(`./kanagawa-lotus-BmuOG9ZW.js`),[]),"kanagawa-wave":()=>H(()=>import(`./kanagawa-wave-BML5mF2J.js`),[]),laserwave:()=>H(()=>import(`./laserwave-C_8bwKvT.js`),[]),"light-plus":()=>H(()=>import(`./light-plus-DVQuIRkW.js`),[]),"material-theme":()=>H(()=>import(`./material-theme-Bm3Qr25_.js`),[]),"material-theme-darker":()=>H(()=>import(`./material-theme-darker-2IIEA8gg.js`),[]),"material-theme-lighter":()=>H(()=>import(`./material-theme-lighter-uhdI0v04.js`),[]),"material-theme-ocean":()=>H(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[]),"material-theme-palenight":()=>H(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[]),"min-dark":()=>H(()=>import(`./min-dark-BSWPekZh.js`),[]),"min-light":()=>H(()=>import(`./min-light-DDpmG2fV.js`),[]),monokai:()=>H(()=>import(`./monokai-B_bV9PQ9.js`),[]),"night-owl":()=>H(()=>import(`./night-owl-DhmEMT88.js`),[]),"night-owl-light":()=>H(()=>import(`./night-owl-light-eJ-hLW7d.js`),[]),nord:()=>H(()=>import(`./nord-Cb4Vim4T.js`),[]),"one-dark-pro":()=>H(()=>import(`./one-dark-pro-CLwyXe_n.js`),[]),"one-light":()=>H(()=>import(`./one-light-D7Lr4KcI.js`),[]),plastic:()=>H(()=>import(`./plastic-DQwYfKfQ.js`),[]),poimandres:()=>H(()=>import(`./poimandres-DRFjx7u4.js`),[]),red:()=>H(()=>import(`./red-DX1BQOs8.js`),[]),"rose-pine":()=>H(()=>import(`./rose-pine-aMsaMD1D.js`),[]),"rose-pine-dawn":()=>H(()=>import(`./rose-pine-dawn-8PwUyIlP.js`),[]),"rose-pine-moon":()=>H(()=>import(`./rose-pine-moon-DO-qXg-I.js`),[]),"slack-dark":()=>H(()=>import(`./slack-dark-DnToyrRv.js`),[]),"slack-ochin":()=>H(()=>import(`./slack-ochin-B2OO5cIa.js`),[]),"snazzy-light":()=>H(()=>import(`./snazzy-light-4G7pJPwS.js`),[]),"solarized-dark":()=>H(()=>import(`./solarized-dark-UdsmMDCL.js`),[]),"solarized-light":()=>H(()=>import(`./solarized-light-C1IUL_tW.js`),[]),"synthwave-84":()=>H(()=>import(`./synthwave-84-nFMaYfgc.js`),[]),"tokyo-night":()=>H(()=>import(`./tokyo-night-oM2G3aXe.js`),[]),vesper:()=>H(()=>import(`./vesper-DdrHHSXu.js`),[]),"vitesse-black":()=>H(()=>import(`./vitesse-black-fwtXNY1n.js`),[]),"vitesse-dark":()=>H(()=>import(`./vitesse-dark-BZCL-v6S.js`),[]),"vitesse-light":()=>H(()=>import(`./vitesse-light-VbXTXTou.js`),[])};function ad(e){return Vu({name:e,collection:$u,colorScheme:rd(e),load:id[e]})}var od=be({themes:Object.freeze([...ed.map(e=>ad(e)),...td.map(e=>ad(e))])});function sd(e){if(Le())throw Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(Ae.hasRegisteredTheme(e))return;let t=od.getTheme(e);if(t!=null){Ae.registerThemeIfAbsent(t.name,t.load);return}throw Error(`No valid theme loader registered for "${e}"`)}function cd(e,t){if(t.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function ld(e){sd(e);let t=await Ae.resolveTheme(e);return cd(e,t),t}function ud(e){return Ae.getResolvedTheme(e)??ld(e)}var dd;async function fd({themes:e,langs:t,preferredHighlighter:n=`shiki-js`}){dd??=is({themes:[],langs:[`text`],engine:n===`shiki-wasm`?Dt(H(()=>import(`./wasm-BnjxR4X6.js`),[])):Ru()});let r=md(dd)?await dd:dd;dd=r;let i=[];for(let e of t){if(e===`text`||e===`ansi`)continue;let t=Bu(e);`then`in t?i.push(t):Ie(t,r)}let a=[];for(let t of e){let e=ud(t);`then`in e?a.push(e):je(e,dd)}return(i.length>0||a.length>0)&&await Promise.all([Promise.all(i).then(e=>{Ie(e,r)}),Promise.all(a).then(e=>{je(e,r)})]),r}function pd(){if(dd!=null&&!(`then`in dd))return dd}function md(e=dd){return e!=null&&`then`in e}for(let e of Qu.getThemes())Ae.registerThemeIfAbsent(e.name,e.load);function hd(e=F){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}function gd(e){return Ae.hasResolvedThemes(e)}function _d(e,t){return _e(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength}var vd=new Map,yd=0,bd={"1c":`1c`,abap:`abap`,as:`actionscript-3`,ada:`ada`,adb:`ada`,ads:`ada`,adoc:`asciidoc`,asciidoc:`asciidoc`,"component.html":`angular-html`,"component.ts":`angular-ts`,conf:`nginx`,htaccess:`apache`,cls:`tex`,trigger:`apex`,apl:`apl`,applescript:`applescript`,scpt:`applescript`,ara:`ara`,asm:`asm`,s:`riscv`,astro:`astro`,awk:`awk`,bal:`ballerina`,sh:`zsh`,bash:`zsh`,bat:`cmd`,cmd:`cmd`,be:`berry`,beancount:`beancount`,bib:`bibtex`,bicep:`bicep`,"blade.php":`blade`,bsl:`bsl`,c:`c`,h:`objective-cpp`,cs:`csharp`,cpp:`cpp`,hpp:`cpp`,cc:`cpp`,cxx:`cpp`,hh:`cpp`,cdc:`cdc`,cairo:`cairo`,clar:`clarity`,clj:`clojure`,cljs:`clojure`,cljc:`clojure`,soy:`soy`,cmake:`cmake`,"CMakeLists.txt":`cmake`,cob:`cobol`,cbl:`cobol`,cobol:`cobol`,CODEOWNERS:`codeowners`,ql:`ql`,coffee:`coffeescript`,lisp:`lisp`,cl:`lisp`,lsp:`lisp`,log:`log`,v:`verilog`,cql:`cql`,cr:`crystal`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cypher`,cyp:`cypher`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,patch:`diff`,Dockerfile:`dockerfile`,dockerfile:`dockerfile`,env:`dotenv`,dm:`dream-maker`,edge:`edge`,el:`emacs-lisp`,ex:`elixir`,exs:`elixir`,elm:`elm`,erb:`erb`,erl:`erlang`,hrl:`erlang`,f:`fortran-fixed-form`,for:`fortran-fixed-form`,fs:`fsharp`,fsi:`fsharp`,fsx:`fsharp`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`fortran-free-form`,f95:`fortran-free-form`,fnl:`fennel`,fish:`fish`,ftl:`ftl`,tres:`gdresource`,res:`gdresource`,gd:`gdscript`,gdshader:`gdshader`,gs:`genie`,feature:`gherkin`,COMMIT_EDITMSG:`git-commit`,"git-rebase-todo":`git-rebase`,gjs:`glimmer-js`,gleam:`gleam`,gts:`glimmer-ts`,glsl:`glsl`,vert:`glsl`,frag:`glsl`,shader:`shaderlab`,gp:`gnuplot`,plt:`gnuplot`,gnuplot:`gnuplot`,go:`go`,graphql:`graphql`,gql:`graphql`,groovy:`groovy`,gvy:`groovy`,hack:`hack`,haml:`haml`,hbs:`handlebars`,handlebars:`handlebars`,hs:`haskell`,lhs:`haskell`,hx:`haxe`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,fx:`hlsl`,html:`html`,htm:`html`,http:`http`,rest:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,cfg:`ini`,jade:`pug`,pug:`pug`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jinja:`jinja`,jinja2:`jinja`,j2:`jinja`,jison:`jison`,jl:`julia`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,libsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,kt:`kotlin`,kts:`kts`,kql:`kusto`,tex:`tex`,ltx:`tex`,lean:`lean4`,less:`less`,liquid:`liquid`,lit:`lit`,ll:`llvm`,logo:`logo`,lua:`lua`,luau:`luau`,Makefile:`makefile`,mk:`makefile`,makefile:`makefile`,md:`markdown`,markdown:`markdown`,marko:`marko`,m:`wolfram`,mat:`matlab`,mdc:`mdc`,mdx:`mdx`,wiki:`wikitext`,mediawiki:`wikitext`,mmd:`mermaid`,mermaid:`mermaid`,mips:`mipsasm`,mojo:`mojo`,"🔥":`mojo`,move:`move`,nar:`narrat`,nf:`nextflow`,nim:`nim`,nims:`nim`,nimble:`nim`,nix:`nix`,nu:`nushell`,mm:`objective-cpp`,ml:`ocaml`,mli:`ocaml`,mll:`ocaml`,mly:`ocaml`,pas:`pascal`,p:`pascal`,pl:`prolog`,pm:`perl`,t:`perl`,raku:`raku`,p6:`raku`,pl6:`raku`,php:`php`,phtml:`php`,pls:`plsql`,sql:`sql`,po:`po`,polar:`polar`,pcss:`postcss`,pot:`pot`,potx:`potx`,pq:`powerquery`,pqm:`powerquery`,ps1:`powershell`,psm1:`powershell`,psd1:`powershell`,prisma:`prisma`,pro:`prolog`,P:`prolog`,properties:`properties`,proto:`protobuf`,pp:`puppet`,purs:`purescript`,py:`python`,pyw:`python`,pyi:`python`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,R:`r`,rkt:`racket`,rktl:`racket`,razor:`razor`,cshtml:`razor`,rb:`ruby`,rbw:`ruby`,reg:`reg`,regex:`regexp`,rel:`rel`,rs:`rust`,rst:`rst`,rake:`ruby`,gemspec:`ruby`,jbuilder:`ruby`,builder:`ruby`,rabl:`ruby`,arb:`ruby`,ru:`ruby`,podspec:`ruby`,Gemfile:`ruby`,Rakefile:`ruby`,Guardfile:`ruby`,Capfile:`ruby`,Berksfile:`ruby`,Brewfile:`ruby`,Vagrantfile:`ruby`,Thorfile:`ruby`,Appraisals:`ruby`,Dangerfile:`ruby`,sas:`sas`,sass:`sass`,scala:`scala`,sc:`scala`,scm:`scheme`,ss:`scheme`,sld:`scheme`,scss:`scss`,sdbl:`sdbl`,shadergraph:`shader`,st:`smalltalk`,sol:`solidity`,sparql:`sparql`,rq:`sparql`,spl:`splunk`,config:`ssh-config`,do:`stata`,ado:`stata`,dta:`stata`,styl:`stylus`,stylus:`stylus`,svelte:`svelte`,swift:`swift`,sv:`system-verilog`,svh:`system-verilog`,service:`systemd`,socket:`systemd`,device:`systemd`,timer:`systemd`,talon:`talonscript`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`typescript`,mts:`typescript`,cts:`typescript`,tsp:`typespec`,tsv:`tsv`,tsx:`tsx`,ttl:`turtle`,twig:`twig`,typ:`typst`,vv:`v`,vala:`vala`,vapi:`vala`,vb:`vb`,vbs:`vb`,bas:`vb`,vh:`verilog`,vhd:`vhdl`,vhdl:`vhdl`,vim:`vimscript`,vue:`vue`,"vine.ts":`vue-vine`,vy:`vyper`,wasm:`wasm`,wat:`wasm`,wy:`文言`,wgsl:`wgsl`,wit:`wit`,wl:`wolfram`,nb:`wolfram`,xml:`xml`,xsl:`xsl`,xslt:`xsl`,yaml:`yaml`,yml:`yml`,zs:`zenscript`,zig:`zig`,zsh:`zsh`,sty:`tex`};function xd(e){if(vd.has(e))return vd.get(e)??`text`;if(bd[e]!=null)return bd[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(vd.has(t[1]))return vd.get(t[1])??`text`;if(bd[t[1]]!=null)return bd[t[1]]??`text`}let n=e.match(/\.([^.]+)$/)?.[1]??``;return vd.has(n)?vd.get(n)??`text`:bd[n]??`text`}function Sd(){return yd}function Cd(){return Object.fromEntries(vd)}function wd(e){return(e.lang??xd(e.name))===`text`}var Td=10,Ed=13,Dd=4,Od=40;function kd(e){let t=[0],n=e.indexOf(`\r`),r=e.indexOf(`
|
|
153
|
+
\v\f
\u2028\u2029])`),t));else if(c===`posix`){if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${bl(e.codePointAt(0)-1)}${bl(e.codePointAt(2)+1)}-\u{10FFFF}`),n(pu(uu(`[${e}]`),t))}else n(pu(du(uu(zl.get(u)),l),t))}else if(c===`property`)Fl.has(Hc(u))||(e.key=`sc`);else if(c===`space`)n(fu(Pc(`space`,{negate:l}),t));else if(c===`word`)n(pu(du(uu(Nl),l),t));else throw Error(`Unexpected character set kind "${c}"`)}},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`){if(!c.enable&&!c.disable)r();else{let e=Dc({flags:c});e.body[0].body=o(),i(pu(e,t),{traverse:!0})}}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&ic(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(xl`Uses "\K" in a way that's unsupported`);let o=Oc({behind:!0});o.body[0].body=a(),i(pu(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),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;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(pu(Oc({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=Dc();t.body[0].body.push(e.body),e.body=pu(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=iu(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(xl`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!lu(n)&&(n=eu(n,t),e.ref=n)}},Kl={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=fu(Ql(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&Tl(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=Tl(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=wl(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&(n.type!==`CapturingGroup`||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?Ql(0):Zl(o,r.groupOriginByCopy,null),l=c;if(!s){let e=tu($l(o,e=>e.type===`Group`&&!!e.flags)),t=e?wl(r.globalFlags,e):r.globalFlags;Yl(t,r.currentFlags)||(l=Dc({flags:nu(t)}),l.body[0].body.push(c))}n(pu(l,t),{traverse:!s})}},ql={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>Xl(t,e));i.length?i.length>1?n(pu(Dc({atomic:!0,body:i.reverse().map(e=>_c({body:[yc(e.number)]}))}),t)):e.ref=i[0].number:n(pu(Oc({negate:!0}),t))},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){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=bc();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Jl(e){Gc(e,{"*"({node:e,parent:t}){e.parent=t}})}function Yl(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Xl(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=ru(n.parent);for(let r of t){if(r===n)break;if(r===e||au(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function Zl(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=Zl(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function Ql(e){let t=Nc(e);return t.isRecursive=!0,t}function $l(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function eu(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function tu(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function nu({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function ru(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function iu(e){let t=e.find(e=>e.kind===`search_start`||cu(e,{negate:!1})||!ou(e));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`){let e=[];for(let n of t.body){let t=iu(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function au(e,t){let n=ru(e)??[];for(let e of n)if(e===t||au(e,t))return!0;return!1}function ou({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function su(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function cu(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&ic(e.body[0],{type:`Assertion`,kind:`search_start`})}function lu(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function uu(e,t){let n=sc(e,{...t,unicodePropertyMap:Fl}).body;return n.length>1||n[0].body.length>1?Dc({body:n}):n[0].body[0]}function du(e,t){return e.negate=t,e}function fu(e,t){return e.parent=t,e}function pu(e,t){return Jl(e),e.parent=t,e}function mu(e,t){let n=Al(t),r=El(n.target,`ES2024`),i=El(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];Gc(e,hu,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,Dl(gu[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&Tl(f._captureTransfers,e.transferTo,[]).push(t)}),f}var hu={"*":{enter({node:e},t){if(Ou(e)){let n=t.getCurrentModI();t.pushModI(e.flags?wl({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Ou(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Su(bl(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Cu(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&Ul.has(e.value)&&t.setHasCasedChar()}},gu={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?xl`\B`:xl`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=bl(e),r=wu(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Su(n)){let e=Pl(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);Sl.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(Au)&&(o=[xc(45),...o.filter(e=>!Au(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||Sl.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=Dc(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=_c({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(Sl.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=wu(n,i),o=wu(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Tu(Cu(e)).forEach(e=>{s.add(Array.isArray(e)?`${wu(e[0],i)}-${wu(e[1],i)}`:wu(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:xl`[^\n]`;if(e===`digit`)return t?xl`\D`:xl`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Ul.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?xl`\P`:xl`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?xl`\W`:xl`\w`;throw 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:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=wl(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${Eu(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+Du(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:xl`\g<${t}&R=${r}>`}},_u=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),vu=new Set([`-`,`\\`,`]`,`^`,`[`]),yu=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),bu=new Map([[9,xl`\t`],[10,xl`\n`],[11,xl`\v`],[12,xl`\f`],[13,xl`\r`],[8232,xl`\u2028`],[8233,xl`\u2029`],[65279,xl`\uFEFF`]]),xu=/^\p{Cased}$/u;function Su(e){return xu.test(e)}function Cu(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=bl(e);if(!Su(t))continue;let o=Pl(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function wu(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(bu.has(e))return bu.get(e);if(e<32||e>126&&e<160||e>262143||t&&ku(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?yu:vu:_u,a=bl(e);return(i.has(a)?`\\`:``)+a}function Tu(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function Eu(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function Du({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function Ou({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function ku(e){return e>47&&e<58}function Au({type:e,value:t}){return e===`Character`&&t===45}var ju=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=Nu(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(Mu(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=Pu(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function Mu(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function Nu(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)Tl(n,t,{}).transferTo=e;return n}function Pu(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function Fu(e,t){let n=Iu(e,t);return n.options?new ju(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Iu(e,t){let n=Al(t),r=Wl(sc(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Fl}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=mu(r,n),a=ml(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=il(sl(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}function Lu(e,t){return Fu(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Ru(e={}){let t={target:`auto`,cache:new Map,...e};return t.regexConstructor||=e=>Lu(e,{target:t.target}),{createScanner(e){return new ps(e,t)},createString(e){return{content:e}}}}async function zu(e){if(Le())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=Ne.get(e);if(t!=null)return t;try{let t=Pe.get(e);if(t==null&&Object.prototype.hasOwnProperty.call(Ze,e)&&(t=Ze[e]),t==null)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let n=t().then(({default:t})=>{let n={name:e,data:t};return Me.has(e)||Me.set(e,n),n});return Ne.set(e,n),await n}finally{Ne.delete(e)}}function Bu(e){return Me.get(e)??zu(e)}function Vu({name:e,load:t,colorScheme:n,collection:r,displayName:i}){return{name:e,colorScheme:n,collection:r,displayName:i,load:Hu(t)}}function Hu(e){return async()=>Tr(Te(await e()))}var Uu=`pierre`,Wu=[`pierre-dark`,`pierre-dark-soft`,`pierre-dark-vibrant`,`pierre-dark-protanopia-deuteranopia`,`pierre-dark-tritanopia`],Gu=[`pierre-light`,`pierre-light-soft`,`pierre-light-vibrant`,`pierre-light-protanopia-deuteranopia`,`pierre-light-tritanopia`],Ku=[...Gu,...Wu],qu=new Set(Gu);function Ju(e){return qu.has(e)?`light`:`dark`}var Yu={"pierre-dark":`Pierre Dark`,"pierre-dark-soft":`Pierre Dark Soft`,"pierre-dark-vibrant":`Pierre Dark Vibrant`,"pierre-dark-protanopia-deuteranopia":`Pierre Dark Protanopia & Deuteranopia`,"pierre-dark-tritanopia":`Pierre Dark Tritanopia`,"pierre-light":`Pierre Light`,"pierre-light-soft":`Pierre Light Soft`,"pierre-light-vibrant":`Pierre Light Vibrant`,"pierre-light-protanopia-deuteranopia":`Pierre Light Protanopia & Deuteranopia`,"pierre-light-tritanopia":`Pierre Light Tritanopia`},Xu={"pierre-dark":()=>H(()=>import(`./pierre-dark-CpLgRqie.js`),[],import.meta.url),"pierre-dark-soft":()=>H(()=>import(`./pierre-dark-soft-kZQmAZld.js`),[],import.meta.url),"pierre-dark-vibrant":()=>H(()=>import(`./pierre-dark-vibrant-CpQYzh95.js`),[],import.meta.url),"pierre-dark-protanopia-deuteranopia":()=>H(()=>import(`./pierre-dark-protanopia-deuteranopia-B35FxJx-.js`),[],import.meta.url),"pierre-dark-tritanopia":()=>H(()=>import(`./pierre-dark-tritanopia-CpjhbsIL.js`),[],import.meta.url),"pierre-light":()=>H(()=>import(`./pierre-light-CoaEpmwp.js`),[],import.meta.url),"pierre-light-soft":()=>H(()=>import(`./pierre-light-soft-lWLdNTOI.js`),[],import.meta.url),"pierre-light-vibrant":()=>H(()=>import(`./pierre-light-vibrant-D80Fkn33.js`),[],import.meta.url),"pierre-light-protanopia-deuteranopia":()=>H(()=>import(`./pierre-light-protanopia-deuteranopia-0fSaH845.js`),[],import.meta.url),"pierre-light-tritanopia":()=>H(()=>import(`./pierre-light-tritanopia-CEbqgOJL.js`),[],import.meta.url)};function Zu(e){return Vu({name:e,collection:Uu,colorScheme:Ju(e),displayName:Yu[e],load:Xu[e]})}var Qu=be({themes:Ku.map(e=>Zu(e))}),$u=`shiki`,ed=[`ayu-light`,`catppuccin-latte`,`everforest-light`,`github-light`,`github-light-default`,`github-light-high-contrast`,`gruvbox-light-hard`,`gruvbox-light-medium`,`gruvbox-light-soft`,`horizon-bright`,`kanagawa-lotus`,`light-plus`,`material-theme-lighter`,`min-light`,`night-owl-light`,`one-light`,`rose-pine-dawn`,`slack-ochin`,`snazzy-light`,`solarized-light`,`vitesse-light`],td=`andromeeda.aurora-x.ayu-dark.ayu-mirage.catppuccin-frappe.catppuccin-macchiato.catppuccin-mocha.dark-plus.dracula.dracula-soft.everforest-dark.github-dark.github-dark-default.github-dark-dimmed.github-dark-high-contrast.gruvbox-dark-hard.gruvbox-dark-medium.gruvbox-dark-soft.horizon.houston.kanagawa-dragon.kanagawa-wave.laserwave.material-theme.material-theme-darker.material-theme-ocean.material-theme-palenight.min-dark.monokai.night-owl.nord.one-dark-pro.plastic.poimandres.red.rose-pine.rose-pine-moon.slack-dark.solarized-dark.synthwave-84.tokyo-night.vesper.vitesse-black.vitesse-dark`.split(`.`),nd=new Set(ed);function rd(e){return nd.has(e)?`light`:`dark`}var id={andromeeda:()=>H(()=>import(`./andromeeda-vGVdxbeo.js`),[],import.meta.url),"aurora-x":()=>H(()=>import(`./aurora-x-CDeNXAV0.js`),[],import.meta.url),"ayu-dark":()=>H(()=>import(`./ayu-dark-DluEY0Gj.js`),[],import.meta.url),"ayu-light":()=>H(()=>import(`./ayu-light-C3h-C4tm.js`),[],import.meta.url),"ayu-mirage":()=>H(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[],import.meta.url),"catppuccin-frappe":()=>H(()=>import(`./catppuccin-frappe-C9Q5zVZY.js`),[],import.meta.url),"catppuccin-latte":()=>H(()=>import(`./catppuccin-latte-CtsyrtPq.js`),[],import.meta.url),"catppuccin-macchiato":()=>H(()=>import(`./catppuccin-macchiato-R8nAf1vR.js`),[],import.meta.url),"catppuccin-mocha":()=>H(()=>import(`./catppuccin-mocha-DjuaAJKi.js`),[],import.meta.url),"dark-plus":()=>H(()=>import(`./dark-plus-Cs2F2srj.js`),[],import.meta.url),dracula:()=>H(()=>import(`./dracula-BHWKrbxM.js`),[],import.meta.url),"dracula-soft":()=>H(()=>import(`./dracula-soft-5eyTD99u.js`),[],import.meta.url),"everforest-dark":()=>H(()=>import(`./everforest-dark-sB-x3p7T.js`),[],import.meta.url),"everforest-light":()=>H(()=>import(`./everforest-light-Df2xbC6M.js`),[],import.meta.url),"github-dark":()=>H(()=>import(`./github-dark-C-LZuMrd.js`),[],import.meta.url),"github-dark-default":()=>H(()=>import(`./github-dark-default-DXG-b-1a.js`),[],import.meta.url),"github-dark-dimmed":()=>H(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[],import.meta.url),"github-dark-high-contrast":()=>H(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[],import.meta.url),"github-light":()=>H(()=>import(`./github-light-EUqPIrTm.js`),[],import.meta.url),"github-light-default":()=>H(()=>import(`./github-light-default-BXViO-2h.js`),[],import.meta.url),"github-light-high-contrast":()=>H(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[],import.meta.url),"gruvbox-dark-hard":()=>H(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[],import.meta.url),"gruvbox-dark-medium":()=>H(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[],import.meta.url),"gruvbox-dark-soft":()=>H(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[],import.meta.url),"gruvbox-light-hard":()=>H(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[],import.meta.url),"gruvbox-light-medium":()=>H(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[],import.meta.url),"gruvbox-light-soft":()=>H(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[],import.meta.url),horizon:()=>H(()=>import(`./horizon-CE9ld1lL.js`),[],import.meta.url),"horizon-bright":()=>H(()=>import(`./horizon-bright-DSNQnXHK.js`),[],import.meta.url),houston:()=>H(()=>import(`./houston-CsvMBhTu.js`),[],import.meta.url),"kanagawa-dragon":()=>H(()=>import(`./kanagawa-dragon-Bozd7klA.js`),[],import.meta.url),"kanagawa-lotus":()=>H(()=>import(`./kanagawa-lotus-BmuOG9ZW.js`),[],import.meta.url),"kanagawa-wave":()=>H(()=>import(`./kanagawa-wave-BML5mF2J.js`),[],import.meta.url),laserwave:()=>H(()=>import(`./laserwave-C_8bwKvT.js`),[],import.meta.url),"light-plus":()=>H(()=>import(`./light-plus-DVQuIRkW.js`),[],import.meta.url),"material-theme":()=>H(()=>import(`./material-theme-Bm3Qr25_.js`),[],import.meta.url),"material-theme-darker":()=>H(()=>import(`./material-theme-darker-2IIEA8gg.js`),[],import.meta.url),"material-theme-lighter":()=>H(()=>import(`./material-theme-lighter-uhdI0v04.js`),[],import.meta.url),"material-theme-ocean":()=>H(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[],import.meta.url),"material-theme-palenight":()=>H(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[],import.meta.url),"min-dark":()=>H(()=>import(`./min-dark-BSWPekZh.js`),[],import.meta.url),"min-light":()=>H(()=>import(`./min-light-DDpmG2fV.js`),[],import.meta.url),monokai:()=>H(()=>import(`./monokai-B_bV9PQ9.js`),[],import.meta.url),"night-owl":()=>H(()=>import(`./night-owl-DhmEMT88.js`),[],import.meta.url),"night-owl-light":()=>H(()=>import(`./night-owl-light-eJ-hLW7d.js`),[],import.meta.url),nord:()=>H(()=>import(`./nord-Cb4Vim4T.js`),[],import.meta.url),"one-dark-pro":()=>H(()=>import(`./one-dark-pro-CLwyXe_n.js`),[],import.meta.url),"one-light":()=>H(()=>import(`./one-light-D7Lr4KcI.js`),[],import.meta.url),plastic:()=>H(()=>import(`./plastic-DQwYfKfQ.js`),[],import.meta.url),poimandres:()=>H(()=>import(`./poimandres-DRFjx7u4.js`),[],import.meta.url),red:()=>H(()=>import(`./red-DX1BQOs8.js`),[],import.meta.url),"rose-pine":()=>H(()=>import(`./rose-pine-aMsaMD1D.js`),[],import.meta.url),"rose-pine-dawn":()=>H(()=>import(`./rose-pine-dawn-8PwUyIlP.js`),[],import.meta.url),"rose-pine-moon":()=>H(()=>import(`./rose-pine-moon-DO-qXg-I.js`),[],import.meta.url),"slack-dark":()=>H(()=>import(`./slack-dark-DnToyrRv.js`),[],import.meta.url),"slack-ochin":()=>H(()=>import(`./slack-ochin-B2OO5cIa.js`),[],import.meta.url),"snazzy-light":()=>H(()=>import(`./snazzy-light-4G7pJPwS.js`),[],import.meta.url),"solarized-dark":()=>H(()=>import(`./solarized-dark-UdsmMDCL.js`),[],import.meta.url),"solarized-light":()=>H(()=>import(`./solarized-light-C1IUL_tW.js`),[],import.meta.url),"synthwave-84":()=>H(()=>import(`./synthwave-84-nFMaYfgc.js`),[],import.meta.url),"tokyo-night":()=>H(()=>import(`./tokyo-night-oM2G3aXe.js`),[],import.meta.url),vesper:()=>H(()=>import(`./vesper-DdrHHSXu.js`),[],import.meta.url),"vitesse-black":()=>H(()=>import(`./vitesse-black-fwtXNY1n.js`),[],import.meta.url),"vitesse-dark":()=>H(()=>import(`./vitesse-dark-BZCL-v6S.js`),[],import.meta.url),"vitesse-light":()=>H(()=>import(`./vitesse-light-VbXTXTou.js`),[],import.meta.url)};function ad(e){return Vu({name:e,collection:$u,colorScheme:rd(e),load:id[e]})}var od=be({themes:Object.freeze([...ed.map(e=>ad(e)),...td.map(e=>ad(e))])});function sd(e){if(Le())throw Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(Ae.hasRegisteredTheme(e))return;let t=od.getTheme(e);if(t!=null){Ae.registerThemeIfAbsent(t.name,t.load);return}throw Error(`No valid theme loader registered for "${e}"`)}function cd(e,t){if(t.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function ld(e){sd(e);let t=await Ae.resolveTheme(e);return cd(e,t),t}function ud(e){return Ae.getResolvedTheme(e)??ld(e)}var dd;async function fd({themes:e,langs:t,preferredHighlighter:n=`shiki-js`}){dd??=is({themes:[],langs:[`text`],engine:n===`shiki-wasm`?Dt(H(()=>import(`./wasm-BnjxR4X6.js`),[],import.meta.url)):Ru()});let r=md(dd)?await dd:dd;dd=r;let i=[];for(let e of t){if(e===`text`||e===`ansi`)continue;let t=Bu(e);`then`in t?i.push(t):Ie(t,r)}let a=[];for(let t of e){let e=ud(t);`then`in e?a.push(e):je(e,dd)}return(i.length>0||a.length>0)&&await Promise.all([Promise.all(i).then(e=>{Ie(e,r)}),Promise.all(a).then(e=>{je(e,r)})]),r}function pd(){if(dd!=null&&!(`then`in dd))return dd}function md(e=dd){return e!=null&&`then`in e}for(let e of Qu.getThemes())Ae.registerThemeIfAbsent(e.name,e.load);function hd(e=F){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}function gd(e){return Ae.hasResolvedThemes(e)}function _d(e,t){return _e(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength}var vd=new Map,yd=0,bd={"1c":`1c`,abap:`abap`,as:`actionscript-3`,ada:`ada`,adb:`ada`,ads:`ada`,adoc:`asciidoc`,asciidoc:`asciidoc`,"component.html":`angular-html`,"component.ts":`angular-ts`,conf:`nginx`,htaccess:`apache`,cls:`tex`,trigger:`apex`,apl:`apl`,applescript:`applescript`,scpt:`applescript`,ara:`ara`,asm:`asm`,s:`riscv`,astro:`astro`,awk:`awk`,bal:`ballerina`,sh:`zsh`,bash:`zsh`,bat:`cmd`,cmd:`cmd`,be:`berry`,beancount:`beancount`,bib:`bibtex`,bicep:`bicep`,"blade.php":`blade`,bsl:`bsl`,c:`c`,h:`objective-cpp`,cs:`csharp`,cpp:`cpp`,hpp:`cpp`,cc:`cpp`,cxx:`cpp`,hh:`cpp`,cdc:`cdc`,cairo:`cairo`,clar:`clarity`,clj:`clojure`,cljs:`clojure`,cljc:`clojure`,soy:`soy`,cmake:`cmake`,"CMakeLists.txt":`cmake`,cob:`cobol`,cbl:`cobol`,cobol:`cobol`,CODEOWNERS:`codeowners`,ql:`ql`,coffee:`coffeescript`,lisp:`lisp`,cl:`lisp`,lsp:`lisp`,log:`log`,v:`verilog`,cql:`cql`,cr:`crystal`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cypher`,cyp:`cypher`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,patch:`diff`,Dockerfile:`dockerfile`,dockerfile:`dockerfile`,env:`dotenv`,dm:`dream-maker`,edge:`edge`,el:`emacs-lisp`,ex:`elixir`,exs:`elixir`,elm:`elm`,erb:`erb`,erl:`erlang`,hrl:`erlang`,f:`fortran-fixed-form`,for:`fortran-fixed-form`,fs:`fsharp`,fsi:`fsharp`,fsx:`fsharp`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`fortran-free-form`,f95:`fortran-free-form`,fnl:`fennel`,fish:`fish`,ftl:`ftl`,tres:`gdresource`,res:`gdresource`,gd:`gdscript`,gdshader:`gdshader`,gs:`genie`,feature:`gherkin`,COMMIT_EDITMSG:`git-commit`,"git-rebase-todo":`git-rebase`,gjs:`glimmer-js`,gleam:`gleam`,gts:`glimmer-ts`,glsl:`glsl`,vert:`glsl`,frag:`glsl`,shader:`shaderlab`,gp:`gnuplot`,plt:`gnuplot`,gnuplot:`gnuplot`,go:`go`,graphql:`graphql`,gql:`graphql`,groovy:`groovy`,gvy:`groovy`,hack:`hack`,haml:`haml`,hbs:`handlebars`,handlebars:`handlebars`,hs:`haskell`,lhs:`haskell`,hx:`haxe`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,fx:`hlsl`,html:`html`,htm:`html`,http:`http`,rest:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,cfg:`ini`,jade:`pug`,pug:`pug`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jinja:`jinja`,jinja2:`jinja`,j2:`jinja`,jison:`jison`,jl:`julia`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,libsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,kt:`kotlin`,kts:`kts`,kql:`kusto`,tex:`tex`,ltx:`tex`,lean:`lean4`,less:`less`,liquid:`liquid`,lit:`lit`,ll:`llvm`,logo:`logo`,lua:`lua`,luau:`luau`,Makefile:`makefile`,mk:`makefile`,makefile:`makefile`,md:`markdown`,markdown:`markdown`,marko:`marko`,m:`wolfram`,mat:`matlab`,mdc:`mdc`,mdx:`mdx`,wiki:`wikitext`,mediawiki:`wikitext`,mmd:`mermaid`,mermaid:`mermaid`,mips:`mipsasm`,mojo:`mojo`,"🔥":`mojo`,move:`move`,nar:`narrat`,nf:`nextflow`,nim:`nim`,nims:`nim`,nimble:`nim`,nix:`nix`,nu:`nushell`,mm:`objective-cpp`,ml:`ocaml`,mli:`ocaml`,mll:`ocaml`,mly:`ocaml`,pas:`pascal`,p:`pascal`,pl:`prolog`,pm:`perl`,t:`perl`,raku:`raku`,p6:`raku`,pl6:`raku`,php:`php`,phtml:`php`,pls:`plsql`,sql:`sql`,po:`po`,polar:`polar`,pcss:`postcss`,pot:`pot`,potx:`potx`,pq:`powerquery`,pqm:`powerquery`,ps1:`powershell`,psm1:`powershell`,psd1:`powershell`,prisma:`prisma`,pro:`prolog`,P:`prolog`,properties:`properties`,proto:`protobuf`,pp:`puppet`,purs:`purescript`,py:`python`,pyw:`python`,pyi:`python`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,R:`r`,rkt:`racket`,rktl:`racket`,razor:`razor`,cshtml:`razor`,rb:`ruby`,rbw:`ruby`,reg:`reg`,regex:`regexp`,rel:`rel`,rs:`rust`,rst:`rst`,rake:`ruby`,gemspec:`ruby`,jbuilder:`ruby`,builder:`ruby`,rabl:`ruby`,arb:`ruby`,ru:`ruby`,podspec:`ruby`,Gemfile:`ruby`,Rakefile:`ruby`,Guardfile:`ruby`,Capfile:`ruby`,Berksfile:`ruby`,Brewfile:`ruby`,Vagrantfile:`ruby`,Thorfile:`ruby`,Appraisals:`ruby`,Dangerfile:`ruby`,sas:`sas`,sass:`sass`,scala:`scala`,sc:`scala`,scm:`scheme`,ss:`scheme`,sld:`scheme`,scss:`scss`,sdbl:`sdbl`,shadergraph:`shader`,st:`smalltalk`,sol:`solidity`,sparql:`sparql`,rq:`sparql`,spl:`splunk`,config:`ssh-config`,do:`stata`,ado:`stata`,dta:`stata`,styl:`stylus`,stylus:`stylus`,svelte:`svelte`,swift:`swift`,sv:`system-verilog`,svh:`system-verilog`,service:`systemd`,socket:`systemd`,device:`systemd`,timer:`systemd`,talon:`talonscript`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`typescript`,mts:`typescript`,cts:`typescript`,tsp:`typespec`,tsv:`tsv`,tsx:`tsx`,ttl:`turtle`,twig:`twig`,typ:`typst`,vv:`v`,vala:`vala`,vapi:`vala`,vb:`vb`,vbs:`vb`,bas:`vb`,vh:`verilog`,vhd:`vhdl`,vhdl:`vhdl`,vim:`vimscript`,vue:`vue`,"vine.ts":`vue-vine`,vy:`vyper`,wasm:`wasm`,wat:`wasm`,wy:`文言`,wgsl:`wgsl`,wit:`wit`,wl:`wolfram`,nb:`wolfram`,xml:`xml`,xsl:`xsl`,xslt:`xsl`,yaml:`yaml`,yml:`yml`,zs:`zenscript`,zig:`zig`,zsh:`zsh`,sty:`tex`};function xd(e){if(vd.has(e))return vd.get(e)??`text`;if(bd[e]!=null)return bd[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(vd.has(t[1]))return vd.get(t[1])??`text`;if(bd[t[1]]!=null)return bd[t[1]]??`text`}let n=e.match(/\.([^.]+)$/)?.[1]??``;return vd.has(n)?vd.get(n)??`text`:bd[n]??`text`}function Sd(){return yd}function Cd(){return Object.fromEntries(vd)}function wd(e){return(e.lang??xd(e.name))===`text`}var Td=10,Ed=13,Dd=4,Od=40;function kd(e){let t=[0],n=e.indexOf(`\r`),r=e.indexOf(`
|
|
154
154
|
`),i=0,a=0;for(;n!==-1||r!==-1;){let o;if(n!==-1&&(r===-1||n<r)?r===n+1?(o=r+1,n=e.indexOf(`\r`,o),r=e.indexOf(`
|
|
155
155
|
`,o)):(o=n+1,n=e.indexOf(`\r`,o)):(o=r+1,r=e.indexOf(`
|
|
156
156
|
`,o)),t.push(o),++a===Dd){if(o-i<=Od){for(let n=o;n<e.length;n++){let r=e.charCodeAt(n);(r===Td||r===Ed)&&(r===Ed&&n+1<e.length&&e.charCodeAt(n+1)===Td&&n++,t.push(n+1))}return t}i=o,a=0}}return t}function Ad(e){let t=kd(e);return Array.from({length:t.length},(n,r)=>{let i=t[r],a=t[r+1]??e.length;return e.slice(i,a)})}function jd(e){return{type:`text`,value:e}}function Md({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function Nd({name:e,width:t=16,height:n=16,properties:r}){return Md({tagName:`svg`,properties:{width:t,height:n,viewBox:`0 0 16 16`,...r},children:[Md({tagName:`use`,properties:{href:`#${e.replace(/^#/,``)}`}})]})}function Pd(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t;t=`children`in t?t.children[0]:null}}function Fd(e){return Md({tagName:`div`,properties:{"data-gutter":``},children:e})}function Id(e,t,n,r={}){return Md({tagName:`div`,properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...r},children:t==null?void 0:[Md({tagName:`span`,properties:{"data-line-number-content":``},children:[jd(`${t}`)]})]})}function Ld(e,t,n){return Md({tagName:`div`,properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t===`annotation`?void 0:e,style:t===`annotation`?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function Rd(e,t,n){let r=typeof n.lineInfo==`function`?n.lineInfo(t):n.lineInfo[t-1];if(r==null){let r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),Error(r)}return e.tagName=`div`,e.properties[`data-line`]=r.lineNumber,e.properties[`data-alt-line`]=r.altLineNumber,e.properties[`data-line-type`]=r.type,e.properties[`data-line-index`]=r.lineIndex,e.children.length===0&&e.children.push(jd(`
|
|
@@ -1591,11 +1591,11 @@ Error generating stack: `+e.message+`
|
|
|
1591
1591
|
|
|
1592
1592
|
`)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=hb,c=!dx.jitless,l=c&&gb.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?VC([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function WC(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Fb(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Bb(e,r,fx())))}),t)}var GC=G(`$ZodUnion`,(e,t)=>{HS.init(e,t),tx(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),tx(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),tx(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),tx(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>nb(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>WC(t,r,e,i)):WC(o,r,e,i)}});function KC(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var qC=G(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,GC.init(e,t);let n=e._zod.parse;tx(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||ib(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=ab(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=eb(()=>KC(t));e._zod.parse=(i,a)=>{let o=i.value;if(!hb(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),JC=G(`$ZodIntersection`,(e,t)=>{HS.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>XC(e,t,n)):XC(e,i,a)}});function YC(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(_b(e)&&_b(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=YC(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=YC(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function XC(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=YC(t.value,n.value);if(!c.valid){if(Fb(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var ZC=G(`$ZodRecord`,(e,t)=>{HS.init(e,t);let n=dx.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!_b(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Bb(e,i,fx())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...Lb(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...Lb(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&_S.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>Bb(e,i,fx())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...Lb(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...Lb(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),QC=G(`$ZodEnum`,(e,t)=>{HS.init(e,t);let n=Xy(t.entries),r=new Set(n);e._zod.values=r,tx(e,`pattern`,e=>{let t=Xy(e.def.entries).filter(e=>yb.has(typeof e));return RegExp(t.length?`^(${t.map(e=>bb(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),$C=G(`$ZodLiteral`,(e,t)=>{HS.init(e,t);let n=new Set(t.values);e._zod.values=n,tx(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?bb(e):e?bb(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),ew=G(`$ZodTransform`,(e,t)=>{HS.init(e,t),e._zod.optin=`optional`,dx.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ux(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new lx;return n.value=i,n}});function tw(e,t){return e.value=t.issues.length?void 0:t.value,e}var nw=G(`$ZodOptional`,(e,t)=>{HS.init(e,t),tx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,tx(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),tx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${nb(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>tw(e,t)):tw(e,r)}return t.innerType._zod.run(e,n)}}),rw=G(`$ZodExactOptional`,(e,t)=>{nw.init(e,t),tx(e,`values`,e=>e.def.innerType._zod.values),tx(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),iw=G(`$ZodNullable`,(e,t)=>{HS.init(e,t),tx(e,`optin`,e=>e.def.innerType._zod.optin),tx(e,`optout`,e=>e.def.innerType._zod.optout),tx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${nb(t.source)}|null)$`):void 0}),tx(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),aw=G(`$ZodDefault`,(e,t)=>{HS.init(e,t),e._zod.optin=`defaulted`,tx(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>ow(e,t)):ow(r,t)}});function ow(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var sw=G(`$ZodPrefault`,(e,t)=>{HS.init(e,t),e._zod.optin=`defaulted`,tx(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),cw=G(`$ZodNonOptional`,(e,t)=>{HS.init(e,t),tx(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>lw(t,e)):lw(i,e)}});function lw(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function uw(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>Bb(e,r,fx()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var dw=G(`$ZodCatch`,(e,t)=>{HS.init(e,t),tx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),tx(e,`optout`,e=>e.def.innerType._zod.optout),tx(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>uw(e,r,t,n)):uw(e,r,t,n)}}),fw=G(`$ZodPipe`,(e,t)=>{HS.init(e,t),tx(e,`values`,e=>e.def.in._zod.values),tx(e,`optin`,e=>e.def.in._zod.optin),tx(e,`optout`,e=>e.def.out._zod.optout),tx(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>pw(e,t.in,n)):pw(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>pw(e,t.out,n)):pw(r,t.out,n)}});function pw(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var mw=G(`$ZodReadonly`,(e,t)=>{HS.init(e,t),tx(e,`propValues`,e=>e.def.innerType._zod.propValues),tx(e,`values`,e=>e.def.innerType._zod.values),tx(e,`optin`,e=>e.def.innerType?._zod?.optin),tx(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(hw):hw(r)}});function hw(e){return e.memo||(e.value=Object.freeze(e.value)),e}var gw=G(`$ZodCustom`,(e,t)=>{SS.init(e,t),HS.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>_w(t,n,r,e));_w(i,n,r,e)}});function _w(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Gb(e))}}var vw=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},yw=`~memo`,bw=[];function xw(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Sw(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var Cw=new WeakMap,ww=0,Tw=1,Ew=2;function Dw(e,t,n){let r=Cw.get(e);if(r!==void 0)return r?Ew:ww;if(t.has(e))return Ew;t.add(e);let i=ww,a=e=>{if(i!==Ew&&e?._zod){let r=Dw(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=ww;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?Tw:o.value?._zod?Dw(o.value,t,n):ww;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=ab(c);s(e?o(e,!0):Tw),a(c.catchall);break}case`properties`:s(o(c.shape,!1));break;case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?Dw(r,t,!1):Tw);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(!(!n||typeof n!=`object`)){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),Ow(e,i)}function Ow(e,t){return t!==Tw&&Cw.set(e,t===Ew),t}function kw(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Aw,jw=[],Mw={alloc(e,t,n){let r=Aw;if(!r)return n;Aw=void 0;let i={value:n,issues:null};return r.set(t.value,i),jw.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&Pw(n,e.value))throw new vw;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=Dw(e,new Set,!1);if(i===ww)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===Ew||r?n=!0:r=!0}let l=s.value;if(!xw(l))return t(s,c);let u=c[yw];u||(u={buckets:new WeakMap,backEdges:void 0},c[yw]=u);let d;i===c?d=a:(d=kw(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...Sw(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;Aw=d;let p=jw.length,m=t(s,c);Aw=void 0;let h=jw.length>p?jw.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?Sw(e.issues):bw),e)):(h&&(h.issues=m.issues.length?Sw(m.issues):bw),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function Nw(){return Mw}function Pw(e,t){let n=e[yw]?.backEdges;return n!==void 0&&xw(t)&&n.has(t)}var Fw=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(Wb(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Sb(e.values[0])}`:`Invalid option: expected one of ${Zy(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${Zy(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function Iw(){return{localeError:Fw()}}var Lw,Rw=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function zw(){return new Rw}(Lw=globalThis).__zod_globalRegistry??(Lw.__zod_globalRegistry=zw());var Bw=globalThis.__zod_globalRegistry;function Vw(e,t){return new e({type:`string`,...W(t)})}function Hw(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...W(t)})}function Uw(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...W(t)})}function Ww(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...W(t)})}function Gw(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...W(t)})}function Kw(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...W(t)})}function qw(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...W(t)})}function Jw(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...W(t)})}function Yw(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...W(t)})}function Xw(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...W(t)})}function Zw(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...W(t)})}function Qw(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...W(t)})}function $w(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...W(t)})}function eT(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...W(t)})}function tT(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...W(t)})}function nT(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...W(t)})}function rT(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...W(t)})}function iT(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...W(t)})}function aT(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...W(t)})}function oT(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...W(t)})}function sT(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...W(t)})}function cT(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...W(t)})}function lT(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...W(t)})}function uT(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...W(t)})}function dT(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...W(t)})}function fT(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...W(t)})}function pT(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...W(t)})}function mT(e,t){return new e({type:`number`,checks:[],...W(t)})}function hT(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...W(t)})}function gT(e,t){return new e({type:`boolean`,...W(t)})}function _T(e,t){return new e({type:`undefined`,...W(t)})}function vT(e){return new e({type:`unknown`})}function yT(e,t){return new e({type:`never`,...W(t)})}function bT(e,t){return new TS({check:`less_than`,...W(t),value:e,inclusive:!1})}function xT(e,t){return new TS({check:`less_than`,...W(t),value:e,inclusive:!0})}function ST(e,t){return new ES({check:`greater_than`,...W(t),value:e,inclusive:!1})}function CT(e,t){return new ES({check:`greater_than`,...W(t),value:e,inclusive:!0})}function wT(e,t){return new DS({check:`multiple_of`,...W(t),value:e})}function TT(e,t){return new kS({check:`max_length`,...W(t),maximum:e})}function ET(e,t){return new AS({check:`min_length`,...W(t),minimum:e})}function DT(e,t){return new jS({check:`length_equals`,...W(t),length:e})}function OT(e,t){return new NS({check:`string_format`,format:`regex`,...W(t),pattern:e})}function kT(e){return new PS({check:`string_format`,format:`lowercase`,...W(e)})}function AT(e){return new FS({check:`string_format`,format:`uppercase`,...W(e)})}function jT(e,t){return new IS({check:`string_format`,format:`includes`,...W(t),includes:e})}function MT(e,t){return new LS({check:`string_format`,format:`starts_with`,...W(t),prefix:e})}function NT(e,t){return new RS({check:`string_format`,format:`ends_with`,...W(t),suffix:e})}function PT(e){return new zS({check:`overwrite`,tx:e})}function FT(e){return PT(t=>t.normalize(e))}function IT(){return PT(e=>e.trim())}function LT(){return PT(e=>e.toLowerCase())}function RT(){return PT(e=>e.toUpperCase())}function zT(){return PT(e=>pb(e))}function BT(e,t,n){return new e({type:`array`,element:t,...W(n)})}function VT(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...W(n)})}function HT(e,t){let n=UT(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Gb(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Gb(r))}},e(t.value,t)),t);return n}function UT(e,t){let n=new SS({check:`custom`,...W(t)});return n._zod.check=e,n}function WT(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&ib(e,t,n[t]);return e}function GT(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Bw,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function KT(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function qT(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,qT(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&WT(o.schema,c),t.io===`input`&&rE(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function JT(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function YT(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${JT(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+JT(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
1593
1593
|
|
|
1594
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function XT(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;XT(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var ZT=new Set([`type`,`properties`,`required`,`additionalProperties`]),QT=[`oneOf`,`anyOf`];function $T(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function eE(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!ZT.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??$T(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}ib(n,r,e.length===1?e[0]:eE(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=$T(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function tE(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of ZT)if(t in e)return;let n=t.filter(e=>QT.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=eE(t);else{let e=n[0],i=QT.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>eE([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,WT(e,r))}function nE(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):WT(i,s),WT(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())XT(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])tE(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}WT(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,ib(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:aE(t,`input`,e.processors),output:aE(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function rE(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return rE(r.element,n);if(r.type===`set`)return rE(r.valueType,n);if(r.type===`lazy`)return rE(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return rE(r.innerType,n);if(r.type===`intersection`)return rE(r.left,n)||rE(r.right,n);if(r.type===`record`||r.type===`map`)return rE(r.keyType,n)||rE(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:rE(r.in,n)||rE(r.out,n);if(r.type===`object`){for(let e in r.shape)if(rE(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(rE(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(rE(e,n))return!0;return!!(r.rest&&rE(r.rest,n))}return!1}var iE=(e,t={})=>n=>{let r=GT({...n,processors:t});return qT(e,r),YT(r,e),nE(r,e)},aE=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=GT({...i??{},target:a,io:t,processors:n});return qT(e,o),YT(o,e),nE(o,e)},oE=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},sE=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},cE=(e,t)=>{oE(e,`minimum`,t),sE(e,`maximum`,t)},lE=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},uE=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},dE=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},fE=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},pE=(e,t)=>oE(e,`minimum`,t.minimum),mE=(e,t)=>sE(e,`maximum`,t.maximum),hE=e=>(t,n)=>{fE(t,n.format);let[r,i]=e[n.format];oE(t,`minimum`,r),sE(t,`maximum`,i)},gE={greater_than:(e,t)=>oE(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>sE(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>lE(e,t.value),number_format:hE(wb),bigint_format:hE(Tb),min_length:pE,max_length:mE,length_equals:(e,t)=>cE(e,t.length),min_size:pE,max_size:mE,size_equals:(e,t)=>cE(e,t.size),string_format:(e,t)=>{fE(e,t.format),t.pattern&&uE(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>dE(e,t.mime)};function _E(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)gE[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&oE(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&oE(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&sE(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&sE(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&lE(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&dE(t,i.mime);for(let e of i.patterns??[])uE(t,e);return t}var vE={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},yE=new Map([[SC,aS],[wC,oS]]),bE=e=>yE.get(e)??e,xE=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=_E(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=vE[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(bE);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},SE=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=_E(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):KT(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},CE=(e,t,n,r)=>{n.type=`boolean`},wE=(e,t,n,r)=>{KT(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},TE=(e,t,n,r)=>{n.not={}},EE=(e,t,n,r)=>{let i=e._zod.def,a=Xy(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},DE=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(KT(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(KT(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},OE=(e,t,n,r)=>{KT(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},kE=(e,t,n,r)=>{KT(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},AE=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=_E(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=qT(a.element,t,{...r,path:[...r.path,`items`]})};function jE(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?jE(t.out):t.type===`catch`?jE(t.innerType):e._zod.optin}var ME=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&KT(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)ib(i.properties,e,qT(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e];return t.io===`input`?jE(n)===void 0:n._zod.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=qT(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},NE=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>qT(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},PE=(e,t,n,r)=>{let i=e._zod.def,a=qT(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=qT(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)};function FE(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=FE(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>FE(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?_S:gS).source),p):p}var IE=new WeakMap;function LE(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of IE.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=FE(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var RE=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=_E(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=qT(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)ib(i.patternProperties,bE(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=qT(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=IE.get(t);n||(n=[],IE.set(t,n),t.deferred.push(()=>LE(t))),n.push(e)}i.additionalProperties=qT(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&jE(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},zE=(e,t,n,r)=>{let i=e._zod.def,a=qT(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},BE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},VE=Symbol();function HE(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(KT(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),VE):JSON.parse(o)}var UE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=HE(i.defaultValue,e,t,n,r);o!==VE&&(n.default=o)},WE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=HE(i.defaultValue,e,t,n,r);o!==VE&&(n._prefault=o)},GE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{KT(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},KE=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;qT(o,t,r);let s=t.seen.get(e);s.ref=o},qE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},JE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},YE=new WeakSet([Object.prototype,Error.prototype]);function XE(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var ZE=G(`ZodError`,(e,t)=>{yx.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);YE.has(n)||(YE.add(n),XE(n,`format`,e=>t=>Sx(e,t)),XE(n,`flatten`,e=>t=>xx(e,t)),XE(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Qy,2)}),XE(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Qy,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),QE=wx(ZE),$E=Tx(ZE),eD=Ex(ZE),tD=Ox(ZE),nD=Px(ZE),rD=Fx(ZE),iD=Ix(ZE),aD=Lx(ZE),oD=Rx(ZE),sD=zx(ZE),cD=Bx(ZE),lD=Vx(ZE);function uD(){dx.localeError||fx(Iw())}function dD(){dx.memoizer||fx({memoizer:Nw()})}var fD=G(`ZodType`,(e,t)=>(uD(),HS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(db(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return xb(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(PO(e,t))},superRefine(e,t){return this.check(FO(e,t))},overwrite(e){return this.check(PT(e))},optional(){return gO(this)},exactOptional(){return vO(this)},nullable(){return bO(this)},nullish(){return gO(bO(this))},nonoptional(e){return EO(this,e)},array(){return QD(this)},or(e){return nO([this,e])},and(e){return oO(this,e)},transform(e){return AO(this,mO(e))},default(e){return SO(this,e)},prefault(e){return wO(this,e)},catch(e){return OO(this,e)},pipe(e){return AO(this,e)},readonly(){return MO(this)},describe(e){let t=this.clone();return Bw.add(t,{description:e}),t},meta(...e){if(e.length===0)return Bw.get(this);let t=this.clone();return Bw.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Jb(this,`~standard`,{...GS(this),jsonSchema:{input:aE(this,`input`),output:aE(this,`output`)}})},set"~standard"(e){qb(this,`~standard`,e)},parse:function e(t,n){return QE(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await $E(this,t,n,{callee:e})},safeParse(e,t){return eD(this,e,t)},async safeParseAsync(e,t){return tD(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){qb(this,`spa`,e)},validate(e,t){return jx(this,e,t)},validateAsync(e,t){return Nx(this,e,t)},encode:function e(t,n){return nD(this,t,n,{callee:e})},decode:function e(t,n){return rD(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await iD(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await aD(this,t,n,{callee:e})},safeEncode(e,t){return oD(this,e,t)},safeDecode(e,t){return sD(this,e,t)},async safeEncodeAsync(e,t){return cD(this,e,t)},async safeDecodeAsync(e,t){return lD(this,e,t)},toJSONSchema(e){return iE(this,{})(e)},get description(){return Bw.get(this)?.description},get _def(){return this._zod.def}}),pD=G(`_ZodString`,(e,t)=>{KS.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xE(e,t,n,r)},Yb({format:e=>_E(e).format??null,minLength:e=>_E(e).minimum??null,maxLength:e=>_E(e).maximum??null},{regex(...e){return this.check(OT(...e))},includes(...e){return this.check(jT(...e))},startsWith(...e){return this.check(MT(...e))},endsWith(...e){return this.check(NT(...e))},min(...e){return this.check(ET(...e))},max(...e){return this.check(TT(...e))},length(...e){return this.check(DT(...e))},nonempty(...e){return this.check(ET(1,...e))},lowercase(e){return this.check(kT(e))},uppercase(e){return this.check(AT(e))},trim(){return this.check(IT())},normalize(...e){return this.check(FT(...e))},toLowerCase(){return this.check(LT())},toUpperCase(){return this.check(RT())},slugify(){return this.check(zT())}})),mD=G(`ZodString`,(e,t)=>{KS.init(e,t),pD.init(e,t)},{email(e){return this.check(Hw(bD,e))},url(e){return this.check(Jw(CD,e))},jwt(e){return this.check(lT(RD,e))},emoji(e){return this.check(Yw(wD,e))},guid(e){return this.check(Uw(xD,e))},uuid(e){return this.check(Ww(SD,e))},uuidv4(e){return this.check(Gw(SD,e))},uuidv6(e){return this.check(Kw(SD,e))},uuidv7(e){return this.check(qw(SD,e))},nanoid(e){return this.check(Xw(TD,e))},cuid(e){return this.check(Zw(ED,e))},cuid2(e){return this.check(Qw(DD,e))},ulid(e){return this.check($w(OD,e))},base64(e){return this.check(oT(FD,e))},base64url(e){return this.check(sT(ID,e))},xid(e){return this.check(eT(kD,e))},ksuid(e){return this.check(tT(AD,e))},ipv4(e){return this.check(nT(jD,e))},ipv6(e){return this.check(rT(MD,e))},cidrv4(e){return this.check(iT(ND,e))},cidrv6(e){return this.check(aT(PD,e))},e164(e){return this.check(cT(LD,e))},datetime(e){return this.check(uT(gD,e))},date(e){return this.check(dT(_D,e))},time(e){return this.check(fT(vD,e))},duration(e){return this.check(pT(yD,e))}});function K(e){return Vw(mD,e)}var hD=G(`ZodStringFormat`,(e,t)=>{qS.init(e,t),pD.init(e,t)}),gD=G(`ZodISODateTime`,(e,t)=>{uC.init(e,t),hD.init(e,t)}),_D=G(`ZodISODate`,(e,t)=>{dC.init(e,t),hD.init(e,t)}),vD=G(`ZodISOTime`,(e,t)=>{fC.init(e,t),hD.init(e,t)}),yD=G(`ZodISODuration`,(e,t)=>{pC.init(e,t),hD.init(e,t)}),bD=G(`ZodEmail`,(e,t)=>{XS.init(e,t),hD.init(e,t)}),xD=G(`ZodGUID`,(e,t)=>{JS.init(e,t),hD.init(e,t)}),SD=G(`ZodUUID`,(e,t)=>{YS.init(e,t),hD.init(e,t)}),CD=G(`ZodURL`,(e,t)=>{nC.init(e,t),hD.init(e,t)}),wD=G(`ZodEmoji`,(e,t)=>{rC.init(e,t),hD.init(e,t)}),TD=G(`ZodNanoID`,(e,t)=>{iC.init(e,t),hD.init(e,t)}),ED=G(`ZodCUID`,(e,t)=>{aC.init(e,t),hD.init(e,t)}),DD=G(`ZodCUID2`,(e,t)=>{oC.init(e,t),hD.init(e,t)}),OD=G(`ZodULID`,(e,t)=>{sC.init(e,t),hD.init(e,t)}),kD=G(`ZodXID`,(e,t)=>{cC.init(e,t),hD.init(e,t)}),AD=G(`ZodKSUID`,(e,t)=>{lC.init(e,t),hD.init(e,t)}),jD=G(`ZodIPv4`,(e,t)=>{mC.init(e,t),hD.init(e,t)}),MD=G(`ZodIPv6`,(e,t)=>{_C.init(e,t),hD.init(e,t)}),ND=G(`ZodCIDRv4`,(e,t)=>{vC.init(e,t),hD.init(e,t)}),PD=G(`ZodCIDRv6`,(e,t)=>{bC.init(e,t),hD.init(e,t)}),FD=G(`ZodBase64`,(e,t)=>{CC.init(e,t),hD.init(e,t)}),ID=G(`ZodBase64URL`,(e,t)=>{EC.init(e,t),hD.init(e,t)}),LD=G(`ZodE164`,(e,t)=>{DC.init(e,t),hD.init(e,t)}),RD=G(`ZodJWT`,(e,t)=>{kC.init(e,t),hD.init(e,t)}),zD=G(`ZodNumber`,(e,t)=>{AC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SE(e,t,n,r),e.isFinite=!0},Yb({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=_E(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=_E(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=_E(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>_E(e).format??null},{gt(e,t){return this.check(ST(e,t))},gte(e,t){return this.check(CT(e,t))},min(e,t){return this.check(CT(e,t))},lt(e,t){return this.check(bT(e,t))},lte(e,t){return this.check(xT(e,t))},max(e,t){return this.check(xT(e,t))},int(e){return this.check(HD(e))},safe(e){return this.check(HD(e))},positive(e){return this.check(ST(0,e))},nonnegative(e){return this.check(CT(0,e))},negative(e){return this.check(bT(0,e))},nonpositive(e){return this.check(xT(0,e))},multipleOf(e,t){return this.check(wT(e,t))},step(e,t){return this.check(wT(e,t))},finite(){return this}}));function BD(e){return mT(zD,e)}var VD=G(`ZodNumberFormat`,(e,t)=>{jC.init(e,t),zD.init(e,t)});function HD(e){return hT(VD,e)}var UD=G(`ZodBoolean`,(e,t)=>{MC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>CE(e,t,n,r)});function WD(e){return gT(UD,e)}var GD=G(`ZodUndefined`,(e,t)=>{NC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wE(e,t,n,r)});function KD(e){return _T(GD,e)}var qD=G(`ZodUnknown`,(e,t)=>{PC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function JD(){return vT(qD)}var YD=G(`ZodNever`,(e,t)=>{FC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>TE(e,t,n,r)});function XD(e){return yT(YD,e)}var ZD=G(`ZodArray`,(e,t)=>{dD(),LC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AE(e,t,n,r),e.element=t.element},{min(e,t){return this.check(ET(e,t))},nonempty(e){return this.check(ET(1,e))},max(e,t){return this.check(TT(e,t))},length(e,t){return this.check(DT(e,t))},unwrap(){return this.element}});function QD(e,t){return BT(ZD,e,t)}var $D=G(`ZodObject`,(e,t)=>{dD(),UC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ME(e,t,n,r),nx(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return uO(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(db(this._zod.def,{catchall:e}))},passthrough(){return this.clone(db(this._zod.def,{catchall:JD()}))},loose(){return this.clone(db(this._zod.def,{catchall:JD()}))},strict(){return this.clone(db(this._zod.def,{catchall:XD()}))},strip(){return this.clone(db(this._zod.def,{catchall:void 0}))},extend(e){return kb(this,e)},safeExtend(e){return jb(this,e)},merge(e){return Mb(this,e)},pick(e){return Eb(this,e)},omit(e){return Ob(this,e)},partial(...e){return Nb(hO,this,e[0])},exactPartial(...e){return Nb(_O,this,e[0],`exactPartial`)},required(...e){return Pb(TO,this,e[0])}});function eO(e,t){return new $D({type:`object`,shape:e??{},...W(t)})}var tO=G(`ZodUnion`,(e,t)=>{GC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NE(e,t,n,r),e.options=t.options});function nO(e,t){return new tO({type:`union`,options:e,...W(t)})}var rO=G(`ZodDiscriminatedUnion`,(e,t)=>{tO.init(e,t),qC.init(e,t)});function iO(e,t,n){return new rO({type:`union`,options:t,discriminator:e,...W(n)})}var aO=G(`ZodIntersection`,(e,t)=>{JC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PE(e,t,n,r)});function oO(e,t){return new aO({type:`intersection`,left:e,right:t})}var sO=G(`ZodRecord`,(e,t)=>{dD(),ZC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RE(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function cO(e,t,n){return new sO({type:`record`,keyType:e,valueType:t,...W(n),partial:!0})}var lO=G(`ZodEnum`,(e,t)=>{QC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>EE(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new lO({...t,checks:[],...W(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new lO({...t,checks:[],...W(r),entries:i})}});function uO(e,t){return new lO({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...W(t)})}var dO=G(`ZodLiteral`,(e,t)=>{$C.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>DE(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function fO(e,t){return new dO({type:`literal`,values:Array.isArray(e)?e:[e],...W(t)})}var pO=G(`ZodTransform`,(e,t)=>{dD(),ew.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kE(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ux(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Gb(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Gb(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function mO(e){return new pO({type:`transform`,transform:e})}var hO=G(`ZodOptional`,(e,t)=>{nw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gO(e){return new hO({type:`optional`,innerType:e})}var _O=G(`ZodExactOptional`,(e,t)=>{rw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function vO(e){return new _O({type:`optional`,innerType:e})}var yO=G(`ZodNullable`,(e,t)=>{iw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bO(e){return new yO({type:`nullable`,innerType:e})}var xO=G(`ZodDefault`,(e,t)=>{aw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function SO(e,t){return new xO({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():vb(t)}})}var CO=G(`ZodPrefault`,(e,t)=>{sw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function wO(e,t){return new CO({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():vb(t)}})}var TO=G(`ZodNonOptional`,(e,t)=>{cw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function EO(e,t){return new TO({type:`nonoptional`,innerType:e,...W(t)})}var DO=G(`ZodCatch`,(e,t)=>{dw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function OO(e,t){return new DO({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:ix(t)})}var kO=G(`ZodPipe`,(e,t)=>{fw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KE(e,t,n,r),e.in=t.in,e.out=t.out});function AO(e,t){return new kO({type:`pipe`,in:e,out:t})}var jO=G(`ZodReadonly`,(e,t)=>{mw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function MO(e){return new jO({type:`readonly`,innerType:e})}var NO=G(`ZodCustom`,(e,t)=>{gw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>OE(e,t,n,r)});function PO(e,t={}){return VT(NO,e,t)}function FO(e,t){return HT(e,t)}var IO=Yy(),LO=uO([`c`,`cpp`,`go`,`haskell`,`java`,`javascript`,`javascriptreact`,`json`,`jsonc`,`lua`,`nix`,`ocaml`,`php`,`python`,`ruby`,`rust`,`shellscript`,`swift`,`terraform`,`toml`,`typescript`,`typescriptreact`,`yaml`,`zig`]),RO=uO([`old`,`new`]),zO=iO(`kind`,[eO({kind:fO(`working`)}),eO({kind:fO(`pr`),pr:K().optional()}),eO({kind:fO(`revspec`),args:K().array()})]),BO=eO({old:K(),new:K(),mergeBase:WD(),live:uO([`worktree`,`refs`,`none`]),commentKey:K()});function VO(e){let t=e=>e.replace(/^refs\/diffle\/[^/]+\/\d+\/(?:base|head)\//,``).replace(/^refs\/(?:heads|remotes)\//,``);return`${t(e.old)}${e.mergeBase?`...`:`..`}${t(e.new)}`}var HO=eO({repository:K(),number:BD(),url:K(),title:K(),state:uO([`OPEN`,`CLOSED`,`MERGED`]),isDraft:WD()}),UO=eO({version:BD(),repository:K().nullable(),pullRequest:HO.nullable(),reason:K().nullable()}),WO=uO([`A`,`M`,`D`,`R`,`C`,`T`,`U`]),GO=eO({path:K(),oldPath:K().optional(),status:WO,additions:BD(),deletions:BD(),binary:WD(),blob:K(),generated:WD(),submodule:fO(!0).optional()}),KO=eO({root:K(),mode:BO,version:BD(),oldSha:K(),newSha:K(),headSha:K(),context:BD(),changed:GO.array(),tree:K().array()}),qO=eO({paths:K().array().max(200)}),JO=eO({path:K(),contents:K(),binary:WD()}),YO=eO({path:K(),side:RO,startLine:BD(),endLine:BD(),quoted:K()}),XO=eO({id:K(),body:K(),createdAt:BD(),updatedAt:BD()}),ZO=eO({id:K(),anchor:YO,messages:XO.array().min(1),resolved:WD(),resolvedAt:BD().optional(),stale:WD(),staleFromLine:BD().optional()}),QO=eO({path:K().min(1),side:RO.optional(),startLine:BD().int().positive(),endLine:BD().int().positive().optional(),body:K().refine(e=>e.trim().length>0,`body required`),quoted:K().optional()}).refine(e=>e.endLine==null||e.endLine>=e.startLine,{path:[`endLine`],message:`endLine must be ≥ startLine`}),$O=eO({body:K().refine(e=>e.trim().length>0,`body required`)}),ek=uO([`open`,`resolved`,`all`]),tk=eO({threadIds:K().array().optional()}),nk=eO({url:K(),posted:BD(),updated:BD(),review:uO([`created`,`existing`]),skipped:eO({id:K(),reason:K()}).array()});eO({state:ek.optional(),path:K().optional()});var rk=eO({body:K()}),ik=eO({path:K(),blob:K(),viewed:WD()}),ak=eO({sha:K(),short:K(),message:K()}),ok=eO({old:ak.nullable(),new:ak.nullable()}),sk=eO({defaultBranch:K().nullable(),current:K().nullable(),branches:K().array(),remoteBranches:K().array(),tags:K().array(),recent:eO({sha:K(),short:K(),subject:K()}).array()}),ck=eO({path:K(),line:BD(),text:K()}),lk=uO([`file`,`diff`,`repo`]),uk=eO({query:K(),matches:ck.array(),truncated:WD()}),dk=eO({autoViewed:K().array(),contextLines:BD(),lspCommands:cO(LO,K())}),fk={autoViewed:[],contextLines:5,lspCommands:{}},pk=eO({path:K().min(1),line:BD().int().positive(),col:BD().int().nonnegative()}),mk=pk.extend({text:K(),external:fO(!0).optional()}),hk=eO({name:K(),command:K(),state:uO([`starting`,`ready`,`unavailable`]),message:K().optional(),activity:K().array().optional(),notice:eO({severity:uO([`warning`,`error`]),message:K()}).optional(),stderr:K().optional()}).extend({languages:LO.array()}),gk=eO({language:LO,tried:K().array()}),_k=eO({enabled:WD(),servers:hk.array(),missing:gk.array()}),vk=eO({locations:mk.array()}),yk=eO({contents:K().nullable(),range:eO({line:BD(),col:BD(),endLine:BD(),endCol:BD()}).optional()}),bk=eO({kind:K().nullable()}),xk=eO({name:K(),kind:BD(),container:K().optional(),path:K(),line:BD(),endLine:BD(),col:BD()});uO([`unviewed`,`viewed`,`restale`]);var Sk=iO(`type`,[eO({type:fO(`snapshot`),version:BD()}),eO({type:fO(`threads`)}),eO({type:fO(`viewed`)}),eO({type:fO(`config`)}),eO({type:fO(`lsp`),payload:_k})]);function Ck(e){return e.newSha===`worktree`||e.headSha!==``&&e.newSha===e.headSha}var wk={bash:`shellscript`,c:`c`,cc:`cpp`,cjs:`javascript`,cpp:`cpp`,cts:`typescript`,cxx:`cpp`,go:`go`,h:`c`,hh:`cpp`,hpp:`cpp`,hs:`haskell`,hxx:`cpp`,java:`java`,js:`javascript`,jsx:`javascriptreact`,json:`json`,jsonc:`jsonc`,lua:`lua`,mjs:`javascript`,ml:`ocaml`,mli:`ocaml`,mts:`typescript`,nix:`nix`,php:`php`,py:`python`,pyi:`python`,rb:`ruby`,rs:`rust`,sh:`shellscript`,swift:`swift`,tf:`terraform`,tfvars:`terraform`,toml:`toml`,ts:`typescript`,tsx:`typescriptreact`,yaml:`yaml`,yml:`yaml`,zig:`zig`};[...new Set(Object.values(wk))].sort();function Tk(e){let t=/\.([^./\\]+)$/.exec(e)?.[1]?.toLowerCase();return t&&wk[t]||null}function Ek(e,t){if(!e.enabled)return`Language servers are off for this run (--no-lsp)`;if(t==null)return e.servers.length?e.servers.some(e=>e.state===`ready`)?null:Dk(e.servers[0]):Ok(e);let n=Tk(t);if(!n)return`No language server for ${/(\.[^./\\]+)$/.exec(t)?.[1]??`these`} files`;let r=e.servers.find(e=>e.languages.includes(n));return r?r.state===`ready`?null:Dk(r):Ok(e,n)}function Dk(e){return e.state===`starting`?`${e.name} is starting…`:`${e.name} is unavailable: ${e.message??`unknown error`}`}function Ok(e,t){let n=t==null?e.missing:e.missing.filter(e=>e.language===t),r=n.filter(e=>e.tried.length>0),i=n.filter(e=>e.tried.length===0).map(e=>e.language);return r.length?`No language server for ${[...new Set(r.map(e=>e.language))].join(`, `)} on PATH: install one of ${[...new Set(r.flatMap(e=>e.tried))].join(`, `)}`:i.length?`The language server for ${i.join(`, `)} is off in your diffle config`:t==null?`No language server runs for this diff`:`No language server runs for ${t}`}var kk=eO({autoViewed:K().array().optional(),contextLines:BD().int().min(0).max(1e4).optional()}),Ak=eO({resolved:WD()}),jk=eO({entries:ik.array()});eO({path:K().min(1),rev:RO});var Mk=K().regex(/^[0-9]+$/).transform(Number).pipe(BD().int().nonnegative());eO({oldOffset:Mk,newOffset:Mk});var Nk=uO([`0`,`1`]).optional().transform(e=>e===`1`);eO({q:K().default(``),scope:lk.default(`diff`),path:K().optional(),word:Nk,i:Nk,re:Nk}),eO({path:K().min(1).optional(),q:K().optional()}).refine(e=>e.path!=null||e.q!=null,`path or q required`),eO({stale:fO(`1`).optional()}),eO({path:K().optional()});var Pk=eO({error:K()});function Fk(e,t){return JSON.stringify(e.parse(t))}async function Ik(e,t,n){let r=await fetch(t,{...n,headers:{"content-type":`application/json`,...n?.headers}});if(!r.ok)throw new zk(r.status,await Rk(r));return e.parse(r.status===204?void 0:await r.json())}async function Lk(e,t){let n=await fetch(e,t);if(!n.ok)throw new zk(n.status,await Rk(n));return n.text()}async function Rk(e){try{let t=Pk.safeParse(await e.json());return t.success?t.data.error:e.statusText}catch{return e.statusText}}var zk=class extends Error{status;constructor(e,t){super(t),this.status=e}},Bk=e=>new URLSearchParams(Object.entries(e).filter(e=>e[1]!=null)).toString(),Vk={github:()=>Ik(UO,`/api/github`),snapshot:()=>Ik(KO,`/api/snapshot`),switchMode:e=>Ik(KO,`/api/mode`,{method:`POST`,body:Fk(zO,e)}),refs:()=>Ik(sk,`/api/refs`),lastCommitsPreview:(e,t,n)=>Ik(ok,`/api/last-commits-preview?${Bk({oldOffset:String(e),newOffset:String(t)})}`,{signal:n}),patch:e=>Lk(`/api/patch?${Bk({path:e})}`),patches:e=>Lk(`/api/patch`,{method:`POST`,headers:{"content-type":`application/json`},body:Fk(qO,{paths:e})}),file:(e,t,n)=>Ik(JO,`/api/file?${Bk({path:e,rev:t})}`,{signal:n}),search:(e,t={})=>Ik(uk,`/api/search?${Bk({q:e,word:t.word?`1`:void 0,i:t.ignoreCase?`1`:void 0,re:t.regex?`1`:void 0,scope:t.scope,path:t.path})}`),threads:(e={})=>Ik(ZO.array(),`/api/threads?${Bk({state:e.state,path:e.path})}`),exportComments:()=>Lk(`/api/threads/export?${Bk({state:`open`})}`),exportComment:(e,t)=>Lk(`/api/threads/${encodeURIComponent(e)}/messages/${encodeURIComponent(t)}/export`),exportToGithub:e=>Ik(nk,`/api/github/export`,{method:`POST`,body:Fk(tk,e)}),addThread:e=>Ik(ZO.array(),`/api/threads`,{method:`POST`,body:Fk(QO,e)}),reply:(e,t)=>Ik(ZO,`/api/threads/${encodeURIComponent(e)}/replies`,{method:`POST`,body:Fk($O,t)}),editMessage:(e,t,n)=>Ik(ZO,`/api/threads/${encodeURIComponent(e)}/messages/${encodeURIComponent(t)}`,{method:`PATCH`,body:Fk(rk,{body:n})}),deleteMessage:(e,t)=>Ik(ZO.or(KD()),`/api/threads/${encodeURIComponent(e)}/messages/${encodeURIComponent(t)}`,{method:`DELETE`}),setResolved:(e,t)=>Ik(ZO,`/api/threads/${encodeURIComponent(e)}/resolved`,{method:`PUT`,body:Fk(Ak,{resolved:t})}),deleteThread:e=>Ik(KD(),`/api/threads/${encodeURIComponent(e)}`,{method:`DELETE`}),clearThreads:()=>Ik(KD(),`/api/threads`,{method:`DELETE`}),deleteStaleThreads:()=>Ik(KD(),`/api/threads?stale=1`,{method:`DELETE`}),viewed:()=>Ik(ik.array(),`/api/viewed`),setViewedBulk:e=>Ik(ik.array(),`/api/viewed/bulk`,{method:`PUT`,body:Fk(jk,{entries:e})}),setViewed:(e,t,n)=>Ik(ik.array(),`/api/viewed`,{method:`PUT`,body:Fk(ik,{path:e,blob:t,viewed:n})}),lspStatus:()=>Ik(_k,`/api/lsp/status`),lspDefinition:e=>Ik(vk,`/api/lsp/definition`,{method:`POST`,body:Fk(pk,e)}),lspTypeDefinition:e=>Ik(vk,`/api/lsp/type-definition`,{method:`POST`,body:Fk(pk,e)}),lspHover:e=>Ik(yk,`/api/lsp/hover`,{method:`POST`,body:Fk(pk,e)}),lspTokenKind:e=>Ik(bk,`/api/lsp/token-kind`,{method:`POST`,body:Fk(pk,e)}),lspReferences:e=>Ik(vk,`/api/lsp/references`,{method:`POST`,body:Fk(pk,e)}),lspSymbols:e=>Ik(xk.array(),`/api/lsp/symbols?${Bk(e)}`),config:()=>Ik(dk,`/api/config`),saveConfig:e=>Ik(dk,`/api/config`,{method:`PUT`,body:Fk(kk,e)})};function Hk(e,t){let n=null,r=!1,i=500,a=()=>{if(r)return;let o=location.protocol===`https:`?`wss`:`ws`;n=new WebSocket(`${o}://${location.host}/ws`),n.onopen=()=>{i=500,t()},n.onmessage=t=>{try{e(Sk.parse(JSON.parse(String(t.data))))}catch{}},n.onclose=()=>{r||(setTimeout(a,i),i=Math.min(i*2,1e4))}};return a(),()=>{r=!0,n?.close()}}var Uk=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Wk=(e,t)=>({classGroupId:e,validator:t}),Gk=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Kk=`-`,qk=[],Jk=`arbitrary..`,Yk=e=>{let t=Qk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Zk(e);let n=e.split(Kk);return Xk(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Uk(i,t):t:i||qk}return n[e]||qk}}},Xk=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Xk(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Kk):e.slice(t).join(Kk),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Zk=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Jk+r:void 0})(),Qk=e=>{let{theme:t,classGroups:n}=e;return $k(n,t)},$k=(e,t)=>{let n=Gk();for(let r in e){let i=e[r];eA(i,n,r,t)}return n},eA=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];tA(i,t,n,r)}},tA=(e,t,n,r)=>{if(typeof e==`string`){nA(e,t,n);return}if(typeof e==`function`){rA(e,t,n,r);return}iA(e,t,n,r)},nA=(e,t,n)=>{let r=e===``?t:aA(t,e);r.classGroupId=n},rA=(e,t,n,r)=>{if(oA(e)){eA(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Wk(n,e))},iA=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];eA(o,aA(t,a),n,r)}},aA=(e,t)=>{let n=e,r=t.split(Kk),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Gk(),n.nextPart.set(t,i)),n=i}return n},oA=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,sA=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},cA=`!`,lA=`:`,uA=[],dA=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),fA=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===lA){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(cA)?(c=s.slice(0,-1),l=!0):s.startsWith(cA)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return dA(t,l,c,u)};if(t){let e=t+lA,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):dA(uA,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},pA=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},mA=e=>({cache:sA(e.cacheSize),parseClassName:fA(e),sortModifiers:pA(e),postfixLookupClassGroupIds:hA(e),...Yk(e)}),hA=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},gA=/\s+/,_A=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(gA),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+cA:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},vA=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=yA(n))&&(i&&(i+=` `),i+=r);return i},yA=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=yA(e[r]))&&(n&&(n+=` `),n+=t);return n},bA=(e,...t)=>{let n,r,i,a,o=o=>(n=mA(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=_A(e,n);return i(e,a),a};return a=o,(...e)=>a(vA(...e))},xA=[],SA=e=>{let t=t=>t[e]||xA;return t.isThemeGetter=!0,t},CA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,EA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,DA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,OA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jA=e=>TA.test(e),MA=e=>!!e&&!Number.isNaN(Number(e)),NA=e=>!!e&&Number.isInteger(Number(e)),PA=e=>e.endsWith(`%`)&&MA(e.slice(0,-1)),FA=e=>EA.test(e),IA=()=>!0,LA=e=>DA.test(e)&&!OA.test(e),RA=()=>!1,zA=e=>kA.test(e),BA=e=>AA.test(e),VA=e=>!q(e)&&!J(e),HA=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),UA=e=>ij(e,cj,RA),q=e=>CA.test(e),WA=e=>ij(e,lj,LA),GA=e=>ij(e,uj,MA),KA=e=>ij(e,fj,IA),qA=e=>ij(e,dj,RA),JA=e=>ij(e,oj,RA),YA=e=>ij(e,sj,BA),XA=e=>ij(e,pj,zA),J=e=>wA.test(e),ZA=e=>aj(e,lj),QA=e=>aj(e,dj),$A=e=>aj(e,oj),ej=e=>aj(e,cj),tj=e=>aj(e,sj),nj=e=>aj(e,pj,!0),rj=e=>aj(e,fj,!0),ij=(e,t,n)=>{let r=CA.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},aj=(e,t,n=!1)=>{let r=wA.exec(e);return r?r[1]?t(r[1]):n:!1},oj=e=>e===`position`||e===`percentage`,sj=e=>e===`image`||e===`url`,cj=e=>e===`length`||e===`size`||e===`bg-size`,lj=e=>e===`length`,uj=e=>e===`number`,dj=e=>e===`family-name`,fj=e=>e===`number`||e===`weight`,pj=e=>e===`shadow`,mj=bA(()=>{let e=SA(`color`),t=SA(`font`),n=SA(`text`),r=SA(`font-weight`),i=SA(`tracking`),a=SA(`leading`),o=SA(`breakpoint`),s=SA(`container`),c=SA(`spacing`),l=SA(`radius`),u=SA(`shadow`),d=SA(`inset-shadow`),f=SA(`text-shadow`),p=SA(`drop-shadow`),m=SA(`blur`),h=SA(`perspective`),g=SA(`aspect`),_=SA(`ease`),v=SA(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[jA,`full`,`auto`,...w()],E=()=>[NA,`none`,`subgrid`,J,q],D=()=>[`auto`,{span:[`full`,NA,J,q]},NA,J,q],O=()=>[NA,`auto`,J,q],k=()=>[`auto`,`min`,`max`,`fr`,J,q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[jA,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[jA,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[jA,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,J,q],L=()=>[...b(),$A,JA,{position:[J,q]}],ee=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,ej,UA,{size:[J,q]}],ne=()=>[PA,ZA,WA],R=()=>[``,`none`,`full`,l,J,q],z=()=>[``,MA,ZA,WA],B=()=>[`solid`,`dashed`,`dotted`,`double`],re=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ie=()=>[MA,PA,$A,JA],ae=()=>[``,`none`,m,J,q],oe=()=>[`none`,MA,J,q],se=()=>[`none`,MA,J,q],ce=()=>[MA,J,q],le=()=>[jA,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[FA],breakpoint:[FA],color:[IA],container:[FA],"drop-shadow":[FA],ease:[`in`,`out`,`in-out`],font:[VA],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[FA],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[FA],shadow:[FA],spacing:[`px`,MA],text:[FA],"text-shadow":[FA],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,jA,q,J,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,J,q]}],"container-named":[HA],columns:[{columns:[MA,q,J,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[NA,`auto`,J,q]}],basis:[{basis:[jA,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[MA,jA,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,MA,J,q]}],shrink:[{shrink:[``,MA,J,q]}],order:[{order:[NA,`first`,`last`,`none`,J,q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,ZA,WA]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,rj,KA]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,PA,q]}],"font-family":[{font:[QA,qA,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,J,q]}],"line-clamp":[{"line-clamp":[MA,`none`,J,GA]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...B(),`wavy`]}],"text-decoration-thickness":[{decoration:[MA,`from-font`,`auto`,J,WA]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[MA,`auto`,J,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[NA,J,q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},NA,J,q],radial:[``,J,q],conic:[NA,J,q]},tj,YA]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...B(),`hidden`,`none`]}],"divide-style":[{divide:[...B(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...B(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[MA,J,q]}],"outline-w":[{outline:[``,MA,ZA,WA]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,nj,XA]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,nj,XA]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[MA,WA]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,nj,XA]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[MA,J,q]}],"mix-blend":[{"mix-blend":[...re(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[MA]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[MA]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:ae()}],brightness:[{brightness:[MA,J,q]}],contrast:[{contrast:[MA,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,nj,XA]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,MA,J,q]}],"hue-rotate":[{"hue-rotate":[MA,J,q]}],invert:[{invert:[``,MA,J,q]}],saturate:[{saturate:[MA,J,q]}],sepia:[{sepia:[``,MA,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[MA,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[MA,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,MA,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[MA,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,MA,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[MA,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[MA,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,MA,J,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[MA,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[MA,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":[`scale-3d`],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":[`translate-none`],zoom:[{zoom:[NA,J,q]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,J,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,J,q]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[MA,ZA,WA,GA]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function hj({label:e,onClose:t,className:n,children:r}){return(0,g.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/35`,onMouseDown:e=>e.target===e.currentTarget&&t(),children:(0,g.jsx)(`div`,{role:`dialog`,"aria-label":e,className:mj(`w-140 max-w-[95vw] rounded-[0.625rem] border border-border bg-canvas p-4 shadow-[0_1rem_3rem_rgba(0,0,0,0.3)]`,n),children:r})})}var gj=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),_j=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),vj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),yj=e=>{let t=vj(e);return t.charAt(0).toUpperCase()+t.slice(1)},bj={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},xj=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Sj=(0,p.createContext)({}),Cj=()=>(0,p.useContext)(Sj),wj=(0,p.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:m=``}=Cj()??{},h=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,p.createElement)(`svg`,{ref:c,...bj,width:t??l??bj.width,height:t??l??bj.height,stroke:e??f,strokeWidth:h,className:gj(`lucide`,m,i),...!a&&!xj(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Tj=(e,t)=>{let n=(0,p.forwardRef)(({className:n,...r},i)=>(0,p.createElement)(wj,{ref:i,iconNode:t,className:gj(`lucide-${_j(yj(e))}`,`lucide-${e}`,n),...r}));return n.displayName=yj(e),n},Ej=Tj(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),Dj=Tj(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Oj=Tj(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),kj=Tj(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Aj=Tj(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),jj=Tj(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Mj=Tj(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),Nj=Tj(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),Pj=Tj(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Fj=Tj(`clipboard-copy`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`,key:`4jdomd`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`,key:`3hqy98`}],[`path`,{d:`M21 14H11`,key:`1bme5i`}],[`path`,{d:`m15 10-4 4 4 4`,key:`5dvupr`}]]),Ij=Tj(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),Lj=Tj(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),Rj=Tj(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),zj=Tj(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),Bj=Tj(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Vj=Tj(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Hj=Tj(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Uj=Tj(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Wj=Tj(`file-code-corner`,[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]]),Gj=Tj(`file-diff`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]),Kj=Tj(`file-search`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),qj=Tj(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Jj=Tj(`folder-search`,[[`path`,{d:`M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1`,key:`1bw5m7`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]),Yj=Tj(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]),Xj=Tj(`git-compare-arrows`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`M12 18H7a2 2 0 0 1-2-2V9`,key:`16sdep`}],[`path`,{d:`m9 15 3 3-3 3`,key:`1m3kbl`}]]),Zj=Tj(`git-pull-request-arrow`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M5 9v12`,key:`ih889a`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}]]),Qj=Tj(`git-pull-request`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]),$j=Tj(`hash`,[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]),eM=Tj(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),tM=Tj(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),nM=Tj(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),rM=Tj(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),iM=Tj(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),aM=Tj(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),oM=Tj(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),sM=Tj(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),cM=Tj(`pencil-ruler`,[[`path`,{d:`M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13`,key:`orapub`}],[`path`,{d:`m8 6 2-2`,key:`115y1s`}],[`path`,{d:`m18 16 2-2`,key:`ee94s4`}],[`path`,{d:`m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17`,key:`cfq27r`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),lM=Tj(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),uM=Tj(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),dM=Tj(`reply`,[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]),fM=Tj(`rotate-ccw-clock`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),pM=Tj(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),mM=Tj(`rows-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]),hM=Tj(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),gM=Tj(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),_M=Tj(`shapes`,[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]),vM=Tj(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),yM=Tj(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),bM=Tj(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),xM=Tj(`whole-word`,[[`circle`,{cx:`7`,cy:`12`,r:`3`,key:`12clwm`}],[`path`,{d:`M10 9v6`,key:`17i7lo`}],[`circle`,{cx:`17`,cy:`12`,r:`3`,key:`gl7c2s`}],[`path`,{d:`M14 7v8`,key:`dl84cr`}],[`path`,{d:`M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1`,key:`lt2kga`}]]),SM=Tj(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function CM({done:e,children:t,size:n=`0.875rem`}){let r=`absolute inset-0 inline-flex items-center justify-center [transition:opacity_160ms_ease,transform_200ms_cubic-bezier(0.2,0.8,0.2,1)]`;return(0,g.jsxs)(`span`,{className:`relative inline-block size-3.5`,"aria-hidden":`true`,children:[(0,g.jsx)(`span`,{className:mj(r,e&&`[transform:scale(0.4)] opacity-0`),children:t}),(0,g.jsx)(`span`,{className:mj(r,e?`[transform:scale(1)_rotate(0)] opacity-100`:`[transform:scale(0.4)_rotate(-30deg)] opacity-0`),children:(0,g.jsx)(Oj,{size:n})})]})}function wM({variant:e=`default`,danger:t,icon:n,feedback:r,className:i,...a}){return(0,g.jsx)(`button`,{...a,"data-feedback":r,className:mj(`inline-flex cursor-pointer items-center gap-1.25 rounded-md border border-border bg-surface px-2.25 py-0.75 leading-[1.2] hover:bg-hover disabled:cursor-default disabled:opacity-50 [&_svg]:flex-none`,e===`primary`&&`border-transparent bg-accent text-accent-fg hover:bg-accent`,e===`ghost`&&`border-transparent bg-transparent hover:bg-hover`,t&&`text-danger`,n&&`px-1.25`,r===`confirm`&&(t?`border-transparent bg-danger text-white hover:bg-danger`:`border-transparent bg-accent text-accent-fg hover:bg-accent`),r===`posted`&&`border-transparent bg-add text-canvas hover:bg-add`,r===`copied`&&`border-transparent bg-add text-white hover:bg-add`,i)})}async function TM(e){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch{}let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.top=`0`,t.style.left=`0`,t.style.opacity=`0`,document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);let n=!1;try{n=document.execCommand(`copy`)}catch{n=!1}return document.body.removeChild(t),n}var EM=o(((e,t)=>{var n=`\\\\/`,r=`[^${n}]`,i=0,a=`\\.`,o=`\\+`,s=`\\?`,c=`\\/`,l=`(?=.)`,u=`[^/]`,d=`(?:${c}|$)`,f=`(?:^|${c})`,p=`${a}{1,2}${d}`,m={DOT_LITERAL:a,PLUS_LITERAL:o,QMARK_LITERAL:s,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:u,END_ANCHOR:d,DOTS_SLASH:p,NO_DOT:`(?!${a})`,NO_DOTS:`(?!${f}${p})`,NO_DOT_SLASH:`(?!${a}{0,1}${d})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${c}]`,STAR:`${u}*?`,START_ANCHOR:f,SEP:`/`},h={...m,SLASH_LITERAL:`[${n}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${a}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${n}])${a}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`,SEP:`\\`};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:i,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?h:m}}})),DM=o((e=>{var{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=EM();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,`\\$1`),e.toPosixSlashes=e=>e.replace(t,`/`),e.isWindows=()=>{if(typeof navigator<`u`&&navigator.platform){let e=navigator.platform.toLowerCase();return e===`win32`||e===`windows`}return typeof process<`u`&&process.platform?process.platform===`win32`:!1},e.removeBackslashes=e=>e.replace(n,e=>e===`\\`?``:e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:`/`),r=n[n.length-1];return r===``?n[n.length-2]:r}})),OM=o(((e,t)=>{var n=DM(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=EM(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.tokens===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,j=!1,M=!1,N=!1,P=!1,F=!1,I=!1,L=!1,ee=!1,te=!1,ne=0,R,z,B={value:``,depth:0,isGlob:!1},re=()=>D>=x,ie=()=>E.charCodeAt(D+1),ae=()=>(R=z,E.charCodeAt(++D));for(;D<x;){z=ae();let e;if(z===a){I=B.backslashes=!0,z=ae(),z===u&&(F=!0);continue}if(F===!0||z===u){for(ne++;re()!==!0&&(z=ae());){if(z===a){I=B.backslashes=!0,ae();continue}if(z===u){ne++;continue}if(F!==!0&&z===s&&(z=ae())===s){if(A=B.isBrace=!0,M=B.isGlob=!0,te=!0,S===!0)continue;break}if(F!==!0&&z===o){if(A=B.isBrace=!0,M=B.isGlob=!0,te=!0,S===!0)continue;break}if(z===h&&(ne--,ne===0)){F=!1,A=B.isBrace=!0,te=!0;break}}if(S===!0)continue;break}if(z===l){if(C.push(D),w.push(B),B={value:``,depth:0,isGlob:!1},te===!0)continue;if(R===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(z===p||z===i||z===r||z===m||z===c)&&ie()===d){if(M=B.isGlob=!0,N=B.isExtglob=!0,te=!0,z===c&&D===O&&(ee=!0),S===!0){let e=0;for(;re()!==!0&&(z=ae());){if(z===a){I=B.backslashes=!0,ae();continue}if(z===d){e++;continue}if(z===g&&--e===0){te=!0;break}}continue}break}if(z===r){if(R===r&&(P=B.isGlobstar=!0),M=B.isGlob=!0,te=!0,S===!0)continue;break}if(z===m){if(M=B.isGlob=!0,te=!0,S===!0)continue;break}if(z===f){for(;re()!==!0&&(e=ae());){if(e===a){I=B.backslashes=!0,ae();continue}if(e===_){j=B.isBracket=!0,M=B.isGlob=!0,te=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&z===c&&D===O){L=B.negated=!0,O++;continue}if(b.noparen!==!0&&z===d){if(M=B.isGlob=!0,S===!0){let e=1;for(;re()!==!0&&(z=ae());){if(z===a){I=B.backslashes=!0,ae();continue}if(z===d){e++;continue}if(z===g&&--e===0){te=!0;break}}continue}break}if(M===!0){if(te=!0,S===!0)continue;break}}b.noext===!0&&(N=!1,M=!1);let oe=E,se=``,ce=``;O>0&&(se=E.slice(0,O),E=E.slice(O),k-=O),oe&&M===!0&&k>0?(oe=E.slice(0,k),ce=E.slice(k)):M===!0?(oe=``,ce=E):oe=E,oe&&oe!==``&&oe!==`/`&&oe!==E&&v(oe.charCodeAt(oe.length-1))&&(oe=oe.slice(0,-1)),b.unescape===!0&&(ce&&=n.removeBackslashes(ce),oe&&I===!0&&(oe=n.removeBackslashes(oe)));let le={prefix:se,input:e,start:O,base:oe,glob:ce,isBrace:A,isBracket:j,isGlob:M,isExtglob:N,isGlobstar:P,negated:L,negatedExtglob:ee};if(b.tokens===!0&&(le.maxDepth=0,v(z)||w.push(B),le.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t===void 0?O:t+1,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=se):w[n].value=a,y(w[n]),le.maxDepth+=w[n].depth),i>=O&&(T.push(a),t=i)}let n=t===void 0?O:t+1,r=e.slice(n);T.push(r),b.tokens&&t&&t+1<e.length&&(w[w.length-1].value=r,y(w[w.length-1]),le.maxDepth+=w[w.length-1].depth),le.slashes=C,le.parts=T}return le}})),kM=o(((e,t)=>{var n=EM(),r=DM(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],n=0,r=0,i=0,a=``,o=!1;for(let s of e){if(o===!0){a+=s,o=!1;continue}if(s===`\\`){a+=s,o=!0;continue}if(s===`"`){i=i===1?0:1,a+=s;continue}if(i===0){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(n===0){if(s===`(`)r++;else if(s===`)`&&r>0)r--;else if(s===`|`&&r===0){t.push(a),a=``;continue}}}a+=s}return t.push(a),t},f=e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n===`\\`){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},p=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(f(t))return t.replace(/\\(.)/g,`$1`)},m=e=>{let t=e.map(p).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){let r=t[e],i=t[n],a=r[0];if(!(!a||r!==a.repeat(r.length)||i!==a.repeat(i.length))&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1},h=(e,t=!0)=>{if(e[0]!==`+`&&e[0]!==`*`||e[1]!==`(`)return;let n=0,r=0,i=0,a=!1;for(let o=1;o<e.length;o++){let s=e[o];if(a===!0){a=!1;continue}if(s===`\\`){a=!0;continue}if(s===`"`){i=i===1?0:1;continue}if(i!==1){if(s===`[`){n++;continue}if(s===`]`&&n>0){n--;continue}if(!(n>0)){if(s===`(`){r++;continue}if(s===`)`&&(r--,r===0))return t===!0&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}}}},g=e=>`${e.length===1?r.escapeRegex(e[0]):`[${e.map(e=>r.escapeRegex(e)).join(``)}]`}*`,_=e=>{let t=0,n=[];for(;t<e.length;){let r=h(e.slice(t),!1);if(!r||r.type!==`*`)return;let i=d(r.body).map(e=>e.trim());if(i.length!==1)return;let a=p(i[0]);if(!a||a.length!==1)return;n.push(a),t+=r.end+1}if(!(n.length<1))return n},v=e=>{let t=0,n=e.trim(),r=h(n);for(;r;)t++,n=r.body.trim(),r=h(n);return t},y=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==`number`?t.maxExtglobRecursion:n.DEFAULT_MAX_EXTGLOB_RECURSION,i=d(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>e===``)||i.some(e=>/^[*?]+$/.test(e))||m(i)))return{risky:!0};let a=[],o=!1,s=!0;for(let e of i){let t=_(e);if(t){o=!0,a.push(...t);continue}let n=p(e);if(n&&n.length===1){a.push(n);continue}if(s=!1,v(e)>r)return{risky:!0}}return o?s?{risky:!0,safeOutput:g([...new Set(a)])}:{risky:!0}:{risky:!1}},b=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let d={...t},f=typeof d.maxLength==`number`?Math.min(i,d.maxLength):i,p=e.length;if(p>f)throw SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);let m={type:`bos`,value:``,output:d.prepend||``},h=[m],g=d.capture?``:`?:`,_=n.globChars(d.windows),v=n.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:E,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:k,QMARK_NO_DOT:A,STAR:j,START_ANCHOR:M}=_,N=e=>`(${g}(?:(?!${M}${e.dot?T:x}).)*?)`,P=d.dot?``:E,F=d.dot?k:A,I=d.bash===!0?N(d):j;d.capture&&(I=`(${I})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let L={input:e,index:-1,start:0,dot:d.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};e=r.removePrefix(e,L),p=e.length;let ee=[],te=[],ne=[],R=m,z,B=()=>L.index===p-1,re=L.peek=(t=1)=>e[L.index+t],ie=L.advance=()=>e[++L.index]||``,ae=()=>e.slice(L.index+1),oe=(e=``,t=0)=>{L.consumed+=e,L.index+=t},se=e=>{L.output+=e.output==null?e.value:e.output,oe(e.value)},ce=()=>{let e=1;for(;re()===`!`&&(re(2)!==`(`||re(3)===`?`);)ie(),L.start++,e++;return e%2!=0&&(L.negated=!0,L.start++,!0)},le=e=>{L[e]++,ne.push(e)},ue=e=>{L[e]--,ne.pop()},V=e=>{if(R.type===`globstar`){let t=L.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||ee.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(L.output=L.output.slice(0,-R.output.length),R.type=`star`,R.value=`*`,R.output=I,L.output+=R.output)}if(ee.length&&e.type!==`paren`&&(ee[ee.length-1].inner+=e.value),(e.value||e.output)&&se(e),R&&R.type===`text`&&e.type===`text`){R.output=(R.output||R.value)+e.value,R.value+=e.value;return}e.prev=R,h.push(e),R=e},de=(e,t)=>{let n={...v[t],conditions:1,inner:``};n.prev=R,n.parens=L.parens,n.output=L.output,n.startIndex=L.index,n.tokensIndex=h.length;let r=(d.capture?`(`:``)+n.open;le(`parens`),V({type:e,value:t,output:L.output?``:w}),V({type:`paren`,extglob:!0,value:ie(),output:r}),ee.push(n)},fe=n=>{let i=e.slice(n.startIndex,L.index+1),a=y(e.slice(n.startIndex+2,L.index),d);if((n.type===`plus`||n.type===`star`)&&a.risky){let e=a.safeOutput?(n.output?``:w)+(d.capture?`(${a.safeOutput})`:a.safeOutput):void 0,t=h[n.tokensIndex];t.type=`text`,t.value=i,t.output=e||r.escapeRegex(i);for(let e=n.tokensIndex+1;e<h.length;e++)h[e].value=``,h[e].output=``,delete h[e].suffix;L.output=n.output+t.output,L.backtrack=!0,V({type:`paren`,extglob:!0,value:z,output:``}),ue(`parens`);return}let o=n.close+(d.capture?`)`:``),s;if(n.type===`negate`){let e=I;n.inner&&n.inner.length>1&&n.inner.includes(`/`)&&(e=N(d)),(e!==I||B()||/^\)+$/.test(ae()))&&(o=n.close=`)$))${e}`),n.inner.includes(`*`)&&(s=ae())&&/^\.[^\\/.]+$/.test(s)&&(o=n.close=`)${b(s,{...t,fastpaths:!1}).output})${e})`),n.prev.type===`bos`&&(L.negatedExtglob=!0)}V({type:`paren`,extglob:!0,value:z,output:o}),ue(`parens`)};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?k.repeat(a.length):``):o===0?F+(a?k.repeat(a.length):``):k.repeat(r.length):i===`.`?x.repeat(r.length):i===`*`?t?t+i+(a?I:``):I:t?e:`\\${e}`);return n===!0&&(i=d.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&d.contains===!0?(L.output=e,L):(L.output=r.wrapOutput(i,L,t),L)}for(;!B();){if(z=ie(),z===`\0`)continue;if(z===`\\`){let e=re();if(e===`/`&&d.bash!==!0||e===`.`||e===`;`)continue;if(!e){z+=`\\`,V({type:`text`,value:z});continue}let t=/^\\+/.exec(ae()),n=0;if(t&&t[0].length>2&&(n=t[0].length,L.index+=n,n%2!=0&&(z+=`\\`)),d.unescape===!0?z=ie():z+=ie(),L.brackets===0){V({type:`text`,value:z});continue}}if(L.brackets>0&&(z!==`]`||R.value===`[`||R.value===`[^`)){if(d.posix!==!1&&z===`:`){let e=R.value.slice(1);if(e.includes(`[`)&&(R.posix=!0,e.includes(`:`))){let e=R.value.lastIndexOf(`[`),t=R.value.slice(0,e),n=a[R.value.slice(e+2)];if(n){R.value=t+n,L.backtrack=!0,ie(),!m.output&&h.indexOf(R)===1&&(m.output=w);continue}}}(z===`[`&&re()!==`:`||z===`-`&&re()===`]`)&&(z=`\\${z}`),z===`]`&&(R.value===`[`||R.value===`[^`)&&(z=`\\${z}`),d.posix===!0&&z===`!`&&R.value===`[`&&(z=`^`),R.value+=z,se({value:z});continue}if(L.quotes===1&&z!==`"`){z=r.escapeRegex(z),R.value+=z,se({value:z});continue}if(z===`"`){L.quotes=L.quotes===1?0:1,d.keepQuotes===!0&&V({type:`text`,value:z});continue}if(z===`(`){le(`parens`),V({type:`paren`,value:z});continue}if(z===`)`){if(L.parens===0&&d.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=ee[ee.length-1];if(e&&L.parens===e.parens+1){fe(ee.pop());continue}V({type:`paren`,value:z,output:L.parens?`)`:`\\)`}),ue(`parens`);continue}if(z===`[`){if(d.nobracket===!0||!ae().includes(`]`)){if(d.nobracket!==!0&&d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));z=`\\${z}`}else le(`brackets`);V({type:`bracket`,value:z});continue}if(z===`]`){if(d.nobracket===!0||R&&R.type===`bracket`&&R.value.length===1){V({type:`text`,value:z,output:`\\${z}`});continue}if(L.brackets===0){if(d.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));V({type:`text`,value:z,output:`\\${z}`});continue}ue(`brackets`);let e=R.value.slice(1);if(R.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(z=`/${z}`),R.value+=z,se({value:z}),d.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(R.value);if(L.output=L.output.slice(0,-R.value.length),d.literalBrackets===!0){L.output+=t,R.value=t;continue}R.value=`(${g}${t}|${R.value})`,L.output+=R.value;continue}if(z===`{`&&d.nobrace!==!0){le(`braces`);let e={type:`brace`,value:z,output:`(`,outputIndex:L.output.length,tokensIndex:L.tokens.length};te.push(e),V(e);continue}if(z===`}`){let e=te[te.length-1];if(d.nobrace===!0||!e){V({type:`text`,value:z,output:z});continue}let t=`)`;if(e.dots===!0){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,d),L.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=L.output.slice(0,e.outputIndex),r=L.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,z=t=`\\}`,L.output=n;for(let e of r)L.output+=e.output||e.value}V({type:`brace`,value:z,output:t}),ue(`braces`),te.pop();continue}if(z===`|`){ee.length>0&&ee[ee.length-1].conditions++,V({type:`text`,value:z});continue}if(z===`,`){let e=z,t=te[te.length-1];t&&ne[ne.length-1]===`braces`&&(t.comma=!0,e=`|`),V({type:`comma`,value:z,output:e});continue}if(z===`/`){if(R.type===`dot`&&L.index===L.start+1){L.start=L.index+1,L.consumed=``,L.output=``,h.pop(),R=m;continue}V({type:`slash`,value:z,output:C});continue}if(z===`.`){if(L.braces>0&&R.type===`dot`){R.value===`.`&&(R.output=x);let e=te[te.length-1];R.type=`dots`,R.output+=z,R.value+=z,e.dots=!0;continue}if(L.braces+L.parens===0&&R.type!==`bos`&&R.type!==`slash`){V({type:`text`,value:z,output:x});continue}V({type:`dot`,value:z,output:x});continue}if(z===`?`){if(!(R&&R.value===`(`)&&d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){de(`qmark`,z);continue}if(R&&R.type===`paren`){let e=re(),t=z;(R.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(ae()))&&(t=`\\${z}`),V({type:`text`,value:z,output:t});continue}if(d.dot!==!0&&(R.type===`slash`||R.type===`bos`)){V({type:`qmark`,value:z,output:A});continue}V({type:`qmark`,value:z,output:k});continue}if(z===`!`){if(d.noextglob!==!0&&re()===`(`&&(re(2)!==`?`||!/[!=<:]/.test(re(3)))){de(`negate`,z);continue}if(d.nonegate!==!0&&L.index===0){ce();continue}}if(z===`+`){if(d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){de(`plus`,z);continue}if(R&&R.value===`(`||d.regex===!1){V({type:`plus`,value:z,output:S});continue}if(R&&(R.type===`bracket`||R.type===`paren`||R.type===`brace`)||L.parens>0){V({type:`plus`,value:z});continue}V({type:`plus`,value:S});continue}if(z===`@`){if(d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){V({type:`at`,extglob:!0,value:z,output:``});continue}V({type:`text`,value:z});continue}if(z!==`*`){(z===`$`||z===`^`)&&(z=`\\${z}`);let e=o.exec(ae());e&&(z+=e[0],L.index+=e[0].length),V({type:`text`,value:z});continue}if(R&&(R.type===`globstar`||R.star===!0)){R.type=`star`,R.star=!0,R.value+=z,R.output=I,L.backtrack=!0,L.globstar=!0,oe(z);continue}let t=ae();if(d.noextglob!==!0&&/^\([^?]/.test(t)){de(`star`,z);continue}if(R.type===`star`){if(d.noglobstar===!0){oe(z);continue}let n=R.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(d.bash===!0&&(!i||t[0]&&t[0]!==`/`)){V({type:`star`,value:z,output:``});continue}let o=L.braces>0&&(n.type===`comma`||n.type===`brace`),s=ee.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){V({type:`star`,value:z,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[L.index+4];if(n&&n!==`/`)break;t=t.slice(3),oe(`/**`,3)}let c=B()||L.parens>0&&t===`)`.repeat(L.parens)&&!ee.some(e=>e.type===`negate`);if(n.type===`bos`&&B()){R.type=`globstar`,R.value+=z,R.output=N(d),L.output=R.output,L.globstar=!0,oe(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&c){L.output=L.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=N(d)+(d.strictSlashes?`)`:`|$)`),R.value+=z,L.globstar=!0,L.output+=n.output+R.output,oe(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;L.output=L.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=`${N(d)}${C}|${C}${e})`,R.value+=z,L.output+=n.output+R.output,L.globstar=!0,oe(z+ie()),V({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){R.type=`globstar`,R.value+=z,R.output=`(?:^|${C}|${N(d)}${C})`,L.output=R.output,L.globstar=!0,oe(z+ie()),V({type:`slash`,value:`/`,output:``});continue}L.output=L.output.slice(0,-R.output.length),R.type=`globstar`,R.output=N(d),R.value+=z,L.output+=R.output,L.globstar=!0,oe(z);continue}let n={type:`star`,value:z,output:I};if(d.bash===!0){n.output=`.*?`,(R.type===`bos`||R.type===`slash`)&&(n.output=P+n.output),V(n);continue}if(R&&(R.type===`bracket`||R.type===`paren`)&&d.regex===!0){n.output=z,V(n);continue}(L.index===L.start||R.type===`slash`||R.type===`dot`)&&(R.type===`dot`?(L.output+=D,R.output+=D):d.dot===!0?(L.output+=O,R.output+=O):(L.output+=P,R.output+=P),re()!==`*`&&(L.output+=w,R.output+=w)),V(n)}for(;L.brackets>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));L.output=r.escapeLast(L.output,`[`),ue(`brackets`)}for(;L.parens>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));L.output=r.escapeLast(L.output,`(`),ue(`parens`)}for(;L.braces>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));L.output=r.escapeLast(L.output,`{`),ue(`braces`)}if(d.strictSlashes!==!0&&(R.type===`star`||R.type===`bracket`)&&V({type:`maybe_slash`,value:``,output:`${C}?`}),L.backtrack===!0){L.output=``;for(let e of L.tokens)L.output+=e.output==null?e.value:e.output,e.suffix&&(L.output+=e.suffix)}return L};b.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let{DOT_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:_}=n.globChars(a.windows),v=a.dot?m:p,y=a.dot?h:p,b=a.capture?``:`?:`,x={negated:!1,prefix:``},S=a.bash===!0?`.*?`:g;a.capture&&(S=`(${S})`);let C=e=>e.noglobstar===!0?S:`(${b}(?:(?!${_}${e.dot?f:l}).)*?)`,w=e=>{switch(e){case`*`:return`${v}${d}${S}`;case`.*`:return`${l}${d}${S}`;case`*.*`:return`${v}${S}${l}${d}${S}`;case`*/*`:return`${v}${S}${u}${d}${y}${S}`;case`**`:return v+C(a);case`**/*`:return`(?:${v}${C(a)}${u})?${y}${d}${S}`;case`**/*.*`:return`(?:${v}${C(a)}${u})?${y}${S}${l}${d}${S}`;case`**/.*`:return`(?:${v}${C(a)}${u})?${l}${d}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=w(t[1]);return n?n+l+t[2]:void 0}}},T=w(r.removePrefix(e,x));return T&&a.strictSlashes!==!0&&(T+=`${u}?`),T},t.exports=b})),AM=o(((e,t)=>{var n=OM(),r=kM(),i=DM(),a=EM(),o=e=>e&&typeof e==`object`&&!Array.isArray(e),s=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>s(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=o(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=i.windows,c=r?s.compileRe(e,t):s.makeRe(e,t,!1,!0),l=c.state;delete c.state;let u=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=s(i.ignore,e,n)}let d=(n,r=!1)=>{let{isMatch:o,match:d,output:f}=s.test(n,c,t,{glob:e,posix:a}),p={glob:e,state:l,regex:c,posix:a,input:n,output:f,match:d,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):u(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),!r||p)};return n&&(d.state=l),d};s.test=(e,t,n,{glob:r,posix:a}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let o=n||{},c=o.format||(a?i.toPosixSlashes:null),l=e===r,u=l&&c?c(e):e;return l===!1&&(u=c?c(e):e,l=u===r),(l===!1||o.capture===!0)&&(l=o.matchBase===!0||o.basename===!0?s.matchBase(e,t,n,a):t.exec(u)),{isMatch:!!l,match:l,output:u}},s.matchBase=(e,t,n,r=n&&n.windows)=>(t instanceof RegExp?t:s.makeRe(t,n)).test(i.basename(e,{windows:r})),s.isMatch=(e,t,n)=>s(t,n)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):r(e,{...t,fastpaths:!1}),s.scan=(e,t)=>n(e,t),s.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,c=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(c=`^(?!${c}).*$`);let l=s.toRegex(c,t);return r===!0&&(l.state=e),l},s.makeRe=(e,t={},n=!1,i=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let a={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(a.output=r.fastpaths(e,t)),a.output||(a=r(e,t)),s.compileRe(a,t,n,i)},s.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},s.constants=a,t.exports=s})),jM=l(o(((e,t)=>{t.exports=AM()}))(),1);function MM(e,t,n){return`${e?`diff`:`file`}:${t}@${n}`}function NM(e){return e.replace(/^(diff|file):/,``).replace(/@\d+$/,``)}function PM(e,t){return MM(e.fileView?.path!==t&&(e.snapshot?.changed.some(e=>e.path===t)??!1),t,e.gens[t]??0)}var FM=e=>e.additions+e.deletions;function IM(e,t,n,r){let i=new Map(t.map(e=>[e.path,e])),a=e=>n.includes(e)?0:(r(e)?4:2)+ +(FM(i.get(e))>4e3),o=LM(e).filter(e=>i.has(e)).sort((e,t)=>a(e)-a(t)),s=[],c=[],l=0;for(let e of o){let t=FM(i.get(e));c.length>0&&(c.length>=12||l+t>4e3)&&(s.push(c),c=[],l=0),c.push(e),l+=t}return c.length>0&&s.push(c),s}function LM(e){return e.changed.map(e=>e.path).sort(HM)}function RM(e){return e.activePath??e.fileView?.path??(e.snapshot&&LM(e.snapshot)[0])??null}var zM=[`file`,`diff`,`repo`];function BM(e){return zM[(zM.indexOf(e)+1)%zM.length]}function VM(e){return e===`file`?`diff`:e}function HM(e,t){let n=e.split(`/`),r=t.split(`/`),i=Math.min(n.length,r.length);for(let e=0;e<i;e++){let t=n[e],i=r[e];if(t===i)continue;let a=e<n.length-1;if(a!==e<r.length-1)return a?-1:1;let o=t.toLowerCase(),s=i.toLowerCase(),c=UM(o,s);return c===0?o===s?t<i?-1:1:o<s?-1:1:c}return n.length-r.length}function UM(e,t){let n=WM(e),r=WM(t),i=Math.min(n.length,r.length);for(let e=0;e<i;e++){let t=n[e],i=r[e];if(t===i)continue;if(typeof t==`number`&&typeof i==`number`)return t<i?-1:1;let a=String(t),o=String(i);if(a!==o)return a<o?-1:1}return n.length-r.length}function WM(e){let t=[];for(let n of e.matchAll(/\d+|\D+/g))t.push(/^\d/.test(n[0])?Number(n[0]):n[0]);return t.length===0&&t.push(``),t}function GM(e,t){let n=e.viewed.find(e=>e.path===t.path&&e.blob===t.blob);return n?n.viewed?`viewed`:`unviewed`:e.viewed.some(e=>e.path===t.path&&e.viewed&&e.blob!==t.blob)?`restale`:tN(e.config,t.path)?`viewed`:`unviewed`}function KM(e,t){return GM(e,t)===`viewed`}function qM(e,t){let n=0;for(let r of t)KM(e,r)&&n++;return n}function JM(e,t){let n=e.collapsed[t];if(n!=null)return n;let r=e.snapshot?.changed.find(e=>e.path===t);return r?KM(e,r)||r.generated:!1}function YM(e){return e.showResolved?e.threads:e.threads.filter(e=>!e.resolved)}function XM(e,t){return e.find(e=>e.messages.some(e=>e.id===t))}function ZM(e,t){if(e===t)return t;let n=new Map(e.map(e=>[e.id,e])),r=e.length===t.length,i=t.map((t,i)=>{let a=n.get(t.id),o=a&&JSON.stringify(a)===JSON.stringify(t)?a:t;return o!==e[i]&&(r=!1),o});return r?e:i}function QM(e,t,n,r){let i=e.replyTo!=null&&n.some(t=>t.id===e.replyTo)?e.replyTo:null,a=e.editingId!=null&&XM(n,e.editingId)?e.editingId:null;return[...n,e.draft?.path===t?e.draft:null,r,i,a]}function $M(e,t){return e&&e.deps.length===t.length&&e.deps.every((e,n)=>e===t[n])?e:{deps:t,version:(e?.version??0)+1}}var eN=new Map;function tN(e,t){let n=e.autoViewed.join(`
|
|
1594
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function XT(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;XT(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var ZT=new Set([`type`,`properties`,`required`,`additionalProperties`]),QT=[`oneOf`,`anyOf`];function $T(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function eE(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!ZT.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??$T(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}ib(n,r,e.length===1?e[0]:eE(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=$T(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function tE(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of ZT)if(t in e)return;let n=t.filter(e=>QT.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=eE(t);else{let e=n[0],i=QT.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>eE([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,WT(e,r))}function nE(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):WT(i,s),WT(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())XT(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])tE(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}WT(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,ib(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:aE(t,`input`,e.processors),output:aE(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function rE(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return rE(r.element,n);if(r.type===`set`)return rE(r.valueType,n);if(r.type===`lazy`)return rE(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return rE(r.innerType,n);if(r.type===`intersection`)return rE(r.left,n)||rE(r.right,n);if(r.type===`record`||r.type===`map`)return rE(r.keyType,n)||rE(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:rE(r.in,n)||rE(r.out,n);if(r.type===`object`){for(let e in r.shape)if(rE(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(rE(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(rE(e,n))return!0;return!!(r.rest&&rE(r.rest,n))}return!1}var iE=(e,t={})=>n=>{let r=GT({...n,processors:t});return qT(e,r),YT(r,e),nE(r,e)},aE=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=GT({...i??{},target:a,io:t,processors:n});return qT(e,o),YT(o,e),nE(o,e)},oE=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},sE=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},cE=(e,t)=>{oE(e,`minimum`,t),sE(e,`maximum`,t)},lE=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},uE=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},dE=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},fE=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},pE=(e,t)=>oE(e,`minimum`,t.minimum),mE=(e,t)=>sE(e,`maximum`,t.maximum),hE=e=>(t,n)=>{fE(t,n.format);let[r,i]=e[n.format];oE(t,`minimum`,r),sE(t,`maximum`,i)},gE={greater_than:(e,t)=>oE(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>sE(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>lE(e,t.value),number_format:hE(wb),bigint_format:hE(Tb),min_length:pE,max_length:mE,length_equals:(e,t)=>cE(e,t.length),min_size:pE,max_size:mE,size_equals:(e,t)=>cE(e,t.size),string_format:(e,t)=>{fE(e,t.format),t.pattern&&uE(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>dE(e,t.mime)};function _E(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)gE[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&oE(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&oE(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&sE(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&sE(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&lE(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&dE(t,i.mime);for(let e of i.patterns??[])uE(t,e);return t}var vE={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},yE=new Map([[SC,aS],[wC,oS]]),bE=e=>yE.get(e)??e,xE=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=_E(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=vE[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(bE);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},SE=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=_E(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):KT(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},CE=(e,t,n,r)=>{n.type=`boolean`},wE=(e,t,n,r)=>{KT(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},TE=(e,t,n,r)=>{n.not={}},EE=(e,t,n,r)=>{let i=e._zod.def,a=Xy(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},DE=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(KT(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(KT(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},OE=(e,t,n,r)=>{KT(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},kE=(e,t,n,r)=>{KT(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},AE=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=_E(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=qT(a.element,t,{...r,path:[...r.path,`items`]})};function jE(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?jE(t.out):t.type===`catch`?jE(t.innerType):e._zod.optin}var ME=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&KT(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)ib(i.properties,e,qT(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e];return t.io===`input`?jE(n)===void 0:n._zod.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=qT(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},NE=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>qT(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},PE=(e,t,n,r)=>{let i=e._zod.def,a=qT(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=qT(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)};function FE(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=FE(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>FE(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?_S:gS).source),p):p}var IE=new WeakMap;function LE(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of IE.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=FE(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var RE=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=_E(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=qT(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)ib(i.patternProperties,bE(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=qT(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=IE.get(t);n||(n=[],IE.set(t,n),t.deferred.push(()=>LE(t))),n.push(e)}i.additionalProperties=qT(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&jE(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},zE=(e,t,n,r)=>{let i=e._zod.def,a=qT(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},BE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},VE=Symbol();function HE(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(KT(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),VE):JSON.parse(o)}var UE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=HE(i.defaultValue,e,t,n,r);o!==VE&&(n.default=o)},WE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=HE(i.defaultValue,e,t,n,r);o!==VE&&(n._prefault=o)},GE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{KT(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},KE=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;qT(o,t,r);let s=t.seen.get(e);s.ref=o},qE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},JE=(e,t,n,r)=>{let i=e._zod.def;qT(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},YE=new WeakSet([Object.prototype,Error.prototype]);function XE(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var ZE=G(`ZodError`,(e,t)=>{yx.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);YE.has(n)||(YE.add(n),XE(n,`format`,e=>t=>Sx(e,t)),XE(n,`flatten`,e=>t=>xx(e,t)),XE(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Qy,2)}),XE(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Qy,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),QE=wx(ZE),$E=Tx(ZE),eD=Ex(ZE),tD=Ox(ZE),nD=Px(ZE),rD=Fx(ZE),iD=Ix(ZE),aD=Lx(ZE),oD=Rx(ZE),sD=zx(ZE),cD=Bx(ZE),lD=Vx(ZE);function uD(){dx.localeError||fx(Iw())}function dD(){dx.memoizer||fx({memoizer:Nw()})}var fD=G(`ZodType`,(e,t)=>(uD(),HS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(db(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return xb(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(PO(e,t))},superRefine(e,t){return this.check(FO(e,t))},overwrite(e){return this.check(PT(e))},optional(){return gO(this)},exactOptional(){return vO(this)},nullable(){return bO(this)},nullish(){return gO(bO(this))},nonoptional(e){return EO(this,e)},array(){return QD(this)},or(e){return nO([this,e])},and(e){return oO(this,e)},transform(e){return AO(this,mO(e))},default(e){return SO(this,e)},prefault(e){return wO(this,e)},catch(e){return OO(this,e)},pipe(e){return AO(this,e)},readonly(){return MO(this)},describe(e){let t=this.clone();return Bw.add(t,{description:e}),t},meta(...e){if(e.length===0)return Bw.get(this);let t=this.clone();return Bw.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Jb(this,`~standard`,{...GS(this),jsonSchema:{input:aE(this,`input`),output:aE(this,`output`)}})},set"~standard"(e){qb(this,`~standard`,e)},parse:function e(t,n){return QE(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await $E(this,t,n,{callee:e})},safeParse(e,t){return eD(this,e,t)},async safeParseAsync(e,t){return tD(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){qb(this,`spa`,e)},validate(e,t){return jx(this,e,t)},validateAsync(e,t){return Nx(this,e,t)},encode:function e(t,n){return nD(this,t,n,{callee:e})},decode:function e(t,n){return rD(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await iD(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await aD(this,t,n,{callee:e})},safeEncode(e,t){return oD(this,e,t)},safeDecode(e,t){return sD(this,e,t)},async safeEncodeAsync(e,t){return cD(this,e,t)},async safeDecodeAsync(e,t){return lD(this,e,t)},toJSONSchema(e){return iE(this,{})(e)},get description(){return Bw.get(this)?.description},get _def(){return this._zod.def}}),pD=G(`_ZodString`,(e,t)=>{KS.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xE(e,t,n,r)},Yb({format:e=>_E(e).format??null,minLength:e=>_E(e).minimum??null,maxLength:e=>_E(e).maximum??null},{regex(...e){return this.check(OT(...e))},includes(...e){return this.check(jT(...e))},startsWith(...e){return this.check(MT(...e))},endsWith(...e){return this.check(NT(...e))},min(...e){return this.check(ET(...e))},max(...e){return this.check(TT(...e))},length(...e){return this.check(DT(...e))},nonempty(...e){return this.check(ET(1,...e))},lowercase(e){return this.check(kT(e))},uppercase(e){return this.check(AT(e))},trim(){return this.check(IT())},normalize(...e){return this.check(FT(...e))},toLowerCase(){return this.check(LT())},toUpperCase(){return this.check(RT())},slugify(){return this.check(zT())}})),mD=G(`ZodString`,(e,t)=>{KS.init(e,t),pD.init(e,t)},{email(e){return this.check(Hw(bD,e))},url(e){return this.check(Jw(CD,e))},jwt(e){return this.check(lT(RD,e))},emoji(e){return this.check(Yw(wD,e))},guid(e){return this.check(Uw(xD,e))},uuid(e){return this.check(Ww(SD,e))},uuidv4(e){return this.check(Gw(SD,e))},uuidv6(e){return this.check(Kw(SD,e))},uuidv7(e){return this.check(qw(SD,e))},nanoid(e){return this.check(Xw(TD,e))},cuid(e){return this.check(Zw(ED,e))},cuid2(e){return this.check(Qw(DD,e))},ulid(e){return this.check($w(OD,e))},base64(e){return this.check(oT(FD,e))},base64url(e){return this.check(sT(ID,e))},xid(e){return this.check(eT(kD,e))},ksuid(e){return this.check(tT(AD,e))},ipv4(e){return this.check(nT(jD,e))},ipv6(e){return this.check(rT(MD,e))},cidrv4(e){return this.check(iT(ND,e))},cidrv6(e){return this.check(aT(PD,e))},e164(e){return this.check(cT(LD,e))},datetime(e){return this.check(uT(gD,e))},date(e){return this.check(dT(_D,e))},time(e){return this.check(fT(vD,e))},duration(e){return this.check(pT(yD,e))}});function K(e){return Vw(mD,e)}var hD=G(`ZodStringFormat`,(e,t)=>{qS.init(e,t),pD.init(e,t)}),gD=G(`ZodISODateTime`,(e,t)=>{uC.init(e,t),hD.init(e,t)}),_D=G(`ZodISODate`,(e,t)=>{dC.init(e,t),hD.init(e,t)}),vD=G(`ZodISOTime`,(e,t)=>{fC.init(e,t),hD.init(e,t)}),yD=G(`ZodISODuration`,(e,t)=>{pC.init(e,t),hD.init(e,t)}),bD=G(`ZodEmail`,(e,t)=>{XS.init(e,t),hD.init(e,t)}),xD=G(`ZodGUID`,(e,t)=>{JS.init(e,t),hD.init(e,t)}),SD=G(`ZodUUID`,(e,t)=>{YS.init(e,t),hD.init(e,t)}),CD=G(`ZodURL`,(e,t)=>{nC.init(e,t),hD.init(e,t)}),wD=G(`ZodEmoji`,(e,t)=>{rC.init(e,t),hD.init(e,t)}),TD=G(`ZodNanoID`,(e,t)=>{iC.init(e,t),hD.init(e,t)}),ED=G(`ZodCUID`,(e,t)=>{aC.init(e,t),hD.init(e,t)}),DD=G(`ZodCUID2`,(e,t)=>{oC.init(e,t),hD.init(e,t)}),OD=G(`ZodULID`,(e,t)=>{sC.init(e,t),hD.init(e,t)}),kD=G(`ZodXID`,(e,t)=>{cC.init(e,t),hD.init(e,t)}),AD=G(`ZodKSUID`,(e,t)=>{lC.init(e,t),hD.init(e,t)}),jD=G(`ZodIPv4`,(e,t)=>{mC.init(e,t),hD.init(e,t)}),MD=G(`ZodIPv6`,(e,t)=>{_C.init(e,t),hD.init(e,t)}),ND=G(`ZodCIDRv4`,(e,t)=>{vC.init(e,t),hD.init(e,t)}),PD=G(`ZodCIDRv6`,(e,t)=>{bC.init(e,t),hD.init(e,t)}),FD=G(`ZodBase64`,(e,t)=>{CC.init(e,t),hD.init(e,t)}),ID=G(`ZodBase64URL`,(e,t)=>{EC.init(e,t),hD.init(e,t)}),LD=G(`ZodE164`,(e,t)=>{DC.init(e,t),hD.init(e,t)}),RD=G(`ZodJWT`,(e,t)=>{kC.init(e,t),hD.init(e,t)}),zD=G(`ZodNumber`,(e,t)=>{AC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SE(e,t,n,r),e.isFinite=!0},Yb({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=_E(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=_E(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=_E(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>_E(e).format??null},{gt(e,t){return this.check(ST(e,t))},gte(e,t){return this.check(CT(e,t))},min(e,t){return this.check(CT(e,t))},lt(e,t){return this.check(bT(e,t))},lte(e,t){return this.check(xT(e,t))},max(e,t){return this.check(xT(e,t))},int(e){return this.check(HD(e))},safe(e){return this.check(HD(e))},positive(e){return this.check(ST(0,e))},nonnegative(e){return this.check(CT(0,e))},negative(e){return this.check(bT(0,e))},nonpositive(e){return this.check(xT(0,e))},multipleOf(e,t){return this.check(wT(e,t))},step(e,t){return this.check(wT(e,t))},finite(){return this}}));function BD(e){return mT(zD,e)}var VD=G(`ZodNumberFormat`,(e,t)=>{jC.init(e,t),zD.init(e,t)});function HD(e){return hT(VD,e)}var UD=G(`ZodBoolean`,(e,t)=>{MC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>CE(e,t,n,r)});function WD(e){return gT(UD,e)}var GD=G(`ZodUndefined`,(e,t)=>{NC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wE(e,t,n,r)});function KD(e){return _T(GD,e)}var qD=G(`ZodUnknown`,(e,t)=>{PC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function JD(){return vT(qD)}var YD=G(`ZodNever`,(e,t)=>{FC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>TE(e,t,n,r)});function XD(e){return yT(YD,e)}var ZD=G(`ZodArray`,(e,t)=>{dD(),LC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AE(e,t,n,r),e.element=t.element},{min(e,t){return this.check(ET(e,t))},nonempty(e){return this.check(ET(1,e))},max(e,t){return this.check(TT(e,t))},length(e,t){return this.check(DT(e,t))},unwrap(){return this.element}});function QD(e,t){return BT(ZD,e,t)}var $D=G(`ZodObject`,(e,t)=>{dD(),UC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ME(e,t,n,r),nx(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return uO(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(db(this._zod.def,{catchall:e}))},passthrough(){return this.clone(db(this._zod.def,{catchall:JD()}))},loose(){return this.clone(db(this._zod.def,{catchall:JD()}))},strict(){return this.clone(db(this._zod.def,{catchall:XD()}))},strip(){return this.clone(db(this._zod.def,{catchall:void 0}))},extend(e){return kb(this,e)},safeExtend(e){return jb(this,e)},merge(e){return Mb(this,e)},pick(e){return Eb(this,e)},omit(e){return Ob(this,e)},partial(...e){return Nb(hO,this,e[0])},exactPartial(...e){return Nb(_O,this,e[0],`exactPartial`)},required(...e){return Pb(TO,this,e[0])}});function eO(e,t){return new $D({type:`object`,shape:e??{},...W(t)})}var tO=G(`ZodUnion`,(e,t)=>{GC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NE(e,t,n,r),e.options=t.options});function nO(e,t){return new tO({type:`union`,options:e,...W(t)})}var rO=G(`ZodDiscriminatedUnion`,(e,t)=>{tO.init(e,t),qC.init(e,t)});function iO(e,t,n){return new rO({type:`union`,options:t,discriminator:e,...W(n)})}var aO=G(`ZodIntersection`,(e,t)=>{JC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PE(e,t,n,r)});function oO(e,t){return new aO({type:`intersection`,left:e,right:t})}var sO=G(`ZodRecord`,(e,t)=>{dD(),ZC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RE(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function cO(e,t,n){return new sO({type:`record`,keyType:e,valueType:t,...W(n),partial:!0})}var lO=G(`ZodEnum`,(e,t)=>{QC.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>EE(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new lO({...t,checks:[],...W(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new lO({...t,checks:[],...W(r),entries:i})}});function uO(e,t){return new lO({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...W(t)})}var dO=G(`ZodLiteral`,(e,t)=>{$C.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>DE(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function fO(e,t){return new dO({type:`literal`,values:Array.isArray(e)?e:[e],...W(t)})}var pO=G(`ZodTransform`,(e,t)=>{dD(),ew.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kE(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ux(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Gb(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Gb(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function mO(e){return new pO({type:`transform`,transform:e})}var hO=G(`ZodOptional`,(e,t)=>{nw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gO(e){return new hO({type:`optional`,innerType:e})}var _O=G(`ZodExactOptional`,(e,t)=>{rw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function vO(e){return new _O({type:`optional`,innerType:e})}var yO=G(`ZodNullable`,(e,t)=>{iw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bO(e){return new yO({type:`nullable`,innerType:e})}var xO=G(`ZodDefault`,(e,t)=>{aw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function SO(e,t){return new xO({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():vb(t)}})}var CO=G(`ZodPrefault`,(e,t)=>{sw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function wO(e,t){return new CO({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():vb(t)}})}var TO=G(`ZodNonOptional`,(e,t)=>{cw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function EO(e,t){return new TO({type:`nonoptional`,innerType:e,...W(t)})}var DO=G(`ZodCatch`,(e,t)=>{dw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function OO(e,t){return new DO({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:ix(t)})}var kO=G(`ZodPipe`,(e,t)=>{fw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KE(e,t,n,r),e.in=t.in,e.out=t.out});function AO(e,t){return new kO({type:`pipe`,in:e,out:t})}var jO=G(`ZodReadonly`,(e,t)=>{mw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qE(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function MO(e){return new jO({type:`readonly`,innerType:e})}var NO=G(`ZodCustom`,(e,t)=>{gw.init(e,t),fD.init(e,t),e._zod.processJSONSchema=(t,n,r)=>OE(e,t,n,r)});function PO(e,t={}){return VT(NO,e,t)}function FO(e,t){return HT(e,t)}var IO=Yy(),LO=uO([`c`,`cpp`,`go`,`haskell`,`java`,`javascript`,`javascriptreact`,`json`,`jsonc`,`lua`,`nix`,`ocaml`,`php`,`python`,`ruby`,`rust`,`shellscript`,`swift`,`terraform`,`toml`,`typescript`,`typescriptreact`,`yaml`,`zig`]),RO=uO([`old`,`new`]),zO=iO(`kind`,[eO({kind:fO(`working`)}),eO({kind:fO(`pr`),pr:K().optional()}),eO({kind:fO(`revspec`),args:K().array()})]),BO=eO({old:K(),new:K(),mergeBase:WD(),live:uO([`worktree`,`refs`,`none`]),commentKey:K()});function VO(e){let t=e=>e.replace(/^refs\/diffle\/[^/]+\/\d+\/(?:base|head)\//,``).replace(/^refs\/(?:heads|remotes)\//,``);return`${t(e.old)}${e.mergeBase?`...`:`..`}${t(e.new)}`}var HO=eO({repository:K(),number:BD(),url:K(),title:K(),state:uO([`OPEN`,`CLOSED`,`MERGED`]),isDraft:WD()}),UO=eO({version:BD(),repository:K().nullable(),pullRequest:HO.nullable(),reason:K().nullable()}),WO=uO([`A`,`M`,`D`,`R`,`C`,`T`,`U`]),GO=eO({path:K(),oldPath:K().optional(),status:WO,additions:BD(),deletions:BD(),binary:WD(),blob:K(),generated:WD(),submodule:fO(!0).optional()}),KO=eO({root:K(),mode:BO,version:BD(),oldSha:K(),newSha:K(),headSha:K(),context:BD(),changed:GO.array(),tree:K().array()}),qO=eO({paths:K().array().max(200)}),JO=eO({path:K(),contents:K(),binary:WD()}),YO=eO({path:K(),side:RO,startLine:BD(),endLine:BD(),quoted:K()}),XO=eO({id:K(),body:K(),createdAt:BD(),updatedAt:BD()}),ZO=eO({id:K(),anchor:YO,messages:XO.array().min(1),resolved:WD(),resolvedAt:BD().optional(),stale:WD(),staleFromLine:BD().optional()}),QO=eO({path:K().min(1),side:RO.optional(),startLine:BD().int().positive(),endLine:BD().int().positive().optional(),body:K().refine(e=>e.trim().length>0,`body required`),quoted:K().optional()}).refine(e=>e.endLine==null||e.endLine>=e.startLine,{path:[`endLine`],message:`endLine must be ≥ startLine`}),$O=eO({body:K().refine(e=>e.trim().length>0,`body required`)}),ek=uO([`open`,`resolved`,`all`]),tk=eO({threadIds:K().array().optional()}),nk=eO({url:K(),posted:BD(),updated:BD(),review:uO([`created`,`existing`]),skipped:eO({id:K(),reason:K()}).array()});eO({state:ek.optional(),path:K().optional()});var rk=eO({body:K()}),ik=eO({path:K(),blob:K(),viewed:WD()}),ak=eO({sha:K(),short:K(),message:K()}),ok=eO({old:ak.nullable(),new:ak.nullable()}),sk=eO({defaultBranch:K().nullable(),current:K().nullable(),branches:K().array(),remoteBranches:K().array(),tags:K().array(),recent:eO({sha:K(),short:K(),subject:K()}).array()}),ck=eO({path:K(),line:BD(),text:K()}),lk=uO([`file`,`diff`,`repo`]),uk=eO({query:K(),matches:ck.array(),truncated:WD()}),dk=eO({autoViewed:K().array(),contextLines:BD(),lspCommands:cO(LO,K())}),fk={autoViewed:[],contextLines:5,lspCommands:{}},pk=eO({path:K().min(1),line:BD().int().positive(),col:BD().int().nonnegative()}),mk=pk.extend({text:K(),external:fO(!0).optional()}),hk=eO({name:K(),command:K(),state:uO([`starting`,`ready`,`unavailable`]),message:K().optional(),activity:K().array().optional(),notice:eO({severity:uO([`warning`,`error`]),message:K()}).optional(),stderr:K().optional()}).extend({languages:LO.array()}),gk=eO({language:LO,tried:K().array()}),_k=eO({enabled:WD(),servers:hk.array(),missing:gk.array()}),vk=eO({locations:mk.array()}),yk=eO({contents:K().nullable(),range:eO({line:BD(),col:BD(),endLine:BD(),endCol:BD()}).optional()}),bk=eO({kind:K().nullable()}),xk=eO({name:K(),kind:BD(),container:K().optional(),path:K(),line:BD(),endLine:BD(),col:BD()});uO([`unviewed`,`viewed`,`restale`]);var Sk=iO(`type`,[eO({type:fO(`snapshot`),version:BD()}),eO({type:fO(`threads`)}),eO({type:fO(`viewed`)}),eO({type:fO(`config`)}),eO({type:fO(`lsp`),payload:_k})]);function Ck(e){return e.newSha===`worktree`||e.headSha!==``&&e.newSha===e.headSha}var wk={bash:`shellscript`,c:`c`,cc:`cpp`,cjs:`javascript`,cpp:`cpp`,cts:`typescript`,cxx:`cpp`,go:`go`,h:`c`,hh:`cpp`,hpp:`cpp`,hs:`haskell`,hxx:`cpp`,java:`java`,js:`javascript`,jsx:`javascriptreact`,json:`json`,jsonc:`jsonc`,lua:`lua`,mjs:`javascript`,ml:`ocaml`,mli:`ocaml`,mts:`typescript`,nix:`nix`,php:`php`,py:`python`,pyi:`python`,rb:`ruby`,rs:`rust`,sh:`shellscript`,swift:`swift`,tf:`terraform`,tfvars:`terraform`,toml:`toml`,ts:`typescript`,tsx:`typescriptreact`,yaml:`yaml`,yml:`yaml`,zig:`zig`};[...new Set(Object.values(wk))].sort();function Tk(e){let t=/\.([^./\\]+)$/.exec(e)?.[1]?.toLowerCase();return t&&wk[t]||null}function Ek(e,t){if(!e.enabled)return`Language servers are off for this run (--no-lsp)`;if(t==null)return e.servers.length?e.servers.some(e=>e.state===`ready`)?null:Dk(e.servers[0]):Ok(e);let n=Tk(t);if(!n)return`No language server for ${/(\.[^./\\]+)$/.exec(t)?.[1]??`these`} files`;let r=e.servers.find(e=>e.languages.includes(n));return r?r.state===`ready`?null:Dk(r):Ok(e,n)}function Dk(e){return e.state===`starting`?`${e.name} is starting…`:`${e.name} is unavailable: ${e.message??`unknown error`}`}function Ok(e,t){let n=t==null?e.missing:e.missing.filter(e=>e.language===t),r=n.filter(e=>e.tried.length>0),i=n.filter(e=>e.tried.length===0).map(e=>e.language);return r.length?`No language server for ${[...new Set(r.map(e=>e.language))].join(`, `)} on PATH: install one of ${[...new Set(r.flatMap(e=>e.tried))].join(`, `)}`:i.length?`The language server for ${i.join(`, `)} is off in your diffle config`:t==null?`No language server runs for this diff`:`No language server runs for ${t}`}var kk=eO({autoViewed:K().array().optional(),contextLines:BD().int().min(0).max(1e4).optional()}),Ak=eO({resolved:WD()}),jk=eO({entries:ik.array()});eO({path:K().min(1),rev:RO});var Mk=K().regex(/^[0-9]+$/).transform(Number).pipe(BD().int().nonnegative());eO({oldOffset:Mk,newOffset:Mk});var Nk=uO([`0`,`1`]).optional().transform(e=>e===`1`);eO({q:K().default(``),scope:lk.default(`diff`),path:K().optional(),word:Nk,i:Nk,re:Nk}),eO({path:K().min(1).optional(),q:K().optional()}).refine(e=>e.path!=null||e.q!=null,`path or q required`),eO({stale:fO(`1`).optional()}),eO({path:K().optional()});var Pk=eO({error:K()});function Fk(e,t){return JSON.stringify(e.parse(t))}async function Ik(e,t,n){let r=await fetch(new URL(t,location.href).href,{...n,headers:{"content-type":`application/json`,...n?.headers}});if(!r.ok)throw new zk(r.status,await Rk(r));return e.parse(r.status===204?void 0:await r.json())}async function Lk(e,t){let n=await fetch(new URL(e,location.href).href,t);if(!n.ok)throw new zk(n.status,await Rk(n));return n.text()}async function Rk(e){try{let t=Pk.safeParse(await e.json());return t.success?t.data.error:e.statusText}catch{return e.statusText}}var zk=class extends Error{status;constructor(e,t){super(t),this.status=e}},Bk=e=>new URLSearchParams(Object.entries(e).filter(e=>e[1]!=null)).toString(),Vk={github:()=>Ik(UO,`api/github`),snapshot:()=>Ik(KO,`api/snapshot`),switchMode:e=>Ik(KO,`api/mode`,{method:`POST`,body:Fk(zO,e)}),refs:()=>Ik(sk,`api/refs`),lastCommitsPreview:(e,t,n)=>Ik(ok,`api/last-commits-preview?${Bk({oldOffset:String(e),newOffset:String(t)})}`,{signal:n}),patch:e=>Lk(`api/patch?${Bk({path:e})}`),patches:e=>Lk(`api/patch`,{method:`POST`,headers:{"content-type":`application/json`},body:Fk(qO,{paths:e})}),file:(e,t,n)=>Ik(JO,`api/file?${Bk({path:e,rev:t})}`,{signal:n}),search:(e,t={})=>Ik(uk,`api/search?${Bk({q:e,word:t.word?`1`:void 0,i:t.ignoreCase?`1`:void 0,re:t.regex?`1`:void 0,scope:t.scope,path:t.path})}`),threads:(e={})=>Ik(ZO.array(),`api/threads?${Bk({state:e.state,path:e.path})}`),exportComments:()=>Lk(`api/threads/export?${Bk({state:`open`})}`),exportComment:(e,t)=>Lk(`api/threads/${encodeURIComponent(e)}/messages/${encodeURIComponent(t)}/export`),exportToGithub:e=>Ik(nk,`api/github/export`,{method:`POST`,body:Fk(tk,e)}),addThread:e=>Ik(ZO.array(),`api/threads`,{method:`POST`,body:Fk(QO,e)}),reply:(e,t)=>Ik(ZO,`api/threads/${encodeURIComponent(e)}/replies`,{method:`POST`,body:Fk($O,t)}),editMessage:(e,t,n)=>Ik(ZO,`api/threads/${encodeURIComponent(e)}/messages/${encodeURIComponent(t)}`,{method:`PATCH`,body:Fk(rk,{body:n})}),deleteMessage:(e,t)=>Ik(ZO.or(KD()),`api/threads/${encodeURIComponent(e)}/messages/${encodeURIComponent(t)}`,{method:`DELETE`}),setResolved:(e,t)=>Ik(ZO,`api/threads/${encodeURIComponent(e)}/resolved`,{method:`PUT`,body:Fk(Ak,{resolved:t})}),deleteThread:e=>Ik(KD(),`api/threads/${encodeURIComponent(e)}`,{method:`DELETE`}),clearThreads:()=>Ik(KD(),`api/threads`,{method:`DELETE`}),deleteStaleThreads:()=>Ik(KD(),`api/threads?stale=1`,{method:`DELETE`}),viewed:()=>Ik(ik.array(),`api/viewed`),setViewedBulk:e=>Ik(ik.array(),`api/viewed/bulk`,{method:`PUT`,body:Fk(jk,{entries:e})}),setViewed:(e,t,n)=>Ik(ik.array(),`api/viewed`,{method:`PUT`,body:Fk(ik,{path:e,blob:t,viewed:n})}),lspStatus:()=>Ik(_k,`api/lsp/status`),lspDefinition:e=>Ik(vk,`api/lsp/definition`,{method:`POST`,body:Fk(pk,e)}),lspTypeDefinition:e=>Ik(vk,`api/lsp/type-definition`,{method:`POST`,body:Fk(pk,e)}),lspHover:e=>Ik(yk,`api/lsp/hover`,{method:`POST`,body:Fk(pk,e)}),lspTokenKind:e=>Ik(bk,`api/lsp/token-kind`,{method:`POST`,body:Fk(pk,e)}),lspReferences:e=>Ik(vk,`api/lsp/references`,{method:`POST`,body:Fk(pk,e)}),lspSymbols:e=>Ik(xk.array(),`api/lsp/symbols?${Bk(e)}`),config:()=>Ik(dk,`api/config`),saveConfig:e=>Ik(dk,`api/config`,{method:`PUT`,body:Fk(kk,e)})};function Hk(e,t){let n=null,r=!1,i=500,a=()=>{if(r)return;let o=new URL(`ws`,location.href);o.protocol=o.protocol===`https:`?`wss:`:`ws:`,n=new WebSocket(o.href),n.onopen=()=>{i=500,t()},n.onmessage=t=>{try{e(Sk.parse(JSON.parse(String(t.data))))}catch{}},n.onclose=()=>{r||(setTimeout(a,i),i=Math.min(i*2,1e4))}};return a(),()=>{r=!0,n?.close()}}var Uk=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Wk=(e,t)=>({classGroupId:e,validator:t}),Gk=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Kk=`-`,qk=[],Jk=`arbitrary..`,Yk=e=>{let t=Qk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Zk(e);let n=e.split(Kk);return Xk(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Uk(i,t):t:i||qk}return n[e]||qk}}},Xk=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Xk(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Kk):e.slice(t).join(Kk),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Zk=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Jk+r:void 0})(),Qk=e=>{let{theme:t,classGroups:n}=e;return $k(n,t)},$k=(e,t)=>{let n=Gk();for(let r in e){let i=e[r];eA(i,n,r,t)}return n},eA=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];tA(i,t,n,r)}},tA=(e,t,n,r)=>{if(typeof e==`string`){nA(e,t,n);return}if(typeof e==`function`){rA(e,t,n,r);return}iA(e,t,n,r)},nA=(e,t,n)=>{let r=e===``?t:aA(t,e);r.classGroupId=n},rA=(e,t,n,r)=>{if(oA(e)){eA(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Wk(n,e))},iA=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];eA(o,aA(t,a),n,r)}},aA=(e,t)=>{let n=e,r=t.split(Kk),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Gk(),n.nextPart.set(t,i)),n=i}return n},oA=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,sA=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},cA=`!`,lA=`:`,uA=[],dA=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),fA=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===lA){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(cA)?(c=s.slice(0,-1),l=!0):s.startsWith(cA)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return dA(t,l,c,u)};if(t){let e=t+lA,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):dA(uA,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},pA=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},mA=e=>({cache:sA(e.cacheSize),parseClassName:fA(e),sortModifiers:pA(e),postfixLookupClassGroupIds:hA(e),...Yk(e)}),hA=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},gA=/\s+/,_A=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(gA),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+cA:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},vA=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=yA(n))&&(i&&(i+=` `),i+=r);return i},yA=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=yA(e[r]))&&(n&&(n+=` `),n+=t);return n},bA=(e,...t)=>{let n,r,i,a,o=o=>(n=mA(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=_A(e,n);return i(e,a),a};return a=o,(...e)=>a(vA(...e))},xA=[],SA=e=>{let t=t=>t[e]||xA;return t.isThemeGetter=!0,t},CA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,EA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,DA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,OA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jA=e=>TA.test(e),MA=e=>!!e&&!Number.isNaN(Number(e)),NA=e=>!!e&&Number.isInteger(Number(e)),PA=e=>e.endsWith(`%`)&&MA(e.slice(0,-1)),FA=e=>EA.test(e),IA=()=>!0,LA=e=>DA.test(e)&&!OA.test(e),RA=()=>!1,zA=e=>kA.test(e),BA=e=>AA.test(e),VA=e=>!q(e)&&!J(e),HA=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),UA=e=>ij(e,cj,RA),q=e=>CA.test(e),WA=e=>ij(e,lj,LA),GA=e=>ij(e,uj,MA),KA=e=>ij(e,fj,IA),qA=e=>ij(e,dj,RA),JA=e=>ij(e,oj,RA),YA=e=>ij(e,sj,BA),XA=e=>ij(e,pj,zA),J=e=>wA.test(e),ZA=e=>aj(e,lj),QA=e=>aj(e,dj),$A=e=>aj(e,oj),ej=e=>aj(e,cj),tj=e=>aj(e,sj),nj=e=>aj(e,pj,!0),rj=e=>aj(e,fj,!0),ij=(e,t,n)=>{let r=CA.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},aj=(e,t,n=!1)=>{let r=wA.exec(e);return r?r[1]?t(r[1]):n:!1},oj=e=>e===`position`||e===`percentage`,sj=e=>e===`image`||e===`url`,cj=e=>e===`length`||e===`size`||e===`bg-size`,lj=e=>e===`length`,uj=e=>e===`number`,dj=e=>e===`family-name`,fj=e=>e===`number`||e===`weight`,pj=e=>e===`shadow`,mj=bA(()=>{let e=SA(`color`),t=SA(`font`),n=SA(`text`),r=SA(`font-weight`),i=SA(`tracking`),a=SA(`leading`),o=SA(`breakpoint`),s=SA(`container`),c=SA(`spacing`),l=SA(`radius`),u=SA(`shadow`),d=SA(`inset-shadow`),f=SA(`text-shadow`),p=SA(`drop-shadow`),m=SA(`blur`),h=SA(`perspective`),g=SA(`aspect`),_=SA(`ease`),v=SA(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[jA,`full`,`auto`,...w()],E=()=>[NA,`none`,`subgrid`,J,q],D=()=>[`auto`,{span:[`full`,NA,J,q]},NA,J,q],O=()=>[NA,`auto`,J,q],k=()=>[`auto`,`min`,`max`,`fr`,J,q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[jA,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[jA,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[jA,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,J,q],L=()=>[...b(),$A,JA,{position:[J,q]}],ee=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,ej,UA,{size:[J,q]}],ne=()=>[PA,ZA,WA],R=()=>[``,`none`,`full`,l,J,q],z=()=>[``,MA,ZA,WA],B=()=>[`solid`,`dashed`,`dotted`,`double`],re=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ie=()=>[MA,PA,$A,JA],ae=()=>[``,`none`,m,J,q],oe=()=>[`none`,MA,J,q],se=()=>[`none`,MA,J,q],ce=()=>[MA,J,q],le=()=>[jA,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[FA],breakpoint:[FA],color:[IA],container:[FA],"drop-shadow":[FA],ease:[`in`,`out`,`in-out`],font:[VA],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[FA],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[FA],shadow:[FA],spacing:[`px`,MA],text:[FA],"text-shadow":[FA],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,jA,q,J,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,J,q]}],"container-named":[HA],columns:[{columns:[MA,q,J,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[NA,`auto`,J,q]}],basis:[{basis:[jA,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[MA,jA,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,MA,J,q]}],shrink:[{shrink:[``,MA,J,q]}],order:[{order:[NA,`first`,`last`,`none`,J,q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,ZA,WA]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,rj,KA]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,PA,q]}],"font-family":[{font:[QA,qA,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,J,q]}],"line-clamp":[{"line-clamp":[MA,`none`,J,GA]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...B(),`wavy`]}],"text-decoration-thickness":[{decoration:[MA,`from-font`,`auto`,J,WA]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[MA,`auto`,J,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[NA,J,q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},NA,J,q],radial:[``,J,q],conic:[NA,J,q]},tj,YA]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...B(),`hidden`,`none`]}],"divide-style":[{divide:[...B(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...B(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[MA,J,q]}],"outline-w":[{outline:[``,MA,ZA,WA]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,nj,XA]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,nj,XA]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[MA,WA]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,nj,XA]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[MA,J,q]}],"mix-blend":[{"mix-blend":[...re(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[MA]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[MA]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:ae()}],brightness:[{brightness:[MA,J,q]}],contrast:[{contrast:[MA,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,nj,XA]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,MA,J,q]}],"hue-rotate":[{"hue-rotate":[MA,J,q]}],invert:[{invert:[``,MA,J,q]}],saturate:[{saturate:[MA,J,q]}],sepia:[{sepia:[``,MA,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[MA,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[MA,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,MA,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[MA,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,MA,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[MA,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[MA,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,MA,J,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[MA,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[MA,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":[`scale-3d`],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":[`translate-none`],zoom:[{zoom:[NA,J,q]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,J,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,J,q]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[MA,ZA,WA,GA]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function hj({label:e,onClose:t,className:n,children:r}){return(0,g.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/35`,onMouseDown:e=>e.target===e.currentTarget&&t(),children:(0,g.jsx)(`div`,{role:`dialog`,"aria-label":e,className:mj(`w-140 max-w-[95vw] rounded-[0.625rem] border border-border bg-canvas p-4 shadow-[0_1rem_3rem_rgba(0,0,0,0.3)]`,n),children:r})})}var gj=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),_j=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),vj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),yj=e=>{let t=vj(e);return t.charAt(0).toUpperCase()+t.slice(1)},bj={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},xj=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Sj=(0,p.createContext)({}),Cj=()=>(0,p.useContext)(Sj),wj=(0,p.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:m=``}=Cj()??{},h=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,p.createElement)(`svg`,{ref:c,...bj,width:t??l??bj.width,height:t??l??bj.height,stroke:e??f,strokeWidth:h,className:gj(`lucide`,m,i),...!a&&!xj(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Tj=(e,t)=>{let n=(0,p.forwardRef)(({className:n,...r},i)=>(0,p.createElement)(wj,{ref:i,iconNode:t,className:gj(`lucide-${_j(yj(e))}`,`lucide-${e}`,n),...r}));return n.displayName=yj(e),n},Ej=Tj(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),Dj=Tj(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Oj=Tj(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),kj=Tj(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Aj=Tj(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),jj=Tj(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Mj=Tj(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),Nj=Tj(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),Pj=Tj(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Fj=Tj(`clipboard-copy`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`,key:`4jdomd`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`,key:`3hqy98`}],[`path`,{d:`M21 14H11`,key:`1bme5i`}],[`path`,{d:`m15 10-4 4 4 4`,key:`5dvupr`}]]),Ij=Tj(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),Lj=Tj(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),Rj=Tj(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),zj=Tj(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),Bj=Tj(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Vj=Tj(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Hj=Tj(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Uj=Tj(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Wj=Tj(`file-code-corner`,[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]]),Gj=Tj(`file-diff`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]),Kj=Tj(`file-search`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),qj=Tj(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Jj=Tj(`folder-search`,[[`path`,{d:`M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1`,key:`1bw5m7`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]),Yj=Tj(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]),Xj=Tj(`git-compare-arrows`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`M12 18H7a2 2 0 0 1-2-2V9`,key:`16sdep`}],[`path`,{d:`m9 15 3 3-3 3`,key:`1m3kbl`}]]),Zj=Tj(`git-pull-request-arrow`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M5 9v12`,key:`ih889a`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}]]),Qj=Tj(`git-pull-request`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]),$j=Tj(`hash`,[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]),eM=Tj(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),tM=Tj(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),nM=Tj(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),rM=Tj(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),iM=Tj(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),aM=Tj(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),oM=Tj(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),sM=Tj(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),cM=Tj(`pencil-ruler`,[[`path`,{d:`M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13`,key:`orapub`}],[`path`,{d:`m8 6 2-2`,key:`115y1s`}],[`path`,{d:`m18 16 2-2`,key:`ee94s4`}],[`path`,{d:`m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17`,key:`cfq27r`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),lM=Tj(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),uM=Tj(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),dM=Tj(`reply`,[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]),fM=Tj(`rotate-ccw-clock`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),pM=Tj(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),mM=Tj(`rows-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]),hM=Tj(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),gM=Tj(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),_M=Tj(`shapes`,[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]),vM=Tj(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),yM=Tj(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),bM=Tj(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),xM=Tj(`whole-word`,[[`circle`,{cx:`7`,cy:`12`,r:`3`,key:`12clwm`}],[`path`,{d:`M10 9v6`,key:`17i7lo`}],[`circle`,{cx:`17`,cy:`12`,r:`3`,key:`gl7c2s`}],[`path`,{d:`M14 7v8`,key:`dl84cr`}],[`path`,{d:`M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1`,key:`lt2kga`}]]),SM=Tj(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function CM({done:e,children:t,size:n=`0.875rem`}){let r=`absolute inset-0 inline-flex items-center justify-center [transition:opacity_160ms_ease,transform_200ms_cubic-bezier(0.2,0.8,0.2,1)]`;return(0,g.jsxs)(`span`,{className:`relative inline-block size-3.5`,"aria-hidden":`true`,children:[(0,g.jsx)(`span`,{className:mj(r,e&&`[transform:scale(0.4)] opacity-0`),children:t}),(0,g.jsx)(`span`,{className:mj(r,e?`[transform:scale(1)_rotate(0)] opacity-100`:`[transform:scale(0.4)_rotate(-30deg)] opacity-0`),children:(0,g.jsx)(Oj,{size:n})})]})}function wM({variant:e=`default`,danger:t,icon:n,feedback:r,className:i,...a}){return(0,g.jsx)(`button`,{...a,"data-feedback":r,className:mj(`inline-flex cursor-pointer items-center gap-1.25 rounded-md border border-border bg-surface px-2.25 py-0.75 leading-[1.2] hover:bg-hover disabled:cursor-default disabled:opacity-50 [&_svg]:flex-none`,e===`primary`&&`border-transparent bg-accent text-accent-fg hover:bg-accent`,e===`ghost`&&`border-transparent bg-transparent hover:bg-hover`,t&&`text-danger`,n&&`px-1.25`,r===`confirm`&&(t?`border-transparent bg-danger text-white hover:bg-danger`:`border-transparent bg-accent text-accent-fg hover:bg-accent`),r===`posted`&&`border-transparent bg-add text-canvas hover:bg-add`,r===`copied`&&`border-transparent bg-add text-white hover:bg-add`,i)})}async function TM(e){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch{}let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.top=`0`,t.style.left=`0`,t.style.opacity=`0`,document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);let n=!1;try{n=document.execCommand(`copy`)}catch{n=!1}return document.body.removeChild(t),n}var EM=o(((e,t)=>{var n=`\\\\/`,r=`[^${n}]`,i=0,a=`\\.`,o=`\\+`,s=`\\?`,c=`\\/`,l=`(?=.)`,u=`[^/]`,d=`(?:${c}|$)`,f=`(?:^|${c})`,p=`${a}{1,2}${d}`,m={DOT_LITERAL:a,PLUS_LITERAL:o,QMARK_LITERAL:s,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:u,END_ANCHOR:d,DOTS_SLASH:p,NO_DOT:`(?!${a})`,NO_DOTS:`(?!${f}${p})`,NO_DOT_SLASH:`(?!${a}{0,1}${d})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${c}]`,STAR:`${u}*?`,START_ANCHOR:f,SEP:`/`},h={...m,SLASH_LITERAL:`[${n}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${a}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${n}])${a}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`,SEP:`\\`};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:i,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?h:m}}})),DM=o((e=>{var{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=EM();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,`\\$1`),e.toPosixSlashes=e=>e.replace(t,`/`),e.isWindows=()=>{if(typeof navigator<`u`&&navigator.platform){let e=navigator.platform.toLowerCase();return e===`win32`||e===`windows`}return typeof process<`u`&&process.platform?process.platform===`win32`:!1},e.removeBackslashes=e=>e.replace(n,e=>e===`\\`?``:e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:`/`),r=n[n.length-1];return r===``?n[n.length-2]:r}})),OM=o(((e,t)=>{var n=DM(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=EM(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.tokens===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,j=!1,M=!1,N=!1,P=!1,F=!1,I=!1,L=!1,ee=!1,te=!1,ne=0,R,z,B={value:``,depth:0,isGlob:!1},re=()=>D>=x,ie=()=>E.charCodeAt(D+1),ae=()=>(R=z,E.charCodeAt(++D));for(;D<x;){z=ae();let e;if(z===a){I=B.backslashes=!0,z=ae(),z===u&&(F=!0);continue}if(F===!0||z===u){for(ne++;re()!==!0&&(z=ae());){if(z===a){I=B.backslashes=!0,ae();continue}if(z===u){ne++;continue}if(F!==!0&&z===s&&(z=ae())===s){if(A=B.isBrace=!0,M=B.isGlob=!0,te=!0,S===!0)continue;break}if(F!==!0&&z===o){if(A=B.isBrace=!0,M=B.isGlob=!0,te=!0,S===!0)continue;break}if(z===h&&(ne--,ne===0)){F=!1,A=B.isBrace=!0,te=!0;break}}if(S===!0)continue;break}if(z===l){if(C.push(D),w.push(B),B={value:``,depth:0,isGlob:!1},te===!0)continue;if(R===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(z===p||z===i||z===r||z===m||z===c)&&ie()===d){if(M=B.isGlob=!0,N=B.isExtglob=!0,te=!0,z===c&&D===O&&(ee=!0),S===!0){let e=0;for(;re()!==!0&&(z=ae());){if(z===a){I=B.backslashes=!0,ae();continue}if(z===d){e++;continue}if(z===g&&--e===0){te=!0;break}}continue}break}if(z===r){if(R===r&&(P=B.isGlobstar=!0),M=B.isGlob=!0,te=!0,S===!0)continue;break}if(z===m){if(M=B.isGlob=!0,te=!0,S===!0)continue;break}if(z===f){for(;re()!==!0&&(e=ae());){if(e===a){I=B.backslashes=!0,ae();continue}if(e===_){j=B.isBracket=!0,M=B.isGlob=!0,te=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&z===c&&D===O){L=B.negated=!0,O++;continue}if(b.noparen!==!0&&z===d){if(M=B.isGlob=!0,S===!0){let e=1;for(;re()!==!0&&(z=ae());){if(z===a){I=B.backslashes=!0,ae();continue}if(z===d){e++;continue}if(z===g&&--e===0){te=!0;break}}continue}break}if(M===!0){if(te=!0,S===!0)continue;break}}b.noext===!0&&(N=!1,M=!1);let oe=E,se=``,ce=``;O>0&&(se=E.slice(0,O),E=E.slice(O),k-=O),oe&&M===!0&&k>0?(oe=E.slice(0,k),ce=E.slice(k)):M===!0?(oe=``,ce=E):oe=E,oe&&oe!==``&&oe!==`/`&&oe!==E&&v(oe.charCodeAt(oe.length-1))&&(oe=oe.slice(0,-1)),b.unescape===!0&&(ce&&=n.removeBackslashes(ce),oe&&I===!0&&(oe=n.removeBackslashes(oe)));let le={prefix:se,input:e,start:O,base:oe,glob:ce,isBrace:A,isBracket:j,isGlob:M,isExtglob:N,isGlobstar:P,negated:L,negatedExtglob:ee};if(b.tokens===!0&&(le.maxDepth=0,v(z)||w.push(B),le.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t===void 0?O:t+1,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=se):w[n].value=a,y(w[n]),le.maxDepth+=w[n].depth),i>=O&&(T.push(a),t=i)}let n=t===void 0?O:t+1,r=e.slice(n);T.push(r),b.tokens&&t&&t+1<e.length&&(w[w.length-1].value=r,y(w[w.length-1]),le.maxDepth+=w[w.length-1].depth),le.slashes=C,le.parts=T}return le}})),kM=o(((e,t)=>{var n=EM(),r=DM(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],n=0,r=0,i=0,a=``,o=!1;for(let s of e){if(o===!0){a+=s,o=!1;continue}if(s===`\\`){a+=s,o=!0;continue}if(s===`"`){i=i===1?0:1,a+=s;continue}if(i===0){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(n===0){if(s===`(`)r++;else if(s===`)`&&r>0)r--;else if(s===`|`&&r===0){t.push(a),a=``;continue}}}a+=s}return t.push(a),t},f=e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n===`\\`){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},p=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(f(t))return t.replace(/\\(.)/g,`$1`)},m=e=>{let t=e.map(p).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){let r=t[e],i=t[n],a=r[0];if(!(!a||r!==a.repeat(r.length)||i!==a.repeat(i.length))&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1},h=(e,t=!0)=>{if(e[0]!==`+`&&e[0]!==`*`||e[1]!==`(`)return;let n=0,r=0,i=0,a=!1;for(let o=1;o<e.length;o++){let s=e[o];if(a===!0){a=!1;continue}if(s===`\\`){a=!0;continue}if(s===`"`){i=i===1?0:1;continue}if(i!==1){if(s===`[`){n++;continue}if(s===`]`&&n>0){n--;continue}if(!(n>0)){if(s===`(`){r++;continue}if(s===`)`&&(r--,r===0))return t===!0&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}}}},g=e=>`${e.length===1?r.escapeRegex(e[0]):`[${e.map(e=>r.escapeRegex(e)).join(``)}]`}*`,_=e=>{let t=0,n=[];for(;t<e.length;){let r=h(e.slice(t),!1);if(!r||r.type!==`*`)return;let i=d(r.body).map(e=>e.trim());if(i.length!==1)return;let a=p(i[0]);if(!a||a.length!==1)return;n.push(a),t+=r.end+1}if(!(n.length<1))return n},v=e=>{let t=0,n=e.trim(),r=h(n);for(;r;)t++,n=r.body.trim(),r=h(n);return t},y=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==`number`?t.maxExtglobRecursion:n.DEFAULT_MAX_EXTGLOB_RECURSION,i=d(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>e===``)||i.some(e=>/^[*?]+$/.test(e))||m(i)))return{risky:!0};let a=[],o=!1,s=!0;for(let e of i){let t=_(e);if(t){o=!0,a.push(...t);continue}let n=p(e);if(n&&n.length===1){a.push(n);continue}if(s=!1,v(e)>r)return{risky:!0}}return o?s?{risky:!0,safeOutput:g([...new Set(a)])}:{risky:!0}:{risky:!1}},b=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let d={...t},f=typeof d.maxLength==`number`?Math.min(i,d.maxLength):i,p=e.length;if(p>f)throw SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);let m={type:`bos`,value:``,output:d.prepend||``},h=[m],g=d.capture?``:`?:`,_=n.globChars(d.windows),v=n.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:E,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:k,QMARK_NO_DOT:A,STAR:j,START_ANCHOR:M}=_,N=e=>`(${g}(?:(?!${M}${e.dot?T:x}).)*?)`,P=d.dot?``:E,F=d.dot?k:A,I=d.bash===!0?N(d):j;d.capture&&(I=`(${I})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let L={input:e,index:-1,start:0,dot:d.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};e=r.removePrefix(e,L),p=e.length;let ee=[],te=[],ne=[],R=m,z,B=()=>L.index===p-1,re=L.peek=(t=1)=>e[L.index+t],ie=L.advance=()=>e[++L.index]||``,ae=()=>e.slice(L.index+1),oe=(e=``,t=0)=>{L.consumed+=e,L.index+=t},se=e=>{L.output+=e.output==null?e.value:e.output,oe(e.value)},ce=()=>{let e=1;for(;re()===`!`&&(re(2)!==`(`||re(3)===`?`);)ie(),L.start++,e++;return e%2!=0&&(L.negated=!0,L.start++,!0)},le=e=>{L[e]++,ne.push(e)},ue=e=>{L[e]--,ne.pop()},V=e=>{if(R.type===`globstar`){let t=L.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||ee.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(L.output=L.output.slice(0,-R.output.length),R.type=`star`,R.value=`*`,R.output=I,L.output+=R.output)}if(ee.length&&e.type!==`paren`&&(ee[ee.length-1].inner+=e.value),(e.value||e.output)&&se(e),R&&R.type===`text`&&e.type===`text`){R.output=(R.output||R.value)+e.value,R.value+=e.value;return}e.prev=R,h.push(e),R=e},de=(e,t)=>{let n={...v[t],conditions:1,inner:``};n.prev=R,n.parens=L.parens,n.output=L.output,n.startIndex=L.index,n.tokensIndex=h.length;let r=(d.capture?`(`:``)+n.open;le(`parens`),V({type:e,value:t,output:L.output?``:w}),V({type:`paren`,extglob:!0,value:ie(),output:r}),ee.push(n)},fe=n=>{let i=e.slice(n.startIndex,L.index+1),a=y(e.slice(n.startIndex+2,L.index),d);if((n.type===`plus`||n.type===`star`)&&a.risky){let e=a.safeOutput?(n.output?``:w)+(d.capture?`(${a.safeOutput})`:a.safeOutput):void 0,t=h[n.tokensIndex];t.type=`text`,t.value=i,t.output=e||r.escapeRegex(i);for(let e=n.tokensIndex+1;e<h.length;e++)h[e].value=``,h[e].output=``,delete h[e].suffix;L.output=n.output+t.output,L.backtrack=!0,V({type:`paren`,extglob:!0,value:z,output:``}),ue(`parens`);return}let o=n.close+(d.capture?`)`:``),s;if(n.type===`negate`){let e=I;n.inner&&n.inner.length>1&&n.inner.includes(`/`)&&(e=N(d)),(e!==I||B()||/^\)+$/.test(ae()))&&(o=n.close=`)$))${e}`),n.inner.includes(`*`)&&(s=ae())&&/^\.[^\\/.]+$/.test(s)&&(o=n.close=`)${b(s,{...t,fastpaths:!1}).output})${e})`),n.prev.type===`bos`&&(L.negatedExtglob=!0)}V({type:`paren`,extglob:!0,value:z,output:o}),ue(`parens`)};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?k.repeat(a.length):``):o===0?F+(a?k.repeat(a.length):``):k.repeat(r.length):i===`.`?x.repeat(r.length):i===`*`?t?t+i+(a?I:``):I:t?e:`\\${e}`);return n===!0&&(i=d.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&d.contains===!0?(L.output=e,L):(L.output=r.wrapOutput(i,L,t),L)}for(;!B();){if(z=ie(),z===`\0`)continue;if(z===`\\`){let e=re();if(e===`/`&&d.bash!==!0||e===`.`||e===`;`)continue;if(!e){z+=`\\`,V({type:`text`,value:z});continue}let t=/^\\+/.exec(ae()),n=0;if(t&&t[0].length>2&&(n=t[0].length,L.index+=n,n%2!=0&&(z+=`\\`)),d.unescape===!0?z=ie():z+=ie(),L.brackets===0){V({type:`text`,value:z});continue}}if(L.brackets>0&&(z!==`]`||R.value===`[`||R.value===`[^`)){if(d.posix!==!1&&z===`:`){let e=R.value.slice(1);if(e.includes(`[`)&&(R.posix=!0,e.includes(`:`))){let e=R.value.lastIndexOf(`[`),t=R.value.slice(0,e),n=a[R.value.slice(e+2)];if(n){R.value=t+n,L.backtrack=!0,ie(),!m.output&&h.indexOf(R)===1&&(m.output=w);continue}}}(z===`[`&&re()!==`:`||z===`-`&&re()===`]`)&&(z=`\\${z}`),z===`]`&&(R.value===`[`||R.value===`[^`)&&(z=`\\${z}`),d.posix===!0&&z===`!`&&R.value===`[`&&(z=`^`),R.value+=z,se({value:z});continue}if(L.quotes===1&&z!==`"`){z=r.escapeRegex(z),R.value+=z,se({value:z});continue}if(z===`"`){L.quotes=L.quotes===1?0:1,d.keepQuotes===!0&&V({type:`text`,value:z});continue}if(z===`(`){le(`parens`),V({type:`paren`,value:z});continue}if(z===`)`){if(L.parens===0&&d.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=ee[ee.length-1];if(e&&L.parens===e.parens+1){fe(ee.pop());continue}V({type:`paren`,value:z,output:L.parens?`)`:`\\)`}),ue(`parens`);continue}if(z===`[`){if(d.nobracket===!0||!ae().includes(`]`)){if(d.nobracket!==!0&&d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));z=`\\${z}`}else le(`brackets`);V({type:`bracket`,value:z});continue}if(z===`]`){if(d.nobracket===!0||R&&R.type===`bracket`&&R.value.length===1){V({type:`text`,value:z,output:`\\${z}`});continue}if(L.brackets===0){if(d.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));V({type:`text`,value:z,output:`\\${z}`});continue}ue(`brackets`);let e=R.value.slice(1);if(R.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(z=`/${z}`),R.value+=z,se({value:z}),d.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(R.value);if(L.output=L.output.slice(0,-R.value.length),d.literalBrackets===!0){L.output+=t,R.value=t;continue}R.value=`(${g}${t}|${R.value})`,L.output+=R.value;continue}if(z===`{`&&d.nobrace!==!0){le(`braces`);let e={type:`brace`,value:z,output:`(`,outputIndex:L.output.length,tokensIndex:L.tokens.length};te.push(e),V(e);continue}if(z===`}`){let e=te[te.length-1];if(d.nobrace===!0||!e){V({type:`text`,value:z,output:z});continue}let t=`)`;if(e.dots===!0){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,d),L.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=L.output.slice(0,e.outputIndex),r=L.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,z=t=`\\}`,L.output=n;for(let e of r)L.output+=e.output||e.value}V({type:`brace`,value:z,output:t}),ue(`braces`),te.pop();continue}if(z===`|`){ee.length>0&&ee[ee.length-1].conditions++,V({type:`text`,value:z});continue}if(z===`,`){let e=z,t=te[te.length-1];t&&ne[ne.length-1]===`braces`&&(t.comma=!0,e=`|`),V({type:`comma`,value:z,output:e});continue}if(z===`/`){if(R.type===`dot`&&L.index===L.start+1){L.start=L.index+1,L.consumed=``,L.output=``,h.pop(),R=m;continue}V({type:`slash`,value:z,output:C});continue}if(z===`.`){if(L.braces>0&&R.type===`dot`){R.value===`.`&&(R.output=x);let e=te[te.length-1];R.type=`dots`,R.output+=z,R.value+=z,e.dots=!0;continue}if(L.braces+L.parens===0&&R.type!==`bos`&&R.type!==`slash`){V({type:`text`,value:z,output:x});continue}V({type:`dot`,value:z,output:x});continue}if(z===`?`){if(!(R&&R.value===`(`)&&d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){de(`qmark`,z);continue}if(R&&R.type===`paren`){let e=re(),t=z;(R.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(ae()))&&(t=`\\${z}`),V({type:`text`,value:z,output:t});continue}if(d.dot!==!0&&(R.type===`slash`||R.type===`bos`)){V({type:`qmark`,value:z,output:A});continue}V({type:`qmark`,value:z,output:k});continue}if(z===`!`){if(d.noextglob!==!0&&re()===`(`&&(re(2)!==`?`||!/[!=<:]/.test(re(3)))){de(`negate`,z);continue}if(d.nonegate!==!0&&L.index===0){ce();continue}}if(z===`+`){if(d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){de(`plus`,z);continue}if(R&&R.value===`(`||d.regex===!1){V({type:`plus`,value:z,output:S});continue}if(R&&(R.type===`bracket`||R.type===`paren`||R.type===`brace`)||L.parens>0){V({type:`plus`,value:z});continue}V({type:`plus`,value:S});continue}if(z===`@`){if(d.noextglob!==!0&&re()===`(`&&re(2)!==`?`){V({type:`at`,extglob:!0,value:z,output:``});continue}V({type:`text`,value:z});continue}if(z!==`*`){(z===`$`||z===`^`)&&(z=`\\${z}`);let e=o.exec(ae());e&&(z+=e[0],L.index+=e[0].length),V({type:`text`,value:z});continue}if(R&&(R.type===`globstar`||R.star===!0)){R.type=`star`,R.star=!0,R.value+=z,R.output=I,L.backtrack=!0,L.globstar=!0,oe(z);continue}let t=ae();if(d.noextglob!==!0&&/^\([^?]/.test(t)){de(`star`,z);continue}if(R.type===`star`){if(d.noglobstar===!0){oe(z);continue}let n=R.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(d.bash===!0&&(!i||t[0]&&t[0]!==`/`)){V({type:`star`,value:z,output:``});continue}let o=L.braces>0&&(n.type===`comma`||n.type===`brace`),s=ee.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){V({type:`star`,value:z,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[L.index+4];if(n&&n!==`/`)break;t=t.slice(3),oe(`/**`,3)}let c=B()||L.parens>0&&t===`)`.repeat(L.parens)&&!ee.some(e=>e.type===`negate`);if(n.type===`bos`&&B()){R.type=`globstar`,R.value+=z,R.output=N(d),L.output=R.output,L.globstar=!0,oe(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&c){L.output=L.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=N(d)+(d.strictSlashes?`)`:`|$)`),R.value+=z,L.globstar=!0,L.output+=n.output+R.output,oe(z);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;L.output=L.output.slice(0,-(n.output+R.output).length),n.output=`(?:${n.output}`,R.type=`globstar`,R.output=`${N(d)}${C}|${C}${e})`,R.value+=z,L.output+=n.output+R.output,L.globstar=!0,oe(z+ie()),V({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){R.type=`globstar`,R.value+=z,R.output=`(?:^|${C}|${N(d)}${C})`,L.output=R.output,L.globstar=!0,oe(z+ie()),V({type:`slash`,value:`/`,output:``});continue}L.output=L.output.slice(0,-R.output.length),R.type=`globstar`,R.output=N(d),R.value+=z,L.output+=R.output,L.globstar=!0,oe(z);continue}let n={type:`star`,value:z,output:I};if(d.bash===!0){n.output=`.*?`,(R.type===`bos`||R.type===`slash`)&&(n.output=P+n.output),V(n);continue}if(R&&(R.type===`bracket`||R.type===`paren`)&&d.regex===!0){n.output=z,V(n);continue}(L.index===L.start||R.type===`slash`||R.type===`dot`)&&(R.type===`dot`?(L.output+=D,R.output+=D):d.dot===!0?(L.output+=O,R.output+=O):(L.output+=P,R.output+=P),re()!==`*`&&(L.output+=w,R.output+=w)),V(n)}for(;L.brackets>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));L.output=r.escapeLast(L.output,`[`),ue(`brackets`)}for(;L.parens>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));L.output=r.escapeLast(L.output,`(`),ue(`parens`)}for(;L.braces>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));L.output=r.escapeLast(L.output,`{`),ue(`braces`)}if(d.strictSlashes!==!0&&(R.type===`star`||R.type===`bracket`)&&V({type:`maybe_slash`,value:``,output:`${C}?`}),L.backtrack===!0){L.output=``;for(let e of L.tokens)L.output+=e.output==null?e.value:e.output,e.suffix&&(L.output+=e.suffix)}return L};b.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let{DOT_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:_}=n.globChars(a.windows),v=a.dot?m:p,y=a.dot?h:p,b=a.capture?``:`?:`,x={negated:!1,prefix:``},S=a.bash===!0?`.*?`:g;a.capture&&(S=`(${S})`);let C=e=>e.noglobstar===!0?S:`(${b}(?:(?!${_}${e.dot?f:l}).)*?)`,w=e=>{switch(e){case`*`:return`${v}${d}${S}`;case`.*`:return`${l}${d}${S}`;case`*.*`:return`${v}${S}${l}${d}${S}`;case`*/*`:return`${v}${S}${u}${d}${y}${S}`;case`**`:return v+C(a);case`**/*`:return`(?:${v}${C(a)}${u})?${y}${d}${S}`;case`**/*.*`:return`(?:${v}${C(a)}${u})?${y}${S}${l}${d}${S}`;case`**/.*`:return`(?:${v}${C(a)}${u})?${l}${d}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=w(t[1]);return n?n+l+t[2]:void 0}}},T=w(r.removePrefix(e,x));return T&&a.strictSlashes!==!0&&(T+=`${u}?`),T},t.exports=b})),AM=o(((e,t)=>{var n=OM(),r=kM(),i=DM(),a=EM(),o=e=>e&&typeof e==`object`&&!Array.isArray(e),s=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>s(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=o(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=i.windows,c=r?s.compileRe(e,t):s.makeRe(e,t,!1,!0),l=c.state;delete c.state;let u=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=s(i.ignore,e,n)}let d=(n,r=!1)=>{let{isMatch:o,match:d,output:f}=s.test(n,c,t,{glob:e,posix:a}),p={glob:e,state:l,regex:c,posix:a,input:n,output:f,match:d,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):u(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),!r||p)};return n&&(d.state=l),d};s.test=(e,t,n,{glob:r,posix:a}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let o=n||{},c=o.format||(a?i.toPosixSlashes:null),l=e===r,u=l&&c?c(e):e;return l===!1&&(u=c?c(e):e,l=u===r),(l===!1||o.capture===!0)&&(l=o.matchBase===!0||o.basename===!0?s.matchBase(e,t,n,a):t.exec(u)),{isMatch:!!l,match:l,output:u}},s.matchBase=(e,t,n,r=n&&n.windows)=>(t instanceof RegExp?t:s.makeRe(t,n)).test(i.basename(e,{windows:r})),s.isMatch=(e,t,n)=>s(t,n)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):r(e,{...t,fastpaths:!1}),s.scan=(e,t)=>n(e,t),s.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,c=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(c=`^(?!${c}).*$`);let l=s.toRegex(c,t);return r===!0&&(l.state=e),l},s.makeRe=(e,t={},n=!1,i=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let a={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(a.output=r.fastpaths(e,t)),a.output||(a=r(e,t)),s.compileRe(a,t,n,i)},s.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},s.constants=a,t.exports=s})),jM=l(o(((e,t)=>{t.exports=AM()}))(),1);function MM(e,t,n){return`${e?`diff`:`file`}:${t}@${n}`}function NM(e){return e.replace(/^(diff|file):/,``).replace(/@\d+$/,``)}function PM(e,t){return MM(e.fileView?.path!==t&&(e.snapshot?.changed.some(e=>e.path===t)??!1),t,e.gens[t]??0)}var FM=e=>e.additions+e.deletions;function IM(e,t,n,r){let i=new Map(t.map(e=>[e.path,e])),a=e=>n.includes(e)?0:(r(e)?4:2)+ +(FM(i.get(e))>4e3),o=LM(e).filter(e=>i.has(e)).sort((e,t)=>a(e)-a(t)),s=[],c=[],l=0;for(let e of o){let t=FM(i.get(e));c.length>0&&(c.length>=12||l+t>4e3)&&(s.push(c),c=[],l=0),c.push(e),l+=t}return c.length>0&&s.push(c),s}function LM(e){return e.changed.map(e=>e.path).sort(HM)}function RM(e){return e.activePath??e.fileView?.path??(e.snapshot&&LM(e.snapshot)[0])??null}var zM=[`file`,`diff`,`repo`];function BM(e){return zM[(zM.indexOf(e)+1)%zM.length]}function VM(e){return e===`file`?`diff`:e}function HM(e,t){let n=e.split(`/`),r=t.split(`/`),i=Math.min(n.length,r.length);for(let e=0;e<i;e++){let t=n[e],i=r[e];if(t===i)continue;let a=e<n.length-1;if(a!==e<r.length-1)return a?-1:1;let o=t.toLowerCase(),s=i.toLowerCase(),c=UM(o,s);return c===0?o===s?t<i?-1:1:o<s?-1:1:c}return n.length-r.length}function UM(e,t){let n=WM(e),r=WM(t),i=Math.min(n.length,r.length);for(let e=0;e<i;e++){let t=n[e],i=r[e];if(t===i)continue;if(typeof t==`number`&&typeof i==`number`)return t<i?-1:1;let a=String(t),o=String(i);if(a!==o)return a<o?-1:1}return n.length-r.length}function WM(e){let t=[];for(let n of e.matchAll(/\d+|\D+/g))t.push(/^\d/.test(n[0])?Number(n[0]):n[0]);return t.length===0&&t.push(``),t}function GM(e,t){let n=e.viewed.find(e=>e.path===t.path&&e.blob===t.blob);return n?n.viewed?`viewed`:`unviewed`:e.viewed.some(e=>e.path===t.path&&e.viewed&&e.blob!==t.blob)?`restale`:tN(e.config,t.path)?`viewed`:`unviewed`}function KM(e,t){return GM(e,t)===`viewed`}function qM(e,t){let n=0;for(let r of t)KM(e,r)&&n++;return n}function JM(e,t){let n=e.collapsed[t];if(n!=null)return n;let r=e.snapshot?.changed.find(e=>e.path===t);return r?KM(e,r)||r.generated:!1}function YM(e){return e.showResolved?e.threads:e.threads.filter(e=>!e.resolved)}function XM(e,t){return e.find(e=>e.messages.some(e=>e.id===t))}function ZM(e,t){if(e===t)return t;let n=new Map(e.map(e=>[e.id,e])),r=e.length===t.length,i=t.map((t,i)=>{let a=n.get(t.id),o=a&&JSON.stringify(a)===JSON.stringify(t)?a:t;return o!==e[i]&&(r=!1),o});return r?e:i}function QM(e,t,n,r){let i=e.replyTo!=null&&n.some(t=>t.id===e.replyTo)?e.replyTo:null,a=e.editingId!=null&&XM(n,e.editingId)?e.editingId:null;return[...n,e.draft?.path===t?e.draft:null,r,i,a]}function $M(e,t){return e&&e.deps.length===t.length&&e.deps.every((e,n)=>e===t[n])?e:{deps:t,version:(e?.version??0)+1}}var eN=new Map;function tN(e,t){let n=e.autoViewed.join(`
|
|
1595
1595
|
`),r=eN.get(n);if(!r){let t=e.autoViewed.filter(Boolean);r=t.length?(0,jM.default)(t,{dot:!0,basename:!0}):()=>!1,eN.set(n,r)}return r(t)}function nN(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=[];for(let t of e){let e=t.name.toLowerCase();e.startsWith(n)?r.push([0,t]):e.includes(n)?r.push([1,t]):rN(n,e)&&r.push([2,t])}return r.sort((e,t)=>e[0]-t[0]).map(e=>e[1])}function rN(e,t){let n=0;for(let r of t)if(r===e[n]&&++n===e.length)return!0;return!1}function iN(e,t){return{kind:`revspec`,args:[`HEAD~${e}..HEAD~${t}`]}}function aN(e){return e===`updated`?`Updated`:e===`unchanged`?`Already added`:`Added`}function oN(e){let t=e.root.split(/[\\/]/).filter(Boolean);return t[t.length-1]??e.root}function sN(e,t=null){let n=t?.pullRequest;return n?`diffle: ${n.repository} #${n.number}`:`diffle: ${oN(e)}`}var cN=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},lN=(e=>e?cN(e):cN),uN=e=>e;function dN(e,t=uN){let n=p.useSyncExternalStore(e.subscribe,p.useCallback(()=>t(e.getState()),[e,t]),p.useCallback(()=>t(e.getInitialState()),[e,t]));return p.useDebugValue(n),n}var fN=e=>{let t=lN(e),n=e=>dN(t,e);return Object.assign(n,t),n},pN=(e=>e?fN(e):fN);function mN(e,t){let n=gN(e),{startLine:r,endLine:i}=_N(e);if(n===`new`||!t)return{side:n,startLine:r,endLine:i};let a=[];for(let e=r;e<=i;e++){let n=hN(t,e);if(n==null)return{side:`old`,startLine:r,endLine:i};a.push(n)}return{side:`new`,startLine:a[0],endLine:a[a.length-1]}}function hN(e,t){for(let n of e.hunks){let e=n.deletionStart,r=n.additionStart;for(let i of n.hunkContent)if(i.type===`context`){if(t>=e&&t<e+i.lines)return r+(t-e);e+=i.lines,r+=i.lines}else{if(t>=e&&t<e+i.deletions)return null;e+=i.deletions,r+=i.additions}}return null}function gN(e){return(e.range.endSide??e.range.side)===`deletions`?`old`:`new`}function _N(e){let t=e.range.start,n=e.range.end;return{startLine:Math.min(t,n),endLine:Math.max(t,n)}}function vN(e,t,n){let r=e.split(`
|
|
1596
1596
|
`);return r.length&&r[r.length-1]===``&&r.pop(),r.slice(Math.max(0,t-1),Math.max(0,n)).join(`
|
|
1597
1597
|
`)}function yN(e,t,n){return{path:e,...t,quoted:vN(n,t.startLine,t.endLine)}}function bN(e,t=[],n=`unified`){let r=[],i=xN(e,t),a=0;for(let t of e.hunks){let e=t.deletionStart,o=t.additionStart;for(;a<i.length&&i[a]<o;)r.push({side:`additions`,line:i[a++],hunkStart:!1});for(let i of t.hunkContent)if(i.type===`context`){for(let e=0;e<i.lines;e++)r.push({side:`additions`,line:o+e,hunkStart:!1});e+=i.lines,o+=i.lines}else{let t=t=>({side:`deletions`,line:e+t,hunkStart:t===0&&i.additions===0}),a=e=>({side:`additions`,line:o+e,hunkStart:e===0});if(n===`split`){for(let e=0;e<i.additions;e++)r.push(a(e));for(let e=i.additions;e<i.deletions;e++)r.push(t(e))}else{for(let e=0;e<i.deletions;e++)r.push(t(e));for(let e=0;e<i.additions;e++)r.push(a(e))}e+=i.deletions,o+=i.additions}}for(;a<i.length;)r.push({side:`additions`,line:i[a++],hunkStart:!1});return r}function xN(e,t){if(t.length===0)return[];let n=new Set;for(let t of e.hunks){let e=t.additionStart;for(let r of t.hunkContent){let t=r.type===`context`?r.lines:r.additions;for(let r=0;r<t;r++)n.add(e+r);e+=t}}let r=new Set;for(let[e,i]of t)for(let t=e;t<=i;t++)n.has(t)||r.add(t);return[...r].sort((e,t)=>e-t)}function SN(e){let t=e.split(`
|
|
1598
|
-
`);return t.length&&t[t.length-1]===``&&t.pop(),t.map((e,t)=>({side:`additions`,line:t+1,hunkStart:t===0}))}function CN(e,t,n,r,i={},a=`unified`,o=null){if(o){if(!o.item)return[];let e=MM(!1,o.path,n[o.path]??0);return[{id:e,path:o.path,collapsed:!1,rows:TN(o.item,i[e],a)}]}let s=[];for(let o of LM(e)){let e=t[o],c=MM(!0,o,n[o]??0);s.push({id:c,path:o,collapsed:r(o),rows:e?TN(e,i[c],a):[]})}return s}var wN=new WeakMap;function TN(e,t,n){let r=e.kind===`diff`?e.fileDiff:e.kind===`file`?e.file:null;if(!r)return[];let i=wN.get(r);if(i&&i.revealed===t&&i.style===n)return i.rows;let a=e.kind===`diff`?bN(e.fileDiff,t,n):SN(e.file.contents);return wN.set(r,{revealed:t,style:n,rows:a}),a}function EN(e,t){if(!t)return null;let n=e.findIndex(e=>e.id===t.id);if(n===-1)return null;let r=t.range.endSide??t.range.side??`additions`,i=e[n].rows,a=i.findIndex(e=>e.line===t.range.end&&e.side===r);if(a===-1&&(a=i.findIndex(e=>e.line===t.range.end)),a===-1){let e=1/0;if(i.forEach((n,i)=>{let o=Math.abs(n.line-t.range.end)+(n.side===r?0:.5);o<e&&(e=o,a=i)}),a===-1)return null}return{itemIndex:n,rowIndex:a}}function DN(e,t,n){if(e.length===0)return null;if(!t)return ON(e,n===1?0:e.length-1,n);if(t.rowIndex===-1){let r=e[t.itemIndex];return r&&!r.collapsed&&r.rows.length>0?{itemIndex:t.itemIndex,rowIndex:n===1?0:r.rows.length-1}:ON(e,t.itemIndex+n,n)??t}let{itemIndex:r,rowIndex:i}=t;for(i+=n;i<0||i>=(e[r]?.rows.length??0);){if(r+=n,r<0||r>=e.length)return t;let a=e[r];if(a.collapsed)return{itemIndex:r,rowIndex:-1};a.rows.length!==0&&(i=n===1?0:a.rows.length-1)}return{itemIndex:r,rowIndex:i}}function ON(e,t,n){for(let r=t;r>=0&&r<e.length;r+=n){let t=e[r];if(t.collapsed)return{itemIndex:r,rowIndex:-1};if(t.rows.length>0)return{itemIndex:r,rowIndex:n===1?0:t.rows.length-1}}return null}function kN(e,t,n){if(e.length===0)return null;let r=t?t.itemIndex+n:n===1?0:e.length-1;return r<0||r>=e.length?t:{itemIndex:r,rowIndex:e[r].collapsed?-1:0}}function AN(e,t,n){let r=[];if(e.forEach((e,t)=>{e.collapsed||e.rows.forEach((e,n)=>e.hunkStart&&r.push({itemIndex:t,rowIndex:n}))}),r.length===0)return t;if(!t)return n===1?r[0]:r[r.length-1];let i=e=>e.itemIndex*1e7+e.rowIndex,a=i(t);return n===1?r.find(e=>i(e)>a)??t:[...r].reverse().find(e=>i(e)<a)??t}function jN(e,t,n){let r=e[t.itemIndex],i=r?.rows[t.rowIndex];if(!r||!i)return null;if(n&&n.itemIndex===t.itemIndex){let e=r.rows[n.rowIndex];if(e)return{id:r.id,range:{start:e.line,side:e.side,end:i.line,endSide:i.side}}}return{id:r.id,range:{start:i.line,side:i.side,end:i.line,endSide:i.side}}}function MN(e){let t=Tk(e);return t===`json`||t===`jsonc`||t===`yaml`||t===`toml`}var NN=null,PN=null,FN=null,IN=null,LN={get:()=>FN??NN,element:()=>FN?IN:PN,set(e,t=null){NN=e,PN=e?t:null},focus(e,t=null){FN=e,IN=e?t:null}},RN={python:`python`,javascript:`javascript`,javascriptreact:`javascript`,typescript:`typescript`,typescriptreact:`tsx`,rust:`rust`,go:`go`,c:`c`,cpp:`cpp`,ruby:`ruby`,java:`java`,lua:`lua`,zig:`zig`,swift:`swift`,php:`php`,shellscript:`bash`,ocaml:`ocaml`};function zN(e){let t=Tk(e);return t&&t in RN?RN[t]:null}var BN=null,VN=!1,HN=0,UN=new Map;function WN(){VN=!0,BN?.terminate(),BN=null;for(let e of UN.values())e(!1);UN.clear()}async function GN(e,t,n,r,i){let a=zN(e);if(!a||VN||typeof Worker>`u`)return!1;try{let o=await i();if(o.length>1e6||VN)return!1;BN||(BN=new Worker(new URL(`/assets/syntax.worker-BRjdyEIk.js`,``+import.meta.url),{type:`module`}),BN.onmessage=({data:e})=>{UN.get(e.id)?.(e.blocked),UN.delete(e.id)},BN.onerror=WN,BN.onmessageerror=WN);let s=++HN;return await new Promise(i=>{let c=setTimeout(WN,5e3);UN.set(s,e=>{clearTimeout(c),i(e)});try{BN.postMessage({id:s,key:`${t}:${e}`,grammar:a,contents:o,line:n,col:r})}catch{WN()}})}catch{return!1}}var KN={light:`github-light-high-contrast`,dark:`github-dark-high-contrast`},qN=`diffle:theme`;function JN(){try{let e=localStorage.getItem(qN);if(e===`light`||e===`dark`||e===`system`)return e}catch{}return`system`}function YN(e){try{localStorage.setItem(qN,e)}catch{}}function XN(e){let t=document.documentElement;e===`system`?(delete t.dataset.theme,t.style.colorScheme=`light dark`):(t.dataset.theme=e,t.style.colorScheme=e)}function ZN(e){return e===`system`?`light`:e===`light`?`dark`:`system`}var QN=`diffle:diffStyle`,$N=3500;function eP(){try{return localStorage.getItem(QN)===`unified`?`unified`:`split`}catch{return`split`}}var tP=`diffle:layout`,nP={treeWidth:null,panelWidth:null,treeVisible:!0,panelVisible:!0};function rP(){try{let e=localStorage.getItem(tP);return e?{...nP,...JSON.parse(e)}:nP}catch{return nP}}var Y=pN((e,t)=>{let n=0,r=0,i=e=>e===n,a=0,o=0,s=null,c=()=>{s&&=(clearTimeout(s.timer),s.wake(),null)},l=new AbortController,u=new Map,d=()=>(l.abort(),l=new AbortController,u.clear(),++n),f=0,p=()=>(f++,d()),m=()=>{let e=0;return{start:()=>++e,latest:t=>t===e}},h=m(),g=m(),_=m(),v=m(),y=()=>{let e=Promise.resolve();return t=>{let n=e.then(t);return e=n.catch(()=>{}),n}},b=y(),x=y(),S=0,C=!1,w=e=>e<=S||!C&&e<=(t().snapshot?.version??0),T=()=>{let e=g.start(),t=_.start();return Promise.all([Vk.threads(),Vk.viewed()]).then(([n,r])=>({threads:n,viewed:r,tt:e,tv:t}))},E=async(t,n,r)=>{i(n)&&(_.latest(r.tv)&&e({viewed:r.viewed}),g.latest(r.tt)&&De(r.threads),await ie(t,n))},D=(e,t)=>{let r=`${n}\0${t}\0${e}`,i=u.get(r);return i||(i=Vk.file(e,t,l.signal),u.set(r,i),i.catch(()=>u.delete(r))),i},O=e=>e?.name===`AbortError`,k=async(e,t)=>{for(;;)try{return await D(e,t)}catch(e){if(!O(e))throw e}},A=e=>e instanceof Error?e.message:String(e),j=(e,n)=>t().flash(`${e} failed: ${A(n)}`),M=async(r,a)=>{let o=t().contents[r]?.[a];if(o!=null)return o;let s=n,c=await k(r,a);return i(s)&&e(e=>({contents:{...e.contents,[r]:{...e.contents[r],[a]:c.contents}}})),c.contents},N=(e,t)=>{let n={...e.gens};for(let e of t)n[e]=(n[e]??0)+1;let r=r=>{let i=NM(r.id);return t.includes(i)?{...r,id:PM({snapshot:e.snapshot,gens:n,fileView:e.fileView},i)}:r};return{gens:n,selection:e.selection&&r(e.selection),draft:e.draft&&{...e.draft,selection:r(e.draft.selection)},scrollTarget:e.scrollTarget&&r(e.scrollTarget),reveal:e.reveal&&r(e.reveal)}},P=async(n,r,a)=>{let o=new Map(n.changed.map(e=>[e.path,e])),s=r.filter(e=>o.has(e));if(s.length===0)return;let c={},l=[],u=t().loaded;for(let e of s){let t=o.get(e);t.binary?c[e]={kind:`binary`}:FM(t)>1e4&&u[e]?.kind!==`diff`?c[e]={kind:`oversized`,lines:FM(t)}:l.push(t)}Object.keys(c).length>0&&e(e=>({loaded:{...e.loaded,...c},...N(e,Object.keys(c))}));let d=t();await aP(IM(n,l,[d.fileView?.path,d.activePath,d.selection&&NM(d.selection.id)].filter(e=>e!=null),e=>JM(d,e)),2,()=>!i(a),e=>F(n,e,a))},F=async(t,n,r)=>{let a=new Map(t.changed.map(e=>[e.path,e])),o={},s=new Map;try{let e=Am(n.length===1?await Vk.patch(n[0]):await Vk.patches(n),`s${t.version}c${t.context}t${Date.now()}`);for(let t of e)for(let e of t.files)s.set(e.name,e);for(let e of n){let t=s.get(e);o[e]=t?{kind:`diff`,fileDiff:t}:{kind:`error`,message:`patch missing for file`}}}catch(e){for(let t of n)o[t]={kind:`error`,message:String(e)}}i(r)&&(e(e=>({loaded:{...e.loaded,...o},...N(e,Object.keys(o))})),ee(n.filter(e=>!a.get(e).submodule),s,o,r))},I=[],L=0,ee=(e,t,n,r)=>{for(let i of e){let e=t.get(i);e?.isPartial&&(e.type===`change`||e.type===`rename-changed`||e.type===`rename-pure`)&&I.push({path:i,file:e,replaces:n[i],g:r})}for(;L<4&&L<I.length;)L++,te()},te=async()=>{try{for(;;){let e=I.shift();if(!e)return;!i(e.g)||t().loaded[e.path]!==e.replaces||await ne(e)}}finally{L--}},ne=async({path:e,file:n,replaces:r,g:a})=>{let o=()=>!i(a)||t().loaded[e]!==r;try{let t=n.prevName??n.name,[i,s]=await Promise.all([D(t,`old`),D(n.name,`new`)]);if(o())return;let c=z_(`clone`,n,{oldFile:{name:t,contents:i.contents},newFile:{name:n.name,contents:s.contents}});B({path:e,fileDiff:c,old:i.contents,new:s.contents,replaces:r,g:a})}catch{}},R=[],z=null,B=e=>{R.push(e),!z&&(z=re,typeof requestAnimationFrame==`function`?requestAnimationFrame(re):setTimeout(re,0))},re=()=>{z=null;let n=R;R=[];let r=n.filter(e=>i(e.g)&&t().loaded[e.path]===e.replaces);r.length!==0&&e(e=>{let t={...e.loaded},n={...e.contents};for(let e of r)t[e.path]={kind:`diff`,fileDiff:e.fileDiff},n[e.path]={...n[e.path],old:e.old,new:e.new};return{loaded:t,contents:n,...N(e,r.map(e=>e.path))}})},ie=async(n,r)=>{let i=t().snapshot,a=i==null||i.mode.commentKey!==n.mode.commentKey,o=i!=null&&i.context!==n.context,s=i!=null&&(i.oldSha===`worktree`||i.oldSha!==n.oldSha),c=s||i!=null&&i.newSha!==n.newSha,l=new Map(i?.changed.map(e=>[e.path,e])??[]),u=new Map(n.changed.map(e=>[e.path,e])),d=a?{}:{...t().loaded},f=a||c?{}:{...t().contents},p=[];for(let e of n.changed){let t=l.get(e.path);if(a||o||s||!t||!iP(t,e)||d[e.path]==null){let t=d[e.path];t&&(d[e.path]={...t}),delete f[e.path],p.push(e.path)}}for(let e of l.keys())u.has(e)||(delete d[e],delete f[e]);let m=t().fileView,h=a||m==null||!m.external&&!n.tree.includes(m.path)?null:m,g=m!=null&&!m.external&&(c||l.has(m.path)!==u.has(m.path)||p.includes(m.path));h&&g&&delete f[h.path];let _={};if(!a)for(let[e,n]of Object.entries(t().collapsed))l.get(e)?.blob===u.get(e)?.blob&&(_[e]=n);let v=t().draft,y=v!=null&&!a&&(u.has(v.path)||h?.path===v.path);C=!1,e({snapshot:n,loaded:d,contents:f,fileView:h,collapsed:_,error:null,draft:y?v:null}),t().refreshGithub(),a&&e(e=>({selection:null,visualAnchor:null,replyTo:null,editingId:null,jumps:[],jumpIndex:0,revealed:{},reveal:null,scrollTarget:null,search:{...e.search,open:!1,kind:`text`,direction:1,matches:[],index:-1}})),await Promise.all([P(n,p,r),...h&&(g||!h.item)?[ae(h.path,h.external,r,!0)]:[]])},ae=async(n,r,a,o=!1)=>{let s=t().fileView?.from??{position:ce(),activePath:t().activePath};o||e({fileView:{path:n,external:r,item:null,from:s},selection:null,visualAnchor:null,draft:null,focusedThread:null});let c,l;try{let e=await D(n,`new`);l=e.contents,c=e.binary?{kind:`binary`}:{kind:`file`,file:{name:n,contents:e.contents,cacheKey:`${n}@full@${Date.now()}`}}}catch(e){c={kind:`error`,message:String(e)}}!i(a)||t().fileView?.path!==n||e(e=>({fileView:{path:n,external:r,item:c,from:e.fileView?.from??s},...N(e,[n]),contents:l==null?e.contents:{...e.contents,[n]:{...e.contents[n],new:l}}}))},oe=null,se=()=>{let e=t();if(!e.snapshot)return[];let n=[e.snapshot,e.loaded,e.gens,e.revealed,e.collapsed,e.viewed,e.config,e.diffStyle,e.fileView];if(oe&&oe.inputs.every((e,t)=>e===n[t]))return oe.items;let r=CN(e.snapshot,e.loaded,e.gens,t=>JM(e,t),e.revealed,e.diffStyle,e.fileView);return oe={inputs:n,items:r},r},ce=()=>{let e=t().selection;if(!e)return null;let n=NM(e.id),r=t().fileView;return r?.path===n?{path:n,side:gN(e),line:e.range.end,full:!0,...r.external?{external:!0}:{}}:{path:n,side:gN(e),line:e.range.end}},le=()=>{if(V)return;let n=ce();if(!n)return;let{jumps:r,jumpIndex:i}=t(),a=r.slice(0,i),o=a[a.length-1];if(o&&o.path===n.path&&o.line===n.line&&o.side===n.side&&!!o.full==!!n.full){e({jumps:a,jumpIndex:a.length});return}let s=[...a,n].slice(-100);e({jumps:s,jumpIndex:s.length})},ue=n=>{JM(t(),n)&&e(e=>({collapsed:{...e.collapsed,[n]:!1}}))},V=!1,de=e=>{V=!0;let t=()=>{V=!1},n;try{n=e()}catch(e){throw t(),e}return n instanceof Promise?n.finally(t):(t(),n)},fe=async r=>{if(r.full&&t().fileView?.path!==r.path){let e=n;if(await ae(r.path,r.external??!1,e),!i(e)||t().fileView?.path!==r.path)return}else!r.full&&t().fileView&&e({fileView:null,selection:null,visualAnchor:null,draft:null,focusedThread:null});V=!0;try{pe(r)}finally{V=!1}},pe=t=>{t.full||ue(t.path);let n=se(),r=n.findIndex(e=>e.path===t.path);if(r===-1)return;let i=n[r],a=t.side===`old`?`deletions`:`additions`,o=i.rows.findIndex(e=>e.line===t.line&&e.side===a);if(o!==-1){ge({itemIndex:r,rowIndex:o},!1,`eye`);return}e(e=>({selection:{id:i.id,range:{start:t.line,side:a,end:t.line,endSide:a}},activePath:t.path,scrollTarget:{id:i.id,line:t.line,side:t.side,align:`eye`,nonce:(e.scrollTarget?.nonce??0)+1}}))},me=t=>{let n=se(),r=n.findIndex(e=>e.path===t);if(r===-1)return;let i=n[r],a=null;for(let e=r+1;e<n.length;e++){let t=n[e];if(t.collapsed||t.rows.length===0)continue;let r=t.rows.findIndex(e=>e.hunkStart);a={itemIndex:e,rowIndex:r===-1?0:r};break}let o=a?jN(n,a):null;e(e=>({selection:o,visualAnchor:null,draft:null,activePath:a?n[a.itemIndex].path:t,scrollTarget:{id:i.id,align:`start`,nonce:(e.scrollTarget?.nonce??0)+1}}))},he=(e,t)=>{let n=e.selection;return{id:n.id,line:n.range.end,side:gN(n),align:t,nonce:(e.scrollTarget?.nonce??0)+1}},ge=(n,r=!1,i=`nearest`)=>{if(!n)return;i===`eye`&&le();let a=se(),o=jN(a,n,r?t().visualAnchor:null),s=a[n.itemIndex];if(!o||!s)return;let c=s.rows[n.rowIndex];e(e=>({selection:o,activePath:s.path,visualAnchor:r?e.visualAnchor:null,focusedThread:null,scrollTarget:{id:s.id,line:c.line,side:c.side===`deletions`?`old`:`new`,align:i,nonce:(e.scrollTarget?.nonce??0)+1}}))},_e=async(n,r,i=!1)=>{le(),await de(()=>i?t().openFullFile(n,void 0,!0):t().openFile(n)),ue(n);let a=se(),o=a.findIndex(e=>e.path===n);if(o===-1)return;let s=a[o],c=s.rows.findIndex(e=>e.side===`additions`&&e.line===r);if(c!==-1){de(()=>ge({itemIndex:o,rowIndex:c},!1,`eye`));return}e(e=>({selection:{id:s.id,range:{start:r,side:`additions`,end:r,endSide:`additions`}},activePath:n,visualAnchor:null,reveal:{id:s.id,path:n,line:r,nonce:(e.reveal?.nonce??0)+1}}))},ve=e=>{let{lsp:n,snapshot:r}=t();return n.enabled?!r||!Ck(r)?`Symbol navigation needs the new side to be the worktree or the checked-out commit`:Ek(n,e):Ek(n)},ye=e=>ve(e.path)??(e.side===`old`?`Symbol navigation works on the new side only`:t().fileView?.external?`Symbol navigation starts from a repository file`:null),be=e=>{let n=e?ye(e):ve()??`Hover a symbol first`;return n?(t().flash(n),null):{path:e.path,line:e.line,col:e.col}},xe=(t,n)=>i(t)&&h.latest(n)?!0:(h.latest(n)&&e(e=>({search:{...e.search,loading:!1}})),!1),Se=async(r,a)=>{if(t().closeSymbolMenu(),r&&MN(r.path))return t().flash(`Configuration files support schema hover (gh)`);let o=be(r);if(!o)return;let s=n;try{let n=await(a===`definition`?Vk.lspDefinition(o):Vk.lspTypeDefinition(o));if(!i(s))return;let c=n.locations[0];if(!c)return t().flash(`No ${a} found for ${r.text}`);if(a===`type definition`&&n.locations.length>1){e({references:{open:!0,kind:`types`,symbol:r.text,items:n.locations,index:0}});return}await _e(c.path,c.line,c.external)}catch(e){i(s)&&j(a===`definition`?`Go to definition`:`Go to type definition`,e)}},Ce=()=>EN(se(),t().selection),we=()=>{let e=Ce();if(e)return e;let n=se().findIndex(e=>e.path===t().activePath);return n===-1?null:{itemIndex:n,rowIndex:-1}},Te=(t,n=!1,r=`nearest`)=>{if(!t)return;if(t.rowIndex!==-1)return ge(t,n,r);let i=se()[t.itemIndex];i&&e(e=>({selection:null,activePath:i.path,visualAnchor:null,focusedThread:null,scrollTarget:{id:i.id,align:r,nonce:(e.scrollTarget?.nonce??0)+1}}))},Ee=()=>{let e=t(),n=e.selection;if(!n)return;let r=NM(n.id),i=gN(n),a=n.range.end;return YM(e).find(e=>e.anchor.path===r&&e.anchor.side===i&&a>=e.anchor.startLine&&a<=e.anchor.endLine)},De=n=>e({threads:ZM(t().threads,n)}),Oe=async(e,n)=>{try{await n()}catch(t){return j(e,t)}await t().refreshThreads()},ke=async(n,r)=>{let i=f,a=0;try{let t=await b(()=>(a=_.start(),r()));f===i&&_.latest(a)&&e({viewed:t})}catch(e){if(f!==i)return;j(n,e),t().refreshViewed()}},Ae=null;return{layout:rP(),setLayout(n){let r={...t().layout,...n};try{localStorage.setItem(tP,JSON.stringify(r))}catch{}e({layout:r})},theme:JN(),setTheme(t){YN(t),XN(t),e(e=>({theme:t,...e.selection?{scrollTarget:he(e,`eye`)}:{}}))},visualAnchor:null,editingId:null,setEditingId(t){e({editingId:t})},replyTo:null,focusedThread:null,focusThread(t){e({focusedThread:t})},openReply(n){let r=t().threads.find(e=>e.id===n);r&&e({replyTo:n,draft:null,activePath:r.anchor.path})},closeReply(){t().replyTo&&e({replyTo:null})},githubMenuOpen:!1,github:{status:`idle`},setGithubMenuOpen(n){e({githubMenuOpen:n,...n?{modeMenuOpen:!1}:{}}),n&&t().refreshGithub()},async refreshGithub(){let i=t().snapshot;if(!i)return;let a=n,o=++r,s=()=>a===n&&t().snapshot===i&&r===o;e({github:{status:`loading`}});try{let t=await Vk.github();s()&&e({github:t.version===i.version?{status:`ready`,data:t}:{status:`idle`}})}catch(t){s()&&e({github:{status:`error`,error:A(t)}})}},modeMenuOpen:!1,modePane:null,setModeMenuOpen(t){e({modeMenuOpen:t,modePane:null,...t?{githubMenuOpen:!1}:{}})},pickModeEntry(n){n===1?(e({modeMenuOpen:!1,modePane:null}),t().switchMode({kind:`working`})):n>=2&&n<=4&&e({modeMenuOpen:!0,modePane:n===2?`refs`:n===3?`commits`:`pr`})},helpOpen:!1,setHelpOpen(t){e({helpOpen:t})},treeModel:null,setTreeModel(t){e({treeModel:t})},toast:null,report:j,flash(t){e({toast:t}),Ae&&clearTimeout(Ae),Ae=setTimeout(()=>e({toast:null}),$N)},search:{open:!1,kind:`text`,direction:1,ignoreCase:!0,regex:!1,scope:`diff`,path:null,focusNonce:0,query:``,matches:[],index:-1,loading:!1,truncated:!1},openSearch(t){e(e=>({search:{...e.search,open:!0,kind:`text`,direction:1,scope:t??e.search.scope,focusNonce:e.search.focusNonce+1}}))},setSearchOptions(n){e(e=>({search:{...e.search,...n}}));let{query:r,kind:i}=t().search;i===`text`&&r&&t().runSearch(r)},closeSearch(){h.start(),e(e=>({search:{...e.search,open:!1,kind:`text`,direction:1,matches:[],index:-1,loading:!1}}))},async runSearch(r){let i=n,a=h.start(),o=t().search.scope===`file`?RM(t()):null;e(e=>({search:{...e.search,kind:`text`,direction:1,query:r,path:o,loading:!0}}));try{let{ignoreCase:n,regex:s,scope:c}=t().search;if(c===`file`&&!o)return e(e=>({search:{...e.search,matches:[],index:-1,loading:!1}})),t().flash(`No file to search in`);let l=await Vk.search(r,{ignoreCase:n,regex:s,scope:c,...o?{path:o}:{}});if(!xe(i,a))return;e(e=>({search:{...e.search,matches:l.matches,truncated:l.truncated,index:-1,loading:!1}})),l.matches.length?t().moveMatch(1):t().flash(c===`file`?`No matches for “${r}” in ${o}`:c===`diff`?`No matches for “${r}” in the diff`:`No matches for “${r}”`)}catch(t){if(!xe(i,a))return;e(e=>({search:{...e.search,loading:!1}})),j(`Search`,t)}},moveMatch(n){let{search:r}=t(),i=r.matches.length;if(!i)return;let a=n*r.direction,o=((r.index<0?a===1?-1:0:r.index)+a+i)%i,s=r.matches[o];e({search:{...r,index:o}}),_e(s.path,s.line,s.external)},async searchWord(r){let i=LN.get()?.text;if(!i)return t().flash(`Focus a word first (w / b, or hover one)`);let a=n,o=h.start();e(e=>({search:{...e.search,open:!0,kind:`word`,direction:r,query:i,matches:[],index:-1,loading:!0,truncated:!1}}));try{let n=await Vk.search(i,{word:!0,scope:`repo`});if(!xe(a,o))return;let s=n.matches,c=new Map(t().snapshot?.tree.map((e,t)=>[e,t])??[]),l=ce(),u=e=>c.get(e)??1/0,d=e=>l?u(e.path)-u(l.path)||e.line-l.line:r,f=r===1?s.findIndex(e=>d(e)>0):s.findLastIndex(e=>d(e)<0);f===-1&&s.length&&(f=r===1?0:s.length-1),e(e=>({search:{...e.search,matches:s,truncated:n.truncated,index:f,loading:!1}}));let p=s[f];p?_e(p.path,p.line):t().flash(`No other occurrence of “${i}”`)}catch(t){if(!xe(a,o))return;e(e=>({search:{...e.search,loading:!1}})),j(`Search`,t)}},lsp:{enabled:!1,servers:[],missing:[]},setLspStatus(t){e({lsp:t})},symbolMenu:null,async openSymbolMenu(r,o,s){if(MN(r.path)){t().closeSymbolMenu();return}if(!t().lsp.enabled)return;t().closeHover();let c=++a,l=n,u=await GN(r.path,r.side,r.line,r.col,()=>M(r.path,r.side));if(!(!i(l)||c!==a)){if(u){e({symbolMenu:null});return}if(!ye(r)){let e=n,t=null;try{t=(await Vk.lspTokenKind({path:r.path,line:r.line,col:r.col}))?.kind??null}catch{}if(!i(e)||c!==a||t===`keyword`)return}e({symbolMenu:{target:r,x:o,y:s}})}},closeSymbolMenu(){a++,t().symbolMenu&&e({symbolMenu:null})},hover:null,async requestHover(r,a){let s=++o;if(t().symbolMenu||ye(r))return;let c=n;try{let n=await GN(r.path,r.side,r.line,r.col,()=>M(r.path,r.side));if(!i(c)||s!==o||t().symbolMenu)return;if(n){e({hover:null});return}let l=await Vk.lspHover({path:r.path,line:r.line,col:r.col});if(!i(c)||s!==o||t().symbolMenu)return;e({hover:l.contents?{target:r,contents:l.contents,anchor:a}:null})}catch{}},async showHover(){let e=t().symbolMenu?.target??LN.get();if(!be(e))return;t().closeSymbolMenu();let n=LN.element()?.getBoundingClientRect(),r=n?{left:n.left,top:n.top,bottom:n.bottom}:{left:0,top:0,bottom:0};await new Promise(e=>setTimeout(e,0));let i=o+1;await t().requestHover(e,r),i===o&&!t().hover&&t().flash(`No hover information for ${e.text}`)},closeHover(){o++,t().hover&&e({hover:null})},async goToDefinition(e=t().symbolMenu?.target??LN.get()){await Se(e,`definition`)},async goToTypeDefinition(e=t().symbolMenu?.target??LN.get()){await Se(e,`type definition`)},async goToLink(e,n){t().closeHover(),t().closeSymbolMenu(),n==null?await t().openFile(e):await _e(e,n)},async findReferences(r=t().symbolMenu?.target??LN.get()){if(t().closeSymbolMenu(),r&&MN(r.path))return t().flash(`Configuration files support schema hover (gh)`);let a=be(r);if(!a)return;let o=n;try{let n=await Vk.lspReferences(a);if(!i(o))return;let s=n.locations;if(s.length===0)return t().flash(`No references to ${r.text}`);let c=s.findIndex(e=>e.path===a.path&&e.line===a.line),l=c===-1?0:(c+1)%s.length;e({references:{open:!0,kind:`references`,symbol:r.text,items:s,index:l}})}catch(e){i(o)&&j(`Find references`,e)}},references:{open:!1,kind:`references`,symbol:``,items:[],index:-1},moveReference(n){let r=t().references,i=r.items.length;i&&e({references:{...r,index:(Math.max(r.index,0)+n+i)%i}})},pickReference(){let n=t().references,r=n.items[n.index];t().closeReferences(),r&&(n.kind===`references`&&e(e=>({search:{...e.search,open:!0,kind:`references`,direction:1,query:n.symbol,matches:n.items,index:n.index,loading:!1,truncated:!1}})),_e(r.path,r.line,r.external))},closeReferences(){e(e=>({references:{...e.references,open:!1}}))},symbols:{open:!1,scope:`document`,path:null,query:``,all:[],items:[],index:-1,loading:!1},async openSymbols(r){let a=r===`document`?t().activePath:null;if(r===`document`&&!a)return t().flash(`Move to a file first`);let o=a?ye({path:a,side:`new`}):ve();if(o)return t().flash(o);if(e({symbols:{open:!0,scope:r,path:r===`document`?a:null,query:``,all:[],items:[],index:-1,loading:r===`document`}}),r!==`document`)return;let s=n;try{let n=await Vk.lspSymbols({path:a}),r=t().symbols;if(!r.open||r.scope!==`document`||r.path!==a)return;if(!i(s))return e({symbols:{...r,loading:!1}});e({symbols:{...r,all:n,items:nN(n,r.query),index:n.length?0:-1,loading:!1}})}catch(e){t().closeSymbols(),j(`Document symbols`,e)}},async querySymbols(r){let a=t().symbols;if(!a.open)return;if(a.scope===`document`){let t=nN(a.all,r);return e({symbols:{...a,query:r,items:t,index:t.length?0:-1}})}if(e({symbols:{...a,query:r,loading:r.trim().length>0}}),c(),!r.trim())return e(e=>({symbols:{...e.symbols,items:[],index:-1}}));if(await new Promise(e=>{s={timer:setTimeout(()=>{s=null,e()},150),wake:e}}),t().symbols.query!==r||!t().symbols.open)return;let o=n;try{let n=await Vk.lspSymbols({q:r}),a=t().symbols;if(!a.open||a.query!==r)return;if(!i(o))return e({symbols:{...a,loading:!1}});e({symbols:{...a,items:n,index:n.length?0:-1,loading:!1}})}catch(t){e(e=>({symbols:{...e.symbols,loading:!1}})),j(`Workspace symbols`,t)}},moveSymbol(n){let r=t().symbols,i=r.items.length;i&&e({symbols:{...r,index:(Math.max(r.index,0)+n+i)%i}})},pickSymbol(){let e=t().symbols,n=e.items[e.index];t().closeSymbols(),n&&_e(n.path,n.line)},closeSymbols(){e(e=>({symbols:{...e.symbols,open:!1,items:[],all:[],index:-1,loading:!1}}))},moveCursor(e){let n=se();Te(DN(n,we(),e),t().visualAnchor!=null)},jumps:[],jumpIndex:0,jumpBack(){if(t().fileView)return t().closeFullFile();let{jumps:n,jumpIndex:r}=t();if(r===0)return;let i=n,a=r;if(a===i.length){let e=ce();e&&(i=[...i,e])}--a,e({jumps:i,jumpIndex:a});let o=i[a];o&&fe(o)},jumpForward(){let{jumps:n,jumpIndex:r}=t();if(r>=n.length-1)return;let i=r+1;e({jumpIndex:i});let a=n[i];a&&fe(a)},scrollCursorTo(n){if(!t().selection)return t().flash(`No line under the cursor`);e(e=>({scrollTarget:he(e,n)}))},moveCursorBy(e){let n=se(),r=e<0?-1:1,i=we();for(let t=0;t<Math.abs(e);t++){let e=DN(n,i,r);if(!e||i&&e.itemIndex===i.itemIndex&&e.rowIndex===i.rowIndex)break;i=e}Te(i,t().visualAnchor!=null,`eye`)},async goToLine(e){let n=t(),r=RM(n);if(!r)return n.flash(`No file to jump in`);await _e(r,e)},moveFile(n){let r=se();if(!r.length)return;let i=r.findIndex(e=>e.path===t().activePath),a=we()??(i===-1?null:{itemIndex:i,rowIndex:0}),o=n===`first`?kN(r,null,1):n===`last`?kN(r,null,-1):kN(r,a,n);if(!o)return;let s=r[o.itemIndex];if(le(),s.collapsed||s.rows.length===0){e(e=>({selection:null,activePath:s.path,scrollTarget:{id:s.id,nonce:(e.scrollTarget?.nonce??0)+1}}));return}ge(o),e(e=>({scrollTarget:{id:s.id,align:`start`,nonce:(e.scrollTarget?.nonce??0)+1}}))},moveHunk(e){ge(AN(se(),Ce(),e),!1,`eye`)},toggleVisual(){let n=Ce();if(t().visualAnchor){e({visualAnchor:null}),n&&ge(n);return}if(!n){let t=DN(se(),null,1);t&&ge(t),e({visualAnchor:Ce()});return}e({visualAnchor:n})},editCommentAtCursor(){let e=Ee(),n=e?.messages[e.messages.length-1];n&&t().setEditingId(n.id)},async deleteCommentAtCursor(){let e=Ee();e&&await t().deleteThread(e.id)},async toggleResolvedAtCursor(){let e=Ee();if(!e)return t().flash(`No thread under the cursor`);await t().setResolved(e.id,!e.resolved),t().flash(e.resolved?`Thread reopened`:`Thread resolved`)},async toggleViewedAtCursor(){let e=t().activePath,n=e?t().snapshot?.changed.find(t=>t.path===e):void 0;!e||!n||await t().setViewed(e,!KM(t(),n))},setCollapsedAtCursor(n){let r=t().activePath;r&&(e(e=>({collapsed:{...e.collapsed,[r]:n}})),n?me(r):t().loadPatch(r))},setAllCollapsed(n){let r=t().snapshot?.changed.map(e=>e.path)??[],i={};for(let e of r)i[e]=n;e({collapsed:i})},escape(){let n=t();n.helpOpen?e({helpOpen:!1}):n.modeMenuOpen?e({modeMenuOpen:!1}):n.githubMenuOpen?e({githubMenuOpen:!1}):n.hover?n.closeHover():n.symbolMenu?n.closeSymbolMenu():n.references.open?n.closeReferences():n.symbols.open?n.closeSymbols():n.search.open?n.closeSearch():n.editingId?n.setEditingId(null):n.replyTo?n.closeReply():n.draft?n.closeDraft():n.visualAnchor?e({visualAnchor:null}):e({selection:null})},diffStyle:eP(),setDiffStyle(t){try{localStorage.setItem(QN,t)}catch{}e(e=>({diffStyle:t,draft:null,visualAnchor:null,...e.selection?{scrollTarget:he(e,`eye`)}:{}}))},snapshot:null,error:null,threads:[],showResolved:!1,setShowResolved(t){e({showResolved:t})},viewed:[],config:fk,fileView:null,loaded:{},gens:{},contents:{},collapsed:{},selection:null,draft:null,activePath:null,scrollTarget:null,reveal:null,revealed:{},addRevealed(t,n,r){e(e=>{let i=NM(t),a=Object.fromEntries(Object.entries(e.revealed).filter(([e])=>e===t||NM(e)!==i));return{revealed:{...a,[t]:[...a[t]??[],[n,r]]}}})},async boot(){let t=p();C=!0,S=0;try{let n=Vk.lspStatus().catch(()=>({enabled:!1,servers:[],missing:[]})),r=v.start(),[i,a,o,s]=await Promise.all([Vk.snapshot(),T(),Vk.config(),n]);e({lsp:s}),v.latest(r)&&e({config:o}),await E(i,t,a)}catch(n){i(t)&&e({error:A(n)})}},async refreshSnapshot(t){if(t!=null){if(w(t))return;S=t}let n=d();try{let[e,t]=await Promise.all([Vk.snapshot(),T()]);await E(e,n,t)}catch(t){i(n)&&e({error:A(t)})}finally{S===t&&(S=0)}},async refreshThreads(){let e=n,t=g.start();try{let n=await Vk.threads();i(e)&&g.latest(t)&&De(n)}catch(n){i(e)&&g.latest(t)&&j(`Loading threads`,n)}},async refreshViewed(){let t=n,r=_.start();try{let n=await Vk.viewed();i(t)&&_.latest(r)&&e({viewed:n})}catch(e){i(t)&&_.latest(r)&&j(`Loading viewed marks`,e)}},async refreshConfig(){let t=v.start();try{let n=await Vk.config();v.latest(t)&&e({config:n})}catch(e){v.latest(t)&&j(`Loading config`,e)}},async switchMode(n){let r=p();e({error:null});let a,o=!1;try{return a=await Vk.switchMode(n),i(r)?w(a.version)?`applied`:(S=a.version,o=!0,await E(a,r,await T()),i(r)?`applied`:`superseded`):`superseded`}catch(n){if(!i(r))return`superseded`;let a=A(n);return e({error:a}),t().refreshGithub(),{error:a}}finally{o&&a&&S===a.version&&(S=0)}},loadFile:k,async openFile(n,r,i){let a=t().snapshot;if(a){if(!a.changed.some(e=>e.path===n)||t().fileView?.path===n&&i!==`old`){await t().openFullFile(n,r);return}t().fileView&&(le(),e({fileView:null,selection:null,visualAnchor:null,draft:null,focusedThread:null})),t().jumpTo(n,r,i),e({activePath:n})}},async loadPatch(e){let r=t().snapshot;!r||t().loaded[e]?.kind!==`oversized`||await F(r,[e],n)},async openFullFile(r,a,o=!1){let s=t().snapshot;if(!s)return;let c=t().fileView,l=o||c?.path===r&&c.external;if(!l&&!s.tree.includes(r)){t().flash(`${r} no longer exists on this side`);return}let u=n;if(c?.path!==r&&(le(),await ae(r,l,u),!i(u)||t().fileView?.path!==r))return;let d=t().fileView?.item;d?.kind===`error`&&t().flash(`Cannot open ${r}: ${d.message}`),t().jumpTo(r,a),e({activePath:r})},closeFullFile(){let n=t().fileView;if(!n)return;le();let{position:r,activePath:i}=n.from,a=t().jumps,o=r?a.findLastIndex(e=>e.path===r.path&&e.line===r.line&&e.side===r.side&&!e.full):-1;e({fileView:null,selection:null,visualAnchor:null,draft:null,focusedThread:null,activePath:i,...o>=0?{jumpIndex:o}:{}}),r?fe(r):i&&e(e=>({scrollTarget:{id:PM(e,i),align:`start`,nonce:(e.scrollTarget?.nonce??0)+1}}))},setSelection(n){e({selection:n,visualAnchor:null,focusedThread:null}),n==null&&t().draft&&e({draft:null})},async openDraft(n){if(t().fileView?.external)return t().flash(`Comments go on repository files only`);let r=NM(n.id);e({draft:{path:r,selection:n},selection:n,activePath:r,replyTo:null})},closeDraft(){e({draft:null,selection:null})},async draftQuote(){let e=t().draft;if(!e)return``;let n=t().loaded[e.path],r=mN(e.selection,n?.kind===`diff`?n.fileDiff:void 0),i=await M(e.path,r.side);return yN(e.path,r,i).quoted},async submitDraft(n){let r=t().draft;if(!r||!n.trim())return;try{let e=t().loaded[r.path],i=mN(r.selection,e?.kind===`diff`?e.fileDiff:void 0),a=await M(r.path,i.side),o=yN(r.path,i,a);await Vk.addThread({...o,body:n})}catch(e){return j(`Posting the comment`,e)}let i=r.selection.range;e({draft:null,visualAnchor:null,selection:{id:r.selection.id,range:{start:i.end,side:i.endSide??i.side,end:i.end,endSide:i.endSide??i.side}}}),await t().refreshThreads()},async submitReply(n,r){if(r.trim()){try{await Vk.reply(n,{body:r})}catch(e){return j(`Posting the reply`,e)}t().replyTo===n&&e({replyTo:null}),await t().refreshThreads()}},editMessage:(e,t,n)=>Oe(`Editing the message`,()=>Vk.editMessage(e,t,n)),deleteMessage:(e,t)=>Oe(`Deleting the message`,()=>Vk.deleteMessage(e,t)),setResolved:(e,t)=>Oe(t?`Resolving`:`Reopening`,()=>Vk.setResolved(e,t)),deleteThread:e=>Oe(`Deleting the thread`,()=>Vk.deleteThread(e)),clearThreads:()=>Oe(`Deleting all threads`,()=>Vk.clearThreads()),deleteStaleThreads:()=>Oe(`Deleting stale threads`,()=>Vk.deleteStaleThreads()),async exportToGithub(e){if(!t().snapshot)return null;let n;try{n=await Vk.exportToGithub({threadIds:e})}catch(e){return j(`Adding to the GitHub review`,e),null}let r=n.skipped.filter(e=>e.reason!==`already in the review`);if(r.length){let e=n.posted+n.updated+n.skipped.length;t().flash(`Skipped ${r.length} of ${e} (${r.map(e=>e.reason).join(`, `)})`)}return n.posted>0?`added`:n.updated>0?`updated`:`unchanged`},async setViewed(n,r){let i=t().snapshot?.changed.find(e=>e.path===n);i&&(e(e=>({viewed:[...e.viewed.filter(e=>e.path!==n||e.blob!==i.blob),{path:n,blob:i.blob,viewed:r}],collapsed:{...e.collapsed,[n]:r}})),r&&me(n),await ke(`Marking viewed`,()=>Vk.setViewed(n,i.blob,r)))},async unviewAll(){let n=t().snapshot;if(!n)return;let r=n.changed.map(e=>({path:e.path,blob:e.blob,viewed:!1})),i={};for(let e of n.changed)i[e.path]=!1;e({viewed:r,collapsed:i}),await ke(`Marking all not viewed`,()=>Vk.setViewedBulk(r))},toggleCollapsed(n){let r=JM(t(),n);e(e=>({collapsed:{...e.collapsed,[n]:!r}})),r?t().loadPatch(n):me(n)},async saveConfig(t){let n=0;try{let r=await x(()=>(n=v.start(),Vk.saveConfig(t)));v.latest(n)&&e({config:r})}catch(e){v.latest(n)&&j(`Saving settings`,e)}},jumpTo(n,r,i){le(),r!=null&&ue(n);let a=PM(t(),n);if(r==null){let t=se(),n=t.findIndex(e=>e.id===a),r=t[n];r&&!r.collapsed&&r.rows.length&&e({selection:jN(t,{itemIndex:n,rowIndex:Math.max(0,r.rows.findIndex(e=>e.hunkStart))}),visualAnchor:null})}if(r!=null&&i!==`old`){let i=se().find(e=>e.id===a);if(i!=null&&t().loaded[n]?.kind===`diff`&&!i.rows.some(e=>e.side===`additions`&&e.line===r)){e(e=>({activePath:n,reveal:{id:a,path:n,line:r,nonce:(e.reveal?.nonce??0)+1}}));return}}e(e=>({scrollTarget:{id:a,line:r,side:i,align:r?`eye`:`start`,nonce:(e.scrollTarget?.nonce??0)+1},activePath:n}))},setActivePath(t){e({activePath:t})}}});function iP(e,t){return e.blob===t.blob&&e.status===t.status&&e.oldPath===t.oldPath&&e.additions===t.additions&&e.deletions===t.deletions}async function aP(e,t,n,r){let i=0,a=Array.from({length:Math.min(t,e.length)},async()=>{for(;i<e.length&&!n();)await r(e[i++])});await Promise.all(a)}function oP({path:e,className:t,nowrap:n=!1}){let r=e.lastIndexOf(`/`)+1,i=e.slice(0,r).split(`/`).filter(Boolean),a=e.slice(r);return(0,g.jsxs)(`span`,{className:mj(`font-mono break-normal wrap-anywhere`,n&&`min-w-0 truncate`,t),title:e,children:[i.length>0&&(0,g.jsx)(`span`,{className:`text-muted`,children:i.map((e,t)=>(0,g.jsxs)(p.Fragment,{children:[e,`/`,(0,g.jsx)(`wbr`,{})]},t))}),(0,g.jsx)(`span`,{className:`font-semibold text-foreground`,children:a})]})}var sP=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cP=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lP={};function uP(e,t){return((t||lP).jsx?cP:sP).test(e)}var dP=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
1598
|
+
`);return t.length&&t[t.length-1]===``&&t.pop(),t.map((e,t)=>({side:`additions`,line:t+1,hunkStart:t===0}))}function CN(e,t,n,r,i={},a=`unified`,o=null){if(o){if(!o.item)return[];let e=MM(!1,o.path,n[o.path]??0);return[{id:e,path:o.path,collapsed:!1,rows:TN(o.item,i[e],a)}]}let s=[];for(let o of LM(e)){let e=t[o],c=MM(!0,o,n[o]??0);s.push({id:c,path:o,collapsed:r(o),rows:e?TN(e,i[c],a):[]})}return s}var wN=new WeakMap;function TN(e,t,n){let r=e.kind===`diff`?e.fileDiff:e.kind===`file`?e.file:null;if(!r)return[];let i=wN.get(r);if(i&&i.revealed===t&&i.style===n)return i.rows;let a=e.kind===`diff`?bN(e.fileDiff,t,n):SN(e.file.contents);return wN.set(r,{revealed:t,style:n,rows:a}),a}function EN(e,t){if(!t)return null;let n=e.findIndex(e=>e.id===t.id);if(n===-1)return null;let r=t.range.endSide??t.range.side??`additions`,i=e[n].rows,a=i.findIndex(e=>e.line===t.range.end&&e.side===r);if(a===-1&&(a=i.findIndex(e=>e.line===t.range.end)),a===-1){let e=1/0;if(i.forEach((n,i)=>{let o=Math.abs(n.line-t.range.end)+(n.side===r?0:.5);o<e&&(e=o,a=i)}),a===-1)return null}return{itemIndex:n,rowIndex:a}}function DN(e,t,n){if(e.length===0)return null;if(!t)return ON(e,n===1?0:e.length-1,n);if(t.rowIndex===-1){let r=e[t.itemIndex];return r&&!r.collapsed&&r.rows.length>0?{itemIndex:t.itemIndex,rowIndex:n===1?0:r.rows.length-1}:ON(e,t.itemIndex+n,n)??t}let{itemIndex:r,rowIndex:i}=t;for(i+=n;i<0||i>=(e[r]?.rows.length??0);){if(r+=n,r<0||r>=e.length)return t;let a=e[r];if(a.collapsed)return{itemIndex:r,rowIndex:-1};a.rows.length!==0&&(i=n===1?0:a.rows.length-1)}return{itemIndex:r,rowIndex:i}}function ON(e,t,n){for(let r=t;r>=0&&r<e.length;r+=n){let t=e[r];if(t.collapsed)return{itemIndex:r,rowIndex:-1};if(t.rows.length>0)return{itemIndex:r,rowIndex:n===1?0:t.rows.length-1}}return null}function kN(e,t,n){if(e.length===0)return null;let r=t?t.itemIndex+n:n===1?0:e.length-1;return r<0||r>=e.length?t:{itemIndex:r,rowIndex:e[r].collapsed?-1:0}}function AN(e,t,n){let r=[];if(e.forEach((e,t)=>{e.collapsed||e.rows.forEach((e,n)=>e.hunkStart&&r.push({itemIndex:t,rowIndex:n}))}),r.length===0)return t;if(!t)return n===1?r[0]:r[r.length-1];let i=e=>e.itemIndex*1e7+e.rowIndex,a=i(t);return n===1?r.find(e=>i(e)>a)??t:[...r].reverse().find(e=>i(e)<a)??t}function jN(e,t,n){let r=e[t.itemIndex],i=r?.rows[t.rowIndex];if(!r||!i)return null;if(n&&n.itemIndex===t.itemIndex){let e=r.rows[n.rowIndex];if(e)return{id:r.id,range:{start:e.line,side:e.side,end:i.line,endSide:i.side}}}return{id:r.id,range:{start:i.line,side:i.side,end:i.line,endSide:i.side}}}function MN(e){let t=Tk(e);return t===`json`||t===`jsonc`||t===`yaml`||t===`toml`}var NN=null,PN=null,FN=null,IN=null,LN={get:()=>FN??NN,element:()=>FN?IN:PN,set(e,t=null){NN=e,PN=e?t:null},focus(e,t=null){FN=e,IN=e?t:null}},RN={python:`python`,javascript:`javascript`,javascriptreact:`javascript`,typescript:`typescript`,typescriptreact:`tsx`,rust:`rust`,go:`go`,c:`c`,cpp:`cpp`,ruby:`ruby`,java:`java`,lua:`lua`,zig:`zig`,swift:`swift`,php:`php`,shellscript:`bash`,ocaml:`ocaml`};function zN(e){let t=Tk(e);return t&&t in RN?RN[t]:null}var BN=null,VN=!1,HN=0,UN=new Map;function WN(){VN=!0,BN?.terminate(),BN=null;for(let e of UN.values())e(!1);UN.clear()}async function GN(e,t,n,r,i){let a=zN(e);if(!a||VN||typeof Worker>`u`)return!1;try{let o=await i();if(o.length>1e6||VN)return!1;BN||(BN=new Worker(new URL(``+new URL(`syntax.worker-Cc0dIGs8.js`,import.meta.url).href,``+import.meta.url),{type:`module`}),BN.onmessage=({data:e})=>{UN.get(e.id)?.(e.blocked),UN.delete(e.id)},BN.onerror=WN,BN.onmessageerror=WN);let s=++HN;return await new Promise(i=>{let c=setTimeout(WN,5e3);UN.set(s,e=>{clearTimeout(c),i(e)});try{BN.postMessage({id:s,key:`${t}:${e}`,grammar:a,contents:o,line:n,col:r})}catch{WN()}})}catch{return!1}}var KN={light:`github-light-high-contrast`,dark:`github-dark-high-contrast`},qN=`diffle:theme`;function JN(){try{let e=localStorage.getItem(qN);if(e===`light`||e===`dark`||e===`system`)return e}catch{}return`system`}function YN(e){try{localStorage.setItem(qN,e)}catch{}}function XN(e){let t=document.documentElement;e===`system`?(delete t.dataset.theme,t.style.colorScheme=`light dark`):(t.dataset.theme=e,t.style.colorScheme=e)}function ZN(e){return e===`system`?`light`:e===`light`?`dark`:`system`}var QN=`diffle:diffStyle`,$N=3500;function eP(){try{return localStorage.getItem(QN)===`unified`?`unified`:`split`}catch{return`split`}}var tP=`diffle:layout`,nP={treeWidth:null,panelWidth:null,treeVisible:!0,panelVisible:!0};function rP(){try{let e=localStorage.getItem(tP);return e?{...nP,...JSON.parse(e)}:nP}catch{return nP}}var Y=pN((e,t)=>{let n=0,r=0,i=e=>e===n,a=0,o=0,s=null,c=()=>{s&&=(clearTimeout(s.timer),s.wake(),null)},l=new AbortController,u=new Map,d=()=>(l.abort(),l=new AbortController,u.clear(),++n),f=0,p=()=>(f++,d()),m=()=>{let e=0;return{start:()=>++e,latest:t=>t===e}},h=m(),g=m(),_=m(),v=m(),y=()=>{let e=Promise.resolve();return t=>{let n=e.then(t);return e=n.catch(()=>{}),n}},b=y(),x=y(),S=0,C=!1,w=e=>e<=S||!C&&e<=(t().snapshot?.version??0),T=()=>{let e=g.start(),t=_.start();return Promise.all([Vk.threads(),Vk.viewed()]).then(([n,r])=>({threads:n,viewed:r,tt:e,tv:t}))},E=async(t,n,r)=>{i(n)&&(_.latest(r.tv)&&e({viewed:r.viewed}),g.latest(r.tt)&&De(r.threads),await ie(t,n))},D=(e,t)=>{let r=`${n}\0${t}\0${e}`,i=u.get(r);return i||(i=Vk.file(e,t,l.signal),u.set(r,i),i.catch(()=>u.delete(r))),i},O=e=>e?.name===`AbortError`,k=async(e,t)=>{for(;;)try{return await D(e,t)}catch(e){if(!O(e))throw e}},A=e=>e instanceof Error?e.message:String(e),j=(e,n)=>t().flash(`${e} failed: ${A(n)}`),M=async(r,a)=>{let o=t().contents[r]?.[a];if(o!=null)return o;let s=n,c=await k(r,a);return i(s)&&e(e=>({contents:{...e.contents,[r]:{...e.contents[r],[a]:c.contents}}})),c.contents},N=(e,t)=>{let n={...e.gens};for(let e of t)n[e]=(n[e]??0)+1;let r=r=>{let i=NM(r.id);return t.includes(i)?{...r,id:PM({snapshot:e.snapshot,gens:n,fileView:e.fileView},i)}:r};return{gens:n,selection:e.selection&&r(e.selection),draft:e.draft&&{...e.draft,selection:r(e.draft.selection)},scrollTarget:e.scrollTarget&&r(e.scrollTarget),reveal:e.reveal&&r(e.reveal)}},P=async(n,r,a)=>{let o=new Map(n.changed.map(e=>[e.path,e])),s=r.filter(e=>o.has(e));if(s.length===0)return;let c={},l=[],u=t().loaded;for(let e of s){let t=o.get(e);t.binary?c[e]={kind:`binary`}:FM(t)>1e4&&u[e]?.kind!==`diff`?c[e]={kind:`oversized`,lines:FM(t)}:l.push(t)}Object.keys(c).length>0&&e(e=>({loaded:{...e.loaded,...c},...N(e,Object.keys(c))}));let d=t();await aP(IM(n,l,[d.fileView?.path,d.activePath,d.selection&&NM(d.selection.id)].filter(e=>e!=null),e=>JM(d,e)),2,()=>!i(a),e=>F(n,e,a))},F=async(t,n,r)=>{let a=new Map(t.changed.map(e=>[e.path,e])),o={},s=new Map;try{let e=Am(n.length===1?await Vk.patch(n[0]):await Vk.patches(n),`s${t.version}c${t.context}t${Date.now()}`);for(let t of e)for(let e of t.files)s.set(e.name,e);for(let e of n){let t=s.get(e);o[e]=t?{kind:`diff`,fileDiff:t}:{kind:`error`,message:`patch missing for file`}}}catch(e){for(let t of n)o[t]={kind:`error`,message:String(e)}}i(r)&&(e(e=>({loaded:{...e.loaded,...o},...N(e,Object.keys(o))})),ee(n.filter(e=>!a.get(e).submodule),s,o,r))},I=[],L=0,ee=(e,t,n,r)=>{for(let i of e){let e=t.get(i);e?.isPartial&&(e.type===`change`||e.type===`rename-changed`||e.type===`rename-pure`)&&I.push({path:i,file:e,replaces:n[i],g:r})}for(;L<4&&L<I.length;)L++,te()},te=async()=>{try{for(;;){let e=I.shift();if(!e)return;!i(e.g)||t().loaded[e.path]!==e.replaces||await ne(e)}}finally{L--}},ne=async({path:e,file:n,replaces:r,g:a})=>{let o=()=>!i(a)||t().loaded[e]!==r;try{let t=n.prevName??n.name,[i,s]=await Promise.all([D(t,`old`),D(n.name,`new`)]);if(o())return;let c=z_(`clone`,n,{oldFile:{name:t,contents:i.contents},newFile:{name:n.name,contents:s.contents}});B({path:e,fileDiff:c,old:i.contents,new:s.contents,replaces:r,g:a})}catch{}},R=[],z=null,B=e=>{R.push(e),!z&&(z=re,typeof requestAnimationFrame==`function`?requestAnimationFrame(re):setTimeout(re,0))},re=()=>{z=null;let n=R;R=[];let r=n.filter(e=>i(e.g)&&t().loaded[e.path]===e.replaces);r.length!==0&&e(e=>{let t={...e.loaded},n={...e.contents};for(let e of r)t[e.path]={kind:`diff`,fileDiff:e.fileDiff},n[e.path]={...n[e.path],old:e.old,new:e.new};return{loaded:t,contents:n,...N(e,r.map(e=>e.path))}})},ie=async(n,r)=>{let i=t().snapshot,a=i==null||i.mode.commentKey!==n.mode.commentKey,o=i!=null&&i.context!==n.context,s=i!=null&&(i.oldSha===`worktree`||i.oldSha!==n.oldSha),c=s||i!=null&&i.newSha!==n.newSha,l=new Map(i?.changed.map(e=>[e.path,e])??[]),u=new Map(n.changed.map(e=>[e.path,e])),d=a?{}:{...t().loaded},f=a||c?{}:{...t().contents},p=[];for(let e of n.changed){let t=l.get(e.path);if(a||o||s||!t||!iP(t,e)||d[e.path]==null){let t=d[e.path];t&&(d[e.path]={...t}),delete f[e.path],p.push(e.path)}}for(let e of l.keys())u.has(e)||(delete d[e],delete f[e]);let m=t().fileView,h=a||m==null||!m.external&&!n.tree.includes(m.path)?null:m,g=m!=null&&!m.external&&(c||l.has(m.path)!==u.has(m.path)||p.includes(m.path));h&&g&&delete f[h.path];let _={};if(!a)for(let[e,n]of Object.entries(t().collapsed))l.get(e)?.blob===u.get(e)?.blob&&(_[e]=n);let v=t().draft,y=v!=null&&!a&&(u.has(v.path)||h?.path===v.path);C=!1,e({snapshot:n,loaded:d,contents:f,fileView:h,collapsed:_,error:null,draft:y?v:null}),t().refreshGithub(),a&&e(e=>({selection:null,visualAnchor:null,replyTo:null,editingId:null,jumps:[],jumpIndex:0,revealed:{},reveal:null,scrollTarget:null,search:{...e.search,open:!1,kind:`text`,direction:1,matches:[],index:-1}})),await Promise.all([P(n,p,r),...h&&(g||!h.item)?[ae(h.path,h.external,r,!0)]:[]])},ae=async(n,r,a,o=!1)=>{let s=t().fileView?.from??{position:ce(),activePath:t().activePath};o||e({fileView:{path:n,external:r,item:null,from:s},selection:null,visualAnchor:null,draft:null,focusedThread:null});let c,l;try{let e=await D(n,`new`);l=e.contents,c=e.binary?{kind:`binary`}:{kind:`file`,file:{name:n,contents:e.contents,cacheKey:`${n}@full@${Date.now()}`}}}catch(e){c={kind:`error`,message:String(e)}}!i(a)||t().fileView?.path!==n||e(e=>({fileView:{path:n,external:r,item:c,from:e.fileView?.from??s},...N(e,[n]),contents:l==null?e.contents:{...e.contents,[n]:{...e.contents[n],new:l}}}))},oe=null,se=()=>{let e=t();if(!e.snapshot)return[];let n=[e.snapshot,e.loaded,e.gens,e.revealed,e.collapsed,e.viewed,e.config,e.diffStyle,e.fileView];if(oe&&oe.inputs.every((e,t)=>e===n[t]))return oe.items;let r=CN(e.snapshot,e.loaded,e.gens,t=>JM(e,t),e.revealed,e.diffStyle,e.fileView);return oe={inputs:n,items:r},r},ce=()=>{let e=t().selection;if(!e)return null;let n=NM(e.id),r=t().fileView;return r?.path===n?{path:n,side:gN(e),line:e.range.end,full:!0,...r.external?{external:!0}:{}}:{path:n,side:gN(e),line:e.range.end}},le=()=>{if(V)return;let n=ce();if(!n)return;let{jumps:r,jumpIndex:i}=t(),a=r.slice(0,i),o=a[a.length-1];if(o&&o.path===n.path&&o.line===n.line&&o.side===n.side&&!!o.full==!!n.full){e({jumps:a,jumpIndex:a.length});return}let s=[...a,n].slice(-100);e({jumps:s,jumpIndex:s.length})},ue=n=>{JM(t(),n)&&e(e=>({collapsed:{...e.collapsed,[n]:!1}}))},V=!1,de=e=>{V=!0;let t=()=>{V=!1},n;try{n=e()}catch(e){throw t(),e}return n instanceof Promise?n.finally(t):(t(),n)},fe=async r=>{if(r.full&&t().fileView?.path!==r.path){let e=n;if(await ae(r.path,r.external??!1,e),!i(e)||t().fileView?.path!==r.path)return}else!r.full&&t().fileView&&e({fileView:null,selection:null,visualAnchor:null,draft:null,focusedThread:null});V=!0;try{pe(r)}finally{V=!1}},pe=t=>{t.full||ue(t.path);let n=se(),r=n.findIndex(e=>e.path===t.path);if(r===-1)return;let i=n[r],a=t.side===`old`?`deletions`:`additions`,o=i.rows.findIndex(e=>e.line===t.line&&e.side===a);if(o!==-1){ge({itemIndex:r,rowIndex:o},!1,`eye`);return}e(e=>({selection:{id:i.id,range:{start:t.line,side:a,end:t.line,endSide:a}},activePath:t.path,scrollTarget:{id:i.id,line:t.line,side:t.side,align:`eye`,nonce:(e.scrollTarget?.nonce??0)+1}}))},me=t=>{let n=se(),r=n.findIndex(e=>e.path===t);if(r===-1)return;let i=n[r],a=null;for(let e=r+1;e<n.length;e++){let t=n[e];if(t.collapsed||t.rows.length===0)continue;let r=t.rows.findIndex(e=>e.hunkStart);a={itemIndex:e,rowIndex:r===-1?0:r};break}let o=a?jN(n,a):null;e(e=>({selection:o,visualAnchor:null,draft:null,activePath:a?n[a.itemIndex].path:t,scrollTarget:{id:i.id,align:`start`,nonce:(e.scrollTarget?.nonce??0)+1}}))},he=(e,t)=>{let n=e.selection;return{id:n.id,line:n.range.end,side:gN(n),align:t,nonce:(e.scrollTarget?.nonce??0)+1}},ge=(n,r=!1,i=`nearest`)=>{if(!n)return;i===`eye`&&le();let a=se(),o=jN(a,n,r?t().visualAnchor:null),s=a[n.itemIndex];if(!o||!s)return;let c=s.rows[n.rowIndex];e(e=>({selection:o,activePath:s.path,visualAnchor:r?e.visualAnchor:null,focusedThread:null,scrollTarget:{id:s.id,line:c.line,side:c.side===`deletions`?`old`:`new`,align:i,nonce:(e.scrollTarget?.nonce??0)+1}}))},_e=async(n,r,i=!1)=>{le(),await de(()=>i?t().openFullFile(n,void 0,!0):t().openFile(n)),ue(n);let a=se(),o=a.findIndex(e=>e.path===n);if(o===-1)return;let s=a[o],c=s.rows.findIndex(e=>e.side===`additions`&&e.line===r);if(c!==-1){de(()=>ge({itemIndex:o,rowIndex:c},!1,`eye`));return}e(e=>({selection:{id:s.id,range:{start:r,side:`additions`,end:r,endSide:`additions`}},activePath:n,visualAnchor:null,reveal:{id:s.id,path:n,line:r,nonce:(e.reveal?.nonce??0)+1}}))},ve=e=>{let{lsp:n,snapshot:r}=t();return n.enabled?!r||!Ck(r)?`Symbol navigation needs the new side to be the worktree or the checked-out commit`:Ek(n,e):Ek(n)},ye=e=>ve(e.path)??(e.side===`old`?`Symbol navigation works on the new side only`:t().fileView?.external?`Symbol navigation starts from a repository file`:null),be=e=>{let n=e?ye(e):ve()??`Hover a symbol first`;return n?(t().flash(n),null):{path:e.path,line:e.line,col:e.col}},xe=(t,n)=>i(t)&&h.latest(n)?!0:(h.latest(n)&&e(e=>({search:{...e.search,loading:!1}})),!1),Se=async(r,a)=>{if(t().closeSymbolMenu(),r&&MN(r.path))return t().flash(`Configuration files support schema hover (gh)`);let o=be(r);if(!o)return;let s=n;try{let n=await(a===`definition`?Vk.lspDefinition(o):Vk.lspTypeDefinition(o));if(!i(s))return;let c=n.locations[0];if(!c)return t().flash(`No ${a} found for ${r.text}`);if(a===`type definition`&&n.locations.length>1){e({references:{open:!0,kind:`types`,symbol:r.text,items:n.locations,index:0}});return}await _e(c.path,c.line,c.external)}catch(e){i(s)&&j(a===`definition`?`Go to definition`:`Go to type definition`,e)}},Ce=()=>EN(se(),t().selection),we=()=>{let e=Ce();if(e)return e;let n=se().findIndex(e=>e.path===t().activePath);return n===-1?null:{itemIndex:n,rowIndex:-1}},Te=(t,n=!1,r=`nearest`)=>{if(!t)return;if(t.rowIndex!==-1)return ge(t,n,r);let i=se()[t.itemIndex];i&&e(e=>({selection:null,activePath:i.path,visualAnchor:null,focusedThread:null,scrollTarget:{id:i.id,align:r,nonce:(e.scrollTarget?.nonce??0)+1}}))},Ee=()=>{let e=t(),n=e.selection;if(!n)return;let r=NM(n.id),i=gN(n),a=n.range.end;return YM(e).find(e=>e.anchor.path===r&&e.anchor.side===i&&a>=e.anchor.startLine&&a<=e.anchor.endLine)},De=n=>e({threads:ZM(t().threads,n)}),Oe=async(e,n)=>{try{await n()}catch(t){return j(e,t)}await t().refreshThreads()},ke=async(n,r)=>{let i=f,a=0;try{let t=await b(()=>(a=_.start(),r()));f===i&&_.latest(a)&&e({viewed:t})}catch(e){if(f!==i)return;j(n,e),t().refreshViewed()}},Ae=null;return{layout:rP(),setLayout(n){let r={...t().layout,...n};try{localStorage.setItem(tP,JSON.stringify(r))}catch{}e({layout:r})},theme:JN(),setTheme(t){YN(t),XN(t),e(e=>({theme:t,...e.selection?{scrollTarget:he(e,`eye`)}:{}}))},visualAnchor:null,editingId:null,setEditingId(t){e({editingId:t})},replyTo:null,focusedThread:null,focusThread(t){e({focusedThread:t})},openReply(n){let r=t().threads.find(e=>e.id===n);r&&e({replyTo:n,draft:null,activePath:r.anchor.path})},closeReply(){t().replyTo&&e({replyTo:null})},githubMenuOpen:!1,github:{status:`idle`},setGithubMenuOpen(n){e({githubMenuOpen:n,...n?{modeMenuOpen:!1}:{}}),n&&t().refreshGithub()},async refreshGithub(){let i=t().snapshot;if(!i)return;let a=n,o=++r,s=()=>a===n&&t().snapshot===i&&r===o;e({github:{status:`loading`}});try{let t=await Vk.github();s()&&e({github:t.version===i.version?{status:`ready`,data:t}:{status:`idle`}})}catch(t){s()&&e({github:{status:`error`,error:A(t)}})}},modeMenuOpen:!1,modePane:null,setModeMenuOpen(t){e({modeMenuOpen:t,modePane:null,...t?{githubMenuOpen:!1}:{}})},pickModeEntry(n){n===1?(e({modeMenuOpen:!1,modePane:null}),t().switchMode({kind:`working`})):n>=2&&n<=4&&e({modeMenuOpen:!0,modePane:n===2?`refs`:n===3?`commits`:`pr`})},helpOpen:!1,setHelpOpen(t){e({helpOpen:t})},treeModel:null,setTreeModel(t){e({treeModel:t})},toast:null,report:j,flash(t){e({toast:t}),Ae&&clearTimeout(Ae),Ae=setTimeout(()=>e({toast:null}),$N)},search:{open:!1,kind:`text`,direction:1,ignoreCase:!0,regex:!1,scope:`diff`,path:null,focusNonce:0,query:``,matches:[],index:-1,loading:!1,truncated:!1},openSearch(t){e(e=>({search:{...e.search,open:!0,kind:`text`,direction:1,scope:t??e.search.scope,focusNonce:e.search.focusNonce+1}}))},setSearchOptions(n){e(e=>({search:{...e.search,...n}}));let{query:r,kind:i}=t().search;i===`text`&&r&&t().runSearch(r)},closeSearch(){h.start(),e(e=>({search:{...e.search,open:!1,kind:`text`,direction:1,matches:[],index:-1,loading:!1}}))},async runSearch(r){let i=n,a=h.start(),o=t().search.scope===`file`?RM(t()):null;e(e=>({search:{...e.search,kind:`text`,direction:1,query:r,path:o,loading:!0}}));try{let{ignoreCase:n,regex:s,scope:c}=t().search;if(c===`file`&&!o)return e(e=>({search:{...e.search,matches:[],index:-1,loading:!1}})),t().flash(`No file to search in`);let l=await Vk.search(r,{ignoreCase:n,regex:s,scope:c,...o?{path:o}:{}});if(!xe(i,a))return;e(e=>({search:{...e.search,matches:l.matches,truncated:l.truncated,index:-1,loading:!1}})),l.matches.length?t().moveMatch(1):t().flash(c===`file`?`No matches for “${r}” in ${o}`:c===`diff`?`No matches for “${r}” in the diff`:`No matches for “${r}”`)}catch(t){if(!xe(i,a))return;e(e=>({search:{...e.search,loading:!1}})),j(`Search`,t)}},moveMatch(n){let{search:r}=t(),i=r.matches.length;if(!i)return;let a=n*r.direction,o=((r.index<0?a===1?-1:0:r.index)+a+i)%i,s=r.matches[o];e({search:{...r,index:o}}),_e(s.path,s.line,s.external)},async searchWord(r){let i=LN.get()?.text;if(!i)return t().flash(`Focus a word first (w / b, or hover one)`);let a=n,o=h.start();e(e=>({search:{...e.search,open:!0,kind:`word`,direction:r,query:i,matches:[],index:-1,loading:!0,truncated:!1}}));try{let n=await Vk.search(i,{word:!0,scope:`repo`});if(!xe(a,o))return;let s=n.matches,c=new Map(t().snapshot?.tree.map((e,t)=>[e,t])??[]),l=ce(),u=e=>c.get(e)??1/0,d=e=>l?u(e.path)-u(l.path)||e.line-l.line:r,f=r===1?s.findIndex(e=>d(e)>0):s.findLastIndex(e=>d(e)<0);f===-1&&s.length&&(f=r===1?0:s.length-1),e(e=>({search:{...e.search,matches:s,truncated:n.truncated,index:f,loading:!1}}));let p=s[f];p?_e(p.path,p.line):t().flash(`No other occurrence of “${i}”`)}catch(t){if(!xe(a,o))return;e(e=>({search:{...e.search,loading:!1}})),j(`Search`,t)}},lsp:{enabled:!1,servers:[],missing:[]},setLspStatus(t){e({lsp:t})},symbolMenu:null,async openSymbolMenu(r,o,s){if(MN(r.path)){t().closeSymbolMenu();return}if(!t().lsp.enabled)return;t().closeHover();let c=++a,l=n,u=await GN(r.path,r.side,r.line,r.col,()=>M(r.path,r.side));if(!(!i(l)||c!==a)){if(u){e({symbolMenu:null});return}if(!ye(r)){let e=n,t=null;try{t=(await Vk.lspTokenKind({path:r.path,line:r.line,col:r.col}))?.kind??null}catch{}if(!i(e)||c!==a||t===`keyword`)return}e({symbolMenu:{target:r,x:o,y:s}})}},closeSymbolMenu(){a++,t().symbolMenu&&e({symbolMenu:null})},hover:null,async requestHover(r,a){let s=++o;if(t().symbolMenu||ye(r))return;let c=n;try{let n=await GN(r.path,r.side,r.line,r.col,()=>M(r.path,r.side));if(!i(c)||s!==o||t().symbolMenu)return;if(n){e({hover:null});return}let l=await Vk.lspHover({path:r.path,line:r.line,col:r.col});if(!i(c)||s!==o||t().symbolMenu)return;e({hover:l.contents?{target:r,contents:l.contents,anchor:a}:null})}catch{}},async showHover(){let e=t().symbolMenu?.target??LN.get();if(!be(e))return;t().closeSymbolMenu();let n=LN.element()?.getBoundingClientRect(),r=n?{left:n.left,top:n.top,bottom:n.bottom}:{left:0,top:0,bottom:0};await new Promise(e=>setTimeout(e,0));let i=o+1;await t().requestHover(e,r),i===o&&!t().hover&&t().flash(`No hover information for ${e.text}`)},closeHover(){o++,t().hover&&e({hover:null})},async goToDefinition(e=t().symbolMenu?.target??LN.get()){await Se(e,`definition`)},async goToTypeDefinition(e=t().symbolMenu?.target??LN.get()){await Se(e,`type definition`)},async goToLink(e,n){t().closeHover(),t().closeSymbolMenu(),n==null?await t().openFile(e):await _e(e,n)},async findReferences(r=t().symbolMenu?.target??LN.get()){if(t().closeSymbolMenu(),r&&MN(r.path))return t().flash(`Configuration files support schema hover (gh)`);let a=be(r);if(!a)return;let o=n;try{let n=await Vk.lspReferences(a);if(!i(o))return;let s=n.locations;if(s.length===0)return t().flash(`No references to ${r.text}`);let c=s.findIndex(e=>e.path===a.path&&e.line===a.line),l=c===-1?0:(c+1)%s.length;e({references:{open:!0,kind:`references`,symbol:r.text,items:s,index:l}})}catch(e){i(o)&&j(`Find references`,e)}},references:{open:!1,kind:`references`,symbol:``,items:[],index:-1},moveReference(n){let r=t().references,i=r.items.length;i&&e({references:{...r,index:(Math.max(r.index,0)+n+i)%i}})},pickReference(){let n=t().references,r=n.items[n.index];t().closeReferences(),r&&(n.kind===`references`&&e(e=>({search:{...e.search,open:!0,kind:`references`,direction:1,query:n.symbol,matches:n.items,index:n.index,loading:!1,truncated:!1}})),_e(r.path,r.line,r.external))},closeReferences(){e(e=>({references:{...e.references,open:!1}}))},symbols:{open:!1,scope:`document`,path:null,query:``,all:[],items:[],index:-1,loading:!1},async openSymbols(r){let a=r===`document`?t().activePath:null;if(r===`document`&&!a)return t().flash(`Move to a file first`);let o=a?ye({path:a,side:`new`}):ve();if(o)return t().flash(o);if(e({symbols:{open:!0,scope:r,path:r===`document`?a:null,query:``,all:[],items:[],index:-1,loading:r===`document`}}),r!==`document`)return;let s=n;try{let n=await Vk.lspSymbols({path:a}),r=t().symbols;if(!r.open||r.scope!==`document`||r.path!==a)return;if(!i(s))return e({symbols:{...r,loading:!1}});e({symbols:{...r,all:n,items:nN(n,r.query),index:n.length?0:-1,loading:!1}})}catch(e){t().closeSymbols(),j(`Document symbols`,e)}},async querySymbols(r){let a=t().symbols;if(!a.open)return;if(a.scope===`document`){let t=nN(a.all,r);return e({symbols:{...a,query:r,items:t,index:t.length?0:-1}})}if(e({symbols:{...a,query:r,loading:r.trim().length>0}}),c(),!r.trim())return e(e=>({symbols:{...e.symbols,items:[],index:-1}}));if(await new Promise(e=>{s={timer:setTimeout(()=>{s=null,e()},150),wake:e}}),t().symbols.query!==r||!t().symbols.open)return;let o=n;try{let n=await Vk.lspSymbols({q:r}),a=t().symbols;if(!a.open||a.query!==r)return;if(!i(o))return e({symbols:{...a,loading:!1}});e({symbols:{...a,items:n,index:n.length?0:-1,loading:!1}})}catch(t){e(e=>({symbols:{...e.symbols,loading:!1}})),j(`Workspace symbols`,t)}},moveSymbol(n){let r=t().symbols,i=r.items.length;i&&e({symbols:{...r,index:(Math.max(r.index,0)+n+i)%i}})},pickSymbol(){let e=t().symbols,n=e.items[e.index];t().closeSymbols(),n&&_e(n.path,n.line)},closeSymbols(){e(e=>({symbols:{...e.symbols,open:!1,items:[],all:[],index:-1,loading:!1}}))},moveCursor(e){let n=se();Te(DN(n,we(),e),t().visualAnchor!=null)},jumps:[],jumpIndex:0,jumpBack(){if(t().fileView)return t().closeFullFile();let{jumps:n,jumpIndex:r}=t();if(r===0)return;let i=n,a=r;if(a===i.length){let e=ce();e&&(i=[...i,e])}--a,e({jumps:i,jumpIndex:a});let o=i[a];o&&fe(o)},jumpForward(){let{jumps:n,jumpIndex:r}=t();if(r>=n.length-1)return;let i=r+1;e({jumpIndex:i});let a=n[i];a&&fe(a)},scrollCursorTo(n){if(!t().selection)return t().flash(`No line under the cursor`);e(e=>({scrollTarget:he(e,n)}))},moveCursorBy(e){let n=se(),r=e<0?-1:1,i=we();for(let t=0;t<Math.abs(e);t++){let e=DN(n,i,r);if(!e||i&&e.itemIndex===i.itemIndex&&e.rowIndex===i.rowIndex)break;i=e}Te(i,t().visualAnchor!=null,`eye`)},async goToLine(e){let n=t(),r=RM(n);if(!r)return n.flash(`No file to jump in`);await _e(r,e)},moveFile(n){let r=se();if(!r.length)return;let i=r.findIndex(e=>e.path===t().activePath),a=we()??(i===-1?null:{itemIndex:i,rowIndex:0}),o=n===`first`?kN(r,null,1):n===`last`?kN(r,null,-1):kN(r,a,n);if(!o)return;let s=r[o.itemIndex];if(le(),s.collapsed||s.rows.length===0){e(e=>({selection:null,activePath:s.path,scrollTarget:{id:s.id,nonce:(e.scrollTarget?.nonce??0)+1}}));return}ge(o),e(e=>({scrollTarget:{id:s.id,align:`start`,nonce:(e.scrollTarget?.nonce??0)+1}}))},moveHunk(e){ge(AN(se(),Ce(),e),!1,`eye`)},toggleVisual(){let n=Ce();if(t().visualAnchor){e({visualAnchor:null}),n&&ge(n);return}if(!n){let t=DN(se(),null,1);t&&ge(t),e({visualAnchor:Ce()});return}e({visualAnchor:n})},editCommentAtCursor(){let e=Ee(),n=e?.messages[e.messages.length-1];n&&t().setEditingId(n.id)},async deleteCommentAtCursor(){let e=Ee();e&&await t().deleteThread(e.id)},async toggleResolvedAtCursor(){let e=Ee();if(!e)return t().flash(`No thread under the cursor`);await t().setResolved(e.id,!e.resolved),t().flash(e.resolved?`Thread reopened`:`Thread resolved`)},async toggleViewedAtCursor(){let e=t().activePath,n=e?t().snapshot?.changed.find(t=>t.path===e):void 0;!e||!n||await t().setViewed(e,!KM(t(),n))},setCollapsedAtCursor(n){let r=t().activePath;r&&(e(e=>({collapsed:{...e.collapsed,[r]:n}})),n?me(r):t().loadPatch(r))},setAllCollapsed(n){let r=t().snapshot?.changed.map(e=>e.path)??[],i={};for(let e of r)i[e]=n;e({collapsed:i})},escape(){let n=t();n.helpOpen?e({helpOpen:!1}):n.modeMenuOpen?e({modeMenuOpen:!1}):n.githubMenuOpen?e({githubMenuOpen:!1}):n.hover?n.closeHover():n.symbolMenu?n.closeSymbolMenu():n.references.open?n.closeReferences():n.symbols.open?n.closeSymbols():n.search.open?n.closeSearch():n.editingId?n.setEditingId(null):n.replyTo?n.closeReply():n.draft?n.closeDraft():n.visualAnchor?e({visualAnchor:null}):e({selection:null})},diffStyle:eP(),setDiffStyle(t){try{localStorage.setItem(QN,t)}catch{}e(e=>({diffStyle:t,draft:null,visualAnchor:null,...e.selection?{scrollTarget:he(e,`eye`)}:{}}))},snapshot:null,error:null,threads:[],showResolved:!1,setShowResolved(t){e({showResolved:t})},viewed:[],config:fk,fileView:null,loaded:{},gens:{},contents:{},collapsed:{},selection:null,draft:null,activePath:null,scrollTarget:null,reveal:null,revealed:{},addRevealed(t,n,r){e(e=>{let i=NM(t),a=Object.fromEntries(Object.entries(e.revealed).filter(([e])=>e===t||NM(e)!==i));return{revealed:{...a,[t]:[...a[t]??[],[n,r]]}}})},async boot(){let t=p();C=!0,S=0;try{let n=Vk.lspStatus().catch(()=>({enabled:!1,servers:[],missing:[]})),r=v.start(),[i,a,o,s]=await Promise.all([Vk.snapshot(),T(),Vk.config(),n]);e({lsp:s}),v.latest(r)&&e({config:o}),await E(i,t,a)}catch(n){i(t)&&e({error:A(n)})}},async refreshSnapshot(t){if(t!=null){if(w(t))return;S=t}let n=d();try{let[e,t]=await Promise.all([Vk.snapshot(),T()]);await E(e,n,t)}catch(t){i(n)&&e({error:A(t)})}finally{S===t&&(S=0)}},async refreshThreads(){let e=n,t=g.start();try{let n=await Vk.threads();i(e)&&g.latest(t)&&De(n)}catch(n){i(e)&&g.latest(t)&&j(`Loading threads`,n)}},async refreshViewed(){let t=n,r=_.start();try{let n=await Vk.viewed();i(t)&&_.latest(r)&&e({viewed:n})}catch(e){i(t)&&_.latest(r)&&j(`Loading viewed marks`,e)}},async refreshConfig(){let t=v.start();try{let n=await Vk.config();v.latest(t)&&e({config:n})}catch(e){v.latest(t)&&j(`Loading config`,e)}},async switchMode(n){let r=p();e({error:null});let a,o=!1;try{return a=await Vk.switchMode(n),i(r)?w(a.version)?`applied`:(S=a.version,o=!0,await E(a,r,await T()),i(r)?`applied`:`superseded`):`superseded`}catch(n){if(!i(r))return`superseded`;let a=A(n);return e({error:a}),t().refreshGithub(),{error:a}}finally{o&&a&&S===a.version&&(S=0)}},loadFile:k,async openFile(n,r,i){let a=t().snapshot;if(a){if(!a.changed.some(e=>e.path===n)||t().fileView?.path===n&&i!==`old`){await t().openFullFile(n,r);return}t().fileView&&(le(),e({fileView:null,selection:null,visualAnchor:null,draft:null,focusedThread:null})),t().jumpTo(n,r,i),e({activePath:n})}},async loadPatch(e){let r=t().snapshot;!r||t().loaded[e]?.kind!==`oversized`||await F(r,[e],n)},async openFullFile(r,a,o=!1){let s=t().snapshot;if(!s)return;let c=t().fileView,l=o||c?.path===r&&c.external;if(!l&&!s.tree.includes(r)){t().flash(`${r} no longer exists on this side`);return}let u=n;if(c?.path!==r&&(le(),await ae(r,l,u),!i(u)||t().fileView?.path!==r))return;let d=t().fileView?.item;d?.kind===`error`&&t().flash(`Cannot open ${r}: ${d.message}`),t().jumpTo(r,a),e({activePath:r})},closeFullFile(){let n=t().fileView;if(!n)return;le();let{position:r,activePath:i}=n.from,a=t().jumps,o=r?a.findLastIndex(e=>e.path===r.path&&e.line===r.line&&e.side===r.side&&!e.full):-1;e({fileView:null,selection:null,visualAnchor:null,draft:null,focusedThread:null,activePath:i,...o>=0?{jumpIndex:o}:{}}),r?fe(r):i&&e(e=>({scrollTarget:{id:PM(e,i),align:`start`,nonce:(e.scrollTarget?.nonce??0)+1}}))},setSelection(n){e({selection:n,visualAnchor:null,focusedThread:null}),n==null&&t().draft&&e({draft:null})},async openDraft(n){if(t().fileView?.external)return t().flash(`Comments go on repository files only`);let r=NM(n.id);e({draft:{path:r,selection:n},selection:n,activePath:r,replyTo:null})},closeDraft(){e({draft:null,selection:null})},async draftQuote(){let e=t().draft;if(!e)return``;let n=t().loaded[e.path],r=mN(e.selection,n?.kind===`diff`?n.fileDiff:void 0),i=await M(e.path,r.side);return yN(e.path,r,i).quoted},async submitDraft(n){let r=t().draft;if(!r||!n.trim())return;try{let e=t().loaded[r.path],i=mN(r.selection,e?.kind===`diff`?e.fileDiff:void 0),a=await M(r.path,i.side),o=yN(r.path,i,a);await Vk.addThread({...o,body:n})}catch(e){return j(`Posting the comment`,e)}let i=r.selection.range;e({draft:null,visualAnchor:null,selection:{id:r.selection.id,range:{start:i.end,side:i.endSide??i.side,end:i.end,endSide:i.endSide??i.side}}}),await t().refreshThreads()},async submitReply(n,r){if(r.trim()){try{await Vk.reply(n,{body:r})}catch(e){return j(`Posting the reply`,e)}t().replyTo===n&&e({replyTo:null}),await t().refreshThreads()}},editMessage:(e,t,n)=>Oe(`Editing the message`,()=>Vk.editMessage(e,t,n)),deleteMessage:(e,t)=>Oe(`Deleting the message`,()=>Vk.deleteMessage(e,t)),setResolved:(e,t)=>Oe(t?`Resolving`:`Reopening`,()=>Vk.setResolved(e,t)),deleteThread:e=>Oe(`Deleting the thread`,()=>Vk.deleteThread(e)),clearThreads:()=>Oe(`Deleting all threads`,()=>Vk.clearThreads()),deleteStaleThreads:()=>Oe(`Deleting stale threads`,()=>Vk.deleteStaleThreads()),async exportToGithub(e){if(!t().snapshot)return null;let n;try{n=await Vk.exportToGithub({threadIds:e})}catch(e){return j(`Adding to the GitHub review`,e),null}let r=n.skipped.filter(e=>e.reason!==`already in the review`);if(r.length){let e=n.posted+n.updated+n.skipped.length;t().flash(`Skipped ${r.length} of ${e} (${r.map(e=>e.reason).join(`, `)})`)}return n.posted>0?`added`:n.updated>0?`updated`:`unchanged`},async setViewed(n,r){let i=t().snapshot?.changed.find(e=>e.path===n);i&&(e(e=>({viewed:[...e.viewed.filter(e=>e.path!==n||e.blob!==i.blob),{path:n,blob:i.blob,viewed:r}],collapsed:{...e.collapsed,[n]:r}})),r&&me(n),await ke(`Marking viewed`,()=>Vk.setViewed(n,i.blob,r)))},async unviewAll(){let n=t().snapshot;if(!n)return;let r=n.changed.map(e=>({path:e.path,blob:e.blob,viewed:!1})),i={};for(let e of n.changed)i[e.path]=!1;e({viewed:r,collapsed:i}),await ke(`Marking all not viewed`,()=>Vk.setViewedBulk(r))},toggleCollapsed(n){let r=JM(t(),n);e(e=>({collapsed:{...e.collapsed,[n]:!r}})),r?t().loadPatch(n):me(n)},async saveConfig(t){let n=0;try{let r=await x(()=>(n=v.start(),Vk.saveConfig(t)));v.latest(n)&&e({config:r})}catch(e){v.latest(n)&&j(`Saving settings`,e)}},jumpTo(n,r,i){le(),r!=null&&ue(n);let a=PM(t(),n);if(r==null){let t=se(),n=t.findIndex(e=>e.id===a),r=t[n];r&&!r.collapsed&&r.rows.length&&e({selection:jN(t,{itemIndex:n,rowIndex:Math.max(0,r.rows.findIndex(e=>e.hunkStart))}),visualAnchor:null})}if(r!=null&&i!==`old`){let i=se().find(e=>e.id===a);if(i!=null&&t().loaded[n]?.kind===`diff`&&!i.rows.some(e=>e.side===`additions`&&e.line===r)){e(e=>({activePath:n,reveal:{id:a,path:n,line:r,nonce:(e.reveal?.nonce??0)+1}}));return}}e(e=>({scrollTarget:{id:a,line:r,side:i,align:r?`eye`:`start`,nonce:(e.scrollTarget?.nonce??0)+1},activePath:n}))},setActivePath(t){e({activePath:t})}}});function iP(e,t){return e.blob===t.blob&&e.status===t.status&&e.oldPath===t.oldPath&&e.additions===t.additions&&e.deletions===t.deletions}async function aP(e,t,n,r){let i=0,a=Array.from({length:Math.min(t,e.length)},async()=>{for(;i<e.length&&!n();)await r(e[i++])});await Promise.all(a)}function oP({path:e,className:t,nowrap:n=!1}){let r=e.lastIndexOf(`/`)+1,i=e.slice(0,r).split(`/`).filter(Boolean),a=e.slice(r);return(0,g.jsxs)(`span`,{className:mj(`font-mono break-normal wrap-anywhere`,n&&`min-w-0 truncate`,t),title:e,children:[i.length>0&&(0,g.jsx)(`span`,{className:`text-muted`,children:i.map((e,t)=>(0,g.jsxs)(p.Fragment,{children:[e,`/`,(0,g.jsx)(`wbr`,{})]},t))}),(0,g.jsx)(`span`,{className:`font-semibold text-foreground`,children:a})]})}var sP=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cP=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lP={};function uP(e,t){return((t||lP).jsx?cP:sP).test(e)}var dP=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
1599
1599
|
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),fP=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(dP());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),pP=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),mP=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(fP()),r=pP();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),hP=_P(`end`),gP=_P(`start`);function _P(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function vP(e){let t=gP(e),n=hP(e);if(t&&n)return{start:t,end:n}}function yP(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?xP(e.position):`start`in e||`end`in e?xP(e):`line`in e||`column`in e?bP(e):``}function bP(e){return SP(e&&e.line)+`:`+SP(e&&e.column)}function xP(e){return bP(e&&e.start)+`-`+bP(e&&e.end)}function SP(e){return e&&typeof e==`number`?e:1}var CP=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=yP(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};CP.prototype.file=``,CP.prototype.name=``,CP.prototype.reason=``,CP.prototype.message=``,CP.prototype.stack=``,CP.prototype.column=void 0,CP.prototype.line=void 0,CP.prototype.ancestors=void 0,CP.prototype.cause=void 0,CP.prototype.fatal=void 0,CP.prototype.place=void 0,CP.prototype.ruleId=void 0,CP.prototype.source=void 0;var wP=l(mP(),1),TP={}.hasOwnProperty,EP=new Map,DP=/[A-Z]/g,OP=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),kP=new Set([`td`,`th`]),AP=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function jP(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=HP(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=VP(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Ni:Mi,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=MP(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function MP(e,t,n){if(t.type===`element`)return NP(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return PP(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return IP(e,t,n);if(t.type===`mdxjsEsm`)return FP(e,t);if(t.type===`root`)return LP(e,t,n);if(t.type===`text`)return RP(e,t)}function NP(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Ni,e.schema=i),e.ancestors.push(t);let a=JP(e,t.tagName,!1),o=UP(e,t),s=GP(e,t);return OP.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!pa(e)})),zP(e,o,a,t),BP(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function PP(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}YP(e,t.position)}function FP(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);YP(e,t.position)}function IP(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Ni,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:JP(e,t.name,!0),o=WP(e,t),s=GP(e,t);return zP(e,o,a,t),BP(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function LP(e,t,n){let r={};return BP(r,GP(e,t)),e.create(t,e.Fragment,r,n)}function RP(e,t){return t.value}function zP(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function BP(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function VP(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function HP(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=gP(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function UP(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&TP.call(t.properties,i)){let a=KP(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&kP.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function WP(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else YP(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else YP(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function GP(e,t){let n=[],r=-1,i=e.passKeys?new Map:EP;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=MP(e,a,o);s!==void 0&&n.push(s)}return n}function KP(e,t,n){let r=ki(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ua(n):da(n)),r.property===`style`){let t=typeof n==`object`?n:qP(e,String(n));return e.stylePropertyNameCase===`css`&&(t=XP(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Ti[r.property]||r.property:r.attribute,n]}}function qP(e,t){try{return(0,wP.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new CP("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=AP+`#cannot-parse-style-attribute`,r}}function JP(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=uP(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=uP(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return TP.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);YP(e)}function YP(e,t){let n=new CP("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=AP+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function XP(e){let t={},n;for(n in e)TP.call(e,n)&&(t[ZP(n)]=e[n]);return t}function ZP(e){let t=e.replace(DP,QP);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function QP(e){return`-`+e.toLowerCase()}var $P={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},eF={};function tF(e,t){let n=t||eF;return nF(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function nF(e,t,n){if(iF(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return rF(e.children,t,n)}return Array.isArray(e)?rF(e,t,n):``}function rF(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=nF(e[i],t,n);return r.join(``)}function iF(e){return!!(e&&typeof e==`object`)}var aF=document.createElement(`i`);function oF(e){let t=`&`+e+`;`;aF.innerHTML=t;let n=aF.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function sF(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function cF(e,t){return e.length>0?(sF(e,e.length,0,t),e):t}var lF={}.hasOwnProperty;function uF(e){let t={},n=-1;for(;++n<e.length;)dF(t,e[n]);return t}function dF(e,t){let n;for(n in t){let r=(lF.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){lF.call(r,a)||(r[a]=[]);let e=i[a];fF(r[a],Array.isArray(e)?e:e?[e]:[])}}}function fF(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);sF(e,0,0,r)}function pF(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function mF(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var hF=DF(/[A-Za-z]/),gF=DF(/[\dA-Za-z]/),_F=DF(/[#-'*+\--9=?A-Z^-~]/);function vF(e){return e!==null&&(e<32||e===127)}var yF=DF(/\d/),bF=DF(/[\dA-Fa-f]/),xF=DF(/[!-/:-@[-`{-~]/);function SF(e){return e!==null&&e<-2}function CF(e){return e!==null&&(e<0||e===32)}function wF(e){return e===-2||e===-1||e===32}var TF=DF(/\p{P}|\p{S}/u),EF=DF(/\s/);function DF(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function OF(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&gF(e.charCodeAt(n+1))&&gF(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function kF(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return wF(r)?(e.enter(n),s(r)):t(r)}function s(r){return wF(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var AF={tokenize:jF};function jF(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),kF(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return SF(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var MF={tokenize:PF},NF={tokenize:FF};function PF(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return sF(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(NF,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(NF,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return SF(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;sF(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function FF(e,t,n){return kF(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function IF(e){if(e===null||CF(e)||EF(e))return 1;if(TF(e))return 2}function LF(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var RF={name:`attention`,resolveAll:zF,tokenize:BF};function zF(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};VF(d,-c),VF(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=cF(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=cF(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=cF(l,LF(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=cF(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=cF(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,sF(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function BF(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=IF(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=IF(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function VF(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var HF={name:`autolink`,tokenize:UF};function UF(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return hF(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||gF(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||gF(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||vF(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):_F(t)?(e.consume(t),l):n(t)}function u(e){return gF(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||gF(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var WF={partial:!0,tokenize:GF};function GF(e,t,n){return r;function r(t){return wF(t)?kF(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||SF(e)?t(e):n(e)}}var KF={continuation:{tokenize:JF},exit:YF,name:`blockQuote`,tokenize:qF};function qF(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return wF(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function JF(e,t,n){let r=this;return i;function i(t){return wF(t)?kF(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(KF,t,n)(r)}}function YF(e){e.exit(`blockQuote`)}var XF={name:`characterEscape`,tokenize:ZF};function ZF(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return xF(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var QF={name:`characterReference`,tokenize:$F};function $F(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=gF,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=bF,u):(e.enter(`characterReferenceValue`),a=7,o=yF,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===gF&&!oF(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var eI={partial:!0,tokenize:rI},tI={concrete:!0,name:`codeFenced`,tokenize:nI};function nI(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),wF(t)?kF(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||SF(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(eI,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||SF(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):wF(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),kF(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||SF(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||SF(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&wF(t)?kF(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||SF(t)?e.check(eI,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||SF(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),wF(t)?kF(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),wF(t)?kF(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||SF(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function rI(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var iI={name:`codeIndented`,tokenize:oI},aI={partial:!0,tokenize:sI};function oI(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),kF(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):SF(t)?e.attempt(aI,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||SF(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function sI(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):SF(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):kF(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):SF(e)?i(e):n(e)}}var cI={name:`codeText`,previous:uI,resolve:lI,tokenize:dI};function lI(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function uI(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function dI(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):SF(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||SF(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var fI=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&pI(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),pI(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),pI(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);pI(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);pI(this.left,t.reverse())}}}};function pI(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function mI(e){let t={},n=-1,r,i,a,o,s,c,l,u=new fI(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,hI(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return sF(e,0,1/0,u.slice(0)),!l}function hI(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var gI={resolve:vI,tokenize:yI},_I={partial:!0,tokenize:bI};function vI(e){return mI(e),e}function yI(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):SF(t)?e.check(_I,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function bI(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),kF(e,a,`linePrefix`)}function a(i){if(i===null||SF(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function xI(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||vF(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||SF(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||CF(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||vF(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function SI(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):SF(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||SF(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!wF(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function CI(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):SF(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),kF(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||SF(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function wI(e,t){let n;return r;function r(i){return SF(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):wF(i)?kF(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var TI={name:`definition`,tokenize:DI},EI={partial:!0,tokenize:OI};function DI(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return SI.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=mF(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return CF(t)?wI(e,l)(t):l(t)}function l(t){return xI(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(EI,d,d)(t)}function d(t){return wF(t)?kF(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||SF(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function OI(e,t,n){return r;function r(t){return CF(t)?wI(e,i)(t):n(t)}function i(t){return CI(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return wF(t)?kF(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||SF(e)?t(e):n(e)}}var kI={name:`hardBreakEscape`,tokenize:AI};function AI(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return SF(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var jI={name:`headingAtx`,resolve:MI,tokenize:NI};function MI(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},sF(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function NI(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||CF(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||SF(n)?(e.exit(`atxHeading`),t(n)):wF(n)?kF(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||CF(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var PI=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),FI=[`pre`,`script`,`style`,`textarea`],II={concrete:!0,name:`htmlFlow`,resolveTo:zI,tokenize:BI},LI={partial:!0,tokenize:HI},RI={partial:!0,tokenize:VI};function zI(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function BI(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):hF(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):hF(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return hF(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||CF(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&FI.includes(l)?(i=1,r.interrupt?t(s):O(s)):PI.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||gF(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return wF(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||hF(t)?(e.consume(t),b):wF(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||gF(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):wF(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):wF(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||SF(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||CF(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||wF(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||SF(t)?O(t):wF(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):SF(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(LI,ee,k)(t)):t===null||SF(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(RI,A,ee)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||SF(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return FI.includes(n)?(e.consume(t),L):O(t)}return hF(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||SF(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),L)}function ee(n){return e.exit(`htmlFlow`),t(n)}}function VI(e,t,n){let r=this;return i;function i(t){return SF(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function HI(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(WF,t,n)}}var UI={name:`htmlText`,tokenize:WI};function WI(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):hF(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):hF(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):SF(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):SF(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):SF(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):SF(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return hF(t)?(e.consume(t),S):n(t)}function S(t){return t===45||gF(t)?(e.consume(t),S):C(t)}function C(t){return SF(t)?(o=C,N(t)):wF(t)?(e.consume(t),C):M(t)}function w(t){return t===45||gF(t)?(e.consume(t),w):t===47||t===62||CF(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||hF(t)?(e.consume(t),E):SF(t)?(o=T,N(t)):wF(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||gF(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):SF(t)?(o=D,N(t)):wF(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):SF(t)?(o=O,N(t)):wF(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):SF(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||CF(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||CF(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return wF(t)?kF(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var GI={name:`labelEnd`,resolveAll:YI,resolveTo:XI,tokenize:ZI},KI={tokenize:QI},qI={tokenize:$I},JI={tokenize:eL};function YI(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&sF(e,0,e.length,n),e}function XI(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=cF(s,e.slice(a+1,a+r+3)),s=cF(s,[[`enter`,u,t]]),s=cF(s,LF(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=cF(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=cF(s,e.slice(o+1)),s=cF(s,[[`exit`,c,t]]),sF(e,a,e.length,s),e}function ZI(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(mF(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(KI,u,o?u:d)(t):t===91?e.attempt(qI,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(JI,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function QI(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return CF(t)?wI(e,a)(t):a(t)}function a(t){return t===41?u(t):xI(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return CF(t)?wI(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?CI(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return CF(t)?wI(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function $I(e,t,n){let r=this;return i;function i(t){return SI.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(mF(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function eL(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var tL={name:`labelStartImage`,resolveAll:GI.resolveAll,tokenize:nL};function nL(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var rL={name:`labelStartLink`,resolveAll:GI.resolveAll,tokenize:iL};function iL(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var aL={name:`lineEnding`,tokenize:oL};function oL(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),kF(e,t,`linePrefix`)}}var sL={name:`thematicBreak`,tokenize:cL};function cL(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||SF(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),wF(t)?kF(e,s,`whitespace`)(t):s(t))}}var lL={continuation:{tokenize:pL},exit:hL,name:`list`,tokenize:fL},uL={partial:!0,tokenize:gL},dL={partial:!0,tokenize:mL};function fL(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:yF(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(sL,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return yF(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(WF,r.interrupt?n:u,e.attempt(uL,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return wF(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function pL(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(WF,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,kF(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!wF(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(dL,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,kF(e,e.attempt(lL,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function mL(e,t,n){let r=this;return kF(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function hL(e){e.exit(this.containerState.type)}function gL(e,t,n){let r=this;return kF(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!wF(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var _L={name:`setextUnderline`,resolveTo:vL,tokenize:yL};function vL(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function yL(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),wF(t)?kF(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||SF(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var bL={tokenize:xL};function xL(e){let t=this,n=e.attempt(WF,r,e.attempt(this.parser.constructs.flowInitial,i,kF(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gI,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var SL={resolveAll:EL()},CL=TL(`string`),wL=TL(`text`);function TL(e){return{resolveAll:EL(e===`text`?DL:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function EL(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function DL(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var OL=s({attentionMarkers:()=>IL,contentInitial:()=>AL,disable:()=>LL,document:()=>kL,flow:()=>ML,flowInitial:()=>jL,insideSpan:()=>FL,string:()=>NL,text:()=>PL}),kL={42:lL,43:lL,45:lL,48:lL,49:lL,50:lL,51:lL,52:lL,53:lL,54:lL,55:lL,56:lL,57:lL,62:KF},AL={91:TI},jL={[-2]:iI,[-1]:iI,32:iI},ML={35:jI,42:sL,45:[_L,sL],60:II,61:_L,95:sL,96:tI,126:tI},NL={38:QF,92:XF},PL={[-5]:aL,[-4]:aL,[-3]:aL,33:tL,38:QF,42:RF,60:[HF,UI],91:rL,92:[kI,XF],93:GI,95:RF,96:cI},FL={null:[RF,SL]},IL={null:[42,95]},LL={null:[]};function RL(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=cF(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=LF(a,l.events,l),l.events):[]}function f(e,t){return BL(p(e),t)}function p(e){return zL(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){SF(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&sF(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function zL(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function BL(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
1600
1600
|
`;break;case-3:o=`\r
|
|
1601
1601
|
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function VL(e){let t={constructs:uF([OL,...(e||{}).extensions||[]]),content:n(AF),defined:[],document:n(MF),flow:n(bL),lazy:{},string:n(CL),text:n(wL)};return t;function n(e){return n;function n(n){return RL(t,e,n)}}}function HL(e){for(;!mI(e););return e}var UL=/[\0\t\n\r]/g;function WL(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(UL.lastIndex=u,c=UL.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var GL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function KL(e){return e.replace(GL,qL)}function qL(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return pF(n.slice(t?2:1),t?16:10)}return oF(n)||e}var JL={}.hasOwnProperty;function YL(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),XL(n)(HL(VL(n).document().write(WL()(e,t,!0))))}function XL(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(pe),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ue),blockQuote:a(ae),characterEscape:T,characterReference:T,codeFenced:a(oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(oe,o),codeText:a(se,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ce),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(le),hardBreakEscape:a(V),hardBreakTrailing:a(V),htmlFlow:a(de,o),htmlFlowData:T,htmlText:a(de,o),htmlTextData:T,image:a(fe),label:o,link:a(pe),listItem:a(he),listItemValue:f,listOrdered:a(me,d),listUnordered:a(me),paragraph:a(ge),reference:te,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ue),strong:a(_e),thematicBreak:a(ye)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ie,autolinkProtocol:re,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:R,characterReferenceMarkerNumeric:R,characterReferenceValue:z,characterReference:B,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ne,resourceDestinationString:I,resourceTitleString:L,resource:ee,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};QL(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];JL.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||eR).call(a,void 0,e[0])}for(r.position={start:ZL(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ZL(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ZL(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||eR).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+yP({start:e.start,end:e.end})+`): it’s not open`);n.position.end=ZL(e.end)}function u(){return tF(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=mF(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=ve(),n.position={start:ZL(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ZL(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=ZL(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=KL(t),n.identifier=mF(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ee(){this.data.inReference=void 0}function te(){this.data.referenceType=`collapsed`}function ne(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=mF(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function R(e){this.data.characterReferenceType=e.type}function z(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=pF(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=oF(t);let i=this.stack[this.stack.length-1];i.value+=r}function B(e){let t=this.stack.pop();t.position.end=ZL(e.end)}function re(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ie(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ae(){return{type:`blockquote`,children:[]}}function oe(){return{type:`code`,lang:null,meta:null,value:``}}function se(){return{type:`inlineCode`,value:``}}function ce(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function le(){return{type:`emphasis`,children:[]}}function ue(){return{type:`heading`,depth:0,children:[]}}function V(){return{type:`break`}}function de(){return{type:`html`,value:``}}function fe(){return{type:`image`,title:null,url:``,alt:null}}function pe(){return{type:`link`,title:null,url:``,children:[]}}function me(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function he(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ge(){return{type:`paragraph`,children:[]}}function _e(){return{type:`strong`,children:[]}}function ve(){return{type:`text`,value:``}}function ye(){return{type:`thematicBreak`}}}function ZL(e){return{line:e.line,column:e.column,offset:e.offset}}function QL(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?QL(e,r):$L(e,r)}}function $L(e,t){let n;for(n in t)if(JL.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function eR(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+yP({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yP({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+yP({start:t.start,end:t.end})+`) is still open`)}function tR(e){let t=this;t.parser=n;function n(n){return YL(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function nR(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function rR(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|