@vladar107/claudescope 0.4.2 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,149 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
2
+ var Yn=Object.defineProperty;var nr=t=>{throw TypeError(t)};var ei=(t,e,r)=>e in t?Yn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var g=(t,e,r)=>ei(t,typeof e!="symbol"?e+"":e,r),ir=(t,e,r)=>e.has(t)||nr("Cannot "+r);var dt=(t,e,r)=>(ir(t,e,"read from private field"),r?r.call(t):e.get(t)),sr=(t,e,r)=>e.has(t)?nr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Ne=(t,e,r,n)=>(ir(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{_ as u,w as Ft,s as Br,f as ti,a as ri,b as ni,c as ar,h as ii}from"./index-C1EvcbHL.js";const or={}.hasOwnProperty;function si(t,e){const r=e||{};function n(i,...s){let a=n.invalid;const o=n.handlers;if(i&&or.call(i,t)){const c=String(i[t]);a=or.call(o,c)?o[c]:n.unknown}if(a)return a.call(this,i,...s)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const Fr=[{id:"abap",name:"ABAP",import:()=>u(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>u(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>u(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>u(()=>import("./angular-html-LfdN0zeE.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>u(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>u(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>u(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>u(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>u(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>u(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>u(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>u(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>u(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>u(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>u(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>u(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>u(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>u(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>u(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>u(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>u(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>u(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>u(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>u(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>u(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>u(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>u(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>u(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>u(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>u(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>u(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>u(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>u(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>u(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>u(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>u(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>u(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>u(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>u(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>u(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>u(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>u(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>u(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>u(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>u(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>u(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>u(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>u(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>u(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>u(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>u(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>u(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>u(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>u(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>u(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>u(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>u(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>u(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>u(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>u(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>u(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>u(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>u(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>u(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>u(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>u(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>u(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>u(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>u(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>u(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>u(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>u(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>u(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>u(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>u(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>u(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>u(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>u(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>u(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>u(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>u(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>u(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>u(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>u(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>u(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>u(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>u(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>u(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>u(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>u(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>u(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>u(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>u(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>u(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>u(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>u(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>u(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>u(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>u(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>u(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>u(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>u(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>u(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>u(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>u(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>u(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>u(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>u(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>u(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>u(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>u(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>u(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>u(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>u(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>u(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>u(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>u(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>u(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>u(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>u(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>u(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>u(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>u(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>u(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>u(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>u(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>u(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>u(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>u(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>u(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>u(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>u(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>u(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>u(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>u(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>u(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>u(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>u(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>u(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>u(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>u(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>u(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>u(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>u(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>u(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>u(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>u(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>u(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>u(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>u(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>u(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>u(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>u(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>u(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>u(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>u(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>u(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>u(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>u(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>u(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>u(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>u(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>u(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>u(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>u(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>u(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>u(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>u(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>u(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>u(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>u(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>u(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>u(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>u(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>u(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>u(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>u(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>u(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>u(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>u(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>u(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>u(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>u(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>u(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>u(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>u(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>u(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>u(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>u(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>u(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>u(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>u(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>u(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>u(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>u(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>u(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>u(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>u(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>u(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>u(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>u(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>u(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>u(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>u(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>u(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>u(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>u(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>u(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>u(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>u(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>u(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>u(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>u(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>u(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>u(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>u(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>u(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>u(()=>import("./zig-BVz_zdnA.js"),[])}],ai=Object.fromEntries(Fr.map(t=>[t.id,t.import])),oi=Object.fromEntries(Fr.flatMap(t=>{var e;return((e=t.aliases)==null?void 0:e.map(r=>[r,t.import]))||[]})),ci={...ai,...oi},li=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>u(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>u(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>u(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>u(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>u(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>u(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>u(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>u(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>u(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>u(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>u(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>u(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>u(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>u(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>u(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>u(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>u(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>u(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>u(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>u(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>u(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>u(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>u(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>u(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>u(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>u(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>u(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>u(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>u(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>u(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>u(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>u(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>u(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>u(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>u(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>u(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>u(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>u(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>u(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>u(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>u(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>u(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>u(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>u(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>u(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>u(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>u(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>u(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>u(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>u(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>u(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>u(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>u(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>u(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],ui=Object.fromEntries(li.map(t=>[t.id,t.import]));let te=class extends Error{constructor(e){super(e),this.name="ShikiError"}},jt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function pi(){return 2147483648}function hi(){return typeof performance<"u"?performance.now():Date.now()}const di=(t,e)=>t+(e-t%e)%e;async function fi(t){let e,r;const n={};function i(d){r=d,n.HEAPU8=new Uint8Array(d),n.HEAPU32=new Uint32Array(d)}function s(d,m,C){n.HEAPU8.copyWithin(d,m,m+C)}function a(d){try{return e.grow(d-r.byteLength+65535>>>16),i(e.buffer),1}catch{}}function o(d){const m=n.HEAPU8.length;d=d>>>0;const C=pi();if(d>C)return!1;for(let E=1;E<=4;E*=2){let y=m*(1+.2/E);y=Math.min(y,d+100663296);const v=Math.min(C,di(Math.max(d,y),65536));if(a(v))return!0}return!1}const c=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function l(d,m,C=1024){const E=m+C;let y=m;for(;d[y]&&!(y>=E);)++y;if(y-m>16&&d.buffer&&c)return c.decode(d.subarray(m,y));let v="";for(;m<y;){let w=d[m++];if(!(w&128)){v+=String.fromCharCode(w);continue}const R=d[m++]&63;if((w&224)===192){v+=String.fromCharCode((w&31)<<6|R);continue}const I=d[m++]&63;if((w&240)===224?w=(w&15)<<12|R<<6|I:w=(w&7)<<18|R<<12|I<<6|d[m++]&63,w<65536)v+=String.fromCharCode(w);else{const V=w-65536;v+=String.fromCharCode(55296|V>>10,56320|V&1023)}}return v}function p(d,m){return d?l(n.HEAPU8,d,m):""}const h={emscripten_get_now:hi,emscripten_memcpy_big:s,emscripten_resize_heap:o,fd_write:()=>0};async function f(){const m=await t({env:h,wasi_snapshot_preview1:h});e=m.memory,i(e.buffer),Object.assign(n,m),n.UTF8ToString=p}return await f(),n}var mi=Object.defineProperty,gi=(t,e,r)=>e in t?mi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,P=(t,e,r)=>(gi(t,typeof e!="symbol"?e+"":e,r),r);let N=null;function _i(t){throw new jt(t.UTF8ToString(t.getLastOnigError()))}class rt{constructor(e){P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16Value"),P(this,"utf8Value"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16");const r=e.length,n=rt._utf8ByteLength(e),i=n!==r,s=i?new Uint32Array(r+1):null;i&&(s[r]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=r);const o=new Uint8Array(n);let c=0;for(let l=0;l<r;l++){const p=e.charCodeAt(l);let h=p,f=!1;if(p>=55296&&p<=56319&&l+1<r){const d=e.charCodeAt(l+1);d>=56320&&d<=57343&&(h=(p-55296<<10)+65536|d-56320,f=!0)}i&&(s[l]=c,f&&(s[l+1]=c),h<=127?a[c+0]=l:h<=2047?(a[c+0]=l,a[c+1]=l):h<=65535?(a[c+0]=l,a[c+1]=l,a[c+2]=l):(a[c+0]=l,a[c+1]=l,a[c+2]=l,a[c+3]=l)),h<=127?o[c++]=h:h<=2047?(o[c++]=192|(h&1984)>>>6,o[c++]=128|(h&63)>>>0):h<=65535?(o[c++]=224|(h&61440)>>>12,o[c++]=128|(h&4032)>>>6,o[c++]=128|(h&63)>>>0):(o[c++]=240|(h&1835008)>>>18,o[c++]=128|(h&258048)>>>12,o[c++]=128|(h&4032)>>>6,o[c++]=128|(h&63)>>>0),f&&l++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let r=0;for(let n=0,i=e.length;n<i;n++){const s=e.charCodeAt(n);let a=s,o=!1;if(s>=55296&&s<=56319&&n+1<i){const c=e.charCodeAt(n+1);c>=56320&&c<=57343&&(a=(s-55296<<10)+65536|c-56320,o=!0)}a<=127?r+=1:a<=2047?r+=2:a<=65535?r+=3:r+=4,o&&n++}return r}createString(e){const r=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,r),r}}const H=class{constructor(t){if(P(this,"id",++H.LAST_ID),P(this,"_onigBinding"),P(this,"content"),P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16"),P(this,"ptr"),!N)throw new jt("Must invoke loadWasm first.");this._onigBinding=N,this.content=t;const e=new rt(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!H._sharedPtrInUse?(H._sharedPtr||(H._sharedPtr=N.omalloc(1e4)),H._sharedPtrInUse=!0,N.HEAPU8.set(e.utf8Value,H._sharedPtr),this.ptr=H._sharedPtr):this.ptr=e.createString(N)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===H._sharedPtr?H._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Le=H;P(Le,"LAST_ID",0);P(Le,"_sharedPtr",0);P(Le,"_sharedPtrInUse",!1);class Ei{constructor(e){if(P(this,"_onigBinding"),P(this,"_ptr"),!N)throw new jt("Must invoke loadWasm first.");const r=[],n=[];for(let o=0,c=e.length;o<c;o++){const l=new rt(e[o]);r[o]=l.createString(N),n[o]=l.utf8Length}const i=N.omalloc(4*e.length);N.HEAPU32.set(r,i/4);const s=N.omalloc(4*e.length);N.HEAPU32.set(n,s/4);const a=N.createOnigScanner(i,s,e.length);for(let o=0,c=e.length;o<c;o++)N.ofree(r[o]);N.ofree(s),N.ofree(i),a===0&&_i(N),this._onigBinding=N,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof e=="string"){e=new Le(e);const s=this._findNextMatchSync(e,r,!1,i);return e.dispose(),s}return this._findNextMatchSync(e,r,!1,i)}_findNextMatchSync(e,r,n,i){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(r),i);if(a===0)return null;const o=s.HEAPU32;let c=a/4;const l=o[c++],p=o[c++],h=[];for(let f=0;f<p;f++){const d=e.convertUtf8OffsetToUtf16(o[c++]),m=e.convertUtf8OffsetToUtf16(o[c++]);h[f]={start:d,end:m,length:m-d}}return{index:l,captureIndices:h}}}function yi(t){return typeof t.instantiator=="function"}function Ci(t){return typeof t.default=="function"}function vi(t){return typeof t.data<"u"}function Ai(t){return typeof Response<"u"&&t instanceof Response}function bi(t){var e;return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,t))||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let xe;function wi(t){if(xe)return xe;async function e(){N=await fi(async r=>{let n=t;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),yi(n)?n=await n.instantiator(r):Ci(n)?n=await n.default(r):(vi(n)&&(n=n.data),Ai(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await ki(n)(r):n=await Si(n)(r):bi(n)?n=await ft(n)(r):n instanceof WebAssembly.Module?n=await ft(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await ft(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return xe=e(),xe}function ft(t){return e=>WebAssembly.instantiate(t,e)}function ki(t){return e=>WebAssembly.instantiateStreaming(t,e)}function Si(t){return async e=>{const r=await t.arrayBuffer();return WebAssembly.instantiate(r,e)}}let Ri;function Ii(){return Ri}async function nt(t){return t&&await wi(t),{createScanner(e){return new Ei(e.map(r=>typeof r=="string"?r:r.source))},createString(e){return new Le(e)}}}let Fe=!1,jr=!1;function Fc(t=!0,e=!1){Fe=t,jr=e}function Q(t,e=3){if(Fe&&!(typeof Fe=="number"&&e>Fe)){if(jr)throw new Error(`[SHIKI DEPRECATE]: ${t}`);console.trace(`[SHIKI DEPRECATE]: ${t}`)}}function Ti(t){return Ut(t)}function Ut(t){return Array.isArray(t)?Li(t):t instanceof RegExp?t:typeof t=="object"?Pi(t):t}function Li(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Ut(t[r]);return e}function Pi(t){let e={};for(let r in t)e[r]=Ut(t[r]);return e}function Ur(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function Wr(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Wr(t.substring(0,t.length-1)):t.substr(~e+1)}var mt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ve=class{static hasCaptures(t){return t===null?!1:(mt.lastIndex=0,mt.test(t))}static replaceCaptures(t,e,r){return t.replace(mt,(n,i,s,a)=>{let o=r[parseInt(i||s,10)];if(o){let c=e.substring(o.start,o.end);for(;c[0]===".";)c=c.substring(1);switch(a){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return n})}};function Hr(t,e){return t<e?-1:t>e?1:0}function qr(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let s=Hr(t[i],e[i]);if(s!==0)return s}return 0}return r-n}function cr(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function zr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Qr=class{constructor(t){g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},He=class{constructor(t,e,r){g(this,"_cachedMatchRoot",new Qr(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(Ni(t),e)}static createFromParsedTheme(t,e){return Vi(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>Oi(t.parent,i.parentScopes));return n?new Kr(n.fontStyle,n.foreground,n.background):null}},gt=class je{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new je(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new je(r,e[n]);return r}push(e){return new je(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function Oi(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!Di(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Di(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var Kr=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function Ni(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,s=e.length;i<s;i++){let a=e[i];if(!a.settings)continue;let o;if(typeof a.scope=="string"){let h=a.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),o=h.split(",")}else Array.isArray(a.scope)?o=a.scope:o=[""];let c=-1;if(typeof a.settings.fontStyle=="string"){c=0;let h=a.settings.fontStyle.split(" ");for(let f=0,d=h.length;f<d;f++)switch(h[f]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let l=null;typeof a.settings.foreground=="string"&&cr(a.settings.foreground)&&(l=a.settings.foreground);let p=null;typeof a.settings.background=="string"&&cr(a.settings.background)&&(p=a.settings.background);for(let h=0,f=o.length;h<f;h++){let m=o[h].trim().split(" "),C=m[m.length-1],E=null;m.length>1&&(E=m.slice(0,m.length-1),E.reverse()),r[n++]=new xi(C,E,i,c,l,p)}}return r}var xi=class{constructor(t,e,r,n,i,s){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=s}},ee=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(ee||{});function Vi(t,e){t.sort((c,l)=>{let p=Hr(c.scope,l.scope);return p!==0||(p=qr(c.parentScopes,l.parentScopes),p!==0)?p:c.index-l.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let c=t.shift();c.fontStyle!==-1&&(r=c.fontStyle),c.foreground!==null&&(n=c.foreground),c.background!==null&&(i=c.background)}let s=new $i(e),a=new Kr(r,s.getId(n),s.getId(i)),o=new Mi(new It(0,null,-1,0,0),[]);for(let c=0,l=t.length;c<l;c++){let p=t[c];o.insert(0,p.scope,p.parentScopes,p.fontStyle,s.getId(p.foreground),s.getId(p.background))}return new He(s,a,o)}var $i=class{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},Gi=Object.freeze([]),It=class Xr{constructor(e,r,n,i,s){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=e,this.parentScopes=r||Gi,this.fontStyle=n,this.foreground=i,this.background=s}clone(){return new Xr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},Mi=class Tt{constructor(e,r=[],n={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const s=r.parentScopes[i].length-e.parentScopes[n].length;if(s!==0)return s;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,s;if(n===-1?(i=e,s=""):(i=e.substring(0,n),s=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Tt._cmpBySpecificity),r}insert(e,r,n,i,s,a){if(r===""){this._doInsertHere(e,n,i,s,a);return}let o=r.indexOf("."),c,l;o===-1?(c=r,l=""):(c=r.substring(0,o),l=r.substring(o+1));let p;this._children.hasOwnProperty(c)?p=this._children[c]:(p=new Tt(this._mainRule.clone(),It.cloneArr(this._rulesWithParentScopes)),this._children[c]=p),p.insert(e+1,l,n,i,s,a)}_doInsertHere(e,r,n,i,s){if(r===null){this._mainRule.acceptOverwrite(e,n,i,s);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let c=this._rulesWithParentScopes[a];if(qr(c.parentScopes,r)===0){c.acceptOverwrite(e,n,i,s);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new It(e,r,n,i,s))}},ge=class F{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=F.getLanguageId(e),n=F.getTokenType(e),i=F.getFontStyle(e),s=F.getForeground(e),a=F.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:s,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,s,a,o){let c=F.getLanguageId(e),l=F.getTokenType(e),p=F.containsBalancedBrackets(e)?1:0,h=F.getFontStyle(e),f=F.getForeground(e),d=F.getBackground(e);return r!==0&&(c=r),n!==8&&(l=n),i!==null&&(p=i?1:0),s!==-1&&(h=s),a!==0&&(f=a),o!==0&&(d=o),(c<<0|l<<8|p<<10|h<<11|f<<15|d<<24)>>>0}};function qe(t,e){const r=[],n=Bi(t);let i=n.next();for(;i!==null;){let c=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let l=a();if(r.push({matcher:l,priority:c}),i!==",")break;i=n.next()}return r;function s(){if(i==="-"){i=n.next();const c=s();return l=>!!c&&!c(l)}if(i==="("){i=n.next();const c=o();return i===")"&&(i=n.next()),c}if(lr(i)){const c=[];do c.push(i),i=n.next();while(lr(i));return l=>e(c,l)}return null}function a(){const c=[];let l=s();for(;l;)c.push(l),l=s();return p=>c.every(h=>h(p))}function o(){const c=[];let l=a();for(;l&&(c.push(l),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");l=a()}return p=>c.some(h=>h(p))}}function lr(t){return!!t&&!!t.match(/[\w\.:]+/)}function Bi(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function Jr(t){typeof t.dispose=="function"&&t.dispose()}var be=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Fi=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},ji=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},Ui=class{constructor(t,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new be(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new ji;for(const r of t)Wi(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof be){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function Wi(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=r.lookup(e);t instanceof be?Ue({baseGrammar:s,selfGrammar:i},n):Lt(t.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},n);const a=r.injections(t.scopeName);if(a)for(const o of a)n.add(new be(o))}function Lt(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];ze([n],e,r)}}function Ue(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&ze(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&ze(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function ze(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?Ur({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&ze(n.patterns,{...e,repository:i},r);const s=n.include;if(!s)continue;const a=Zr(s);switch(a.kind){case 0:Ue({...e,selfGrammar:e.baseGrammar},r);break;case 1:Ue(e,r);break;case 2:Lt(a.ruleName,{...e,repository:i},r);break;case 3:case 4:const o=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(o){const c={baseGrammar:e.baseGrammar,selfGrammar:o,repository:i};a.kind===4?Lt(a.ruleName,c,r):Ue(c,r)}else a.kind===4?r.add(new Fi(a.scopeName,a.ruleName)):r.add(new be(a.scopeName));break}}}var Hi=class{constructor(){g(this,"kind",0)}},qi=class{constructor(){g(this,"kind",1)}},zi=class{constructor(t){g(this,"kind",2);this.ruleName=t}},Qi=class{constructor(t){g(this,"kind",3);this.scopeName=t}},Ki=class{constructor(t,e){g(this,"kind",4);this.scopeName=t,this.ruleName=e}};function Zr(t){if(t==="$base")return new Hi;if(t==="$self")return new qi;const e=t.indexOf("#");if(e===-1)return new Qi(t);if(e===0)return new zi(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new Ki(r,n)}}var Xi=/\\(\d+)/,ur=/\\(\d+)/g,Ji=-1,Yr=-2;var Pe=class{constructor(t,e,r,n){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=Ve.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Ve.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Wr(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Ve.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ve.replaceCaptures(this._contentName,t,e)}},Zi=class extends Pe{constructor(e,r,n,i,s){super(e,r,n,i);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,r){throw new Error("Not supported!")}compile(e,r){throw new Error("Not supported!")}compileAG(e,r,n,i){throw new Error("Not supported!")}},Yi=class extends Pe{constructor(e,r,n,i,s){super(e,r,n,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new we(i,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,r){r.push(this._match)}compile(e,r){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ke,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},pr=class extends Pe{constructor(e,r,n,i,s){super(e,r,n,i);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,r){for(const n of this.patterns)e.getRule(n).collectPatterns(e,r)}compile(e,r){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ke,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Pt=class extends Pe{constructor(e,r,n,i,s,a,o,c,l,p){super(e,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new we(s,this.id),this.beginCaptures=a,this._end=new we(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=l||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.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,r){return this._end.resolveBackReferences(e,r)}collectPatterns(e,r){r.push(this._begin)}compile(e,r){return this._getCachedCompiledPatterns(e,r).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e,r).compileAG(e,n,i)}_getCachedCompiledPatterns(e,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ke;for(const n of this.patterns)e.getRule(n).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,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},Qe=class extends Pe{constructor(e,r,n,i,s,a,o,c,l){super(e,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new we(s,this.id),this.beginCaptures=a,this.whileCaptures=c,this._while=new we(o,Yr),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,r){return this._while.resolveBackReferences(e,r)}collectPatterns(e,r){r.push(this._begin)}compile(e,r){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,r,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ke;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,r){return this._getCachedCompiledWhilePatterns(e,r).compile(e)}compileWhileAG(e,r,n,i){return this._getCachedCompiledWhilePatterns(e,r).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ke,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},en=class ${static createCaptureRule(e,r,n,i,s){return e.registerRule(a=>new Zi(r,a,n,i,s))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new Yi(e.$vscodeTextmateLocation,e.id,e.name,e.match,$._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=Ur({},n,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new pr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,$._compilePatterns(s,r,n))}return e.while?new Qe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,$._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,$._compileCaptures(e.whileCaptures||e.captures,r,n),$._compilePatterns(e.patterns,r,n)):new Pt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,$._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,$._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,$._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let s=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const o=parseInt(a,10);o>s&&(s=o)}for(let a=0;a<=s;a++)i[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const o=parseInt(a,10);let c=0;e[a].patterns&&(c=$.getCompiledRuleId(e[a],r,n)),i[o]=$.createCaptureRule(r,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,c)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let s=0,a=e.length;s<a;s++){const o=e[s];let c=-1;if(o.include){const l=Zr(o.include);switch(l.kind){case 0:case 1:c=$.getCompiledRuleId(n[o.include],r,n);break;case 2:let p=n[l.ruleName];p&&(c=$.getCompiledRuleId(p,r,n));break;case 3:case 4:const h=l.scopeName,f=l.kind===4?l.ruleName:null,d=r.getExternalGrammar(h,n);if(d)if(f){let m=d.repository[f];m&&(c=$.getCompiledRuleId(m,r,d.repository))}else c=$.getCompiledRuleId(d.repository.$self,r,d.repository);break}}else c=$.getCompiledRuleId(o,r,n);if(c!==-1){const l=r.getRule(c);let p=!1;if((l instanceof pr||l instanceof Pt||l instanceof Qe)&&l.hasMissingPatterns&&l.patterns.length===0&&(p=!0),p)continue;i.push(c)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},we=class tn{constructor(e,r){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(e&&typeof e=="string"){const n=e.length;let i=0,s=[],a=!1;for(let o=0;o<n;o++)if(e.charAt(o)==="\\"&&o+1<n){const l=e.charAt(o+1);l==="z"?(s.push(e.substring(i,o)),s.push("$(?!\\n)(?<!\\n)"),i=o+2):(l==="A"||l==="G")&&(a=!0),o++}this.hasAnchor=a,i===0?this.source=e:(s.push(e.substring(i,n)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=Xi.test(this.source):this.hasBackReferences=!1}clone(){return new tn(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return ur.lastIndex=0,this.source.replace(ur,(i,s)=>zr(n[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],s,a,o,c;for(s=0,a=this.source.length;s<a;s++)o=this.source.charAt(s),e[s]=o,r[s]=o,n[s]=o,i[s]=o,o==="\\"&&s+1<a&&(c=this.source.charAt(s+1),c==="A"?(e[s+1]="￿",r[s+1]="￿",n[s+1]="A",i[s+1]="A"):c==="G"?(e[s+1]="￿",r[s+1]="G",n[s+1]="￿",i[s+1]="G"):(e[s+1]=c,r[s+1]=c,n[s+1]=c,i[s+1]=c),s++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ke=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new hr(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new hr(t,n,this._items.map(i=>i.ruleId))}},hr=class{constructor(t,e,r){g(this,"scanner");this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
3
+ `)}findNextMatchSync(t,e,r){const n=this.scanner.findNextMatchSync(t,e,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},_t=class{constructor(t,e){this.languageId=t,this.tokenType=e}},Y,es=(Y=class{constructor(e,r){g(this,"_defaultAttributes");g(this,"_embeddedLanguagesMatcher");g(this,"_getBasicScopeAttributes",new Qr(e=>{const r=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new _t(r,n)}));this._defaultAttributes=new _t(e,8),this._embeddedLanguagesMatcher=new ts(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Y._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const r=e.match(Y.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},g(Y,"_NULL_SCOPE_METADATA",new _t(0,0)),g(Y,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Y),ts=class{constructor(t){g(this,"values");g(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([r,n])=>zr(r));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},dr=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function rn(t,e,r,n,i,s,a,o){const c=e.content.length;let l=!1,p=-1;if(a){const d=rs(t,e,r,n,i,s);i=d.stack,n=d.linePos,r=d.isFirstLine,p=d.anchorPosition}const h=Date.now();for(;!l;){if(o!==0&&Date.now()-h>o)return new dr(i,!0);f()}return new dr(i,!1);function f(){const d=ns(t,e,r,n,i,p);if(!d){s.produce(i,c),l=!0;return}const m=d.captureIndices,C=d.matchedRuleId,E=m&&m.length>0?m[0].end>n:!1;if(C===Ji){const y=i.getRule(t);s.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ce(t,e,r,i,s,y.endCaptures,m),s.produce(i,m[0].end);const v=i;if(i=i.parent,p=v.getAnchorPos(),!E&&v.getEnterPos()===n){i=v,s.produce(i,c),l=!0;return}}else{const y=t.getRule(C);s.produce(i,m[0].start);const v=i,w=y.getName(e.content,m),R=i.contentNameScopesList.pushAttributed(w,t);if(i=i.push(C,n,p,m[0].end===c,null,R,R),y instanceof Pt){const I=y;Ce(t,e,r,i,s,I.beginCaptures,m),s.produce(i,m[0].end),p=m[0].end;const V=I.getContentName(e.content,m),T=R.pushAttributed(V,t);if(i=i.withContentNameScopesList(T),I.endHasBackReferences&&(i=i.withEndRule(I.getEndWithResolvedBackReferences(e.content,m))),!E&&v.hasSameRuleAs(i)){i=i.pop(),s.produce(i,c),l=!0;return}}else if(y instanceof Qe){const I=y;Ce(t,e,r,i,s,I.beginCaptures,m),s.produce(i,m[0].end),p=m[0].end;const V=I.getContentName(e.content,m),T=R.pushAttributed(V,t);if(i=i.withContentNameScopesList(T),I.whileHasBackReferences&&(i=i.withEndRule(I.getWhileWithResolvedBackReferences(e.content,m))),!E&&v.hasSameRuleAs(i)){i=i.pop(),s.produce(i,c),l=!0;return}}else if(Ce(t,e,r,i,s,y.captures,m),s.produce(i,m[0].end),i=i.pop(),!E){i=i.safePop(),s.produce(i,c),l=!0;return}}m[0].end>n&&(n=m[0].end,r=!1)}}function rs(t,e,r,n,i,s){let a=i.beginRuleCapturedEOL?0:-1;const o=[];for(let c=i;c;c=c.pop()){const l=c.getRule(t);l instanceof Qe&&o.push({rule:l,stack:c})}for(let c=o.pop();c;c=o.pop()){const{ruleScanner:l,findOptions:p}=as(c.rule,t,c.stack.endRule,r,n===a),h=l.findNextMatchSync(e,n,p);if(h){if(h.ruleId!==Yr){i=c.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(s.produce(c.stack,h.captureIndices[0].start),Ce(t,e,r,c.stack,s,c.rule.whileCaptures,h.captureIndices),s.produce(c.stack,h.captureIndices[0].end),a=h.captureIndices[0].end,h.captureIndices[0].end>n&&(n=h.captureIndices[0].end,r=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:r}}function ns(t,e,r,n,i,s){const a=is(t,e,r,n,i,s),o=t.getInjections();if(o.length===0)return a;const c=ss(o,t,e,r,n,i,s);if(!c)return a;if(!a)return c;const l=a.captureIndices[0].start,p=c.captureIndices[0].start;return p<l||c.priorityMatch&&p===l?c:a}function is(t,e,r,n,i,s){const a=i.getRule(t),{ruleScanner:o,findOptions:c}=nn(a,t,i.endRule,r,n===s),l=o.findNextMatchSync(e,n,c);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function ss(t,e,r,n,i,s,a){let o=Number.MAX_VALUE,c=null,l,p=0;const h=s.contentNameScopesList.getScopeNames();for(let f=0,d=t.length;f<d;f++){const m=t[f];if(!m.matcher(h))continue;const C=e.getRule(m.ruleId),{ruleScanner:E,findOptions:y}=nn(C,e,null,n,i===a),v=E.findNextMatchSync(r,i,y);if(!v)continue;const w=v.captureIndices[0].start;if(!(w>=o)&&(o=w,c=v.captureIndices,l=v.ruleId,p=m.priority,o===i))break}return c?{priorityMatch:p===-1,captureIndices:c,matchedRuleId:l}:null}function nn(t,e,r,n,i){return{ruleScanner:t.compileAG(e,r,n,i),findOptions:0}}function as(t,e,r,n,i){return{ruleScanner:t.compileWhileAG(e,r,n,i),findOptions:0}}function Ce(t,e,r,n,i,s,a){if(s.length===0)return;const o=e.content,c=Math.min(s.length,a.length),l=[],p=a[0].end;for(let h=0;h<c;h++){const f=s[h];if(f===null)continue;const d=a[h];if(d.length===0)continue;if(d.start>p)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(n,d.start),f.retokenizeCapturedWithRuleId){const C=f.getName(o,a),E=n.contentNameScopesList.pushAttributed(C,t),y=f.getContentName(o,a),v=E.pushAttributed(y,t),w=n.push(f.retokenizeCapturedWithRuleId,d.start,-1,!1,null,E,v),R=t.createOnigString(o.substring(0,d.end));rn(t,R,r&&d.start===0,d.start,w,i,!1,0),Jr(R);continue}const m=f.getName(o,a);if(m!==null){const E=(l.length>0?l[l.length-1].scopes:n.contentNameScopesList).pushAttributed(m,t);l.push(new os(E,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var os=class{constructor(t,e){g(this,"scopes");g(this,"endPos");this.scopes=t,this.endPos=e}};function cs(t,e,r,n,i,s,a,o){return new us(t,e,r,n,i,s,a,o)}function fr(t,e,r,n,i){const s=qe(e,Ke),a=en.getCompiledRuleId(r,n,i.repository);for(const o of s)t.push({debugSelector:e,matcher:o.matcher,ruleId:a,grammar:i,priority:o.priority})}function Ke(t,e){if(e.length<t.length)return!1;let r=0;return t.every(n=>{for(let i=r;i<e.length;i++)if(ls(e[i],n))return r=i+1,!0;return!1})}function ls(t,e){if(!t)return!1;if(t===e)return!0;const r=e.length;return t.length>r&&t.substr(0,r)===e&&t[r]==="."}var us=class{constructor(t,e,r,n,i,s,a,o){g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=o,this._basicScopeAttributesProvider=new es(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=mr(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const c of Object.keys(i)){const l=qe(c,Ke);for(const p of l)this._tokenTypeMatchers.push({matcher:p.matcher,type:i[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],r=this._rootScopeName,n=t.lookup(r);if(n){const i=n.injections;if(i)for(let a in i)fr(e,a,i[a],this,n);const s=this._grammarRepository.injections(r);s&&s.forEach(a=>{const o=this.getExternalGrammar(a);if(o){const c=o.injectionSelector;c&&fr(e,c,o,this,o)}})}return e.sort((i,s)=>i.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,r=t(e);return this._ruleId2desc[e]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=mr(r,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,r=0){const n=this._tokenize(t,e,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,e,r=0){const n=this._tokenize(t,e,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,e,r,n){this._rootId===-1&&(this._rootId=en.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===Ot.NULL){i=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),h=ge.set(0,l.languageId,l.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),f=this.getRule(this._rootId).getName(null,null);let d;f?d=ve.createRootAndLookUpScopeName(f,h,this):d=ve.createRoot("unknown",h),e=new Ot(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,e.reset();t=t+`
4
+ `;const s=this.createOnigString(t),a=s.content.length,o=new hs(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),c=rn(this,s,i,0,e,o,!0,n);return Jr(s),{lineLength:a,lineTokens:o,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function mr(t,e){return t=Ti(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var ve=class q{constructor(e,r,n){this.parent=e,this.scopePath=r,this.tokenAttributes=n}static fromExtension(e,r){let n=e,i=(e==null?void 0:e.scopePath)??null;for(const s of r)i=gt.push(i,s.scopeNames),n=new q(n,i,s.encodedTokenAttributes);return n}static createRoot(e,r){return new q(null,new gt(null,e),r)}static createRootAndLookUpScopeName(e,r,n){const i=n.getMetadataForScope(e),s=new gt(null,e),a=n.themeProvider.themeMatch(s),o=q.mergeAttributes(r,i,a);return new q(null,s,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return q.equals(this,e)}static equals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.scopeName!==r.scopeName||e.tokenAttributes!==r.tokenAttributes)return!1;e=e.parent,r=r.parent}while(!0)}static mergeAttributes(e,r,n){let i=-1,s=0,a=0;return n!==null&&(i=n.fontStyle,s=n.foregroundId,a=n.backgroundId),ge.set(e,r.languageId,r.tokenType,null,i,s,a)}pushAttributed(e,r){if(e===null)return this;if(e.indexOf(" ")===-1)return q._pushAttributed(this,e,r);const n=e.split(/ /g);let i=this;for(const s of n)i=q._pushAttributed(i,s,r);return i}static _pushAttributed(e,r,n){const i=n.getMetadataForScope(r),s=e.scopePath.push(r),a=n.themeProvider.themeMatch(s),o=q.mergeAttributes(e.tokenAttributes,i,a);return new q(e,s,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var i;const r=[];let n=this;for(;n&&n!==e;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((i=n.parent)==null?void 0:i.scopePath)??null)}),n=n.parent;return n===e?r.reverse():void 0}},j,Ot=(j=class{constructor(e,r,n,i,s,a,o,c){g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=e,this.ruleId=r,this.beginRuleCapturedEOL=s,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(e){return e===null?!1:j._equals(this,e)}static _equals(e,r){return e===r?!0:this._structuralEquals(e,r)?ve.equals(e.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.depth!==r.depth||e.ruleId!==r.ruleId||e.endRule!==r.endRule)return!1;e=e.parent,r=r.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){j._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,r,n,i,s,a,o){return new j(this,e,r,n,i,s,a,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,r){var n,i;return this.parent&&(r=this.parent._writeString(e,r)),e[r++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,r}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new j(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let r=this;for(;r&&r._enterPos===e._enterPos;){if(r.ruleId===e.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var e,r,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,r){const n=ve.fromExtension((e==null?void 0:e.nameScopesList)??null,r.nameScopesList);return new j(e,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,ve.fromExtension(n,r.contentNameScopesList))}},g(j,"NULL",new j(null,0,0,0,!1,null,null,null)),j),ps=class{constructor(t,e){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):qe(r,Ke).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(r=>qe(r,Ke).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},hs=class{constructor(t,e,r,n){g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){var n;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=(t==null?void 0:t.tokenAttributes)??0,s=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=(t==null?void 0:t.getScopeNames())??[];for(const o of this._tokenTypeOverrides)o.matcher(a)&&(i=ge.set(i,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(a))}if(s&&(i=ge.set(i,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const r=(t==null?void 0:t.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:r}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},ds=class{constructor(t,e){g(this,"_grammars",new Map);g(this,"_rawGrammars",new Map);g(this,"_injectionGrammars",new Map);g(this,"_theme");this._onigLib=e,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,r,n,i){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,cs(t,s,e,r,n,i,this,this._onigLib))}return this._grammars.get(t)}},fs=class{constructor(e){g(this,"_options");g(this,"_syncRegistry");g(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new ds(He.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,r){this._syncRegistry.setTheme(He.createFromRawTheme(e,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,r,n){return this.loadGrammarWithConfiguration(e,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,r,n){return this._loadGrammar(e,r,n.embeddedLanguages,n.tokenTypes,new ps(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,r,n,i,s){const a=new Ui(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(o=>this._loadSingleGrammar(o.scopeName)),a.processQueue();return this._grammarForScopeName(e,r,n,i,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const r=this._options.loadGrammar(e);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(e,r=[],n=0,i=null){return this._syncRegistry.addGrammar(e,r),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,r=0,n=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,r,n,i,s)}},Dt=Ot.NULL;const ms=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],gs=/["&'<>`]/g,_s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Es=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ys=/[|\\{}()[\]^$+*?.]/g,gr=new WeakMap;function Cs(t,e){if(t=t.replace(e.subset?vs(e.subset):gs,n),e.subset||e.escapeOnly)return t;return t.replace(_s,r).replace(Es,n);function r(i,s,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function n(i,s,a){return e.format(i.charCodeAt(0),a.charCodeAt(s+1),e)}}function vs(t){let e=gr.get(t);return e||(e=As(t),gr.set(t,e)),e}function As(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(ys,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const bs=/[\dA-Fa-f]/;function ws(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!bs.test(String.fromCharCode(e))?n:n+";"}const ks=/\d/;function Ss(t,e,r){const n="&#"+String(t);return r&&e&&!ks.test(String.fromCharCode(e))?n:n+";"}const Rs=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Et={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Is=["cent","copy","divide","gt","lt","not","para","times"],sn={}.hasOwnProperty,Nt={};let $e;for($e in Et)sn.call(Et,$e)&&(Nt[Et[$e]]=$e);const Ts=/[^\dA-Za-z]/;function Ls(t,e,r,n){const i=String.fromCharCode(t);if(sn.call(Nt,i)){const s=Nt[i],a="&"+s;return r&&Rs.includes(s)&&!Is.includes(s)&&(!n||e&&e!==61&&Ts.test(String.fromCharCode(e)))?a:a+";"}return""}function Ps(t,e,r){let n=ws(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Ls(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const s=Ss(t,e,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function de(t,e){return Cs(t,Object.assign({format:Ps},e))}const Os=/^>|^->|<!--|-->|--!>|<!-$/g,Ds=[">"],Ns=["<",">"];function xs(t,e,r,n){return n.settings.bogusComments?"<?"+de(t.value,Object.assign({},n.settings.characterReferences,{subset:Ds}))+">":"<!--"+t.value.replace(Os,i)+"-->";function i(s){return de(s,Object.assign({},n.settings.characterReferences,{subset:Ns}))}}function Vs(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const D=on(1),an=on(-1),$s=[];function on(t){return e;function e(r,n,i){const s=r?r.children:$s;let a=(n||0)+t,o=s[a];if(!i)for(;o&&Ft(o);)a+=t,o=s[a];return o}}const Gs={}.hasOwnProperty;function cn(t){return e;function e(r,n,i){return Gs.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const Wt=cn({body:Bs,caption:yt,colgroup:yt,dd:Ws,dt:Us,head:yt,html:Ms,li:js,optgroup:Hs,option:qs,p:Fs,rp:_r,rt:_r,tbody:Qs,td:Er,tfoot:Ks,th:Er,thead:zs,tr:Xs});function yt(t,e,r){const n=D(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Ft(n.value.charAt(0)))}function Ms(t,e,r){const n=D(r,e);return!n||n.type!=="comment"}function Bs(t,e,r){const n=D(r,e);return!n||n.type!=="comment"}function Fs(t,e,r){const n=D(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function js(t,e,r){const n=D(r,e);return!n||n.type==="element"&&n.tagName==="li"}function Us(t,e,r){const n=D(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Ws(t,e,r){const n=D(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function _r(t,e,r){const n=D(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function Hs(t,e,r){const n=D(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function qs(t,e,r){const n=D(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function zs(t,e,r){const n=D(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Qs(t,e,r){const n=D(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Ks(t,e,r){return!D(r,e)}function Xs(t,e,r){const n=D(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function Er(t,e,r){const n=D(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Js=cn({body:ea,colgroup:ta,head:Ys,html:Zs,tbody:ra});function Zs(t){const e=D(t,-1);return!e||e.type!=="comment"}function Ys(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function ea(t){const e=D(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ft(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function ta(t,e,r){const n=an(r,e),i=D(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Wt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function ra(t,e,r){const n=an(r,e),i=D(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Wt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Ge={name:[[`
5
+ \f\r &/=>`.split(""),`
6
+ \f\r "&'/=>\``.split("")],[`\0
7
+ \f\r "&'/<=>`.split(""),`\0
8
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
9
+ \f\r &>`.split(""),`\0
10
+ \f\r "&'<=>\``.split("")],[`\0
11
+ \f\r "&'<=>\``.split(""),`\0
12
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function na(t,e,r,n){const i=n.schema,s=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const o=[];let c;i.space==="html"&&t.tagName==="svg"&&(n.schema=Br);const l=ia(n,t.properties),p=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,p&&(a=!1),(l||!s||!Js(t,e,r))&&(o.push("<",t.tagName,l?" "+l:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!n.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(p),!a&&(!s||!Wt(t,e,r))&&o.push("</"+t.tagName+">"),o.join("")}function ia(t,e){const r=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const s=sa(t,i,e[i]);s&&r.push(s)}}for(;++n<r.length;){const s=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&s!=='"'&&s!=="'"&&(r[n]+=" ")}return r.join("")}function sa(t,e,r){const n=ti(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1;let a=t.quote,o;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const c=de(n.attribute,Object.assign({},t.settings.characterReferences,{subset:Ge.name[i][s]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?ri:ni)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?c:(t.settings.preferUnquoted&&(o=de(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Ge.unquoted[i][s]}))),o!==r&&(t.settings.quoteSmart&&ar(r,a)>ar(r,t.alternative)&&(a=t.alternative),o=a+de(r,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?Ge.single:Ge.double)[i][s],attribute:!0}))+a),c+(o&&"="+o))}const aa=["<","&"];function ln(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:de(t.value,Object.assign({},n.settings.characterReferences,{subset:aa}))}function oa(t,e,r,n){return n.settings.allowDangerousHtml?t.value:ln(t,e,r,n)}function ca(t,e,r,n){return n.all(t)}const la=si("type",{invalid:ua,unknown:pa,handlers:{comment:xs,doctype:Vs,element:na,raw:oa,root:ca,text:ln}});function ua(t){throw new Error("Expected node, not `"+t+"`")}function pa(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const ha={},da={},fa=[];function ma(t,e){const r=e||ha,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:ga,all:_a,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||ms,characterReferences:r.characterReferences||da,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Br:ii,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function ga(t,e,r){return la(t,e,r,this)}function _a(t){const e=[],r=t&&t.children||fa;let n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}const Ht=String.raw,yr=Ht`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`,Cr=Ht`\u{E0061}-\u{E007A}`,Ea=()=>new RegExp(Ht`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${Cr}]{2}[\u{E0030}-\u{E0039}${Cr}]{1,3}\u{E007F}|${yr}(?:\u200D${yr})*`,"gu"),U=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function it(t,e,r,n){const i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1];let a=0,o="";for(const c of t.matchAll(i)){const{0:l,groups:{$skip:p}}=c;if(!p&&(!n||n===U.DEFAULT==!a)){r instanceof Function?o+=r(c,{context:a?U.CHAR_CLASS:U.DEFAULT,negated:s[s.length-1]}):o+=r;continue}l[0]==="["?(a++,s.push(l[1]==="^")):l==="]"&&a&&(a--,s.pop()),o+=l}return o}function ya(t,e,r,n){it(t,e,r,n)}function Ca(t,e,r=0,n){if(!new RegExp(e,"su").test(t))return null;const i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let s=0,a;for(;a=i.exec(t);){const{0:o,groups:{$skip:c}}=a;if(!c&&(!n||n===U.DEFAULT==!s))return a;o==="["?s++:o==="]"&&s&&s--,i.lastIndex==a.index&&i.lastIndex++}return null}function Me(t,e,r){return!!Ca(t,e,0,r)}function va(t,e){const r=/\\?./gsu;r.lastIndex=e;let n=t.length,i=0,s=1,a;for(;a=r.exec(t);){const[o]=a;if(o==="[")i++;else if(i)o==="]"&&i--;else if(o==="(")s++;else if(o===")"&&(s--,!s)){n=a.index;break}}return t.slice(e,n)}const le="$E$";class qt extends RegExp{constructor(r,n,i){if(r instanceof RegExp&&i)throw new Error("Cannot provide options when copying a regexp");const s=!!(i!=null&&i.useEmulationGroups),a=s?Aa(r):null;super((a==null?void 0:a.expression)||r,n);g(this,"_captureMap");g(this,"_namesByIndex");const o=s?a:r instanceof qt?r:null;o&&(this._captureMap=o._captureMap,this._namesByIndex=o._namesByIndex)}exec(r){const n=RegExp.prototype.exec.call(this,r);if(!n||!this._captureMap)return n;const i=[...n];n.length=1;let s;this.hasIndices&&(s=[...n.indices],n.indices.length=1);for(let a=1;a<i.length;a++)if(this._captureMap[a].exclude){const o=this._captureMap[a].transfer;if(o&&n.length>o){n[o]=i[a];const c=this._namesByIndex[o];c&&(n.groups[c]=i[a],this.hasIndices&&(n.indices.groups[c]=s[a])),this.hasIndices&&(n.indices[o]=s[a])}}else n.push(i[a]),this.hasIndices&&n.indices.push(s[a]);return n}}function Aa(t){const e=le.replace(/\$/g,"\\$"),r=[{exclude:!1}],n={0:""};let i=0;return t=it(t,String.raw`\((?:(?!\?)|\?<(?![=!])(?<name>[^>]+)>)(?<mark>(?:\$(?<transfer>[1-9]\d*))?${e})?`,({0:s,groups:{name:a,mark:o,transfer:c}})=>o?(r.push({exclude:!0,transfer:c&&+c}),s.slice(0,-o.length)):(i++,a&&(n[i]=a),r.push({exclude:!1}),s),U.DEFAULT),{_captureMap:r,_namesByIndex:n,expression:t}}const ba=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function wa(t,e,r,n){return t.slice(0,e)+n+t.slice(e+r.length)}const vr=new RegExp(String.raw`(?<noncapturingStart>${ba})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function ka(t,e){if(!/\(\?>/.test(t))return t;const r="(?>",n=`(?:(?=(${e!=null&&e.useEmulationGroups?le:""}`,i=[0];let s=0,a=0,o=NaN,c;do{c=!1;let l=0,p=0,h=!1,f;for(vr.lastIndex=Number.isNaN(o)?0:o+n.length;f=vr.exec(t);){const{0:d,index:m,groups:{capturingStart:C,noncapturingStart:E}}=f;if(d==="[")l++;else if(l)d==="]"&&l--;else if(d===r&&!h)o=m,h=!0;else if(h&&E)p++;else if(C)h?p++:(s++,i.push(s+a));else if(d===")"&&h){if(!p){a++,t=`${t.slice(0,o)}${n}${t.slice(o+r.length,m)}))<$$${a+s}>)${t.slice(m+1)}`,c=!0;break}p--}}}while(c);return t=it(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:l,groups:{backrefNum:p,wrappedBackrefNum:h}})=>{if(p){const f=+p;if(f>i.length-1)throw new Error(`Backref "${l}" greater than number of captures`);return`\\${i[f]}`}return`\\${h}`},U.DEFAULT),t}const un=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ct=new RegExp(String.raw`
13
+ \\(?: \d+
14
+ | c[A-Za-z]
15
+ | [gk]<[^>]+>
16
+ | [pPu]\{[^\}]+\}
17
+ | u[A-Fa-f\d]{4}
18
+ | x[A-Fa-f\d]{2}
19
+ )
20
+ | \((?: \? (?: [:=!>]
21
+ | <(?:[=!]|[^>]+>)
22
+ | [A-Za-z\-]+:
23
+ | \(DEFINE\)
24
+ ))?
25
+ | (?<qBase>${un})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
26
+ | \\?.
27
+ `.replace(/\s+/g,""),"gsu");function Sa(t){if(!new RegExp(`${un}\\+`).test(t))return t;const e=[];let r=null,n=null,i="",s=0,a;for(Ct.lastIndex=0;a=Ct.exec(t);){const{0:o,index:c,groups:{qBase:l,qMod:p,invalidQ:h}}=a;if(o==="[")s||(n=c),s++;else if(o==="]")s?s--:n=null;else if(!s)if(p==="+"&&i&&!i.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${o}"`);let f=-1;if(/^\{\d+\}$/.test(l))t=wa(t,c+l.length,p,"");else{if(i===")"||i==="]"){const d=i===")"?r:n;if(d===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,d)}(?>${t.slice(d,c)}${l})${t.slice(c+o.length)}`}else t=`${t.slice(0,c-i.length)}(?>${i}${l})${t.slice(c+o.length)}`;f+=4}Ct.lastIndex+=f}else o[0]==="("?e.push(c):o===")"&&(r=e.length?e.pop():null);i=o}return t}const B=String.raw,Ra=B`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,xt=B`\(\?R=(?<rDepth>[^\)]+)\)|${Ra}`,st=B`\(\?<(?![=!])(?<captureName>[^>]+)>`,ne=new RegExp(B`${st}|${xt}|\(\?|\\?.`,"gsu"),vt="Cannot use multiple overlapping recursions",Vt=new RegExp(B`(?:\$[1-9]\d*)?${le.replace(/\$/g,B`\$`)}`,"y");function Ia(t,e){if(!new RegExp(xt,"su").test(t))return t;if(Me(t,B`\(\?\(DEFINE\)`,U.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const r=!!(e!=null&&e.useEmulationGroups),n=Me(t,B`\\[1-9]`,U.DEFAULT),i=new Map,s=[];let a=!1,o=0,c=0,l;for(ne.lastIndex=0;l=ne.exec(t);){const{0:p,groups:{captureName:h,rDepth:f,gRNameOrNum:d,gRDepth:m}}=l;if(p==="[")o++;else if(o)p==="]"&&o--;else if(f){if(Ar(f),a)throw new Error(vt);if(n)throw new Error("Numbered backrefs cannot be used with global recursion");const C=t.slice(0,l.index),E=t.slice(ne.lastIndex);if(Me(E,xt,U.DEFAULT))throw new Error(vt);return br(C,E,+f,!1,r)}else if(d){Ar(m);let C=!1;for(const T of s)if(T.name===d||T.num===+d){if(C=!0,T.hasRecursedWithin)throw new Error(vt);break}if(!C)throw new Error(B`Recursive \g cannot be used outside the referenced group "\g<${d}&R=${m}>"`);const E=i.get(d),y=va(t,E);if(n&&Me(y,B`${st}|\((?!\?)`,U.DEFAULT))throw new Error("Numbered backrefs cannot be used with recursion of capturing groups");const v=t.slice(E,l.index),w=y.slice(v.length+p.length),R=br(v,w,+m,!0,r),I=t.slice(0,E),V=t.slice(E+y.length);t=`${I}${R}${V}`,ne.lastIndex+=R.length-p.length-v.length-w.length,s.forEach(T=>T.hasRecursedWithin=!0),a=!0}else if(h)c++,i.set(String(c),ne.lastIndex),i.set(h,ne.lastIndex),s.push({num:c,name:h});else if(p.startsWith("(")){const C=p==="(";C&&(c++,i.set(String(c),ne.lastIndex+(r?Ta(t,ne.lastIndex):0))),s.push(C?{num:c}:{})}else p===")"&&s.pop()}return t}function Ar(t){const e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function br(t,e,r,n,i){const s=new Set;n&&ya(t+e,st,({groups:{captureName:o}})=>{s.add(o)},U.DEFAULT);const a=r-1;return`${t}${wr(`(?:${t}`,a,n?s:null,"forward",i)}(?:)${wr(`${e})`,a,n?s:null,"backward",i)}${e}`}function wr(t,e,r,n,i){const a=c=>n==="backward"?e-c+2-1:c+2;let o="";for(let c=0;c<e;c++){const l=a(c);o+=it(t,B`${st}|\\k<(?<backref>[^>]+)>${i?B`|(?<unnamed>\()(?!\?)(?:${Vt.source})?`:""}`,({0:p,index:h,groups:{captureName:f,backref:d,unnamed:m}})=>{if(d&&r&&!r.has(d))return p;if(m)return`(${le}`;const C=`_$${l}`;return f?`(?<${f}${C}>${i?le:""}`:B`\k<${d}${C}>`},U.DEFAULT)}return o}function Ta(t,e){Vt.lastIndex=e;const r=Vt.exec(t);return r?r[0].length:0}var O=String.fromCodePoint,b=String.raw,La=(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),Pa=(()=>{try{new RegExp("","v")}catch{return!1}return!0})();function Xe(t,{enable:e,disable:r}){return{dotAll:!(r!=null&&r.dotAll)&&!!(e!=null&&e.dotAll||t.dotAll),ignoreCase:!(r!=null&&r.ignoreCase)&&!!(e!=null&&e.ignoreCase||t.ignoreCase)}}function Je(t,e,r){return t.has(e)||t.set(e,r),t.get(e)}function $t(t,e){return kr[t]>=kr[e]}function re(t,e){if(!t)throw new Error(e??"Value expected");return t}var kr={ES2025:2025,ES2024:2024,ES2018:2018},Oa={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function pn(t){if((t==null?void 0:t.target)!==void 0&&!Oa[t.target])throw new Error(`Unexpected target "${t.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t==null?void 0:t.rules}};return e.target==="auto"&&(e.target=La?"ES2025":Pa?"ES2024":"ES2018"),e}var Da=new Set([O(304),O(305)]);function hn(t){if(Da.has(t))return[t];const e=new Set,r=t.toLowerCase(),n=r.toUpperCase(),i=$a.get(r),s=xa.get(r),a=Va.get(r);return[...n].length===1&&e.add(n),a&&e.add(a),i&&e.add(i),e.add(r),s&&e.add(s),[...e]}var dn=new Set(`C Other
28
+ Cc Control cntrl
29
+ Cf Format
30
+ Cn Unassigned
31
+ Co Private_Use
32
+ Cs Surrogate
33
+ L Letter
34
+ LC Cased_Letter
35
+ Ll Lowercase_Letter
36
+ Lm Modifier_Letter
37
+ Lo Other_Letter
38
+ Lt Titlecase_Letter
39
+ Lu Uppercase_Letter
40
+ M Mark Combining_Mark
41
+ Mc Spacing_Mark
42
+ Me Enclosing_Mark
43
+ Mn Nonspacing_Mark
44
+ N Number
45
+ Nd Decimal_Number digit
46
+ Nl Letter_Number
47
+ No Other_Number
48
+ P Punctuation punct
49
+ Pc Connector_Punctuation
50
+ Pd Dash_Punctuation
51
+ Pe Close_Punctuation
52
+ Pf Final_Punctuation
53
+ Pi Initial_Punctuation
54
+ Po Other_Punctuation
55
+ Ps Open_Punctuation
56
+ S Symbol
57
+ Sc Currency_Symbol
58
+ Sk Modifier_Symbol
59
+ Sm Math_Symbol
60
+ So Other_Symbol
61
+ Z Separator
62
+ Zl Line_Separator
63
+ Zp Paragraph_Separator
64
+ Zs Space_Separator
65
+ ASCII
66
+ ASCII_Hex_Digit AHex
67
+ Alphabetic Alpha
68
+ Any
69
+ Assigned
70
+ Bidi_Control Bidi_C
71
+ Bidi_Mirrored Bidi_M
72
+ Case_Ignorable CI
73
+ Cased
74
+ Changes_When_Casefolded CWCF
75
+ Changes_When_Casemapped CWCM
76
+ Changes_When_Lowercased CWL
77
+ Changes_When_NFKC_Casefolded CWKCF
78
+ Changes_When_Titlecased CWT
79
+ Changes_When_Uppercased CWU
80
+ Dash
81
+ Default_Ignorable_Code_Point DI
82
+ Deprecated Dep
83
+ Diacritic Dia
84
+ Emoji
85
+ Emoji_Component EComp
86
+ Emoji_Modifier EMod
87
+ Emoji_Modifier_Base EBase
88
+ Emoji_Presentation EPres
89
+ Extended_Pictographic ExtPict
90
+ Extender Ext
91
+ Grapheme_Base Gr_Base
92
+ Grapheme_Extend Gr_Ext
93
+ Hex_Digit Hex
94
+ IDS_Binary_Operator IDSB
95
+ IDS_Trinary_Operator IDST
96
+ ID_Continue IDC
97
+ ID_Start IDS
98
+ Ideographic Ideo
99
+ Join_Control Join_C
100
+ Logical_Order_Exception LOE
101
+ Lowercase Lower
102
+ Math
103
+ Noncharacter_Code_Point NChar
104
+ Pattern_Syntax Pat_Syn
105
+ Pattern_White_Space Pat_WS
106
+ Quotation_Mark QMark
107
+ Radical
108
+ Regional_Indicator RI
109
+ Sentence_Terminal STerm
110
+ Soft_Dotted SD
111
+ Terminal_Punctuation Term
112
+ Unified_Ideograph UIdeo
113
+ Uppercase Upper
114
+ Variation_Selector VS
115
+ White_Space space
116
+ XID_Continue XIDC
117
+ XID_Start XIDS`.split(/\s/)),fn=new Map;for(const t of dn)fn.set(at(t),t);var Na=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji","RGI_Emoji_Flag_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence"]),mn=new Map;for(const t of Na)mn.set(at(t),t);var xa=new Map([["s",O(383)],[O(383),"s"]]),Va=new Map([[O(223),O(7838)],[O(107),O(8490)],[O(229),O(8491)],[O(969),O(8486)]]),$a=new Map([ie(453),ie(456),ie(459),ie(498),...At(8072,8079),...At(8088,8095),...At(8104,8111),ie(8124),ie(8140),ie(8188)]),gn=new Map([["alnum",b`[\p{Alpha}\p{Nd}]`],["alpha",b`\p{Alpha}`],["ascii",b`\p{ASCII}`],["blank",b`[\p{Zs}\t]`],["cntrl",b`\p{cntrl}`],["digit",b`\p{Nd}`],["graph",b`[\P{space}&&\P{cntrl}&&\P{Cn}&&\P{Cs}]`],["lower",b`\p{Lower}`],["print",b`[[\P{space}&&\P{cntrl}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",b`[\p{P}\p{S}]`],["space",b`\p{space}`],["upper",b`\p{Upper}`],["word",b`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",b`\p{AHex}`]]),Ga=new Set(["alnum","blank","graph","print","word","xdigit"]);function Ma(t,e){const r=[];for(let n=t;n<=e;n++)r.push(n);return r}function at(t){return t.replace(/[- _]+/g,"").toLowerCase()}function ie(t){const e=O(t);return[e.toLowerCase(),e]}function At(t,e){return Ma(t,e).map(r=>ie(r))}var _n=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),A={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subroutine:"Subroutine",Quantifier:"Quantifier",VariableLengthCharacterSet:"VariableLengthCharacterSet",EscapedNumber:"EscapedNumber"},x={any:"any",digit:"digit",dot:"dot",hex:"hex",non_newline:"non_newline",posix:"posix",property:"property",space:"space",word:"word"},ot={flags:"flags",keep:"keep"},G={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},Sr=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),En=b`\[\^?`,yn=`c.? | C(?:-.?)?|${b`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${b`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${b`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${b`o\{[^\}]*\}?`}|${b`\d{1,3}`}`,Cn=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Be=new RegExp(b`
118
+ \\ (?:
119
+ ${yn}
120
+ | [gk]<[^>]*>?
121
+ | [gk]'[^']*'?
122
+ | .
123
+ )
124
+ | \( (?: \? (?:
125
+ [:=!>(]
126
+ | <[=!]
127
+ | <[^>]*>
128
+ | '[^']*'
129
+ | ~\|?
130
+ | # (?:[^)\\] | \\.?)*
131
+ | [imx\-]+[:)]
132
+ )?)?
133
+ | ${Cn.source}
134
+ | ${En}
135
+ | .
136
+ `.replace(/\s+/g,""),"gsu"),bt=new RegExp(b`
137
+ \\ (?:
138
+ ${yn}
139
+ | .
140
+ )
141
+ | \[:[^:]*:\]
142
+ | ${En}
143
+ | &&
144
+ | .
145
+ `.replace(/\s+/g,""),"gsu");function vn(t,e="",r){if(r={captureGroup:!1,singleline:!1,...r},typeof t!="string")throw new Error("String expected as pattern");if(!/^[imxDSW]*$/.test(e))throw new Error(`Flags "${e}" includes unsupported value`);const n=e.includes("x"),i=[n],s={captureGroup:r.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(h){i.push(h)},replaceCurrentModX(h){i[i.length-1]=h},singleline:r.singleline};let a=[],o;for(Be.lastIndex=0;o=Be.exec(t);){const h=Ba(s,t,o[0],Be.lastIndex);h.tokens?a.push(...h.tokens):h.token&&a.push(h.token),h.lastIndex!==void 0&&(Be.lastIndex=h.lastIndex)}const c=[];let l=0;a.forEach(h=>{h.type===A.GroupOpen&&(h.kind===G.capturing?h.number=++l:h.raw==="("&&c.push(h))}),l||c.forEach((h,f)=>{h.kind=G.capturing,h.number=f+1});const p=l||c.length;return a=a.map(h=>h.type===A.EscapedNumber?Ka(h,p):h).flat(),{tokens:a,flags:{ignoreCase:e.includes("i"),dotAll:e.includes("m"),extended:n,digitIsAscii:e.includes("D"),spaceIsAscii:e.includes("S"),wordIsAscii:e.includes("W")},rules:r}}function Ba(t,e,r,n){const[i,s,a]=r;if(i==="["){const o=Fa(e,r,n);return{tokens:o.tokens,lastIndex:o.lastIndex}}if(i==="\\"){if("AbBGzZ".includes(s))return{token:k(A.Assertion,r,{kind:r})};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:k(A.Subroutine,r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:k(A.Backreference,r)}}if(s==="K")return{token:k(A.Directive,r,{kind:ot.keep})};if(s==="N")return{token:k(A.CharacterSet,r,{kind:x.non_newline})};if(s==="O")return{token:k(A.CharacterSet,r,{kind:x.any})};if("RX".includes(s))return{token:k(A.VariableLengthCharacterSet,r,{kind:r})};if("yY".includes(s))throw new Error(`Unsupported grapheme boundary "${r}"`);const o=An(r,{inCharClass:!1});return Array.isArray(o)?{tokens:o}:{token:o}}if(i==="("){if(a==="#"){if(e[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if("-imx".includes(a))return{token:Wa(r,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,r==="("&&!t.captureGroup||r==="(?:")return{token:k(A.GroupOpen,r,{kind:G.group})};if(r==="(?>")return{token:k(A.GroupOpen,r,{kind:G.atomic})};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:k(A.GroupOpen,r,{kind:a==="<"?G.lookbehind:G.lookahead,negate:r.endsWith("!")})};if(a==="<"||a==="'"||r==="("&&t.captureGroup){const o=k(A.GroupOpen,r,{kind:G.capturing});return r!=="("&&(o.name=r.slice(3,-1)),{token:o}}if(a==="~"){if(r==="(?~|")throw new Error(`Unsupported absent function kind "${r}"`);return{token:k(A.GroupOpen,r,{kind:G.absent_repeater})}}throw a==="("?new Error(`Unsupported conditional "${r}"`):r==="(?"?new Error("Invalid group"):new Error(`Unexpected group "${r}"`)}if(r===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:k(A.GroupClose,r)}}if(r==="#"&&t.getCurrentModX()){const o=e.indexOf(`
146
+ `,n);return{lastIndex:o===-1?e.length:o}}if(/^\s$/.test(r)&&t.getCurrentModX()){const o=/\s+/y;return o.lastIndex=n,{lastIndex:o.exec(e)?o.lastIndex:n}}if(r===".")return{token:k(A.CharacterSet,r,{kind:x.dot})};if(r==="^"||r==="$"){const o=t.singleline?{"^":b`\A`,$:b`\Z`}[r]:r;return{token:k(A.Assertion,r,{kind:o})}}return r==="|"?{token:k(A.Alternator,r)}:Cn.test(r)?{token:Ha(r)}:(bn(r),{token:k(A.Character,r,{value:r.codePointAt(0)})})}function Fa(t,e,r){const n=[k(A.CharacterClassOpen,e,{negate:e[1]==="^"})];let i=1,s;for(bt.lastIndex=r;s=bt.exec(t);){const a=s[0];if(a[0]==="["&&a[1]!==":")i++,n.push(k(A.CharacterClassOpen,a,{negate:a[1]==="^"}));else if(a==="]"){if(n.at(-1).type===A.CharacterClassOpen)n.push(k(A.Character,a,{value:93}));else if(i--,n.push(k(A.CharacterClassClose,a)),!i)break}else{const o=ja(a);Array.isArray(o)?n.push(...o):n.push(o)}}return{tokens:n,lastIndex:bt.lastIndex||t.length}}function ja(t){if(t[0]==="\\")return An(t,{inCharClass:!0});if(t[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!gn.get(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return k(A.CharacterSet,t,{kind:x.posix,negate:!!e.groups.negate,value:e.groups.name})}return t==="-"?k(A.CharacterClassHyphen,t):t==="&&"?k(A.CharacterClassIntersector,t):(bn(t),k(A.Character,t,{value:t.codePointAt(0)}))}function An(t,{inCharClass:e}){const r=t[1];if(r==="c"||r==="C")return Ua(t);if("dDhHsSwW".includes(r))return qa(t);if(t.startsWith(b`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return za(t)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(t))try{const n=t.split(/\\x/).slice(1).map(o=>parseInt(o,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),s=new TextEncoder;return[...i].map(o=>{const c=[...s.encode(o)].map(l=>`\\x${l.toString(16)}`).join("");return k(A.Character,c,{value:o.codePointAt(0)})})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return k(A.Character,t,{value:Qa(t)});if(Sr.has(r))return k(A.Character,t,{value:Sr.get(r)});if(/\d/.test(r))return k(A.EscapedNumber,t,{inCharClass:e});if(t==="\\")throw new Error(b`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return k(A.Character,t,{value:t.codePointAt(1)});throw new Error(`Unexpected escape "${t}"`)}function k(t,e,r){return{type:t,raw:e,...r}}function Ua(t){const e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return k(A.Character,t,{value:e.toUpperCase().codePointAt(0)-64})}function Wa(t,e){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[imx\-]*))?/.exec(t).groups;n??(n="");const i=(e.getCurrentModX()||r.includes("x"))&&!n.includes("x"),s=Rr(r),a=Rr(n),o={};if(s&&(o.enable=s),a&&(o.disable=a),t.endsWith(")"))return e.replaceCurrentModX(i),k(A.Directive,t,{kind:ot.flags,flags:o});if(t.endsWith(":")){e.pushModX(i),e.numOpenGroups++;const c=k(A.GroupOpen,t,{kind:G.group});return(s||a)&&(c.flags=o),c}throw new Error(`Unexpected flag modifier "${t}"`)}function Ha(t){const e={};if(t[0]==="{"){const{min:r,max:n}=/^\{(?<min>\d*)(?:,(?<max>\d*))?/.exec(t).groups,i=1e5;if(+r>i||+n>i)throw new Error("Quantifier value unsupported in Oniguruma");e.min=+r,e.max=n===void 0?+r:n===""?1/0:+n,e.greedy=!t.endsWith("?"),e.possessive=!1}else e.min=t[0]==="+"?1:0,e.max=t[0]==="?"?1:1/0,e.greedy=t[1]!=="?",e.possessive=t[1]==="+";return k(A.Quantifier,t,e)}function qa(t){const e=t[1].toLowerCase();return k(A.CharacterSet,t,{kind:{d:x.digit,h:x.hex,s:x.space,w:x.word}[e],negate:t[1]!==e})}function za(t){const{p:e,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups,i=e==="P"&&!r||e==="p"&&!!r;return k(A.CharacterSet,t,{kind:x.property,negate:i,value:n})}function Rr(t){const e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function Qa(t){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(t))throw new Error(`Incomplete or invalid escape "${t}"`);const e=t[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function Ka(t,e){const{raw:r,inCharClass:n}=t,i=r.slice(1);if(!n&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[k(A.Backreference,r)];const s=[],a=i.match(/^[0-7]+|\d/g);for(let o=0;o<a.length;o++){const c=a[o];let l;if(o===0&&c!=="8"&&c!=="9"){if(l=parseInt(c,8),l>127)throw new Error(b`Octal encoded byte above 177 unsupported "${r}"`)}else l=c.codePointAt(0);s.push(k(A.Character,(o===0?"\\":"")+c,{value:l}))}return s}function bn(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`)}function zt({alternatives:t},e){return t.length===1&&t[0].elements.length===1&&(!e||e(t[0].elements[0]))}function Xa({type:t}){return t===_.Assertion||t===_.Directive}function Ja(t){const e=[_.Character,_.CharacterClass,_.CharacterSet];return e.includes(t.type)||t.type===_.Quantifier&&t.min&&e.includes(t.element.type)}function wn({type:t}){return t===_.CapturingGroup||t===_.Group}function Oe({type:t,kind:e}){return t===_.Assertion&&(e===S.lookahead||e===S.lookbehind)}function fe(t,e,r){let n=t.node;for(;n.parent;)n=n.parent;function i(a,o){for(let c=0;c<a.length;c++){const l=s(a[c],o,c,a);c=Math.max(-1,c+l)}}function s(a,o=null,c=null,l=null){let p=0,h=!1;const f={node:a,parent:o,key:c,container:l,ast:n,remove(){re(l,"Container expected").splice(Math.max(0,c+p),1),p-=1},removeAllNextSiblings(){return re(l,"Container expected").splice(c+1)},removeAllPrevSiblings(){const y=c+p;return p-=y,re(l,"Container expected").splice(0,Math.max(0,y))},replaceWith(y){Ya(y,o),l?l[Math.max(0,c+p)]=y:o[c]=y},skip(){h=!0}},d=Za(a).find(y=>!!r[y]),m=d&&r[d],C=typeof m=="function"?m:m==null?void 0:m.enter,E=m==null?void 0:m.exit;if(C==null||C(f,e),!h)switch(a.type){case _.Regex:s(a.pattern,a,"pattern"),s(a.flags,a,"flags");break;case _.Alternative:case _.CharacterClass:i(a.elements,a);break;case _.Assertion:Oe(a)&&i(a.alternatives,a);break;case _.Backreference:case _.Character:case _.CharacterSet:case _.Directive:case _.Flags:case _.Recursion:case _.Subroutine:case _.VariableLengthCharacterSet:break;case _.AbsentFunction:case _.CapturingGroup:case _.Group:case _.Pattern:i(a.alternatives,a);break;case _.CharacterClassIntersection:i(a.classes,a);break;case _.CharacterClassRange:s(a.min,a,"min"),s(a.max,a,"max");break;case _.Quantifier:s(a.element,a,"element");break;default:throw new Error(`Unexpected node type "${a.type}"`)}return E==null||E(f,e),p}s(t.node,t.parent,t.key,t.container)}var Ir={AnyGroup:"AnyGroup",AnyNode:"AnyNode"};function Za(t){const e=[Ir.AnyNode];return(wn(t)||Oe(t))&&e.push(Ir.AnyGroup),e.push(t.type),e}function Ya(t,e){"parent"in e&&(t.parent=e)}var _={AbsentFunction:"AbsentFunction",Alternative:"Alternative",Assertion:"Assertion",Backreference:"Backreference",CapturingGroup:"CapturingGroup",Character:"Character",CharacterClass:"CharacterClass",CharacterClassIntersection:"CharacterClassIntersection",CharacterClassRange:"CharacterClassRange",CharacterSet:"CharacterSet",Directive:"Directive",Flags:"Flags",Group:"Group",Pattern:"Pattern",Quantifier:"Quantifier",Regex:"Regex",Subroutine:"Subroutine",VariableLengthCharacterSet:"VariableLengthCharacterSet",Recursion:"Recursion"},eo={repeater:"repeater"},S={line_end:"line_end",line_start:"line_start",lookahead:"lookahead",lookbehind:"lookbehind",search_start:"search_start",string_end:"string_end",string_end_newline:"string_end_newline",string_start:"string_start",word_boundary:"word_boundary"},L=x,We=ot,Ze={grapheme:"grapheme",newline:"newline"};function kn({tokens:t,flags:e,rules:r},n){const i={skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,verbose:!1,...n},s={capturingGroups:[],current:0,hasNumberedRef:!1,namedGroupsByName:new Map,parent:null,skipBackrefValidation:i.skipBackrefValidation,skipLookbehindValidation:i.skipLookbehindValidation,skipPropertyNameValidation:i.skipPropertyNameValidation,subroutines:[],token:null,tokens:t,verbose:i.verbose,walk:a};function a(d,m){const C=t[s.current];switch(s.parent=d,s.token=C,s.current++,C.type){case A.Alternator:return ae();case A.Assertion:return lo(C);case A.Backreference:return to(s);case A.Character:return In(C.value,{useLastValid:!!m.isCheckingRangeEnd});case A.CharacterClassHyphen:return ro(s,m);case A.CharacterClassOpen:return no(s,m);case A.CharacterSet:return io(s);case A.Directive:return fo(C);case A.GroupOpen:return so(s,m);case A.Quantifier:return ao(s);case A.Subroutine:return oo(s);case A.VariableLengthCharacterSet:return yo(C.kind);default:throw new Error(`Unexpected token type "${C.type}"`)}}const o=_o(go(),mo(e));let c=o.pattern.alternatives[0];for(;s.current<t.length;){const d=a(c,{});d.type===_.Alternative?(o.pattern.alternatives.push(d),c=d):c.elements.push(d)}const{capturingGroups:l,hasNumberedRef:p,namedGroupsByName:h,subroutines:f}=s;if(p&&h.size&&!r.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of f)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined")}else if(h.has(d)){if(h.get(d).length>1)throw new Error(b`Subroutine uses a duplicate group name "\g<${d}>"`)}else throw new Error(b`Subroutine uses a group name that's not defined "\g<${d}>"`);return fe({node:o},null,{AnyNode({node:d,parent:m}){d.parent=m}}),o}function to(t){const{raw:e}=t.token,r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(s,a=!1)=>{const o=t.capturingGroups.length;let c=!1;if(s>o)if(t.skipBackrefValidation)c=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Gt(a?o+1-s:s,{orphan:c})};if(r){const s=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(s)return i(+s.groups.num,!!s.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return Gt(n)}return i(+n)}function ro(t,e){const{parent:r,tokens:n,walk:i}=t,s=r.elements.at(-1),a=n[t.current];if(!e.isCheckingRangeEnd&&s&&s.type!==_.CharacterClass&&s.type!==_.CharacterClassRange&&a&&a.type!==A.CharacterClassOpen&&a.type!==A.CharacterClassClose&&a.type!==A.CharacterClassIntersector){const o=i(r,{...e,isCheckingRangeEnd:!0});if(s.type===_.Character&&o.type===_.Character)return r.elements.pop(),ho(s,o);throw new Error("Invalid character class range")}return In(45)}function no(t,e){const{token:r,tokens:n,verbose:i,walk:s}=t,a=n[t.current];let o=Mt({negate:r.negate});const c=o.elements[0];let l=Tr(a);for(;l.type!==A.CharacterClassClose;){if(l.type===A.CharacterClassIntersector)c.classes.push(Mt({negate:!1,baseOnly:!0})),t.current++;else{const p=c.classes.at(-1);p.elements.push(s(p,e))}l=Tr(n[t.current],a)}if(i||bo(c),c.classes.length===1){const p=c.classes[0];p.negate=o.negate!==p.negate,o=p}return t.current++,o}function io({token:t,skipPropertyNameValidation:e}){let{kind:r,negate:n,value:i}=t;if(r===x.property){const s=at(i);if(Ga.has(s))r=x.posix,i=s;else return pe(i,{negate:n,skipPropertyNameValidation:e})}return r===x.posix?{type:_.CharacterSet,kind:L.posix,negate:n,value:i}:Bt(r,{negate:n})}function so(t,e){const{token:r,tokens:n,capturingGroups:i,namedGroupsByName:s,skipLookbehindValidation:a,verbose:o,walk:c}=t;let l=uo(r);const p=l.type===_.AbsentFunction,h=l.kind===S.lookbehind,f=h&&l.negate;if(l.type===_.CapturingGroup&&(i.push(l),l.name&&Je(s,l.name,[]).push(l)),p&&e.isInAbsentFunction)throw new Error("Nested absent function not supported by Oniguruma");let d=Lr(n[t.current]);for(;d.type!==A.GroupClose;){if(d.type===A.Alternator)l.alternatives.push(ae()),t.current++;else{const m=l.alternatives.at(-1),C=c(m,{...e,isInAbsentFunction:e.isInAbsentFunction||p,isInLookbehind:e.isInLookbehind||h,isInNegLookbehind:e.isInNegLookbehind||f});if(m.elements.push(C),(h||e.isInLookbehind)&&!a){const E="Lookbehind includes a pattern not allowed by Oniguruma";if(f||e.isInNegLookbehind){if(C.kind===S.lookahead||C.type===_.CapturingGroup)throw new Error(E)}else if(C.kind===S.lookahead||C.kind===S.lookbehind&&C.negate)throw new Error(E)}}d=Lr(n[t.current])}return o||(l=vo(l)),t.current++,l}function ao({token:t,parent:e}){const{min:r,max:n,greedy:i,possessive:s}=t,a=e.elements.at(-1);if(!a||a.type===_.Assertion||a.type===_.Directive)throw new Error("Quantifier requires a repeatable token");const o=Tn(a,r,n,i,s);return e.elements.pop(),o}function oo(t){const{token:e,capturingGroups:r,subroutines:n}=t;let i=e.raw.slice(3,-1);const s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(s){const o=+s.groups.num,c=r.length;if(t.hasNumberedRef=!0,i={"":o,"+":c+o,"-":c+1-o}[s.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const a=Eo(i);return n.push(a),a}function co(t){return{type:_.AbsentFunction,kind:t,alternatives:[ae()]}}function ae(){return{type:_.Alternative,elements:[]}}function Sn(t,e){const r=!!(e!=null&&e.negate);return{type:_.Assertion,kind:t,...t===S.word_boundary&&{negate:r}}}function lo({kind:t}){return Sn(re({"^":S.line_start,$:S.line_end,"\\A":S.string_start,"\\b":S.word_boundary,"\\B":S.word_boundary,"\\G":S.search_start,"\\z":S.string_end,"\\Z":S.string_end_newline}[t],`Unexpected assertion kind "${t}"`),{negate:t===b`\B`})}function Gt(t,e){const r=!!(e!=null&&e.orphan);return{type:_.Backreference,...r&&{orphan:r},ref:t}}function uo({flags:t,kind:e,name:r,negate:n,number:i}){switch(e){case G.absent_repeater:return co(eo.repeater);case G.atomic:return z({atomic:!0});case G.capturing:return Rn(i,r);case G.group:return z({flags:t});case G.lookahead:case G.lookbehind:return Ae({behind:e===G.lookbehind,negate:n});default:throw new Error(`Unexpected group kind "${e}"`)}}function Rn(t,e){const r=e!==void 0;if(r&&!Ao(e))throw new Error(`Group name "${e}" invalid in Oniguruma`);return{type:_.CapturingGroup,number:t,...r&&{name:e},alternatives:[ae()]}}function In(t,e){const r={useLastValid:!1,...e};if(t>1114111){const n=t.toString(16);if(r.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:_.Character,value:t}}function Mt(t){const e={baseOnly:!1,negate:!1,...t};return{type:_.CharacterClass,negate:e.negate,elements:e.baseOnly?[]:[po()]}}function po(){return{type:_.CharacterClassIntersection,classes:[Mt({negate:!1,baseOnly:!0})]}}function ho(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:_.CharacterClassRange,min:t,max:e}}function Bt(t,{negate:e}){const r={type:_.CharacterSet,kind:re(L[t],`Unexpected character set kind "${t}"`)};return(t===x.digit||t===x.hex||t===x.space||t===x.word)&&(r.negate=e),r}function fo({kind:t,flags:e}){const r={type:_.Directive,kind:re(We[t],`Unexpected directive kind "${t}"`)};return t===ot.flags&&(r.flags=e),r}function mo({ignoreCase:t,dotAll:e,extended:r,digitIsAscii:n,spaceIsAscii:i,wordIsAscii:s}){return{type:_.Flags,ignoreCase:t,dotAll:e,extended:r,digitIsAscii:n,spaceIsAscii:i,wordIsAscii:s}}function z(t){const e=t==null?void 0:t.atomic,r=t==null?void 0:t.flags;return{type:_.Group,...e&&{atomic:e},...r&&{flags:r},alternatives:[ae()]}}function Ae(t){const e={behind:!1,negate:!1,...t};return{type:_.Assertion,kind:e.behind?S.lookbehind:S.lookahead,negate:e.negate,alternatives:[ae()]}}function go(){return{type:_.Pattern,alternatives:[ae()]}}function Tn(t,e,r,n=!0,i=!1){const s={type:_.Quantifier,min:e,max:r,greedy:n,possessive:i,element:t};return r<e?{...s,min:r,max:e,possessive:!0}:s}function _o(t,e){return{type:_.Regex,pattern:t,flags:e}}function Eo(t){return{type:_.Subroutine,ref:t}}function pe(t,e){const r={negate:!1,skipPropertyNameValidation:!1,...e};return{type:_.CharacterSet,kind:L.property,value:r.skipPropertyNameValidation?t:Co(t),negate:r.negate}}function yo(t){return{type:_.VariableLengthCharacterSet,kind:re({"\\R":Ze.newline,"\\X":Ze.grapheme}[t],`Unexpected varcharset kind "${t}"`)}}function Co(t){const e=at(t);if(mn.has(e))throw new Error(b`Unicode property "\p{${t}}" unsupported in Oniguruma`);const r=fn.get(e);return r||t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}function vo(t){const e=t.alternatives[0].elements[0];return t.type===_.Group&&zt(t,r=>r.type===_.Group)&&!(t.atomic&&e.flags)&&!(t.flags&&(e.atomic||e.flags))?(t.atomic?e.atomic=!0:t.flags&&(e.flags=t.flags),e):t}function Ao(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function bo(t){for(let e=0;e<t.classes.length;e++){const r=t.classes[e],n=r.elements[0];r.elements.length===1&&n.type===_.CharacterClass&&(t.classes[e]=n,n.negate=r.negate!==n.negate)}}function Tr(t,e){return re(t,`${(e==null?void 0:e.value)===93?"Empty":"Unclosed"} character class`)}function Lr(t){return re(t,"Unclosed group")}function wo(t,e){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e},n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:$t(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};fe({node:t},n,Ln);const i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},s={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};fe({node:t},s,Pn);const a={groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer};return fe({node:t},a,ko),t._strategy=n.strategy,t}var Ln={AbsentFunction({node:t,replaceWith:e}){const r=Z(z(),[Se(Ae({negate:!0}),t.alternatives),pe("Any")]),n=Tn(r,0,1/0);r.parent=n,e(Z(z(),[n]))},Alternative:{enter({node:t,parent:e,key:r},{flagDirectivesByAlt:n}){const i=t.elements.filter(s=>s.kind===We.flags);for(let s=r+1;s<e.alternatives.length;s++){const a=e.alternatives[s];Je(n,a,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){var r;if((r=e.get(t))!=null&&r.length){const n=Dn(e.get(t));if(n){const i=Z(z({flags:n}),t.elements);i.parent=t,t.elements=[i]}}}},Assertion({node:t,key:e,container:r,ast:n,remove:i,replaceWith:s},a){const{kind:o,negate:c}=t,{asciiWordBoundaries:l,avoidSubclass:p,supportedGNodes:h,wordIsAscii:f}=a;if(o===S.line_end)s(W(b`(?=\z|\n)`));else if(o===S.line_start)s(W(b`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}));else if(o===S.lookbehind)a.passedLookbehind=!0;else if(o===S.search_start)if(h.has(t))n.flags.sticky=!0,i();else{const d=r[e-1];if(d&&Ja(d))s(Z(Ae({negate:!0})));else{if(p)throw new Error(b`Uses "\G" in a way that requires a subclass`);s(Sn(S.string_start)),a.strategy="search_start_clip"}}else if(o===S.string_end_newline)s(W(b`(?=\n?\z)`));else if(o===S.word_boundary&&!f&&!l){const d=`(?:(?<=${J})(?!${J})|(?<!${J})(?=${J}))`,m=`(?:(?<=${J})(?=${J})|(?<!${J})(?!${J}))`;s(W(c?m:d))}},Backreference({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!kt(r)&&(r=wt(r,e),t.ref=r)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:r}){let{name:n}=t;n&&!kt(n)&&(n=wt(n,e),t.name=n),r.set(t.number,t),n&&r.set(n,t)},CharacterSet({node:t,replaceWith:e},{accuracy:r,minTargetEs2024:n,digitIsAscii:i,spaceIsAscii:s,wordIsAscii:a}){const{kind:o,negate:c,value:l}=t;if(i&&(o===L.digit||l==="digit")){e(Bt(L.digit,{negate:c}));return}if(s&&(o===L.space||l==="space")){e(St(W(So),c));return}if(a&&(o===L.word||l==="word")){e(Bt(L.word,{negate:c}));return}if(o===L.any)e(pe("Any"));else if(o===L.digit)e(pe("Nd",{negate:c}));else if(o===L.hex)e(pe("AHex",{negate:c}));else if(o===L.non_newline)e(W(b`[^\n]`));else if(o===L.space)e(pe("space",{negate:c}));else if(o===L.word)e(St(W(J),c));else if(o===L.property)dn.has(l)||(t.key="sc");else if(o===L.posix)if(!n&&(l==="graph"||l==="print")){if(r==="strict")throw new Error(`POSIX class "${l}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[l];c&&(p=`\0-${O(p.codePointAt(0)-1)}${O(p.codePointAt(2)+1)}-􏿿`),e(W(`[${p}]`))}else e(St(W(gn.get(l)),c))},Directive(t,e){const{node:r,parent:n,ast:i,remove:s,replaceWith:a,removeAllPrevSiblings:o,removeAllNextSiblings:c}=t,{kind:l,flags:p}=r;if(l===We.flags)if(!p.enable&&!p.disable)s();else{const h=Z(z({flags:p}),c());a(h),$n(h,t,e,Ln)}else if(l===We.keep){const h=i.pattern.alternatives[0].elements[0],d=zt(i.pattern,m=>m.type===_.Group)&&h.alternatives.length===1?h:i.pattern;if(n.parent!==d||d.alternatives.length>1)throw new Error(b`Uses "\K" in a way that's unsupported`);a(Z(Ae({behind:!0}),o()))}},Flags({node:t,parent:e}){["digitIsAscii","extended","spaceIsAscii","wordIsAscii"].forEach(r=>delete t[r]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:r}=t.flags;e!=null&&e.extended&&delete e.extended,r!=null&&r.extended&&delete r.extended,e!=null&&e.dotAll&&(r!=null&&r.dotAll)&&delete e.dotAll,e!=null&&e.ignoreCase&&(r!=null&&r.ignoreCase)&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,r&&!Object.keys(r).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},Pattern:{enter({node:t},{supportedGNodes:e}){const r=[];let n=!1,i=!1;for(const s of t.alternatives)if(s.elements.length===1&&s.elements[0].kind===S.search_start)s.elements.pop();else{const a=xn(s.elements);a?(n=!0,Array.isArray(a)?r.push(...a):r.push(a)):i=!0}n&&!i&&r.forEach(s=>e.add(s))},exit(t,{accuracy:e,passedLookbehind:r,strategy:n}){if(e==="strict"&&r&&n)throw new Error(b`Uses "\G" in a way that requires non-strict accuracy`)}},Quantifier({node:t}){if(t.element.type===_.Quantifier){const e=Z(z(),[t.element]);e.parent=t,t.element=e}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!kt(r)&&(r=wt(r,e),t.ref=r)},VariableLengthCharacterSet({node:t,replaceWith:e},{accuracy:r,minTargetEs2024:n}){const{kind:i}=t;if(i===Ze.newline)e(W(`(?>\r
147
+ ?|[
148
+ \v\f…\u2028\u2029])`));else if(i===Ze.grapheme){if(r==="strict")throw new Error(b`Use of "\X" requires non-strict accuracy`);const s=n?b`\p{RGI_Emoji}`:Ea().source.replace(/\\u\{/g,"\\x{");e(W(b`(?>\r\n|${s}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}))}else throw new Error(`Unexpected varcharset kind "${i}"`)}},Pn={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=t;n||r.set(t,[...e.get(i).map(({node:s})=>s)])},CapturingGroup:{enter({node:t,replaceWith:e,skip:r},{groupOriginByCopy:n,groupsByName:i,multiplexCapturesToLeftByRef:s,openRefs:a,reffedNodesByReferencer:o}){const c=n.get(t);if(c&&a.has(t.number)){const p=Pr(t.number);o.set(p,a.get(t.number)),e(p),r();return}a.set(t.number,t),s.set(t.number,[]),t.name&&Je(s,t.name,[]);const l=s.get(t.name??t.number);for(let p=0;p<l.length;p++){const h=l[p];if(c===h.node||c&&c===h.origin||t===h.origin){l.splice(p,1);break}}if(s.get(t.number).push({node:t,origin:c}),t.name&&s.get(t.name).push({node:t,origin:c}),t.name){const p=Je(i,t.name,new Map);let h=!1;if(c)h=!0;else for(const f of p.values())if(!f.hasDuplicateNameToRemove){h=!0;break}i.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:h})}c&&(t._originNumber=c.number)},exit({node:t},{openRefs:e}){e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=Xe(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Recursion({node:t,parent:e},{reffedNodesByReferencer:r}){const{ref:n}=t;let i=e;for(;(i=i.parent)&&!(i.type===_.CapturingGroup&&(i.name===n||i.number===n)););r.set(t,i)},Subroutine(t,e){const{node:r,replaceWith:n}=t,{ref:i}=r,s=e.subroutineRefMap.get(i),a=i===0,o=a?Pr(0):On(s,e.groupOriginByCopy,null);let c=o;if(!a){const l=Dn(To(s,h=>h.type===_.Group&&!!h.flags)),p=l?Xe(e.globalFlags,l):e.globalFlags;Ro(p,e.currentFlags)||(c=Z(z({flags:Lo(p)}),[o]))}n(c),a||$n(c,t,e,Pn)}},ko={Backreference({node:t,replaceWith:e},r){if(t.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,t.ref);return}const i=r.reffedNodesByReferencer.get(t).filter(s=>Io(s,t));if(!i.length)e(Z(Ae({negate:!0})));else if(i.length>1){const s=i.map(a=>Se(ae(),[Gt(a.number)]));e(Se(z(),s))}else t.ref=i[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Recursion({node:t},e){t.ref!==0&&(t.ref=e.reffedNodesByReferencer.get(t).number)},Regex:{exit({node:t},e){const r=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=Rn();t.pattern.alternatives.at(-1).elements.push(i)}}}},So="[ -\r ]",J=b`[\p{L}\p{M}\p{N}\p{Pc}]`;function Se(t,e){return e.forEach(r=>r.parent=t),t[Qt(t)]=e,t}function Ro(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function Io(t,e){let r=e;do{if(r.type===_.Pattern)return!1;if(r.type===_.Alternative)continue;if(r===t)return!1;const n=Nn(r.parent);for(const i of n){if(i===r)break;if(i===t||Vn(i,t))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function On(t,e,r,n){const i=Array.isArray(t)?[]:{};for(const[s,a]of Object.entries(t))s==="parent"?i.parent=Array.isArray(r)?n:r:a&&typeof a=="object"?i[s]=On(a,e,i,r):(s==="type"&&a===_.CapturingGroup&&e.set(i,e.get(t)??t),i[s]=a);return i}function Pr(t){return{type:_.Recursion,ref:t}}function To(t,e){const r=[];for(;t=t.parent;)(!e||e(t))&&r.push(t);return r}function wt(t,e){if(e.has(t))return e.get(t);const r=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,r),r}function Qt(t){for(const e of["alternatives","classes","elements"])if(t[e])return e;return null}function Dn(t){const e=["dotAll","ignoreCase"],r={enable:{},disable:{}};return t.forEach(({flags:n})=>{e.forEach(i=>{var s,a;(s=n.enable)!=null&&s[i]&&(delete r.disable[i],r.enable[i]=!0),(a=n.disable)!=null&&a[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function Lo({dotAll:t,ignoreCase:e}){const r={};return(t||e)&&(r.enable={},t&&(r.enable.dotAll=!0),e&&(r.enable.ignoreCase=!0)),(!t||!e)&&(r.disable={},!t&&(r.disable.dotAll=!0),!e&&(r.disable.ignoreCase=!0)),r}function Nn(t){if(!t)throw new Error("Node expected");if(t.type===_.Quantifier)return[t.element];const e=Qt(t);return e&&t[e]}function xn(t){const e=t.find(r=>r.kind===S.search_start||Po(r,{negate:!1})||!Xa(r));if(!e)return null;if(e.kind===S.search_start)return e;if(Oe(e))return e.alternatives[0].elements[0];if(wn(e)){const r=[];for(const n of e.alternatives){const i=xn(n.elements);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function Vn(t,e){const r=Nn(t)??[];for(const n of r)if(n===e||Vn(n,e))return!0;return!1}function Po(t,e){const r={negate:null,...e};return Oe(t)&&(r.negate===null||t.negate===r.negate)&&zt(t,n=>n.kind===S.search_start)}function kt(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function W(t,e){const n=kn(vn(t),e).pattern.alternatives;return n.length>1||n[0].elements.length>1?Se(z(),n):n[0].elements[0]}function Z(t,e){const r=Qt(t);return t[r][0].parent=t,e&&Se(t[r][0],e),t}function St(t,e){return t.negate=e,t}function $n(t,{parent:e,key:r,container:n},i,s){fe({node:t,parent:e,key:r,container:n},i,s)}function Oo(t,e){const r=pn(e),n=$t(r.target,"ES2024"),i=$t(r.target,"ES2025"),s=r.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,o=null;if(!i){const d=[t.flags.ignoreCase];fe({node:t},{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(m){d.push(m)},setHasCasedChar(){d.at(-1)?a=!0:o=!0}},Do)}const c={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||a)&&!o)};let l=null;const p={accuracy:r.accuracy,appliedGlobalFlags:c,avoidSubclass:r.avoidSubclass,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:l,recursionLimit:s,useAppliedIgnoreCase:!!(!i&&a&&o),useFlagMods:i,useFlagV:n,verbose:r.verbose};function h(d){switch(p.lastNode=l,l=d,d.type){case _.Regex:return{pattern:h(d.pattern),flags:h(d.flags),options:{...d.options}};case _.Alternative:return d.elements.map(h).join("");case _.Assertion:return Go(d,p,h);case _.Backreference:return Mo(d,p);case _.CapturingGroup:return Bo(d,p,h);case _.Character:return Fo(d,p);case _.CharacterClass:return jo(d,p,h);case _.CharacterClassIntersection:if(!p.useFlagV)throw new Error("Use of class intersection requires min target ES2024");return d.classes.map(h).join("&&");case _.CharacterClassRange:return Uo(d,p);case _.CharacterSet:return Wo(d,p);case _.Flags:return Ho(d,p);case _.Group:return qo(d,p,h);case _.Pattern:return d.alternatives.map(h).join("|");case _.Quantifier:return h(d.element)+Xo(d);case _.Recursion:return zo(d,p);default:throw new Error(`Unexpected node type "${d.type}"`)}}const f=h(t);return n||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f}var Do={AnyGroup:{enter({node:t},e){const r=e.getCurrentModI();e.pushModI(t.flags?Xe({ignoreCase:r},t.flags).ignoreCase:r)},exit(t,e){e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){Kt(O(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},r){e(),Gn(t,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:t},e){t.kind===L.property&&_n.has(t.value)&&e.setHasCasedChar()}},No=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),xo=new Set(["-","\\","]","^","["]),Vo=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Or=new Map([[9,b`\t`],[10,b`\n`],[11,b`\v`],[12,b`\f`],[13,b`\r`],[8232,b`\u2028`],[8233,b`\u2029`],[65279,b`\uFEFF`]]),$o=new RegExp("^\\p{Cased}$","u");function Kt(t){return $o.test(t)}function Go(t,e,r){const{kind:n,negate:i,alternatives:s}=t;if(Oe(t))return`(?${`${n===S.lookahead?"":"<"}${i?"!":"="}`}${s.map(r).join("|")})`;if(n===S.string_end)return"$";if(n===S.string_start)return"^";if(n===S.word_boundary)return i?b`\B`:b`\b`;throw new Error(`Unexpected assertion kind "${n}"`)}function Mo({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t}function Bo({name:t,number:e,alternatives:r,_originNumber:n},i,s){return i.captureMap.set(e,{ignoreCase:i.currentFlags.ignoreCase}),`(${t?`?<${t}>`:""}${!i.avoidSubclass&&n?`${n<e?`$${n}`:""}${le}`:""}${r.map(s).join("|")})`}function Fo({value:t},e){const r=O(t),n=he(t,{isAfterBackref:e.lastNode.type===_.Backreference,inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(n!==r)return n;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&Kt(r)){const i=hn(r);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r}function jo({negate:t,parent:e,elements:r},n,i){var o;const s=()=>`[${t?"^":""}${r.map(i).join("")}]`;if(!n.inCharClass){n.inCharClass=!0;const c=s();return n.inCharClass=!1,c}const a=(o=r[0])==null?void 0:o.type;if(!t&&a&&((!n.useFlagV||!n.verbose)&&e.type===_.CharacterClass&&a!==_.CharacterClassIntersection||!n.verbose&&e.type===_.CharacterClassIntersection&&r.length===1&&a!==_.CharacterClass&&a!==_.CharacterClassRange))return r.map(i).join("");if(!n.useFlagV&&e.type===_.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");return s()}function Uo(t,e){const r=t.min.value,n=t.max.value,i={isAfterBackref:!1,inCharClass:!0,useFlagV:e.useFlagV},s=he(r,i),a=he(n,i),o=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const c=Gn(t);Qo(c).forEach(p=>{o.add(Array.isArray(p)?`${he(p[0],i)}-${he(p[1],i)}`:he(p,i))})}return`${s}-${a}${[...o].join("")}`}function Wo({kind:t,negate:e,value:r,key:n},i){if(t===L.dot)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":b`[^\n]`;if(t===L.digit)return e?b`\D`:b`\d`;if(t===L.property){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&_n.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${e?b`\P`:b`\p`}{${n?`${n}=`:""}${r}}`}if(t===L.word)return e?b`\W`:b`\w`;throw new Error(`Unexpected character set kind "${t}"`)}function Ho(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")}function qo({atomic:t,flags:e,parent:r,alternatives:n},i,s){const a=i.currentFlags;e&&(i.currentFlags=Xe(a,e));const o=n.map(s).join("|"),c=!i.verbose&&n.length===1&&r.type!==_.Quantifier&&!t&&(!i.useFlagMods||!e)?o:`(?${Ko(t,e,i.useFlagMods)}${o})`;return i.currentFlags=a,c}function zo({ref:t},e){const r=e.recursionLimit;return t===0?`(?R=${r})`:b`\g<${t}&R=${r}>`}function Gn(t,e){const r=!!(e!=null&&e.firstOnly),n=t.min.value,i=t.max.value,s=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return s;for(let a=n;a<=i;a++){const o=O(a);if(!Kt(o))continue;const c=hn(o).filter(l=>{const p=l.codePointAt(0);return p<n||p>i});if(c.length&&(s.push(...c),r))break}return s}function he(t,{isAfterBackref:e,inCharClass:r,useFlagV:n}){if(Or.has(t))return Or.get(t);if(t<32||t>126&&t<160||t>262143||e&&Jo(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?Vo:xo:No,s=O(t);return(i.has(s)?"\\":"")+s}function Qo(t){const e=t.map(i=>i.codePointAt(0)).sort((i,s)=>i-s),r=[];let n=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?n??(n=e[i]):n===null?r.push(e[i]):(r.push([n,e[i]]),n=null);return r}function Ko(t,e,r){if(t)return">";let n="";if(e&&r){const{enable:i,disable:s}=e;n=(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")+(s?"-":"")+(s!=null&&s.ignoreCase?"i":"")+(s!=null&&s.dotAll?"s":"")}return`${n}:`}function Xo({min:t,max:e,greedy:r,possessive:n}){let i;return!t&&e===1?i="?":!t&&e===1/0?i="*":t===1&&e===1/0?i="+":t===e?i=`{${t}}`:i=`{${t},${e===1/0?"":e}}`,i+(n?"+":r?"":"?")}function Jo(t){return t>47&&t<58}var se,me,Zo=(me=class extends qt{constructor(r,n,i){var e=(...Gl)=>(super(...Gl),sr(this,se),g(this,"rawArgs"),this);if(r instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");e(r,n),r instanceof me?(Ne(this,se,dt(r,se)),this.rawArgs=r.rawArgs):(Ne(this,se,null),this.rawArgs={pattern:r.source,flags:r.flags,options:{}}),n!==void 0&&(this.rawArgs.flags=n)}else{const s={strategy:null,useEmulationGroups:!1,...i};e(r,n,{useEmulationGroups:s.useEmulationGroups}),Ne(this,se,s.strategy),this.rawArgs={pattern:r,flags:n??"",options:{...s.strategy&&{strategy:s.strategy},...s.useEmulationGroups&&{useEmulationGroups:!0}}}}}exec(r){const n=super.exec,i=this.global||this.sticky,s=this.lastIndex;if(dt(this,se)==="search_start_clip"&&i&&s){this.lastIndex=0;const a=n.call(this,r.slice(s));return a&&(Yo(a,this,r,s),this.lastIndex+=s),a}return n.call(this,r)}},se=new WeakMap,me);function Yo(t,e,r,n){if(t.input=r,t.index+=n,e.hasIndices){const i=t.indices;for(let a=0;a<i.length;a++){const o=i[a];o&&(i[a]=[o[0]+n,o[1]+n])}const s=i.groups;s&&Object.keys(s).forEach(a=>{const o=s[a];o&&(s[a]=[o[0]+n,o[1]+n])})}}function ec(t,e){const r=pn(e),n=r.avoidSubclass,i=vn(t,r.flags,{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}),s=kn(i,{skipBackrefValidation:r.rules.allowOrphanBackrefs,verbose:r.verbose}),a=wo(s,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:n,bestEffortTarget:r.target}),o=Oo(a,r),c={useEmulationGroups:!n},l={pattern:ka(Sa(Ia(o.pattern,c)),c),flags:`${r.hasIndices?"d":""}${r.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`},p=!n&&l.pattern.includes(le),h=a._strategy;return(p||h)&&(l.options={...h&&{strategy:h},...p&&{useEmulationGroups:p}}),l}function tc(t,e){const r=ec(t,e);return r.options?new Zo(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}const Dr=4294967295;class rc{constructor(e,r={}){g(this,"regexps");this.patterns=e,this.options=r;const{forgiving:n=!1,cache:i,regexConstructor:s}=r;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(a=>{if(typeof a!="string")return a;const o=i==null?void 0:i.get(a);if(o){if(o instanceof RegExp)return o;if(n)return null;throw o}try{const c=s(a);return i==null||i.set(a,c),c}catch(c){if(i==null||i.set(a,c),n)return null;throw c}})}findNextMatchSync(e,r,n){const i=typeof e=="string"?e:e.content,s=[];function a(o,c,l=0){return{index:o,captureIndices:c.indices.map(p=>p==null?{start:Dr,end:Dr,length:0}:{start:p[0]+l,end:p[1]+l,length:p[1]-p[0]})}}for(let o=0;o<this.regexps.length;o++){const c=this.regexps[o];if(c)try{c.lastIndex=r;const l=c.exec(i);if(!l)continue;if(l.index===r)return a(o,l,0);s.push([o,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(s.length){const o=Math.min(...s.map(c=>c[1].index));for(const[c,l,p]of s)if(l.index===o)return a(c,l,p)}return null}}function nc(t,e){return tc(t,{global:!0,hasIndices:!0,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function Uc(t={}){const e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||(e.regexConstructor=r=>nc(r,{target:e.target})),{createScanner(r){return new rc(r,e)},createString(r){return{content:r}}}}function ic(t){return Q("import `createOnigurumaEngine` from `@shikijs/engine-oniguruma` or `shiki/engine/oniguruma` instead"),nt(t)}function Wc(t){return Q("import `createOnigurumaEngine` from `@shikijs/engine-oniguruma` or `shiki/engine/oniguruma` instead"),nt(t)}function sc(t){return Array.isArray(t)?t:[t]}function ct(t,e=!1){var s;const r=t.split(/(\r?\n)/g);let n=0;const i=[];for(let a=0;a<r.length;a+=2){const o=e?r[a]+(r[a+1]||""):r[a];i.push([o,n]),n+=r[a].length,n+=((s=r[a+1])==null?void 0:s.length)||0}return i}function Xt(t){return!t||["plaintext","txt","text","plain"].includes(t)}function Mn(t){return t==="ansi"||Xt(t)}function Jt(t){return t==="none"}function Bn(t){return Jt(t)}function Fn(t,e){var n;if(!e)return t;t.properties||(t.properties={}),(n=t.properties).class||(n.class=[]),typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const r=Array.isArray(e)?e:e.split(/\s+/g);for(const i of r)i&&!t.properties.class.includes(i)&&t.properties.class.push(i);return t}function ac(t,e){let r=0;const n=[];for(const i of e)i>r&&n.push({...t,content:t.content.slice(r,i),offset:t.offset+r}),r=i;return r<t.content.length&&n.push({...t,content:t.content.slice(r),offset:t.offset+r}),n}function oc(t,e){const r=Array.from(e instanceof Set?e:new Set(e)).sort((n,i)=>n-i);return r.length?t.map(n=>n.flatMap(i=>{const s=r.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,o)=>a-o);return s.length?ac(i,s):i})):t}async function jn(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function Ye(t,e){const r=typeof t=="string"?{}:{...t.colorReplacements},n=typeof t=="string"?t:t.name;for(const[i,s]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof s=="string"?r[i]=s:i===n&&Object.assign(r,s);return r}function oe(t,e){return t&&((e==null?void 0:e[t==null?void 0:t.toLowerCase()])||t)}function Un(t){const e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&ee.Italic&&(e["font-style"]="italic"),t.fontStyle&ee.Bold&&(e["font-weight"]="bold"),t.fontStyle&ee.Underline&&(e["text-decoration"]="underline")),e}function cc(t){return typeof t=="string"?t:Object.entries(t).map(([e,r])=>`${e}:${r}`).join(";")}function lc(t){const e=ct(t,!0).map(([i])=>i);function r(i){if(i===t.length)return{line:e.length-1,character:e[e.length-1].length};let s=i,a=0;for(const o of e){if(s<o.length)break;s-=o.length,a++}return{line:a,character:s}}function n(i,s){let a=0;for(let o=0;o<i;o++)a+=e[o].length;return a+=s,a}return{lines:e,indexToPos:r,posToIndex:n}}class M extends Error{constructor(e){super(e),this.name="ShikiError"}}const Wn=new WeakMap;function lt(t,e){Wn.set(t,e)}function Re(t){return Wn.get(t)}class _e{constructor(...e){g(this,"_stacks",{});g(this,"lang");if(e.length===2){const[r,n]=e;this.lang=n,this._stacks=r}else{const[r,n,i]=e;this.lang=n,this._stacks={[i]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,r){return new _e(Object.fromEntries(sc(r).map(n=>[n,Dt])),e)}getInternalStack(e=this.theme){return this._stacks[e]}get scopes(){return Q("GrammarState.scopes is deprecated, use GrammarState.getScopes() instead"),Nr(this._stacks[this.theme])}getScopes(e=this.theme){return Nr(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Nr(t){const e=[],r=new Set;function n(i){var a;if(r.has(i))return;r.add(i);const s=(a=i==null?void 0:i.nameScopesList)==null?void 0:a.scopeName;s&&e.push(s),i.parent&&n(i.parent)}return n(t),e}function uc(t,e){if(!(t instanceof _e))throw new M("Invalid grammar state");return t.getInternalStack(e)}function pc(){const t=new WeakMap;function e(r){if(!t.has(r.meta)){let n=function(a){if(typeof a=="number"){if(a<0||a>r.source.length)throw new M(`Invalid decoration offset: ${a}. Code length: ${r.source.length}`);return{...i.indexToPos(a),offset:a}}else{const o=i.lines[a.line];if(o===void 0)throw new M(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);if(a.character<0||a.character>o.length)throw new M(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${o.length}`);return{...a,offset:i.posToIndex(a.line,a.character)}}};const i=lc(r.source),s=(r.options.decorations||[]).map(a=>({...a,start:n(a.start),end:n(a.end)}));hc(s),t.set(r.meta,{decorations:s,converter:i,source:r.source})}return t.get(r.meta)}return{name:"shiki:decorations",tokens(r){var a;if(!((a=this.options.decorations)!=null&&a.length))return;const i=e(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return oc(r,i)},code(r){var p;if(!((p=this.options.decorations)!=null&&p.length))return;const n=e(this),i=Array.from(r.children).filter(h=>h.type==="element"&&h.tagName==="span");if(i.length!==n.converter.lines.length)throw new M(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function s(h,f,d,m){const C=i[h];let E="",y=-1,v=-1;if(f===0&&(y=0),d===0&&(v=0),d===Number.POSITIVE_INFINITY&&(v=C.children.length),y===-1||v===-1)for(let R=0;R<C.children.length;R++)E+=Hn(C.children[R]),y===-1&&E.length===f&&(y=R+1),v===-1&&E.length===d&&(v=R+1);if(y===-1)throw new M(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(v===-1)throw new M(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);const w=C.children.slice(y,v);if(!m.alwaysWrap&&w.length===C.children.length)o(C,m,"line");else if(!m.alwaysWrap&&w.length===1&&w[0].type==="element")o(w[0],m,"token");else{const R={type:"element",tagName:"span",properties:{},children:w};o(R,m,"wrapper"),C.children.splice(y,w.length,R)}}function a(h,f){i[h]=o(i[h],f,"line")}function o(h,f,d){var E;const m=f.properties||{},C=f.transform||(y=>y);return h.tagName=f.tagName||"span",h.properties={...h.properties,...m,class:h.properties.class},(E=f.properties)!=null&&E.class&&Fn(h,f.properties.class),h=C(h,d)||h,h}const c=[],l=n.decorations.sort((h,f)=>f.start.offset-h.start.offset);for(const h of l){const{start:f,end:d}=h;if(f.line===d.line)s(f.line,f.character,d.character,h);else if(f.line<d.line){s(f.line,f.character,Number.POSITIVE_INFINITY,h);for(let m=f.line+1;m<d.line;m++)c.unshift(()=>a(m,h));s(d.line,0,d.character,h)}}c.forEach(h=>h())}}}function hc(t){for(let e=0;e<t.length;e++){const r=t[e];if(r.start.offset>r.end.offset)throw new M(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=e+1;n<t.length;n++){const i=t[n],s=r.start.offset<i.start.offset&&i.start.offset<r.end.offset,a=r.start.offset<i.end.offset&&i.end.offset<r.end.offset,o=i.start.offset<r.start.offset&&r.start.offset<i.end.offset,c=i.start.offset<r.end.offset&&r.end.offset<i.end.offset;if(s||a||o||c){if(a&&a||o&&c)continue;throw new M(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function Hn(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(Hn).join(""):""}const dc=[pc()];function et(t){return[...t.transformers||[],...dc]}var ce=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Rt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function fc(t,e){const r=t.indexOf("\x1B[",e);if(r!==-1){const n=t.indexOf("m",r);return{sequence:t.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:t.length}}function xr(t,e){let r=1;const n=t[e+r++];let i;if(n==="2"){const s=[t[e+r++],t[e+r++],t[e+r]].map(a=>Number.parseInt(a));s.length===3&&!s.some(a=>Number.isNaN(a))&&(i={type:"rgb",rgb:s})}else if(n==="5"){const s=Number.parseInt(t[e+r]);Number.isNaN(s)||(i={type:"table",index:Number(s)})}return[r,i]}function mc(t){const e=[];for(let r=0;r<t.length;r++){const n=t[r],i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)Rt[i]&&e.push({type:"setDecoration",value:Rt[i]});else if(i<=29){const s=Rt[i-20];s&&e.push({type:"resetDecoration",value:s})}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:ce[i-30]}});else if(i===38){const[s,a]=xr(t,r);a&&e.push({type:"setForegroundColor",value:a}),r+=s}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:ce[i-40]}});else if(i===48){const[s,a]=xr(t,r);a&&e.push({type:"setBackgroundColor",value:a}),r+=s}else i===49?e.push({type:"resetBackgroundColor"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:ce[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:ce[i-100+8]}})}return e}function gc(){let t=null,e=null,r=new Set;return{parse(n){const i=[];let s=0;do{const a=fc(n,s),o=a.sequence?n.substring(s,a.startPosition):n.substring(s);if(o.length>0&&i.push({value:o,foreground:t,background:e,decorations:new Set(r)}),a.sequence){const c=mc(a.sequence);for(const l of c)l.type==="resetAll"?(t=null,e=null,r.clear()):l.type==="resetForegroundColor"?t=null:l.type==="resetBackgroundColor"?e=null:l.type==="resetDecoration"&&r.delete(l.value);for(const l of c)l.type==="setForegroundColor"?t=l.value:l.type==="setBackgroundColor"?e=l.value:l.type==="setDecoration"&&r.add(l.value)}s=a.position}while(s<n.length);return i}}}var _c={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Ec(t=_c){function e(o){return t[o]}function r(o){return`#${o.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let l=0;l<ce.length;l++)n.push(e(ce[l]));let o=[0,95,135,175,215,255];for(let l=0;l<6;l++)for(let p=0;p<6;p++)for(let h=0;h<6;h++)n.push(r([o[l],o[p],o[h]]));let c=8;for(let l=0;l<24;l++,c+=10)n.push(r([c,c,c]));return n}function s(o){return i()[o]}function a(o){switch(o.type){case"named":return e(o.name);case"rgb":return r(o.rgb);case"table":return s(o.index)}}return{value:a}}function yc(t,e,r){const n=Ye(t,r),i=ct(e),s=Ec(Object.fromEntries(ce.map(o=>{var c;return[o,(c=t.colors)==null?void 0:c[`terminal.ansi${o[0].toUpperCase()}${o.substring(1)}`]]}))),a=gc();return i.map(o=>a.parse(o[0]).map(c=>{let l,p;c.decorations.has("reverse")?(l=c.background?s.value(c.background):t.bg,p=c.foreground?s.value(c.foreground):t.fg):(l=c.foreground?s.value(c.foreground):t.fg,p=c.background?s.value(c.background):void 0),l=oe(l,n),p=oe(p,n),c.decorations.has("dim")&&(l=Cc(l));let h=ee.None;return c.decorations.has("bold")&&(h|=ee.Bold),c.decorations.has("italic")&&(h|=ee.Italic),c.decorations.has("underline")&&(h|=ee.Underline),{content:c.value,offset:o[1],color:l,bgColor:p,fontStyle:h}}))}function Cc(t){const e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const n=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${n}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(n=>`${n}${n}`).join("")}80`;const r=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:t}function ut(t,e,r={}){const{lang:n="text",theme:i=t.getLoadedThemes()[0]}=r;if(Xt(n)||Jt(i))return ct(e).map(c=>[{content:c[0],offset:c[1]}]);const{theme:s,colorMap:a}=t.setTheme(i);if(n==="ansi")return yc(s,e,r);const o=t.getLanguage(n);if(r.grammarState){if(r.grammarState.lang!==o.name)throw new te(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${o.name}"`);if(!r.grammarState.themes.includes(s.name))throw new te(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return vc(e,o,s,a,r)}function qn(...t){if(t.length===2)return Re(t[1]);const[e,r,n={}]=t,{lang:i="text",theme:s=e.getLoadedThemes()[0]}=n;if(Xt(i)||Jt(s))throw new te("Plain language does not have grammar state");if(i==="ansi")throw new te("ANSI language does not have grammar state");const{theme:a,colorMap:o}=e.setTheme(s),c=e.getLanguage(i);return new _e(tt(r,c,a,o,n).stateStack,c.name,a.name)}function vc(t,e,r,n,i){const s=tt(t,e,r,n,i),a=new _e(tt(t,e,r,n,i).stateStack,e.name,r.name);return lt(s.tokens,a),s.tokens}function tt(t,e,r,n,i){const s=Ye(r,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:o=500}=i,c=ct(t);let l=i.grammarState?uc(i.grammarState,r.name)??Dt:i.grammarContextCode!=null?tt(i.grammarContextCode,e,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Dt,p=[];const h=[];for(let f=0,d=c.length;f<d;f++){const[m,C]=c[f];if(m===""){p=[],h.push([]);continue}if(a>0&&m.length>=a){p=[],h.push([{content:m,offset:C,color:"",fontStyle:0}]);continue}let E,y,v;i.includeExplanation&&(E=e.tokenizeLine(m,l),y=E.tokens,v=0);const w=e.tokenizeLine2(m,l,o),R=w.tokens.length/2;for(let I=0;I<R;I++){const V=w.tokens[2*I],T=I+1<R?w.tokens[2*I+2]:m.length;if(V===T)continue;const K=w.tokens[2*I+1],De=oe(n[ge.getForeground(K)],s),Ee=ge.getFontStyle(K),pt={content:m.substring(V,T),offset:C+V,color:De,fontStyle:Ee};if(i.includeExplanation){const tr=[];if(i.includeExplanation!=="scopeName")for(const X of r.settings){let ue;switch(typeof X.scope){case"string":ue=X.scope.split(/,/).map(ht=>ht.trim());break;case"object":ue=X.scope;break;default:continue}tr.push({settings:X,selectors:ue.map(ht=>ht.split(/ /))})}pt.explanation=[];let rr=0;for(;V+rr<T;){const X=y[v],ue=m.substring(X.startIndex,X.endIndex);rr+=ue.length,pt.explanation.push({content:ue,scopes:i.includeExplanation==="scopeName"?Ac(X.scopes):bc(tr,X.scopes)}),v+=1}}p.push(pt)}h.push(p),p=[],l=w.ruleStack}return{tokens:h,stateStack:l}}function Ac(t){return t.map(e=>({scopeName:e}))}function bc(t,e){const r=[];for(let n=0,i=e.length;n<i;n++){const s=e[n];r[n]={scopeName:s,themeMatches:kc(t,s,e.slice(0,n))}}return r}function Vr(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function wc(t,e,r){if(!Vr(t[t.length-1],e))return!1;let n=t.length-2,i=r.length-1;for(;n>=0&&i>=0;)Vr(t[n],r[i])&&(n-=1),i-=1;return n===-1}function kc(t,e,r){const n=[];for(const{selectors:i,settings:s}of t)for(const a of i)if(wc(a,e,r)){n.push(s);break}return n}function Zt(t,e,r){const n=Object.entries(r.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),i=n.map(c=>{const l=ut(t,e,{...r,theme:c.theme}),p=Re(l),h=typeof c.theme=="string"?c.theme:c.theme.name;return{tokens:l,state:p,theme:h}}),s=Sc(...i.map(c=>c.tokens)),a=s[0].map((c,l)=>c.map((p,h)=>{const f={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in r&&r.includeExplanation&&(f.explanation=p.explanation),s.forEach((d,m)=>{const{content:C,explanation:E,offset:y,...v}=d[l][h];f.variants[n[m].color]=v}),f})),o=i[0].state?new _e(Object.fromEntries(i.map(c=>{var l;return[c.theme,(l=c.state)==null?void 0:l.getInternalStack(c.theme)]})),i[0].state.lang):void 0;return o&&lt(a,o),a}function Sc(...t){const e=t.map(()=>[]),r=t.length;for(let n=0;n<t[0].length;n++){const i=t.map(c=>c[n]),s=e.map(()=>[]);e.forEach((c,l)=>c.push(s[l]));const a=i.map(()=>0),o=i.map(c=>c[0]);for(;o.every(c=>c);){const c=Math.min(...o.map(l=>l.content.length));for(let l=0;l<r;l++){const p=o[l];p.content.length===c?(s[l].push(p),a[l]+=1,o[l]=i[l][a[l]]):(s[l].push({...p,content:p.content.slice(0,c)}),o[l]={...p,content:p.content.slice(c),offset:p.offset+c})}}}return e}function Ie(t,e,r){let n,i,s,a,o,c;if("themes"in r){const{defaultColor:l="light",cssVariablePrefix:p="--shiki-"}=r,h=Object.entries(r.themes).filter(E=>E[1]).map(E=>({color:E[0],theme:E[1]})).sort((E,y)=>E.color===l?-1:y.color===l?1:0);if(h.length===0)throw new te("`themes` option must not be empty");const f=Zt(t,e,r);if(c=Re(f),l&&!h.find(E=>E.color===l))throw new te(`\`themes\` option must contain the defaultColor key \`${l}\``);const d=h.map(E=>t.getTheme(E.theme)),m=h.map(E=>E.color);s=f.map(E=>E.map(y=>Rc(y,m,p,l))),c&&lt(s,c);const C=h.map(E=>Ye(E.theme,r));i=h.map((E,y)=>(y===0&&l?"":`${p+E.color}:`)+(oe(d[y].fg,C[y])||"inherit")).join(";"),n=h.map((E,y)=>(y===0&&l?"":`${p+E.color}-bg:`)+(oe(d[y].bg,C[y])||"inherit")).join(";"),a=`shiki-themes ${d.map(E=>E.name).join(" ")}`,o=l?void 0:[i,n].join(";")}else if("theme"in r){const l=Ye(r.theme,r);s=ut(t,e,r);const p=t.getTheme(r.theme);n=oe(p.bg,l),i=oe(p.fg,l),a=p.name,c=Re(s)}else throw new te("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:n,themeName:a,rootStyle:o,grammarState:c}}function Rc(t,e,r,n){const i={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(c=>Un(t.variants[c])),a=new Set(s.flatMap(c=>Object.keys(c))),o={};return s.forEach((c,l)=>{for(const p of a){const h=c[p]||"inherit";if(l===0&&n)o[p]=h;else{const f=p==="color"?"":p==="background-color"?"-bg":`-${p}`,d=r+e[l]+(p==="color"?"":f);o[d]=h}}}),i.htmlStyle=o,i}function Te(t,e,r,n={meta:{},options:r,codeToHast:(i,s)=>Te(t,i,s),codeToTokens:(i,s)=>Ie(t,i,s)}){var d,m;let i=e;for(const C of et(r))i=((d=C.preprocess)==null?void 0:d.call(n,i,r))||i;let{tokens:s,fg:a,bg:o,themeName:c,rootStyle:l,grammarState:p}=Ie(t,i,r);const{mergeWhitespaces:h=!0}=r;h===!0?s=Tc(s):h==="never"&&(s=Lc(s));const f={...n,get source(){return i}};for(const C of et(r))s=((m=C.tokens)==null?void 0:m.call(f,s))||s;return Ic(s,{...r,fg:a,bg:o,themeName:c,rootStyle:l},f,p)}function Ic(t,e,r,n=Re(t)){var m,C,E;const i=et(e),s=[],a={type:"root",children:[]},{structure:o="classic",tabindex:c="0"}=e;let l={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...c!==!1&&c!=null?{tabindex:c.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([y])=>!y.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:s};const h=[],f={...r,structure:o,addClassToHast:Fn,get source(){return r.source},get tokens(){return t},get options(){return e},get root(){return a},get pre(){return l},get code(){return p},get lines(){return h}};if(t.forEach((y,v)=>{var I,V;v&&(o==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&s.push({type:"text",value:`
149
+ `}));let w={type:"element",tagName:"span",properties:{class:"line"},children:[]},R=0;for(const T of y){let K={type:"element",tagName:"span",properties:{...T.htmlAttrs},children:[{type:"text",value:T.content}]};typeof T.htmlStyle=="string"&&Q("`htmlStyle` as a string is deprecated. Use an object instead.");const De=cc(T.htmlStyle||Un(T));De&&(K.properties.style=De);for(const Ee of i)K=((I=Ee==null?void 0:Ee.span)==null?void 0:I.call(f,K,v+1,R,w,T))||K;o==="inline"?a.children.push(K):o==="classic"&&w.children.push(K),R+=T.content.length}if(o==="classic"){for(const T of i)w=((V=T==null?void 0:T.line)==null?void 0:V.call(f,w,v+1))||w;h.push(w),s.push(w)}}),o==="classic"){for(const y of i)p=((m=y==null?void 0:y.code)==null?void 0:m.call(f,p))||p;l.children.push(p);for(const y of i)l=((C=y==null?void 0:y.pre)==null?void 0:C.call(f,l))||l;a.children.push(l)}let d=a;for(const y of i)d=((E=y==null?void 0:y.root)==null?void 0:E.call(f,d))||d;return n&&lt(d,n),d}function Tc(t){return t.map(e=>{const r=[];let n="",i=0;return e.forEach((s,a)=>{const c=!(s.fontStyle&&s.fontStyle&ee.Underline);c&&s.content.match(/^\s+$/)&&e[a+1]?(i||(i=s.offset),n+=s.content):n?(c?r.push({...s,offset:i,content:n+s.content}):r.push({content:n,offset:i},s),i=0,n=""):r.push(s)}),r})}function Lc(t){return t.map(e=>e.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,i,s,a]=n;if(!i&&!a)return r;const o=[{...r,offset:r.offset+i.length,content:s}];return i&&o.unshift({content:i,offset:r.offset}),a&&o.push({content:a,offset:r.offset+i.length+s.length}),o}))}function zn(t,e,r){var s;const n={meta:{},options:r,codeToHast:(a,o)=>Te(t,a,o),codeToTokens:(a,o)=>Ie(t,a,o)};let i=ma(Te(t,e,r,n));for(const a of et(r))i=((s=a.postprocess)==null?void 0:s.call(n,i,r))||i;return i}const $r={light:"#333333",dark:"#bbbbbb"},Gr={light:"#fffffe",dark:"#1e1e1e"},Mr="__shiki_resolved";function Yt(t){var o,c,l,p,h;if(t!=null&&t[Mr])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:r,fg:n}=e;if(!r||!n){const f=e.settings?e.settings.find(d=>!d.name&&!d.scope):void 0;(o=f==null?void 0:f.settings)!=null&&o.foreground&&(n=f.settings.foreground),(c=f==null?void 0:f.settings)!=null&&c.background&&(r=f.settings.background),!n&&((l=e==null?void 0:e.colors)!=null&&l["editor.foreground"])&&(n=e.colors["editor.foreground"]),!r&&((p=e==null?void 0:e.colors)!=null&&p["editor.background"])&&(r=e.colors["editor.background"]),n||(n=e.type==="light"?$r.light:$r.dark),r||(r=e.type==="light"?Gr.light:Gr.dark),e.fg=n,e.bg=r}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const s=new Map;function a(f){var m;if(s.has(f))return s.get(f);i+=1;const d=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(m=e.colorReplacements)!=null&&m[`#${d}`]?a(f):(s.set(f,d),d)}e.settings=e.settings.map(f=>{var E,y;const d=((E=f.settings)==null?void 0:E.foreground)&&!f.settings.foreground.startsWith("#"),m=((y=f.settings)==null?void 0:y.background)&&!f.settings.background.startsWith("#");if(!d&&!m)return f;const C={...f,settings:{...f.settings}};if(d){const v=a(f.settings.foreground);e.colorReplacements[v]=f.settings.foreground,C.settings.foreground=v}if(m){const v=a(f.settings.background);e.colorReplacements[v]=f.settings.background,C.settings.background=v}return C});for(const f of Object.keys(e.colors||{}))if((f==="editor.foreground"||f==="editor.background"||f.startsWith("terminal.ansi"))&&!((h=e.colors[f])!=null&&h.startsWith("#"))){const d=a(e.colors[f]);e.colorReplacements[d]=e.colors[f],e.colors[f]=d}return Object.defineProperty(e,Mr,{enumerable:!1,writable:!1,value:!0}),e}async function Qn(t){return Array.from(new Set((await Promise.all(t.filter(e=>!Mn(e)).map(async e=>await jn(e).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function Kn(t){return(await Promise.all(t.map(async r=>Bn(r)?null:Yt(await jn(r))))).filter(r=>!!r)}class Pc extends fs{constructor(r,n,i,s={}){super(r);g(this,"_resolvedThemes",new Map);g(this,"_resolvedGrammars",new Map);g(this,"_langMap",new Map);g(this,"_langGraph",new Map);g(this,"_textmateThemeCache",new WeakMap);g(this,"_loadedThemesCache",null);g(this,"_loadedLanguagesCache",null);this._resolver=r,this._themes=n,this._langs=i,this._alias=s,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const n=Yt(r);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let n=this._textmateThemeCache.get(r);n||(n=He.createFromRawTheme(r),this._textmateThemeCache.set(r,n)),this._syncRegistry.setTheme(n)}getGrammar(r){if(this._alias[r]){const n=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],n.has(r))throw new M(`Circular alias \`${Array.from(n).join(" -> ")} -> ${r}\``);n.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){var a,o,c,l;if(this.getGrammar(r.name))return;const n=new Set([...this._langMap.values()].filter(p=>{var h;return(h=p.embeddedLangsLazy)==null?void 0:h.includes(r.name)}));this._resolver.addLanguage(r);const i={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const s=this.loadGrammarWithConfiguration(r.scopeName,1,i);if(s.name=r.name,this._resolvedGrammars.set(r.name,s),r.aliases&&r.aliases.forEach(p=>{this._alias[p]=r.name}),this._loadedLanguagesCache=null,n.size)for(const p of n)this._resolvedGrammars.delete(p.name),this._loadedLanguagesCache=null,(o=(a=this._syncRegistry)==null?void 0:a._injectionGrammars)==null||o.delete(p.scopeName),(l=(c=this._syncRegistry)==null?void 0:c._grammars)==null||l.delete(p.scopeName),this.loadLanguage(this._langMap.get(p.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const s of r)this.resolveEmbeddedLanguages(s);const n=Array.from(this._langGraph.entries()),i=n.filter(([s,a])=>!a);if(i.length){const s=n.filter(([a,o])=>{var c;return o&&((c=o.embeddedLangs)==null?void 0:c.some(l=>i.map(([p])=>p).includes(l)))}).filter(a=>!i.includes(a));throw new M(`Missing languages ${i.map(([a])=>`\`${a}\``).join(", ")}, required by ${s.map(([a])=>`\`${a}\``).join(", ")}`)}for(const[s,a]of n)this._resolver.addLanguage(a);for(const[s,a]of n)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const n of r.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class Oc{constructor(e,r){g(this,"_langs",new Map);g(this,"_scopeToLang",new Map);g(this,"_injections",new Map);g(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},r.forEach(n=>this.addLanguage(n))}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(r=>{this._langs.set(r,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(e.scopeName)})}getInjections(e){const r=e.split(".");let n=[];for(let i=1;i<=r.length;i++){const s=r.slice(0,i).join(".");n=[...n,...this._injections.get(s)||[]]}return n}}let ye=0;function Xn(t){ye+=1,t.warnings!==!1&&ye>=10&&ye%10===0&&console.warn(`[Shiki] ${ye} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new M("`engine` option is required for synchronous mode");const r=(t.langs||[]).flat(1),n=(t.themes||[]).flat(1).map(Yt),i=new Oc(t.engine,r),s=new Pc(i,n,r,t.langAlias);let a;function o(v){E();const w=s.getGrammar(typeof v=="string"?v:v.name);if(!w)throw new M(`Language \`${v}\` not found, you may need to load it first`);return w}function c(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const w=s.getTheme(v);if(!w)throw new M(`Theme \`${v}\` not found, you may need to load it first`);return w}function l(v){E();const w=c(v);a!==v&&(s.setTheme(w),a=v);const R=s.getColorMap();return{theme:w,colorMap:R}}function p(){return E(),s.getLoadedThemes()}function h(){return E(),s.getLoadedLanguages()}function f(...v){E(),s.loadLanguages(v.flat(1))}async function d(...v){return f(await Qn(v))}function m(...v){E();for(const w of v.flat(1))s.loadTheme(w)}async function C(...v){return E(),m(await Kn(v))}function E(){if(e)throw new M("Shiki instance has been disposed")}function y(){e||(e=!0,s.dispose(),ye-=1)}return{setTheme:l,getTheme:c,getLanguage:o,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:d,loadLanguageSync:f,loadTheme:C,loadThemeSync:m,dispose:y,[Symbol.dispose]:y}}async function Jn(t={}){t.loadWasm&&Q("`loadWasm` option is deprecated. Use `engine: createOnigurumaEngine(loadWasm)` instead.");const[e,r,n]=await Promise.all([Kn(t.themes||[]),Qn(t.langs||[]),t.engine||nt(t.loadWasm||Ii())]);return Xn({...t,themes:e,langs:r,engine:n})}function Hc(t={}){return Q("`getShikiInternal` is deprecated. Use `createShikiInternal` instead."),Jn(t)}async function er(t={}){const e=await Jn(t);return{getLastGrammarState:(...r)=>qn(e,...r),codeToTokensBase:(r,n)=>ut(e,r,n),codeToTokensWithThemes:(r,n)=>Zt(e,r,n),codeToTokens:(r,n)=>Ie(e,r,n),codeToHast:(r,n)=>Te(e,r,n),codeToHtml:(r,n)=>zn(e,r,n),...e,getInternalContext:()=>e}}function qc(t={}){const e=Xn(t);return{getLastGrammarState:(...r)=>qn(e,...r),codeToTokensBase:(r,n)=>ut(e,r,n),codeToTokensWithThemes:(r,n)=>Zt(e,r,n),codeToTokens:(r,n)=>Ie(e,r,n),codeToHast:(r,n)=>Te(e,r,n),codeToHtml:(r,n)=>zn(e,r,n),...e,getInternalContext:()=>e}}function Dc(t){let e;async function r(n={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else return e=t({...n,themes:n.themes||[],langs:n.langs||[]}),e}return r}const zc=Dc(er);function Qc(t={}){return Q("`getHighlighterCore` is deprecated. Use `createHighlighterCore` or `getSingletonHighlighterCore` instead."),er(t)}function Nc(t,e,r){let n,i,s;if(e)Q("`createdBundledHighlighter` signature with `bundledLanguages` and `bundledThemes` is deprecated. Use the options object signature instead."),n=t,i=e,s=()=>ic(r);else{const o=t;n=o.langs,i=o.themes,s=o.engine}async function a(o){function c(d){if(typeof d=="string"){if(Mn(d))return[];const m=n[d];if(!m)throw new te(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return m}return d}function l(d){if(Bn(d))return"none";if(typeof d=="string"){const m=i[d];if(!m)throw new te(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return m}return d}const p=(o.themes??[]).map(d=>l(d)),h=(o.langs??[]).map(d=>c(d)),f=await er({engine:o.engine??s(),...o,themes:p,langs:h});return{...f,loadLanguage(...d){return f.loadLanguage(...d.map(c))},loadTheme(...d){return f.loadTheme(...d.map(l))}}}return a}function xc(t){let e;async function r(n={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else return e=t({...n,themes:n.themes||[],langs:n.langs||[]}),e}return r}function Vc(t){const e=xc(t);return{getSingletonHighlighter(r){return e(r)},async codeToHtml(r,n){return(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHtml(r,n)},async codeToHast(r,n){return(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHast(r,n)},async codeToTokens(r,n){return(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToTokens(r,n)},async codeToTokensBase(r,n){return(await e({langs:[n.lang],themes:[n.theme]})).codeToTokensBase(r,n)},async codeToTokensWithThemes(r,n){return(await e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)})).codeToTokensWithThemes(r,n)},async getLastGrammarState(r,n){return(await e({langs:[n.lang],themes:[n.theme]})).getLastGrammarState(r,n)}}}function Kc(t={}){var a;const{name:e="css-variables",variablePrefix:r="--shiki-",fontStyle:n=!0}=t,i=o=>{var c;return(c=t.variableDefaults)!=null&&c[o]?`var(${r}${o}, ${t.variableDefaults[o]})`:`var(${r}${o})`},s={name:e,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:i("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:i("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:i("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:i("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:i("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:i("token-changed")}}]};return n||(s.tokenColors=(a=s.tokenColors)==null?void 0:a.map(o=>{var c;return(c=o.settings)!=null&&c.fontStyle&&delete o.settings.fontStyle,o})),s}const Xc=async t=>(Q('`getWasmInlined` is deprecated. Use `import("shiki/wasm")` instead.'),u(()=>import("./wasm-CG6Dc4jp.js"),[]).then(e=>e.default(t))),Zn=Nc({langs:ci,themes:ui,engine:()=>nt(u(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Jc,codeToHast:Zc,codeToTokens:Yc,codeToTokensBase:el,codeToTokensWithThemes:tl,getSingletonHighlighter:rl,getLastGrammarState:nl}=Vc(Zn),il=t=>(Q("`getHighlighter` is deprecated. Use `createHighlighter` or `getSingletonHighlighter` instead."),Zn(t));export{ee as FontStyle,te as ShikiError,ge as StackElementMetadata,Fn as addClassToHast,oe as applyColorReplacements,ci as bundledLanguages,oi as bundledLanguagesAlias,ai as bundledLanguagesBase,Fr as bundledLanguagesInfo,ui as bundledThemes,li as bundledThemesInfo,Zc as codeToHast,Jc as codeToHtml,Yc as codeToTokens,el as codeToTokensBase,tl as codeToTokensWithThemes,Kc as createCssVariablesTheme,Zn as createHighlighter,er as createHighlighterCore,qc as createHighlighterCoreSync,Uc as createJavaScriptRegexEngine,nt as createOnigurumaEngine,lc as createPositionConverter,Jn as createShikiInternal,Xn as createShikiInternalSync,Vc as createSingletonShorthands,Wc as createWasmOnigEngine,Nc as createdBundledHighlighter,nc as defaultJavaScriptRegexConstructor,Fc as enableDeprecationWarnings,il as getHighlighter,Qc as getHighlighterCore,nl as getLastGrammarState,Hc as getShikiInternal,rl as getSingletonHighlighter,zc as getSingletonHighlighterCore,Un as getTokenStyleObject,Xc as getWasmInlined,ma as hastToHtml,Jt as isNoneTheme,Xt as isPlainLang,Mn as isSpecialLang,Bn as isSpecialTheme,wi as loadWasm,xc as makeSingletonHighlighter,Dc as makeSingletonHighlighterCore,jn as normalizeGetter,Yt as normalizeTheme,Ye as resolveColorReplacements,ct as splitLines,ac as splitToken,oc as splitTokens,cc as stringifyTokenStyle,sc as toArray,yc as tokenizeAnsiWithTheme,vc as tokenizeWithTheme,Ic as tokensToHast,pc as transformerDecorations,Q as warnDeprecated};