1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,214332,e=>{"use strict";var t=e.i(474076),r=e.i(271645),i=e.i(255202),n=e.i(647163);e.s(["default",0,function({value:e,className:s,children:a=(0,t.jsx)(i.VscCopy,{}),childrenWhenCopied:o=(0,t.jsx)(i.VscCheck,{}),...l}){let[c,h]=(0,r.useState)(!1);return(0,t.jsx)("button",{className:(0,n.cn)("cursor-copy",c&&"pointer-events-none",s),onClick:()=>{e&&(navigator.clipboard.writeText(e),h(!0),setTimeout(()=>h(!1),1e3))},title:"Click to copy",...l,children:c?o:a})}])},929651,e=>{"use strict";var t=e.i(474076),r=e.i(647163);e.s(["default",0,function({as:e,children:i,value:n,className:s}){let a=n?.children?(0,r.slug)(n.children.reduce((e,t)=>e+(t.text||""),"")):"";return(0,t.jsx)(e,{id:a||void 0,className:s,children:i})}])},98438,e=>{e.v({code:"Code-module__A0d4kq__code"})},950218,817881,244760,140346,90999,670660,688320,150812,339154,888641,68803,767973,495036,671580,906009,380732,421859,620725,265231,587660,296305,157101,e=>{"use strict";var t=e.i(474076),r=e.i(271645),i=e.i(711247),n=e.i(929651),s=e.i(647163),a=e.i(980752),o=e.i(887299),l=e.i(50297),c=e.i(268659),h=e.i(255202);function d({value:e}){if(!e)return null;let{title:r,content:n,tone:a}=e,l=a?({note:h.VscInfo,important:h.VscReport,tip:h.VscLightbulb,warning:h.VscWarning,caution:h.VscWarning})[a]:null;return(0,t.jsxs)("dl",{className:(0,s.cn)("space-y-2 border-s-2 px-4 py-3",a?({note:"border-blue-500 bg-blue-500/5 [&_svg]:text-blue-600",important:"border-purple-500 bg-purple-500/5 [&_svg]:text-purple-600",tip:"border-green-500 bg-green-500/5 [&_svg]:text-green-600",warning:"border-yellow-500 bg-yellow-500/5 [&_svg]:text-yellow-500",caution:"border-red-500 bg-red-500/5 [&_svg]:text-red-500"})[a]:"border-neutral-400 bg-neutral-500/5"),children:[(0,t.jsxs)("dt",{className:"flex items-center gap-2 font-bold",children:[l&&(0,t.jsx)(l,{className:"size-5"}),(0,t.jsx)("div",{children:r})]}),(0,t.jsx)("dd",{children:(0,t.jsx)(i.PortableText,{value:n,components:o.minimalPortableTextComponents})})]})}e.s(["default",0,d],817881);var u=e.i(34057),p=e.i(255513),m=e.i(252753),f=e.i(56136),g=e.i(770703),y=e.i(422723),_=e.i(549859),b=e.i(878031),A=e.i(129278),k=e.i(683997),x=e.i(239515),w=e.i(834914),S=e.i(488571),C=e.i(853431),v=e.i(253001),N=e.i(966856),T=e.i(146461),L=e.i(37132),j=e.i(85785);let P=(0,g.default)(()=>e.A(332102),{loadableGenerated:{modules:[39925]},ssr:!1,loading:()=>(0,t.jsx)("div",{style:{height:"500px",border:"1px solid #e5e7eb",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f9fafb",maxWidth:"1200px",margin:"20px auto"},children:(0,t.jsx)("div",{style:{textAlign:"center",color:"#6b7280"},children:"Loading NAV chart..."})})});e.s(["default",0,function({height:e=500,title:r="Net Asset Value (MNAV) Over Time"}){return(0,t.jsx)(P,{height:e,title:r})}],244760);let R=(0,g.default)(()=>e.A(122961),{loadableGenerated:{modules:[362533]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"eth-treasury-container",children:(0,t.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,t.jsx)("div",{className:"text-gray-500",children:"Loading treasury table..."})})})});e.s(["default",0,function(){return(0,t.jsx)(R,{})}],140346);let I=(0,g.default)(()=>e.A(973951),{loadableGenerated:{modules:[209179]},ssr:!1,loading:()=>(0,t.jsx)("div",{style:{height:"500px",border:"1px solid #e5e7eb",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f9fafb",maxWidth:"1200px",margin:"20px auto"},children:(0,t.jsx)("div",{style:{textAlign:"center",color:"#6b7280"},children:"Loading ETH holdings chart..."})})});e.s(["default",0,function({height:e=500,title:r="ETH Corporate Treasury Holdings Over Time"}){return(0,t.jsx)(I,{height:e,title:r})}],90999);var G=e.i(403742);e.s(["default",0,function(){return(0,t.jsx)(G.default,{showDownloadButton:!0})}],670660);var E=e.i(41695);e.s(["default",0,function(){return(0,t.jsx)(E.default,{showDownloadButton:!0})}],688320),e.s([],150812);var B=y;e.s(["CryptoTicker",()=>B.default],339154);var B=y,M=_;e.s(["CryptoPrice",()=>M.default],888641);var M=_,$=b;e.s(["CryptoPercentageChange",()=>$.default],68803);var $=b,O=A;e.s(["CryptoYtdChange",()=>O.default],767973);var O=A,W=k;e.s(["LastUpdated",()=>W.default],495036);var W=k,D=x;e.s(["AdvertDisclosure",()=>D.default],671580);var D=x,F=w;e.s(["MilkRoadPromise",()=>F.default],906009);var F=w,U=S;e.s(["LowercaseFirst",()=>U.default],380732);var U=S,H=C;e.s(["CountdownTimer",()=>H.default],421859);var H=C,q=v;e.s(["GoldMarketCap",()=>q.default],620725);var q=v,z=N;e.s(["BitcoinMarketCap",()=>z.default],265231);var z=N,V=T;e.s(["MarketCapRatio",()=>V.default],587660);var V=T,J=L;e.s(["TotalMarketCap",()=>J.default],296305);var J=L,Q=j;e.s(["BitcoinDominance",()=>Q.default],157101);var Q=j;let K=(0,g.default)(()=>e.A(415920),{loadableGenerated:{modules:[118881]}}),X=(0,g.default)(()=>
1e.A(437074),{loadableGenerated:{modules:[779534]}}),Y=(0,g.default)(()=>e.A(989928),{loadableGenerated:{modules:[197080]}}),Z=(0,g.default)(()=>e.A(271135),{loadableGenerated:{modules:[158512]}}),ee=(0,g.default)(()=>e.A(504914),{loadableGenerated:{modules:[42048]}}),et=(0,g.default)(()=>e.A(626684),{loadableGenerated:{modules:[672417]}});function er({text:e}){let{transformed:i}=(0,a.useTransformShortcodes)(e);return(r.default.useEffect(()=>{e.includes("[")},[e,i]),i!==e&&i.includes("<"))?(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:i}}):(0,t.jsx)(t.Fragment,{children:i})}e.s(["default",0,function({value:e,className:a,articleTitle:h,children:g}){return(0,t.jsxs)("div",{className:(0,s.cn)("richtext mx-auto w-full [&>:first-child]:!mt-0",a),children:[(0,t.jsx)(i.PortableText,{value:(0,o.preprocessPortableText)(e),onMissingComponent:!1,components:{block:{center:({children:e,value:r})=>{let i=r?._key?.startsWith("caption_"),n=["text-center",i?"caption":""].filter(Boolean).join(" "),s={};return i&&r?.captionWidth&&(s.maxWidth=r.captionWidth,s.marginLeft="auto",s.marginRight="auto"),(0,t.jsx)("p",{className:n,style:s,children:e})},right:({children:e,value:r})=>{let i=r?._key?.startsWith("caption_"),n=["text-right",i?"caption":""].filter(Boolean).join(" "),s={};return i&&r?.captionWidth&&(s.maxWidth=r.captionWidth,s.marginLeft="auto",s.marginRight="auto"),(0,t.jsx)("p",{className:n,style:s,children:e})},justify:({children:e,value:r})=>{let i=r?._key?.startsWith("caption_"),n=["text-justify",i?"caption":""].filter(Boolean).join(" "),s={};return i&&r?.captionWidth&&(s.maxWidth=r.captionWidth,s.marginLeft="auto",s.marginRight="auto"),(0,t.jsx)("p",{className:n,style:s,children:e})},tinyText:({children:e,value:r})=>{let i=r?._key?.startsWith("caption_"),n=["text-xs",i?"caption":""].filter(Boolean).join(" "),s={};return i&&r?.captionWidth&&(s.maxWidth=r.captionWidth,s.marginLeft="auto",s.marginRight="auto"),(0,t.jsx)("p",{className:n,style:s,children:e})},smallText:({children:e,value:r})=>{let i=r?._key?.startsWith("caption_"),n=["text-sm",i?"caption":""].filter(Boolean).join(" "),s={};return i&&r?.captionWidth&&(s.maxWidth=r.captionWidth,s.marginLeft="auto",s.marginRight="auto"),(0,t.jsx)("p",{className:n,style:s,children:e})},largeText:({children:e,value:r})=>{let i=r?._key?.startsWith("caption_"),n=["text-lg",i?"caption":""].filter(Boolean).join(" "),s={};return i&&r?.captionWidth&&(s.maxWidth=r.captionWidth,s.marginLeft="auto",s.marginRight="auto"),(0,t.jsx)("p",{className:n,style:s,children:e})},xLargeText:({children:e,value:r})=>{let i=r?._key?.startsWith("caption_"),n=["text-xl",i?"caption":""].filter(Boolean).join(" "),s={};return i&&r?.captionWidth&&(s.maxWidth=r.captionWidth,s.marginLeft="auto",s.marginRight="auto"),(0,t.jsx)("p",{className:n,style:s,children:e})},xxLargeText:({children:e,value:r})=>{let i=r?._key?.startsWith("caption_"),n=["text-2xl",i?"caption":""].filter(Boolean).join(" "),s={};return i&&r?.captionWidth&&(s.maxWidth=r.captionWidth,s.marginLeft="auto",s.marginRight="auto"),(0,t.jsx)("p",{className:n,style:s,children:e})},h1:e=>(0,t.jsx)(n.default,{as:"h1",...e}),h2:e=>(0,t.jsx)(n.default,{as:"h2",...e}),h3:e=>(0,t.jsx)(n.default,{as:"h3",...e}),h4:e=>(0,t.jsx)(n.default,{as:"h4",...e}),h5:e=>(0,t.jsx)(n.default,{as:"h5",...e}),h6:e=>(0,t.jsx)(n.default,{as:"h6",...e}),h1Center:e=>(0,t.jsx)(n.default,{as:"h1",className:"text-center",...e}),h2Center:e=>(0,t.jsx)(n.default,{as:"h2",className:"text-center",...e}),h3Center:e=>(0,t.jsx)(n.default,{as:"h3",className:"text-center",...e}),h4Center:e=>(0,t.jsx)(n.default,{as:"h4",className:"text-center",...e}),h5Center:e=>(0,t.jsx)(n.default,{as:"h5",className:"text-center",...e}),h6Center:e=>(0,t.jsx)(n.default,{as:"h6",className:"text-center",...e}),normal:({children:e,value:r})=>{let i=r?.style==="center"?"text-center":r?.style==="right"?"text-right":r?.style==="justify"?"text-justify":"",n=r?._key?.startsWith("caption_"),s=[i,n?"caption":""].filter(Boolean).join(" "),a={};return n&&r?.captionWidth&&(a.maxWidth=r.captionWidth,a.marginLeft="auto",a.marginRight="auto"),(0,t.jsx)("p",{className:s,style:a,children:e})}},marks:{strong:({children:e})=>"string"==typeof e&&e.includes("[")&&e.includes("]")?(0,t.jsx)("strong",{children:(0,t.jsx)(er,{text:e})}):(0,t.jsx)("strong",{children:e}),em:({children:e})=>"string"==typeof e&&e.includes("[")&&e.includes("]")?(0,t.jsx)("em",{children:(0,t.jsx)(er,{text:e})}):(0,t.jsx)("em",{children:e}),code:({children:e})=>"string"==typeof e&&e.includes("[")&&e.includes("]")?(0,t.jsx)("code",{children:(0,t.jsx)(er,{text:e})}):(0,t.jsx)("code",{children:e}),link:({value:e,children:i})=>{let n=e?.href||"#";n.match(/^https?:\/(?!\/)./)&&(n=n.replace(/^(https?):\//,"$1://"));let s=n.startsWith("http")?"_blank":void 0;return r.default.Children.toArray(i).some(e=>r.default.isValidElement(e)&&"a"===e.type)?(0,t.jsx)(t.Fragment,{children:i}):(0,t.jsx)("a",{href:n,target:s,rel:"_blank"===s?"noopener":void 0,children:i})},xgw64utzp:({children:e})=>(0,t.jsx)("span",{children:e})},types:{image:l.default,imageBlock:l.default,admonition:d,code:c.default,"custom-html":({value:e})=>(0,t.jsx)(u.default,{className:"has-[table]:md:[grid-column:bleed] has-[table]:md:mx-auto",...e}),cryptoTicker:B.default,cryptoPrice:M.default,cryptoPercentageChange:$.default,cryptoYtdChange:O.default,lastUpdated:W.default,advertDisclosure:D.default,milkRoadPromise:F.default,lowercaseFirst:U.default,countdownTimer:H.default,goldMarketCap:q.default,bitcoinMarketCap:z.default,marketCapRatio:V.default,totalMarketCap:J.default,bitcoinDominance:Q.default,table:({value:e})=>
1{if(!e?.rows||0===e.rows.length)return null;let r=e.rows.length>1&&e.rows[0].cells.length>1;return(0,t.jsx)("div",{className:"content-bleed",children:(0,t.jsx)("table",{className:"block-table",children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:e.rows[0].cells.map((e,r)=>(0,t.jsx)("th",{children:e},r))})}),(0,t.jsx)("tbody",{children:e.rows.slice(1).map((e,r)=>(0,t.jsx)("tr",{children:e.cells.map((e,r)=>(0,t.jsx)("td",{children:e},r))},r))})]}):(0,t.jsx)("tbody",{className:r?"":"no-header",children:e.rows.map((e,r)=>(0,t.jsx)("tr",{children:e.cells.map((e,r)=>(0,t.jsx)("td",{children:e},r))},r))})})})},youtube:({value:e})=>{if(!e?.url)return null;let r=e.url.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/),i=r?r[1]:null;return i?(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)("div",{className:"relative aspect-video w-full rounded-lg overflow-hidden",children:(0,t.jsx)("iframe",{className:"absolute inset-0 w-full h-full",src:`https://www.youtube.com/embed/${i}`,title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}):null},button:({value:e})=>
1{if(!e?.text||!e?.url)return null;let r="center"===e.alignment?"text-center":"right"===e.alignment?"text-right":"text-left",i="secondary"===e.style?"btn-subscribe inline-flex":"outline"===e.style?"inline-block border-2 border-blue-600 text-blue-600 px-6 py-3 rounded-md font-semibold hover:bg-blue-50 transition-colors":"btn-pro inline-flex leading-snug";return(0,t.jsx)("div",{className:`my-6 ${r}`,children:(0,t.jsx)("a",{href:e.url,target:e.newWindow?"_blank":void 0,rel:e.newWindow?"noopener noreferrer":void 0,className:i,children:e.text})})},prosAndCons:({value:e})=>(0,t.jsx)(p.default,{_type:"prosAndCons",...e}),milkroadCta:({value:e})=>(0,t.jsx)(p.default,{_type:"milkroadCta",...e}),accordion:({value:e})=>(0,t.jsx)(p.default,{_type:"accordion",...e}),authorBlock:({value:e})=>(0,t.jsx)(p.default,{_type:"authorBlock",...e}),tableOfContents:({value:e})=>(0,t.jsx)(p.default,{_type:"tableOfContents",...e}),topStories:({value:e})=>(0,t.jsx)(p.default,{_type:"topStories",...e}),sectionHeader:({value:e})=>(0,t.jsx)(p.default,{_type:"sectionHeader",...e}),subscribe:({value:e})=>(0,t.jsx)(p.default,{_type:"subscribe",...e}),cardList:({value:e})=>(0,t.jsx)(p.default,{_type:"cardList",...e}),priceGraph:({value:e})=>(0,t.jsx)(p.default,{_type:"priceGraph",...e}),fearGreedIndex:({value:e})=>(0,t.jsx)(p.default,{_type:"fearGreedIndex",...e}),authorMeta:({value:e})=>(0,t.jsx)(p.default,{_type:"authorMeta",...e}),tweetBlock:({value:e})=>(0,t.jsx)(p.default,{_type:"tweetBlock",...e}),readMore:({value:e})=>(0,t.jsx)(p.default,{_type:"readMore",...e}),teamMember:({value:e})=>(0,t.jsx)(p.default,{_type:"teamMember",...e}),subscriptionCtaModule:({value:e})=>(0,t.jsx)(m.default,{...e}),cryptoMarketMetrics:({value:e})=>(0,t.jsx)(K,{...e}),ethHoldingsChart:({value:e})=>(0,t.jsx)(X,{...e}),ethTreasuryTable:({value:e})=>(0,t.jsx)(Y,{...e}),navLineChart:({value:e})=>(0,t.jsx)(Z,{...e}),fearAndGreed:({value:e})=>(0,t.jsx)(ee,{...e}),exchangeTable:({value:e})=>(0,t.jsx)(p.default,{_type:"exchangeTable",...e}),publicWallet:({value:e})=>(0,t.jsx)(p.default,{_type:"publicWallet",...e}),gasHeatmap:({value:e})=>(0,t.jsx)(p.default,{_type:"gasHeatmap",...e}),apiTableLend:({value:e})=>(0,t.jsx)(p.default,{_type:"apiTableLend",...e}),apiTableBorrow:({value:e})=>(0,t.jsx)(p.default,{_type:"apiTableBorrow",...e}),liveBlog:({value:e})=>(0,t.jsx)(p.default,{_type:"liveBlog",...e}),separator:({value:e})=>(0,t.jsx)(p.default,{_type:"separator",...e}),spacer:({value:e})=>(0,t.jsx)(p.default,{_type:"spacer",...e}),twitterEmbed:({value:e})=>(0,t.jsx)(p.default,{_type:"twitterEmbed",...e}),audioPlayer:({value:e})=>(0,t.jsx)(f.default,{articleTitle:h,audioFileUrl:e.audioFileUrl,audioUrl:e.audioUrl}),"upsell-cta":({value:e})=>(0,t.jsx)(et,{...e,richText:!0}),"module.marketCapRatio":V.default}}}),g]})}],950218)},50297,268659,e=>{"use strict";let t,r,i,n;var s,a,o,l=e.i(474076),c=e.i(352789),h=e.i(247984);e.s(["default",0,function({value:e}){let t=e.alt||e.caption||"Article image",r=e.caption,i=e.source,n=e.float?{float:(0,h.stegaClean)(e.float)}:void 0;e._type;let s=e.customWidth?e.customWidth:void 0,a=e.alignment?e.alignment:"default",o={_type:"image",asset:e.asset,alt:e.alt,lqip:"lqip"in e?e.lqip:void 0,loading:"loading"in e?e.loading:void 0},d={width:s||void 0,maxWidth:s?"100%":void 0,position:e.position&&"static"!==e.position?e.position:void 0,top:e.position&&"static"!==e.position?e.top:void 0,right:e.position&&"static"!==e.position?e.right:void 0,bottom:e.position&&"static"!==e.position?e.bottom:void 0,left:e.position&&"static"!==e.position?e.left:void 0,zIndex:e.position&&"static"!==e.position?e.zIndex:void 0,paddingTop:e.padding?.top,paddingRight:e.padding?.right,paddingBottom:e.padding?.bottom,paddingLeft:e.padding?.left,marginTop:e.margin?.top!==void 0?e.margin.top:"absolute"===e.position?void 0:"2rem",marginRight:e.margin?.right!==void 0?e.margin.right:void 0,marginBottom:e.margin?.bottom!==void 0?e.margin.bottom:"absolute"===e.position?void 0:r?"0":"2rem",marginLeft:e.margin?.left!==void 0?e.margin.left:void 0},u={...n},p=e.margin||"absolute"===e.position?"space-y-2":"my-8 space-y-2",m=(0,l.jsx)(c.Img,{className:s&&"100%"!==s?"inline-block h-auto rounded-lg":"mx-auto w-full h-auto rounded-lg",style:d,image:o,alt:t,sizes:"(max-width: 640px) 100v
1w, (max-width: 768px) 85vw, 665px",quality:85,loading:"lazy"}),f=e.href?(0,l.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"block",children:m}):m;return(0,l.jsx)("figure",{className:p,style:u,children:(0,l.jsxs)("div",{className:"left"===a?"text-left":"right"===a?"text-right":"center"===a?"text-center":"",children:[f,r&&(0,l.jsx)("figcaption",{className:"caption text-gray-600 px-4 text-sm text-balance italic",children:i?(0,l.jsx)("a",{href:i,className:"text-gray-600 hover:text-gray-900 underline",target:"_blank",rel:"noopener noreferrer",children:r}):r})]})})}],50297);class d extends Error{constructor(e){super(e),this.name="ShikiError"}}var u=e.i(167225);function p(e,...t){return t.forEach(t=>{for(let r in t)e[r]=t[r]}),e}var m=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,f=class{static hasCaptures(e){return null!==e&&(m.lastIndex=0,m.test(e))}static replaceCaptures(e,t,r){return e.replace(m,(e,i,n,s)=>{let a=r[parseInt(i||n,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(s){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function g(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let r=e.length,i=t.length;if(r===i){for(let i=0;i<r;i++){var n,s;let r=(n=e[i],n<(s=t[i])?-1:+(n>s));if(0!==r)return r}return 0}return r-i}function y(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 _(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var b=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}},A=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],i=0;for(let e=0,n=t.length;e<n;e++){let n,s=t[e];if(!s.settings)continue;if("string"==typeof s.scope){let e=s.scope;n=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else n=Array.isArray(s.scope)?s.scope:[""];let a=-1;if("string"==typeof s.settings.fontStyle){a=0;let e=s.settings.fontStyle.split(" ");for(let t=0,r=e.length;t<r;t++)switch(e[t]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}let o=null;"string"==typeof s.settings.foreground&&y(s.settings.foreground)&&(o=s.settings.foreground);let l=null;"string"==typeof s.settings.background&&y(s.settings.background)&&(l=s.settings.background);for(let t=0,s=n.length;t<s;t++){let s=n[t].trim().split(" "),c=s[s.length-1],h=null;s.length>1&&(h=s.slice(0,s.length-1)).reverse(),r[i++]=new w(c,h,e,a,o,l)}}return r}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var r,i;let n=(r=e.scope,r<(i=t.scope)?-1:+(r>i));return 0!==n||0!==(n=g(e.parentScopes,t.parentScopes))?n:e.index-t.index});let r=0,i="#000000",n="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(n=t.background)}let s=new C(t),a=new x(r,s.getId(i),s.getId(n)),o=new T(new N(0,null,-1,0,0),[]);for(let t=0,r=e.length;t<r;t++){let r=e[t];o.insert(0,r.scope,r.parentScopes,r.fontStyle,s.getId(r.foreground),s.getId(r.background))}return new A(s,a,o)}(e,t)}_cachedMatchRoot=new b(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,r=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let n=0;n<t.length;n++){var r,i;let s=t[n],a=!1;if(">"===s){if(n===t.length-1)return!1;s=t[++n],a=!0}for(;e&&(r=e.scopeName,!((i=s)===r||r.startsWith(i)&&"."===r[i.length]));){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return r?new x(r.fontStyle,r.foreground,r.background):null}},k=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,r){for(let i of r)t=new e(t,i);return t}static from(...t){let r=null;for(let i=0;i<t.length;i++)r=new e(r,t[i]);return r}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}
1toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}},x=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}},w=class{constructor(e,t,r,i,n,s){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=i,this.foreground=n,this.background=s}},S=((s=S||{})[s.NotSet=-1]="NotSet",s[s.None=0]="None",s[s.Italic=1]="Italic",s[s.Bold=2]="Bold",s[s.Underline=4]="Underline",s[s.Strikethrough=8]="Strikethrough",s),C=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,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)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)}},v=Object.freeze([]),N=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,i,n){this.scopeDepth=e,this.parentScopes=t||v,this.fontStyle=r,this.foreground=i,this.background=n}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,i=e.length;r<i;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==i&&(this.background=i)}},T=class e{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,i=0;for(;">"===e.parentScopes[r]&&r++,">"===t.parentScopes[i]&&i++,!(r>=e.parentScopes.length)&&!(i>=t.parentScopes.length);){let n=t.parentScopes[i].length-e.parentScopes[r].length;if(0!==n)return n;r++,i++}
1return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,r,i=t.indexOf(".");if(-1===i?(e=t,r=""):(e=t.substring(0,i),r=t.substring(i+1)),this._children.hasOwnProperty(e))return this._children[e].match(r)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(e._cmpBySpecificity),r}insert(t,r,i,n,s,a){let o,l,c;if(""===r)return void this._doInsertHere(t,i,n,s,a);let h=r.indexOf(".");-1===h?(o=r,l=""):(o=r.substring(0,h),l=r.substring(h+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),N.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,i,n,s,a)}_doInsertHere(e,t,r,i,n){if(null===t)return void this._mainRule.acceptOverwrite(e,r,i,n);for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let a=this._rulesWithParentScopes[s];if(0===g(a.parentScopes,t))return void a.acceptOverwrite(e,r,i,n)}-1===r&&(r=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===n&&(n=this._mainRule.background),this._rulesWithParentScopes.push(new N(e,t,r,i,n))}},L=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let r=e.getLanguageId(t),i=e.getTokenType(t),n=e.getFontStyle(t);console.log({languageId:r,tokenType:i,fontStyle:n,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,r,i,n,s,a,o){let l=e.getLanguageId(t),c=e.getTokenType(t),h=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),u=e.getForeground(t),p=e.getBackground(t);return 0!==r&&(l=r),8!==i&&(c=i),null!==n&&(h=+!!n),-1!==s&&(d=s),0!==a&&(u=a),0!==o&&(p=o),(l|c<<8|h<<10|d<<11|u<<15|p<<24)>>>0}};function j(e,t){var r;let i,n,s=[],a=(r=e,n=(i=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(r),{next:()=>{if(!n)return null;let e=n[0];return n=i.exec(r),e}}),o=a.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let t=c();if(s.push({matcher:t,priority:e}),","!==o)break;o=a.next()}return s;function l(){if("-"===o){o=a.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=a.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=a.next();while("|"===o||","===o)t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=a.next()),e}if(P(o)){let e=[];do e.push(o),o=a.next();while(P(o))return r=>t(e,r)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function P(e){return!!e&&!!e.match(/[\w\.:]+/)}var R=((a=R||{})[a.None=0]="None",a[a.NotBeginString=1]="NotBeginString",a[a.NotEndString=2]="NotEndString",a[a.NotBeginPosition=4]="NotBeginPosition",a[a.DebugCall=8]="DebugCall",a);function I(e){"function"==typeof e.dispose&&e.dispose()}var G=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},E=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},B=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))}},M=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new G(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new B;for(let r of e)!function(e,t,r,i){let n=r.lookup(e.scopeName);if(!n){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let s=r.lookup(t);e instanceof G?O({baseGrammar:s,selfGrammar:n},i):$(e.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},i);let a=r.injections(e.scopeName);if(a)for(let e of a)i.add(new G(e))}(r,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof G){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 $(e,t,r){t.repository&&t.repository[e]&&W([t.repository[e]],t,r)}function O(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&W(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&W(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function W(e,t,r){for(let i of e){if(r.visitedRule.has(i))continue;r.visitedRule.add(i);let e=i.repository?p({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&W(i.patterns,{...t,repository:e},r);let n=i.include;if(!n)continue;let s=z(n);switch(s.kind){case 0:O({...t,selfGrammar:t.baseGrammar},r);break;case 1:O(t,r);break;case 2:$(s.ruleName,{...t,repository:e},r);break;case 3:case 4:let a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){let i={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===s.kind?$(s.ruleName,i,r):O(i,r)}else 4===s.kind?r.add(new E(s.scopeName,s.ruleName)):r.add(new G(s.scopeName))}}}var D=class{kind=0},F=class{kind=1},U=class{constructor(e){this.ruleName=e}kind=2},H=class{constructor(e){this.scopeName=e}kind=3},q=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function z(e){if("$base"===e)return new D;if("$self"===e)return new F;let t=e.indexOf("#");return -1===t?new H(e):0===t?new U(e.substring(1)):new q(e.substring(0,t),e.substring(t+1))}var V=/\\(\d+)/,J=/\\(\d+)/g;Symbol("RuleId");var Q=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,i){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=f.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=f.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===r?t:~r==t.length-1?e(t.substring(0,t.length-1)):t.substr(~r+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?f.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?f.replaceCaptures(this._contentName,e,t):this._contentName}},K=class extends Q{retokenizeCapturedWithRuleId;constructor(e,t,r,i,n){super(e,t,r,i),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,i){throw Error("Not supported!")}},X=class extends Q{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,i,n){super(e,t,r,null),this._match=new er(i,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=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,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ei,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Y=class extends Q{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,i,n){super(e,t,r,i),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ei,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Z=class extends Q{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,i,n,s,a,o,l,c){super(e,t,r,i),this._begin=new er(n,this.id),this.beginCaptures=s,this._end=new er(a||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(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,r,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new ei,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}},ee=class extends Q{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;
1constructor(e,t,r,i,n,s,a,o,l){super(e,t,r,i),this._begin=new er(n,this.id),this.beginCaptures=s,this.whileCaptures=o,this._while=new er(a,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(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,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new ei,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,r,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ei,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},et=class e{static createCaptureRule(e,t,r,i,n){return e.registerRule(e=>new K(t,e,r,i,n))}static getCompiledRuleId(t,r,i){return t.id||r.registerRule(n=>{if(t.id=n,t.match)return new X(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,r,i));if(void 0===t.begin){t.repository&&(i=p({},i,t.repository));let n=t.patterns;return void 0===n&&t.include&&(n=[{include:t.include}]),new Y(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(n,r,i))}return t.while?new ee(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,i),t.while,e._compileCaptures(t.whileCaptures||t.captures,r,i),e._compilePatterns(t.patterns,r,i)):new Z(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,i),t.end,e._compileCaptures(t.endCaptures||t.captures,r,i),t.applyEndPatternLast,e._compilePatterns(t.patterns,r,i))}),t.id}static _compileCaptures(t,r,i){let n=[];if(t){let s=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>s&&(s=t)}for(let e=0;e<=s;e++)n[e]=null;for(let s in t){if("$vscodeTextmateLocation"===s)continue;let a=parseInt(s,10),o=0;t[s].patterns&&(o=e.getCompiledRuleId(t[s],r,i)),n[a]=e.createCaptureRule(r,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,o)}}return n}static _compilePatterns(t,r,i){let n=[];if(t)for(let s=0,a=t.length;s<a;s++){let a=t[s],o=-1;if(a.include){let t=z(a.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(i[a.include],r,i);break;case 2:let n=i[t.ruleName];n&&(o=e.getCompiledRuleId(n,r,i));break;case 3:case 4:let s=t.scopeName,l=4===t.kind?t.ruleName:null,c=r.getExternalGrammar(s,i);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,r,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,r,c.repository)}}else o=e.getCompiledRuleId(a,r,i);if(-1!==o){let e=r.getRule(o),t=!1;if((e instanceof Y||e instanceof Z||e instanceof ee)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;n.push(o)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}},er=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let r=0,i=[],n=!1;for(let s=0;s<t;s++)if("\\"===e.charAt(s)&&s+1<t){const t=e.charAt(s+1);"z"===t?(i.push(e.substring(r,s)),i.push("$(?!\\n)(?<!\\n)"),r=s+2):("A"===t||"G"===t)&&(n=!0),s++}this.hasAnchor=n,0===r?this.source=e:(i.push(e.substring(r,t)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=V.test(this.source):this.hasBackReferences=!1}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("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=t.map(t=>e.substring(t.start,t.end));return J.lastIndex=0,this.source.replace(J,(e,t)=>_(r[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,r,i;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=[],s=[],a=[],o=[];for(e=0,t=this.source.length;e<t;e++)r=this.source.charAt(e),n[e]=r,s[e]=r,a[e]=r,o[e]=r,"\\"===r&&e+1<t&&("A"===(i=this.source.charAt(e+1))?(n[e+1]="ï¿¿",s[e+1]="ï¿¿",a[e+1]="A",o[e+1]="A"):"G"===i?(n[e+1]="ï¿¿",s[e+1]="G",a[e+1]="ï¿¿",o[e+1]="G"):(n[e+1]=i,s[e+1]=i,a[e+1]=i,o[e+1]=i),e++);return{A0_G0:n.join(""),A0_G1:s.join(""),A1_G0:a.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ei=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(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}
1push(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 en(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){if(!this._hasAnchors)return this.compile(e);if(t)if(r)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0;return r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,r){return new en(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}},en=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,r){let i=this.scanner.findNextMatchSync(e,t,r);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},es=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ea=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new es(e,8),this._embeddedLanguagesMatcher=new eo(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new es(0,0);_getBasicScopeAttributes=new b(e=>new es(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let r=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eo=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>_(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])}};void 0!==u.default&&u.default.env.VSCODE_TEXTMATE_DEBUG;var el=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ec(e,t,r,i,n,s,a,o){let l=t.content.length,c=!1,h=-1;if(a){let a=function(e,t,r,i,n,s){let a=n.beginRuleCapturedEOL?0:-1,o=[];for(let t=n;t;t=t.pop()){let r=t.getRule(e);r instanceof ee&&o.push({rule:r,stack:t})}for(let p=o.pop();p;p=o.pop()){var l,c,h,d,u;let{ruleScanner:o,findOptions:m}=(l=p.rule,c=e,h=p.stack.endRule,d=r,u=i===a,{ruleScanner:l.compileWhileAG(c,h,d,u),findOptions:0}),f=o.findNextMatchSync(t,i,m);if(f){if(-2!==f.ruleId){n=p.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(s.produce(p.stack,f.captureIndices[0].start),ed(e,t,r,p.stack,s,p.rule.whileCaptures,f.captureIndices),s.produce(p.stack,f.captureIndices[0].end),a=f.captureIndices[0].end,f.captureIndices[0].end>i&&(i=f.captureIndices[0].end,r=!1))}else{n=p.stack.pop();break}}return{stack:n,linePos:i,anchorPosition:a,isFirstLine:r}}(e,t,r,i,n,s);n=a.stack,i=a.linePos,r=a.isFirstLine,h=a.anchorPosition}let d=Date.now();for(;!c;){if(0!==o&&Date.now()-d>o)return new el(n,!0);!function(){let a=function(e,t,r,i,n,s){let a=function(e,t,r,i,n,s){let{ruleScanner:a,findOptions:o}=eh(n.getRule(e),e,n.endRule,r,i===s),l=a.findNextMatchSync(t,i,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,r,i,n,s),o=e.getInjections();if(0===o.length)return a;let l=function(e,t,r,i,n,s,a){let o,l=Number.MAX_VALUE,c=null,h=0,d=s.contentNameScopesList.getScopeNames();for(let s=0,u=e.length;s<u;s++){let u=e[s];if(!u.matcher(d))continue;let{ruleScanner:p,findOptions:m}=eh(t.getRule(u.ruleId),t,null,i,n===a),f=p.findNextMatchSync(r,n,m);if(!f)continue;let g=f.captureIndices[0].start;if(!(g>=l)&&(l=g,c=f.captureIndices,o=f.ruleId,h=u.priority,l===n))break}return c?{priorityMatch:-1===h,captureIndices:c,matchedRuleId:o}:null}(o,e,t,r,i,n,s);if(!l)return a;
1if(!a)return l;let c=a.captureIndices[0].start,h=l.captureIndices[0].start;return h<c||l.priorityMatch&&h===c?l:a}(e,t,r,i,n,h);if(!a){s.produce(n,l),c=!0;return}let o=a.captureIndices,d=a.matchedRuleId,u=!!o&&o.length>0&&o[0].end>i;if(-1===d){let a=n.getRule(e);s.produce(n,o[0].start),n=n.withContentNameScopesList(n.nameScopesList),ed(e,t,r,n,s,a.endCaptures,o),s.produce(n,o[0].end);let d=n;if(n=n.parent,h=d.getAnchorPos(),!u&&d.getEnterPos()===i){n=d,s.produce(n,l),c=!0;return}}else{let a=e.getRule(d);s.produce(n,o[0].start);let p=n,m=a.getName(t.content,o),f=n.contentNameScopesList.pushAttributed(m,e);if(n=n.push(d,i,h,o[0].end===l,null,f,f),a instanceof Z){ed(e,t,r,n,s,a.beginCaptures,o),s.produce(n,o[0].end),h=o[0].end;let i=a.getContentName(t.content,o),d=f.pushAttributed(i,e);if(n=n.withContentNameScopesList(d),a.endHasBackReferences&&(n=n.withEndRule(a.getEndWithResolvedBackReferences(t.content,o))),!u&&p.hasSameRuleAs(n)){n=n.pop(),s.produce(n,l),c=!0;return}}else if(a instanceof ee){ed(e,t,r,n,s,a.beginCaptures,o),s.produce(n,o[0].end),h=o[0].end;let i=a.getContentName(t.content,o),d=f.pushAttributed(i,e);if(n=n.withContentNameScopesList(d),a.whileHasBackReferences&&(n=n.withEndRule(a.getWhileWithResolvedBackReferences(t.content,o))),!u&&p.hasSameRuleAs(n)){n=n.pop(),s.produce(n,l),c=!0;return}}else if(ed(e,t,r,n,s,a.captures,o),s.produce(n,o[0].end),n=n.pop(),!u){n=n.safePop(),s.produce(n,l),c=!0;return}}o[0].end>i&&(i=o[0].end,r=!1)}()}return new el(n,!1)}function eh(e,t,r,i,n){return{ruleScanner:e.compileAG(t,r,i,n),findOptions:0}}function ed(e,t,r,i,n,s,a){if(0===s.length)return;let o=t.content,l=Math.min(s.length,a.length),c=[],h=a[0].end;for(let t=0;t<l;t++){let l=s[t];if(null===l)continue;let d=a[t];if(0===d.length)continue;if(d.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;
1)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?n.produceFromScopes(c[c.length-1].scopes,d.start):n.produce(i,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,a),s=i.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,a),h=s.pushAttributed(c,e),u=i.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,s,h),p=e.createOnigString(o.substring(0,d.end));ec(e,p,r&&0===d.start,d.start,u,n,!1,0),I(p);continue}let u=l.getName(o,a);if(null!==u){let t=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(u,e);c.push(new eu(t,d.end))}}for(;c.length>0;)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var eu=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ep(e,t,r,i,n){let s=j(t,em),a=et.getCompiledRuleId(r,i,n.repository);for(let r of s)e.push({debugSelector:t,matcher:r.matcher,ruleId:a,grammar:n,priority:r.priority})}function em(e,t){if(t.length<e.length)return!1;let r=0;return e.every(e=>{for(let i=r;i<t.length;i++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&"."===e[r]}(t[i],e))return r=i+1,!0;return!1})}var ef=class{constructor(e,t,r,i,n,s,a,o){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=o,this._basicScopeAttributesProvider=new ea(r,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=eg(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const e of Object.keys(n))for(const t of j(e,em))this._tokenTypeMatchers.push({matcher:t.matcher,type:n[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=[],t=this._rootScopeName,r=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(r){let i=r.injections;if(i)for(let t in i)ep(e,t,i[t],this,r);let n=this._grammarRepository.injections(t);n&&n.forEach(t=>{let r=this.getExternalGrammar(t);if(r){let t=r.injectionSelector;t&&ep(e,t,r,this,r)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=eg(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let i=this._tokenize(e,t,!1,r);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,r=0){let i=this._tokenize(e,t,!0,r);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,r,i){let n;if(-1===this._rootId&&(this._rootId=et.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==e_.NULL)n=!1,t.reset();else{let e;n=!0;let r=this._basicScopeAttributesProvider.getDefaultAttributes(),i=this.themeProvider.getDefaults(),s=L.set(0,r.languageId,r.tokenType,null,i.fontStyle,i.foregroundId,i.backgroundId),a=this.getRule(this._rootId).getName(null,null);e=a?ey.createRootAndLookUpScopeName(a,s,this):ey.createRoot("unknown",s),t=new e_(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let s=this.createOnigString(e),a=s.content.length,o=new eA(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ec(this,s,n,0,t,o,!0,i);return I(s),{lineLength:a,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eg(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let r=[];for(let i=0,n=t.length;i<n;i++)r[i]=e(t[i]);return r}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let r={};for(let i in t)r[i]=e(t[i]);return r}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName}
1,e.repository.$base=t||e.repository.$self,e}var ey=class e{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(t,r){let i=t,n=t?.scopePath??null;for(let t of r)i=new e(i,n=k.push(n,t.scopeNames),t.encodedTokenAttributes);return i}static createRoot(t,r){return new e(null,new k(null,t),r)}static createRootAndLookUpScopeName(t,r,i){let n=i.getMetadataForScope(t),s=new k(null,t),a=i.themeProvider.themeMatch(s),o=e.mergeAttributes(r,n,a);return new e(null,s,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){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}}static mergeAttributes(e,t,r){let i=-1,n=0,s=0;return null!==r&&(i=r.fontStyle,n=r.foregroundId,s=r.backgroundId),L.set(e,t.languageId,t.tokenType,null,i,n,s)}pushAttributed(t,r){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,r);let i=t.split(/ /g),n=this;for(let t of i)n=e._pushAttributed(n,t,r);return n}static _pushAttributed(t,r,i){let n=i.getMetadataForScope(r),s=t.scopePath.push(r),a=i.themeProvider.themeMatch(s),o=e.mergeAttributes(t.tokenAttributes,n,a);return new e(t,s,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},e_=class e{constructor(e,t,r,i,n,s,a,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ey.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){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}}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,r,i,n,s,a,o){return new e(this,t,r,i,n,s,a,o)}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: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,r){let i=ey.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new e(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,i,ey.fromExtension(i,r.contentNameScopesList))}},eb=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):j(e,em).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>j(e,em).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!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}}
1,eA=class{constructor(e,t,r,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,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 r=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!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)&&(r=L.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(t))}if(i&&(r=L.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(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()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)r[e]=this._binaryTokens[e];return r}},ek=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,r,i,n){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,new ef(e,s,t,r,i,n,this,this._onigLib))}return this._grammars.get(e)}},ex=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ek(A.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(A.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new eb(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,i,n){let s=new M(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(e=>this._loadSingleGrammar(e.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,r,i,n)}_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 r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,i)}_grammarForScopeName(e,t=0,r=null,i=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,r,i,n)}},ew=e_.NULL,eS=e.i(227118);function eC(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},i="string"==typeof e?e:e.name;for(let[e,n]of Object.entries(t?.colorReplacements||{}))"string"==typeof n?r[e]=n:e===i&&Object.assign(r,n);return r}function ev(e,t){return e&&t?.[e?.toLowerCase()]||e}async function eN(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function eT(e){return!e||["plaintext","txt","text","plain"].includes(e)}function eL(e){return"ansi"===e||eT(e)}function ej(e){return"none"===e}function eP(e,t){if(!t)return e;for(let r of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function eR(e,t=!1){if(0===e.length)return[["",0]];let r=e.split(/(\r?\n)/g),i=0,n=[];for(let e=0;e<r.length;e+=2){let s=t?r[e]+(r[e+1]||""):r[e];n.push([s,i]),i+=r[e].length,i+=r[e+1]?.length||0}return n}let eI="light-dark()",eG=["color","background-color"];function eE(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&S.Italic&&(t["font-style"]="italic"),e.fontStyle&S.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&S.Underline&&r.push("underline"),e.fontStyle&S.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function eB(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let eM=new WeakMap;function e$(e,t){eM.set(e,t)}function eO(e){return eM.get(e)}class eW{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new eW(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,ew])),e)}constructor(...e){if(2===e.length){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,i]=e;this.lang=r,this._stacks={[i]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let r,i;return t=this._stacks[e],r=[],i=new Set,!function e(t){if(i.has(t))return;i.add(t);let n=t?.nameScopesList?.scopeName;n&&r.push(n),t.parent&&e(t.parent)}(t),r}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let eD=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var r;let i,n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new d(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...s.indexToPos(e),offset:e}}{let t=s.lines[e.line];if(void 0===t)throw new d(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${s.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new d(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:s.posToIndex(e.line,r)}}}
1,s={lines:i=eR(r=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===r.length)return{line:i.length-1,character:i[i.length-1].length};let t=e,n=0;for(let e of i){if(t<e.length)break;t-=e.length,n++}return{line:n,character:t}},posToIndex:function(e,t){let r=0;for(let t=0;t<e;t++)r+=i[t].length;return r+t}},a=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new d(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let i=t+1;i<e.length;i++){let t=e[i],n=r.start.offset<=t.start.offset&&t.start.offset<r.end.offset,s=r.start.offset<t.end.offset&&t.end.offset<=r.end.offset,a=t.start.offset<=r.start.offset&&r.start.offset<t.end.offset,o=t.start.offset<r.end.offset&&r.end.offset<=t.end.offset;if(n||s||a||o){if(n&&s||a&&o||a&&r.start.offset===r.end.offset||s&&t.start.offset===t.end.offset)continue;throw new d(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(a),e.set(t.meta,{decorations:a,converter:s,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){let r;if(!this.options.decorations?.length)return;let i=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);return(r=Array.from(i instanceof Set?i:new Set(i)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let i=0,n=[];for(let r of t)r>i&&n.push({...e,content:e.content.slice(i,r),offset:e.offset+i}),i=r;return i<e.content.length&&n.push({...e,content:e.content.slice(i),offset:e.offset+i}),n})):e},code(e){if(!this.options.decorations?.length)return;let r=t(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==r.converter.lines.length)throw new d(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function n(e,t,r,n){let a=i[e],o="",l=-1,c=-1;if(0===t&&(l=0),0===r&&(c=0),r===1/0&&(c=a.children.length),-1===l||-1===c)for(let e=0;e<a.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(a.children[e]),-1===l&&o.length===t&&(l=e+1),-1===c&&o.length===r&&(c=e+1);if(-1===l)throw new d(`Failed to find start index for decoration ${JSON.stringify(n.start)}`);if(-1===c)throw new d(`Failed to find end index for decoration ${JSON.stringify(n.end)}`);let h=a.children.slice(l,c);if(n.alwaysWrap||h.length!==a.children.length)if(n.alwaysWrap||1!==h.length||"element"!==h[0].type){let e={type:"element",tagName:"span",properties:{},children:h};s(e,n,"wrapper"),a.children.splice(l,h.length,e)}else s(h[0],n,"token");else s(a,n,"line")}function s(e,t,r){let i=t.properties||{},n=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},t.properties?.class&&eP(e,t.properties.class),e=n(e,r)||e}let a=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:r}=e;if(t.line===r.line)n(t.line,t.character,r.character,e);else if(t.line<r.line){n(t.line,t.character,1/0,e);for(let n=t.line+1;n<r.line;n++)a.unshift(()=>{var t;i[t=n]=s(i[t],e,"line")});n(r.line,0,r.character,e)}}a.forEach(e=>e())}}}()];function eF(e){let t=function(e){let t=[],r=[],i=[];for(let n of e)switch(n.enforce){case"pre":t.push(n);break;case"post":r.push(n);break;default:i.push(n)}return{pre:t,post:r,normal:i}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...eD]}var eU=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],eH={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function eq(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var ez={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"};let eV={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",
1white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function eJ(e,t,r={}){var i,n;let s,a,{theme:o=e.getLoadedThemes()[0]}=r,l=e.resolveLangAlias(r.lang||"text");if(eT(l)||ej(o))return eR(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:c,colorMap:h}=e.setTheme(o);if("ansi"===l){let e,i,n,s,a,o,l;return e=eC(c,r),i=eR(t),n=function(e=ez){let t;function r(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(i){switch(i.type){case"named":return e[i.name];case"rgb":return r(i.rgb);case"table":var n;return n=i.index,function(){if(t)return t;t=[];for(let r=0;r<eU.length;r++)t.push(e[eU[r]]);let i=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let n=0;n<6;n++)for(let s=0;s<6;s++)t.push(r([i[e],i[n],i[s]]));let n=8;for(let e=0;e<24;e++,n+=10)t.push(r([n,n,n]));return t}()[n]}}}}(Object.fromEntries(eU.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,c.colors?.[t]||eV[e]]}))),s=null,a=null,o=new Set,l={parse(e){let t=[],r=0;do{let i=function(e,t){let r=e.indexOf("\x1b",t);if(-1!==r&&"["===e[r+1]){let t=e.indexOf("m",r);if(-1!==t)return{sequence:e.substring(r+2,t).split(";"),startPosition:r,position:t+1}}return{position:e.length}}(e,r),n=i.sequence?e.substring(r,i.startPosition):e.substring(r);if(n.length>0&&t.push({value:n,foreground:s,background:a,decorations:new Set(o)}),i.sequence){let e=function(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let i=Number.parseInt(r);if(!Number.isNaN(i))if(0===i)t.push({type:"resetAll"});else if(i<=9)eH[i]&&t.push({type:"setDecoration",value:eH[i]});else if(i<=29){let e=eH[i-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:eU[i-30]}});else if(38===i){let r=eq(e);r&&t.push({type:"setForegroundColor",value:r})}else if(39===i)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:eU[i-40]}});else if(48===i){let r=eq(e);r&&t.push({type:"setBackgroundColor",value:r})}else 49===i?t.push({type:"resetBackgroundColor"}):53===i?t.push({type:"setDecoration",value:"overline"}):55===i?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:eU[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:eU[i-100+8]}})}return t}(i.sequence);for(let t of e)"resetAll"===t.type?(s=null,a=null,o.clear()):"resetForegroundColor"===t.type?s=null:"resetBackgroundColor"===t.type?a=null:"resetDecoration"===t.type&&o.delete(t.value);for(let t of e)"setForegroundColor"===t.type?s=t.value:"setBackgroundColor"===t.type?a=t.value:"setDecoration"===t.type&&o.add(t.value)}r=i.position}while(r<e.length)return t}},i.map(t=>l.parse(t[0]).map(r=>{let i,s;r.decorations.has("reverse")?(i=r.background?n.value(r.background):c.bg,s=r.foreground?n.value(r.foreground):c.fg):(i=r.foreground?n.value(r.foreground):c.fg,s=r.background?n.value(r.background):void 0),i=ev(i,e),s=ev(s,e),r.decorations.has("dim")&&(i=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],r=e[1],i=e[2],n=e[3],s=Math.round(Number.parseInt(`${n}${n}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${r}${r}${i}${i}${s}`}else if(3===e.length){let t=e[0],r=e[1],i=e[2];return`#${t}${t}${r}${r}${i}${i}80`}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}(i));let a=S.None;return r.decorations.has("bold")&&(a|=S.Bold),r.decorations.has("italic")&&(a|=S.Italic),r.decorations.has("underline")&&(a|=S.Underline),r.decorations.has("strikethrough")&&(a|=S.Strikethrough),{content:r.value,offset:t[1],color:i,bgColor:s,fontStyle:a}}))}let u=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==u.name)throw new d(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${u.name}"`);if(!r.grammarState.themes.includes(c.name))throw new d(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${c.name}"`)}return a=new eW((s=eQ(t,i=u,n=c,h,r)).stateStack,i.name,n.name),e$(s.tokens,a),s.tokens}function eQ(e,t,r,i,n){let s=eC(r,n),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:o=500}=n,l=eR(e),c=n.grammarState?function(e,t){if(!(e instanceof eW))throw new d("Invalid grammar state");return e.getInternalStack(t)}(n.grammarState,r.name)??ew:null!=n.grammarContextCode?eQ(n.grammarContextCode,t,r,i,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:ew,h=[],u=[];for(let e=0,d=l.length;e<d;e++){let d,p,[m,f]=l[e];
1if(""===m){h=[],u.push([]);continue}if(a>0&&m.length>=a){h=[],u.push([{content:m,offset:f,color:"",fontStyle:0}]);continue}n.includeExplanation&&(d=t.tokenizeLine(m,c,o).tokens,p=0);let g=t.tokenizeLine2(m,c,o),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],a=e+1<y?g.tokens[2*e+2]:m.length;if(t===a)continue;let o=g.tokens[2*e+1],l=ev(i[L.getForeground(o)],s),c=L.getFontStyle(o),u={content:m.substring(t,a),offset:f+t,color:l,fontStyle:c};if(n.includeExplanation){let e=[];if("scopeName"!==n.includeExplanation)for(let t of r.settings){let r;switch(typeof t.scope){case"string":r=t.scope.split(/,/).map(e=>e.trim());break;case"object":r=t.scope;break;default:continue}e.push({settings:t,selectors:r.map(e=>e.split(/ /))})}u.explanation=[];let i=0;for(;t+i<a;){let t=d[p],r=m.substring(t.startIndex,t.endIndex);i+=r.length,u.explanation.push({content:r,scopes:"scopeName"===n.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let r=[];for(let i=0,n=t.length;i<n;i++){let n=t[i];r[i]={scopeName:n,themeMatches:function(e,t,r){let i=[];for(let{selectors:n,settings:s}of e)for(let e of n)if(function(e,t,r){if(!eK(e[e.length-1],t))return!1;let i=e.length-2,n=r.length-1;for(;i>=0&&n>=0;)eK(e[i],r[n])&&(i-=1),n-=1;return -1===i}(e,t,r)){i.push(s);break}return i}(e,n,t.slice(0,i))}}return r}(e,t.scopes)}),p+=1}}h.push(u)}u.push(h),h=[],c=g.ruleStack}return{tokens:u,stateStack:c}}function eK(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function eX(e,t,r){let i=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),n=i.map(i=>{let n=eJ(e,t,{...r,theme:i.theme}),s=eO(n);return{tokens:n,state:s,theme:"string"==typeof i.theme?i.theme:i.theme.name}}),s=function(...e){let t=e.map(()=>[]),r=e.length;for(let i=0;i<e[0].length;i++){let n=e.map(e=>e[i]),s=t.map(()=>[]);t.forEach((e,t)=>e.push(s[t]));let a=n.map(()=>0),o=n.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<r;t++){let r=o[t];r.content.length===e?(s[t].push(r),a[t]+=1,o[t]=n[t][a[t]]):(s[t].push({...r,content:r.content.slice(0,e)}),o[t]={...r,content:r.content.slice(e),offset:r.offset+e})}}}return t}(...n.map(e=>e.tokens)),a=s[0].map((e,t)=>e.map((e,n)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in r&&r.includeExplanation&&(a.explanation=e.explanation),s.forEach((e,r)=>{let{content:s,explanation:o,offset:l,...c}=e[t][n];a.variants[i[r].color]=c}),a})),o=n[0].state?new eW(Object.fromEntries(n.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),n[0].state.lang):void 0;return o&&e$(a,o),a}function eY(e,t,r){let i,n,s,a,o,l;if("themes"in r){let{defaultColor:c="light",cssVariablePrefix:h="--shiki-",colorsRendering:u="css-vars"}=r,p=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===p.length)throw new d("`themes` option must not be empty");let m=eX(e,t,r);if(l=eO(m),c&&eI!==c&&!p.find(e=>e.color===c))throw new d(`\`themes\` option must contain the defaultColor key \`${c}\``);let f=p.map(t=>e.getTheme(t.theme)),g=p.map(e=>e.color);s=m.map(e=>e.map(e=>(function(e,t,r,i,n="css-vars"){let s={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(t=>eE(e.variants[t])),o=new Set(a.flatMap(e=>Object.keys(e))),l={},c=(e,i)=>{let n="color"===i?"":"background-color"===i?"-bg":`-${i}`;return r+t[e]+("color"===i?"":n)};return a.forEach((e,r)=>{for(let s of o){let o=e[s]||"inherit";if(0===r&&i&&eG.includes(s))if(i===eI&&a.length>1){let e=t.findIndex(e=>"light"===e),i=t.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new d('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let h=a[e][s]||"inherit",u=a[i][s]||"inherit";l[s]=`light-dark(${h}, ${u})`,"css-vars"===n&&(l[c(r,s)]=o)}else l[s]=o;else"css-vars"===n&&(l[c(r,s)]=o)}}),s.htmlStyle=l,s})(e,g,h,c,u))),l&&e$(s,l);let y=p.map(e=>eC(e.theme,r));n=eZ(p,f,y,h,c,"fg",u),i=eZ(p,f,y,h,c,"bg",u),a=`shiki-themes ${f.map(e=>e.name).join(" ")}`,o=c?void 0:[n,i].join(";")}else if("theme"in r){let o=eC(r.theme,r);s=eJ(e,t,r);let c=e.getTheme(r.theme);i=ev(c.bg,o),n=ev(c.fg,o),a=c.name,l=eO(s)}else throw new d("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:n,bg:i,themeName:a,rootStyle:o,grammarState:l}}function eZ(e,t,r,i,n,s,a){return e.map((o,l)=>{let c=ev(t[l][s],r[l])||"inherit",h=`${i+o.color}${"bg"===s?"-bg":""}:${c}`;if(0===l&&n){if(n===eI&&e.length>1){let i=e.findIndex(e=>"light"===e.color),n=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===n)throw new d('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let a=ev(t[i][s],r[i])||"inherit",o=ev(t[n][s],r[n])||"inherit";return`light-dark(${a}, ${o});${h}`}return c}return"css-vars"===a?h:null}).filter(e=>!!e).join(";")}function e0(e,t,r,i={meta:{},options:r,codeToHast:(t,r)=>e0(e,t,r),codeToTokens:(t,r)=>eY(e,t,r)}){let n=t;for(let e of eF(r))n=e.preprocess?.call(i,n,r)||n;let{tokens:s,fg:a,bg:o,themeName:l,rootStyle:c,grammarState:h}
1=eY(e,n,r),{mergeWhitespaces:d=!0,mergeSameStyleTokens:u=!1}=r;!0===d?s=s.map(e=>{let t,r=[],i="";return e.forEach((n,s)=>{let a=!(n.fontStyle&&(n.fontStyle&S.Underline||n.fontStyle&S.Strikethrough));a&&n.content.match(/^\s+$/)&&e[s+1]?(void 0===t&&(t=n.offset),i+=n.content):i?(a?r.push({...n,offset:t,content:i+n.content}):r.push({content:i,offset:t},n),t=void 0,i=""):r.push(n)}),r}):"never"===d&&(s=s.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,r,i,n]=t;if(!r&&!n)return e;let s=[{...e,offset:e.offset+r.length,content:i}];return r&&s.unshift({content:r,offset:e.offset}),n&&s.push({content:n,offset:e.offset+r.length+i.length}),s}))),u&&(s=s.map(e=>{let t=[];for(let r of e){if(0===t.length){t.push({...r});continue}let e=t[t.length-1],i=eB(e.htmlStyle||eE(e)),n=eB(r.htmlStyle||eE(r)),s=e.fontStyle&&(e.fontStyle&S.Underline||e.fontStyle&S.Strikethrough),a=r.fontStyle&&(r.fontStyle&S.Underline||r.fontStyle&S.Strikethrough);s||a||i!==n?t.push({...r}):e.content+=r.content}return t}));let p={...i,get source(){return n}};for(let e of eF(r))s=e.tokens?.call(p,s)||s;return function(e,t,r,i=eO(e)){let n=eF(t),s=[],a={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,r]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=r);let h={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:s},u=[],p={...r,structure:o,addClassToHast:eP,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return h},get code(){return d},get lines(){return u}};if(e.forEach((e,t)=>{t&&("inline"===o?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&s.push({type:"text",value:"\n"}));let r={type:"element",tagName:"span",properties:{class:"line"},children:[]},i=0;for(let s of e){let e={type:"element",tagName:"span",properties:{...s.htmlAttrs},children:[{type:"text",value:s.content}]},l=eB(s.htmlStyle||eE(s));for(let a of(l&&(e.properties.style=l),n))e=a?.span?.call(p,e,t+1,i,r,s)||e;"inline"===o?a.children.push(e):"classic"===o&&r.children.push(e),i+=s.content.length}if("classic"===o){for(let e of n)r=e?.line?.call(p,r,t+1)||r;u.push(r),s.push(r)}else"inline"===o&&u.push(r)}),"classic"===o){for(let e of n)d=e?.code?.call(p,d)||d;for(let e of(h.children.push(d),n))h=e?.pre?.call(p,h)||h;a.children.push(h)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let r of a.children)"element"===r.type&&"br"===r.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===r.type||"text"===r.type)&&t.children.push(r);e.push(t);let r={type:"element",tagName:"code",properties:{},children:e};for(let e of n)r=e?.code?.call(p,r)||r;a.children=[];for(let e=0;e<r.children.length;e++){e>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=r.children[e];"element"===t.type&&a.children.push(...t.children)}}let m=a;for(let e of n)m=e?.root?.call(p,m)||m;return i&&e$(m,i),m}(s,{...r,fg:a,bg:o,themeName:l,rootStyle:!1!==r.rootStyle&&(r.rootStyle??c)},p,h)}let e1=eS.toHtml,e2="__shiki_resolved";function e5(e){if(e?.[e2])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:r,fg:i}=t;if(!r||!i){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(i=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),i||(i="light"===t.type?"#333333":"#bbbbbb"),r||(r="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=i,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let n=0,s=new Map;function a(e){if(s.has(e))return s.get(e);n+=1;let r=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?a(e):(s.set(e,r),r)}for(let e of(t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),i=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!i)return e;let n={...e,settings:{...e.settings}};if(r){let r=a(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,n.settings.foreground=r}if(i){let r=a(e.settings.background);t.colorReplacements[r]=e.settings.background,n.settings.background=r}return n}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=a(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,e2,{enumerable:!1,writable:!1,value:!0}),t}async function e6(e){return Array.from(new Set((await Promise.all(e.filter(e=>!eL(e)).map(async e=>await eN(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function e3(e){return(await Promise.all(e.map(async e=>ej(e)?null:e5(await eN(e))))).filter(e=>!!e)}
1class e8 extends Error{constructor(e){super(e),this.name="ShikiError"}}function e4(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new e8(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}class e7 extends ex{constructor(e,t,r,i={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=i,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=e5(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=A.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=e4(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 r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let i=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),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=Array.from(this._langGraph.entries()),r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>{if(!t)return!1;let i=t.embeddedLanguages||t.embeddedLangs;return i?.some(e=>r.map(([e])=>e).includes(e))}).filter(e=>!r.includes(e));throw new e8(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(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))}}class e9{_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("."),r=[];for(let e=1;e<=t.length;e++){let i=t.slice(0,e).join(".");r=[...r,...this._injections.get(i)||[]]}return r}}let te=0;async function tt(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,i]=await Promise.all([e3(e.themes||[]),e6(e.langs||[]),e.engine]);return function(e){let t;te+=1,!1!==e.warnings&&te>=10&&te%10==0&&console.warn(`[Shiki] ${te} instances have been created. Shiki is supposed to be used as a singleton, c
1onsider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!e.engine)throw new e8("`engine` option is required for synchronous mode");let i=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(e5),s=new e7(new e9(e.engine,i),n,i,e.langAlias);function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=s.getTheme(e);if(!t)throw new e8(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),s.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))s.loadTheme(t)}function c(){if(r)throw new e8("Shiki instance has been disposed")}function h(){r||(r=!0,s.dispose(),te-=1)}return{setTheme:function(e){c();let r=a(e);return t!==e&&(s.setTheme(r),t=e),{theme:r,colorMap:s.getColorMap()}},getTheme:a,getLanguage:function(e){c();let t=s.getGrammar("string"==typeof e?e:e.name);if(!t)throw new e8(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),s.getLoadedThemes()},getLoadedLanguages:function(){return c(),s.getLoadedLanguages()},resolveLangAlias:function(t){return e4(t,e.langAlias)},loadLanguage:async function(...e){return o(await e6(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await e3(e))},loadThemeSync:l,dispose:h,[Symbol.dispose]:h}}({...e,themes:t,langs:r,engine:i})}async function tr(e){let t=await tt(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return eO(e[1]);let[t,r,i={}]=e,{lang:n="text",theme:s=t.getLoadedThemes()[0]}=i;if(eT(n)||ej(s))throw new d("Plain language does not have grammar state");if("ansi"===n)throw new d("ANSI language does not have grammar state");let{theme:a,colorMap:o}=t.setTheme(s),l=t.getLanguage(n);return new eW(eQ(r,l,a,o,i).stateStack,l.name,a.name)})(t,...e),codeToTokensBase:(e,r)=>eJ(t,e,r),codeToTokensWithThemes:(e,r)=>eX(t,e,r),codeToTokens:(e,r)=>eY(t,e,r),codeToHast:(e,r)=>e0(t,e,r),codeToHtml:(e,r)=>(function(e,t,r){let i={meta:{},options:r,codeToHast:(t,r)=>e0(e,t,r),codeToTokens:(t,r)=>eY(e,t,r)},n=e1(e0(e,t,r,i));for(let e of eF(r))n=e.postprocess?.call(i,n,r)||n;return n})(t,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let ti=[{id:"abap",name:"ABAP",import:()=>e.A(516690)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(274435)},{id:"ada",name:"Ada",import:()=>e.A(796339)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(196546)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(60308)},{id:"apache",name:"Apache Conf",import:()=>e.A(608734)},{id:"apex",name:"Apex",import:()=>e.A(902952)},{id:"apl",name:"APL",import:()=>e.A(814026)},{id:"applescript",name:"AppleScript",import:()=>e.A(210042)},{id:"ara",name:"Ara",import:()=>e.A(327701)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(864940)},{id:"asm",name:"Assembly",import:()=>e.A(581996)},{id:"astro",name:"Astro",import:()=>e.A(185223)},{id:"awk",name:"AWK",import:()=>e.A(577689)},{id:"ballerina",name:"Ballerina",import:()=>e.A(887861)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(769047)},{id:"beancount",name:"Beancount",import:()=>e.A(566005)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(64129)},{id:"bibtex",name:"BibTeX",import:()=>e.A(686785)},{id:"bicep",name:"Bicep",import:()=>e.A(234475)},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e.A(273197)},{id:"blade",name:"Blade",import:()=>e.A(184291)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(254810)},{id:"c",name:"C",import:()=>e.A(715630)},{id:"c3",name:"C3",import:()=>e.A(721406)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(928418)},{id:"cairo",name:"Cairo",import:()=>e.A(496018)},{id:"clarity",name:"Clarity",import:()=>e.A(268805)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(885670)},{id:"cmake",name:"CMake",import:()=>e.A(850277)},{id:"cobol",name:"COBOL",import:()=>e.A(608435)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(677655)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(393919)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(499510)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(314583)},{id:"coq",name:"Coq",import:()=>e.A(138305)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(162895)},{id:"crystal",name:"Crystal",import:()=>e.A(715822)}
1,{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(156548)},{id:"css",name:"CSS",import:()=>e.A(68853)},{id:"csv",name:"CSV",import:()=>e.A(508072)},{id:"cue",name:"CUE",import:()=>e.A(379420)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(901081)},{id:"d",name:"D",import:()=>e.A(732086)},{id:"dart",name:"Dart",import:()=>e.A(8814)},{id:"dax",name:"DAX",import:()=>e.A(706010)},{id:"desktop",name:"Desktop",import:()=>e.A(611671)},{id:"diff",name:"Diff",import:()=>e.A(499264)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(964927)},{id:"dotenv",name:"dotEnv",import:()=>e.A(86855)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(955357)},{id:"edge",name:"Edge",import:()=>e.A(40814)},{id:"elixir",name:"Elixir",import:()=>e.A(534593)},{id:"elm",name:"Elm",import:()=>e.A(80402)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(659962)},{id:"erb",name:"ERB",import:()=>e.A(655306)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(379291)},{id:"fennel",name:"Fennel",import:()=>e.A(56334)},{id:"fish",name:"Fish",import:()=>e.A(955953)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(372286)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(709599)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(417187)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(106583)},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e.A(600350)},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e.A(718592)},{id:"gdshader",name:"GDShader",import:()=>e.A(964292)},{id:"genie",name:"Genie",import:()=>e.A(251227)},{id:"gherkin",name:"Gherkin",import:()=>e.A(781674)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(765886)},{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(643635)},{id:"gleam",name:"Gleam",import:()=>e.A(469752)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(220210)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(952204)},{id:"glsl",name:"GLSL",import:()=>e.A(615932)},{id:"gn",name:"GN",import:()=>e.A(846517)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(334810)},{id:"go",name:"Go",import:()=>e.A(518233)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(527502)},{id:"groovy",name:"Groovy",import:()=>e.A(783131)},{id:"hack",name:"Hack",import:()=>e.A(866363)},{id:"haml",name:"Ruby Haml",import:()=>e.A(936482)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(219104)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(982274)},{id:"haxe",name:"Haxe",import:()=>e.A(843593)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(392582)},{id:"hjson",name:"Hjson",import:()=>e.A(32395)},{id:"hlsl",name:"HLSL",import:()=>e.A(336975)},{id:"html",name:"HTML",import:()=>e.A(615475)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(736812)},{id:"http",name:"HTTP",import:()=>e.A(722332)},{id:"hurl",name:"Hurl",import:()=>e.A(77996)},{id:"hxml",name:"HXML",import:()=>e.A(412671)},{id:"hy",name:"Hy",import:()=>e.A(98975)},{id:"imba",name:"Imba",import:()=>e.A(221794)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(712237)},{id:"java",name:"Java",import:()=>e.A(25004)},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e.A(792799)},{id:"jinja",name:"Jinja",import:()=>e.A(300535)},{id:"jison",name:"Jison",import:()=>e.A(299868)},{id:"json",name:"JSON",import:()=>e.A(692658)},{id:"json5",name:"JSON5",import:()=>e.A(145390)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(459901)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(844018)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(932597)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(386493)},{id:"jsx",name:"JSX",import:()=>e.A(287672)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(148045)},{id:"just",name:"Just",import:()=>e.A(704538)},{id:"kdl",name:"KDL",import:()=>e.A(522051)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(278014)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(511938)},{id:"latex",name:"LaTeX",import:()=>e.A(382697)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(106774)},{id:"less",name:"Less",import:()=>e.A(657069)},{id:"liquid",name:"Liquid",import:()=>e.A(133954)},{id:"llvm",name:"LLVM IR",import:()=>e.A(969445)},{id:"log",name:"Log file",import:()=>e.A(532210)},{id:"logo",name:"Logo",import:()=>e.A(917136)},{id:"lua",name:"Lua",import:()=>e.A(147287)}
1,{id:"luau",name:"Luau",import:()=>e.A(298173)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(418877)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(159142)},{id:"marko",name:"Marko",import:()=>e.A(644609)},{id:"matlab",name:"MATLAB",import:()=>e.A(323845)},{id:"mdc",name:"MDC",import:()=>e.A(367535)},{id:"mdx",name:"MDX",import:()=>e.A(659189)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(457619)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(401626)},{id:"mojo",name:"Mojo",import:()=>e.A(524176)},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e.A(205353)},{id:"move",name:"Move",import:()=>e.A(847969)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(755902)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(557638)},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>e.A(272194)},{id:"nginx",name:"Nginx",import:()=>e.A(47723)},{id:"nim",name:"Nim",import:()=>e.A(446820)},{id:"nix",name:"Nix",import:()=>e.A(565220)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(821908)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(205624)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(953213)},{id:"ocaml",name:"OCaml",import:()=>e.A(357016)},{id:"odin",name:"Odin",import:()=>e.A(144)},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e.A(389188)},{id:"pascal",name:"Pascal",import:()=>e.A(494584)},{id:"perl",name:"Perl",import:()=>e.A(590087)},{id:"php",name:"PHP",import:()=>e.A(753525)},{id:"pkl",name:"Pkl",import:()=>e.A(506695)},{id:"plsql",name:"PL/SQL",import:()=>e.A(985641)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(215520)},{id:"polar",name:"Polar",import:()=>e.A(579736)},{id:"postcss",name:"PostCSS",import:()=>e.A(344743)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(69901)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(849765)},{id:"prisma",name:"Prisma",import:()=>e.A(925840)},{id:"prolog",name:"Prolog",import:()=>e.A(678110)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(710002)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(753456)},{id:"puppet",name:"Puppet",import:()=>e.A(328116)},{id:"purescript",name:"PureScript",import:()=>e.A(762792)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(548436)},{id:"qml",name:"QML",import:()=>e.A(985774)},{id:"qmldir",name:"QML Directory",import:()=>e.A(822682)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(29273)},{id:"r",name:"R",import:()=>e.A(917431)},{id:"racket",name:"Racket",import:()=>e.A(127184)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(402999)},{id:"razor",name:"ASP.NET Razor",import:()=>e.A(22510)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(392914)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(864980)},{id:"rel",name:"Rel",import:()=>e.A(362249)},{id:"riscv",name:"RISC-V",import:()=>e.A(919686)},{id:"ron",name:"RON",import:()=>e.A(123169)},{id:"rosmsg",name:"ROS Interface",import:()=>e.A(866973)}
1,{id:"rst",name:"reStructuredText",import:()=>e.A(580357)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(660137)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(225837)},{id:"sas",name:"SAS",import:()=>e.A(559154)},{id:"sass",name:"Sass",import:()=>e.A(428160)},{id:"scala",name:"Scala",import:()=>e.A(679226)},{id:"scheme",name:"Scheme",import:()=>e.A(95554)},{id:"scss",name:"SCSS",import:()=>e.A(256229)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(257294)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(287646)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(77876)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(702789)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(105404)},{id:"solidity",name:"Solidity",import:()=>e.A(664050)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(423766)},{id:"sparql",name:"SPARQL",import:()=>e.A(471095)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(713125)},{id:"sql",name:"SQL",import:()=>e.A(347760)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(525380)},{id:"stata",name:"Stata",import:()=>e.A(927772)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(131592)},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e.A(942509)},{id:"svelte",name:"Svelte",import:()=>e.A(209551)},{id:"swift",name:"Swift",import:()=>e.A(174099)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(401250)},{id:"systemd",name:"Systemd Units",import:()=>e.A(944475)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(600538)},{id:"tasl",name:"Tasl",import:()=>e.A(336651)},{id:"tcl",name:"Tcl",import:()=>e.A(709948)},{id:"templ",name:"Templ",import:()=>e.A(340336)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(508436)}
1,{id:"tex",name:"TeX",import:()=>e.A(155636)},{id:"toml",name:"TOML",import:()=>e.A(351979)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(65678)},{id:"tsv",name:"TSV",import:()=>e.A(841727)},{id:"tsx",name:"TSX",import:()=>e.A(557754)},{id:"turtle",name:"Turtle",import:()=>e.A(670454)},{id:"twig",name:"Twig",import:()=>e.A(670515)},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e.A(48460)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(744538)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(963321)},{id:"v",name:"V",import:()=>e.A(43837)},{id:"vala",name:"Vala",import:()=>e.A(830536)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(785051)},{id:"verilog",name:"Verilog",import:()=>e.A(586017)},{id:"vhdl",name:"VHDL",import:()=>e.A(495694)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(404547)},{id:"vue",name:"Vue",import:()=>e.A(934329)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(160550)},{id:"vue-vine",name:"Vue Vine",import:()=>e.A(109)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(834235)},{id:"wasm",name:"WebAssembly",import:()=>e.A(879931)},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>e.A(738463)},{id:"wgsl",name:"WGSL",import:()=>e.A(464547)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(74196)},{id:"wit",name:"WebAssembly Interface Types",import:()=>e.A(926245)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(998654)},{id:"xml",name:"XML",import:()=>e.A(160115)},{id:"xsl",name:"XSL",import:()=>e.A(656841)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(291412)},{id:"zenscript",name:"ZenScript",import:()=>e.A(441270)},{id:"zig",name:"Zig",import:()=>e.A(332344)}],tn=Object.fromEntries(ti.map(e=>[e.id,e.import])),ts=Object.fromEntries(ti.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),ta={...tn,...ts},to=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(252913)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(695208)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(952844)},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e.A(776488)},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e.A(536002)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(872934)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(831036)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(423803)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(486330)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(381001)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(295735)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(902100)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(358172)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(775274)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(157811)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(514214)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(948353)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(640920)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(579755)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(805550)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(360233)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e.A(980721)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e.A(27266)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>
1e.A(231214)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e.A(881110)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e.A(337683)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e.A(28130)},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e.A(470579)},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>e.A(487165)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(677856)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(194363)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(448953)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(711812)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(409732)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(930788)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(411374)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(769460)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(774478)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(49008)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(377952)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(820463)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(630169)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(777035)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(161439)},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e.A(28589)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(467304)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(794497)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(353619)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(841717)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(703232)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(469411)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(753065)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(81356)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(291336)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(758732)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(505358)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(953493)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(767374)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(461630)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(135353)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(129817)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(666144)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(496740)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(896290)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(161379)}].map(e=>[e.id,e.import]));var tl=e.i(467034);class tc extends Error{constructor(e){super(e),this.name="ShikiError"}}function th(){return"u">typeof performance?performance.now():Date.now()}let td=(e,t)=>e+(t-e%t)%t;async function tu(e){let t,r,i={};function n(e){r=e,i.HEAPU8=new Uint8Array(e),i.HEAPU32=new Uint32Array(e)}let s="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t){return e?function(e,t,r=1024){let i=t+r,n=t;for(;e[n]&&!(n>=i);)++n;if(n-t>16&&e.buffer&&s)return s.decode(e.subarray(t,n));let a="";for(;t<n;){let r=e[t++];if(!(128&r)){a+=String.fromCharCode(r);continue}let i=63&e[t++];if((224&r)==192){a+=String.fromCharCode((31&r)<<6|i);continue}let n=63&e[t++];if((r=(240&r)==224?(15&r)<<12|i<<6|n:(7&r)<<18|i<<12|n<<6|63&e[t++])<65536)a+=String.fromCharCode(r);else{let e=r-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(i.HEAPU8,e,t):""}let o={emscripten_get_now:th,emscripten_memcpy_big:function(e,t,r){i.HEAPU8.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){let s=i.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let i=1;i<=4;i*=2){let a=s*(1+.2/i);if(a=Math.min(a,e+0x6000000),function(e){try{return t.grow(e-r.byteLength+65535>>>16),n(t.buffer),1}catch{}}(Math.min(0x80000000,td(Math.max(e,a),65536))))return!0}return!1},fd_write:()=>0};async function l(){let r=await e({env:o,wasi_snapshot_preview1:o});n((t=r.memory).buffer),Object.assign(i,r),i.UTF8ToString=a}return await l(),i}var tp=Object.defineProperty,tm=(e,t,r)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?tp(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r};let tf=null;class tg{constructor(e){tm(this,"utf16Length"),tm(this,"utf8Length"),tm(this,"utf16Value"),tm(this,"utf8Value"),tm(this,"utf16OffsetToUtf8"),tm(this,"utf8Off
1setToUtf16");const t=e.length,r=tg._utf8ByteLength(e),i=r!==t,n=i?new Uint32Array(t+1):null;i&&(n[t]=r);const s=i?new Uint32Array(r+1):null;i&&(s[r]=t);const a=new Uint8Array(r);let o=0;for(let r=0;r<t;r++){const l=e.charCodeAt(r);let c=l,h=!1;if(l>=55296&&l<=56319&&r+1<t){const t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,h=!0)}i&&(n[r]=o,h&&(n[r+1]=o),c<=127?s[o+0]=r:c<=2047?(s[o+0]=r,s[o+1]=r):c<=65535?(s[o+0]=r,s[o+1]=r,s[o+2]=r):(s[o+0]=r,s[o+1]=r,s[o+2]=r,s[o+3]=r)),c<=127?a[o++]=c:(c<=2047?a[o++]=192|(1984&c)>>>6:(c<=65535?a[o++]=224|(61440&c)>>>12:(a[o++]=240|(1835008&c)>>>18,a[o++]=128|(258048&c)>>>12),a[o++]=128|(4032&c)>>>6),a[o++]=128|(63&c)>>>0),h&&r++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let t=0;for(let r=0,i=e.length;r<i;r++){let n=e.charCodeAt(r),s=n,a=!1;if(n>=55296&&n<=56319&&r+1<i){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(s=(n-55296<<10)+65536|t-56320,a=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,a&&r++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let ty=class e{constructor(t){if(tm(this,"id",++e.LAST_ID),tm(this,"_onigBinding"),tm(this,"content"),tm(this,"utf16Length"),tm(this,"utf8Length"),tm(this,"utf16OffsetToUtf8"),tm(this,"utf8OffsetToUtf16"),tm(this,"ptr"),!tf)throw new tc("Must invoke loadWasm first.");this._onigBinding=tf,this.content=t;const r=new tg(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=tf.omalloc(1e4)),e._sharedPtrInUse=!0,tf.HEAPU8.set(r.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=r.createString(tf)}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)}};tm(ty,"LAST_ID",0),tm(ty,"_sharedPtr",0),tm(ty,"_sharedPtrInUse",!1);class t_{constructor(e){if(tm(this,"_onigBinding"),tm(this,"_ptr"),!tf)throw new tc("Must invoke loadWasm first.");const t=[],r=[];for(let i=0,n=e.length;i<n;i++){const n=new tg(e[i]);t[i]=n.createString(tf),r[i]=n.utf8Length}const i=tf.omalloc(4*e.length);tf.HEAPU32.set(t,i/4);const n=tf.omalloc(4*e.length);tf.HEAPU32.set(r,n/4);const s=tf.createOnigScanner(i,n,e.length);for(let r=0,i=e.length;r<i;r++)tf.ofree(t[r]);tf.ofree(n),tf.ofree(i),0===s&&function(e){throw new tc(e.UTF8ToString(e.getLastO
1nigError()))}(tf),this._onigBinding=tf,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let i=0;if("number"==typeof r&&(i=r),"string"==typeof e){e=new ty(e);let r=this._findNextMatchSync(e,t,!1,i);return e.dispose(),r}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,r,i){let n=this._onigBinding,s=n.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(0===s)return null;let a=n.HEAPU32,o=s/4,l=a[o++],c=a[o++],h=[];for(let t=0;t<c;t++){let r=e.convertUtf8OffsetToUtf16(a[o++]),i=e.convertUtf8OffsetToUtf16(a[o++]);h[t]={start:r,end:i,length:i-r}}return{index:l,captureIndices:h}}}function tb(e){return t=>WebAssembly.instantiate(e,t)}async function tA(e){return e&&await (t||(t=async function(){tf=await tu(async t=>{let r=e;if("function"==typeof(r=await r)&&(r=await r(t)),"function"==typeof r&&(r=await r(t)),"function"==typeof r.instantiator)r=await r.instantiator(t);else if("function"==typeof r.default)r=await r.default(t);else{var i,n,s,a;if(void 0!==r.data&&(r=r.data),i=r,"u">typeof Response&&i instanceof Response){r="function"==typeof WebAssembly.instantiateStreaming?await (s=r,e=>WebAssembly.instantiateStreaming(s,e))(t):await (a=r,async e=>{let t=await a.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(n=r,"u">typeof ArrayBuffer&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||void 0!==tl.Buffer&&tl.Buffer.isBuffer?.(n)||"u">typeof SharedArrayBuffer&&n instanceof SharedArrayBuffer||"u">typeof Uint32Array&&n instanceof Uint32Array||r instanceof WebAssembly.Module)?r=await tb(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await tb(r.default)(t))}return"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}())),{createScanner:e=>new t_(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new ty(e)}}let{codeToHtml:tk}=function(e,t){let r,i=async function(t={}){if(r){let e=await r;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{r=e({...t,themes:[],langs:[]});let i=await r;return await Promise.all([i.loadTheme(...t.themes||[]),i.loadLanguage(...t.langs||[])]),i}};async function n(e,r){let n=await i({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)}),s=await t?.guessEmbeddedLanguages?.(e,r.lang,n);return s&&await n.loadLanguage(...s),n}return{getSingletonHighlighter:e=>i(e),codeToHtml:async(e,t)=>(await n(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await n(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await n(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await n(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await n(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await i({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}((r=(o={langs:ta,themes:to,engine:()=>tA(e.A(514467))}).langs,i=o.themes,n=o.engine,async function(e){function t(t){if("string"==typeof t){if(eL(t=e.langAlias?.[t]||t))return[];let i=r[t];if(!i)throw new d(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return i}return t}function s(e){if(ej(e))return"none";if("string"==typeof e){let t=i[e];if(!t)throw new d(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let a=(e.themes??[]).map(e=>s(e)),o=(e.langs??[]).map(e=>t(e)),l=await tr({engine:e.engine??n(),...e,themes:a,langs:o});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(t)),loadTheme:(...e)=>l.loadTheme(...e.map(s)),getBundledLanguages:()=>r,getBundledThemes:()=>i}}),{guessEmbeddedLanguages:function(e,t,r){let i=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&i.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&i.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&i.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),r=e.includes("/")?e.split("/").pop():e;r&&i.add(r)}if(!r)return Array.from(i);let n=r.getBundledLanguages();return Array.from(i).filter(e=>e&&n[e])}});var tx=e.i(214332),tw=e.i(98438),tS=e.i(647163);async function tC({value:e,theme:t="dark-plus",className:r}){if(!e?.code)return null;let i=await tk((0,h.stegaClean)(e.code),{lang:e.language,theme:t,decorations:e.highlightedLines?.map(t=>({row:t,characters:(0,h.stegaClean)(eR(e.code)[t-1]?.[0])?.length}))?.filter(({characters:e})=>e>0)?.map(({row:e,characters:t})=>({start:{line:e-1,character:0},end:{line:e-1,character:t},properties:{class:"highlight"}}))}),[n,s]=e.filename?.includes("/")?e.filename.split(/(.*)\/(.*)$/).filter(
1Boolean):[,e.filename];return(0,l.jsxs)("article",{className:(0,tS.cn)("group bg-ink/5 relative rounded",r),"data-module":"code",children:[e.filename&&(0,l.jsx)("div",{className:"text-canvas sticky top-0 z-1 -mb-1 rounded-t bg-[#323232] p-1 pb-0 font-mono text-xs",children:(0,l.jsxs)("span",{className:"inline-block rounded-t border-b border-blue-400 bg-[#1E1E1E] px-3 py-2",children:[n&&(0,l.jsxs)("span",{className:"text-canvas/50",children:[n,"/"]}),(0,l.jsx)("span",{children:s})]})}),(0,l.jsxs)("div",{className:"inner relative",children:[(0,l.jsx)("div",{className:"sticky top-1 z-1",children:(0,l.jsx)("menu",{className:"absolute top-0 right-0 flex items-center justify-end",children:(0,l.jsx)("li",{children:(0,l.jsx)(tx.default,{value:(0,h.stegaClean)(e.code),className:(0,tS.cn)("anim-fade-to-l m-1 hidden rounded p-[.3em] text-lg backdrop-blur group-hover:block hover:bg-white/10 active:scale-95 active:bg-white/20 [&.pointer-events-none]:block",!t.includes("light")&&"text-white")})})})}),(0,l.jsx)("div",{className:(0,tS.cn)(tw.default.code,"[--highlight-color:var(--color-green-400)]"),dangerouslySetInnerHTML:{__html:i}})]})]})}e.s(["default",0,tC],268659)},252753,e=>{"use strict";var t=e.i(474076),r=e.i(196768);e.s(["default",0,function({_key:e,contentType:i="crypto",subscriberCount:n}){return(0,t.jsx)("div",{className:"subscription-cta-module content-bleed","data-key":e,children:(0,t.jsx)(r.default,{contentType:i,subscriberCount:n})})}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.