PageSourceSearch

https://farm-nightly.netlify.app/assets/js/2632.b7b02683.js

js farm-nightly.netlify.app collected 2026-10-03 10:46:54 UTC 135,442 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfarm_docs=self.webpackChunkfarm_docs||[]).push([[2632],{70251:(e,t,n)=>{n.d(t,{Yz:()=>Lr});var r={};n.r(r),n.d(r,{boolean:()=>Ze,booleanish:()=>et,commaOrSpaceSeparated:()=>ot,commaSeparated:()=>it,number:()=>nt,overloadedBoolean:()=>tt,spaceSeparated:()=>rt});const i=[{id:"abap",name:"ABAP",import:()=>n.e(5311).then(n.bind(n,75311))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(4866).then(n.bind(n,54866))},{id:"ada",name:"Ada",import:()=>n.e(2695).then(n.bind(n,62695))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(4981)]).then(n.bind(n,64981))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(5685),n.e(6301)]).then(n.bind(n,48682))},{id:"apache",name:"Apache Conf",import:()=>n.e(7471).then(n.bind(n,97471))},{id:"apex",name:"Apex",import:()=>n.e(3034).then(n.bind(n,90653))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(2062)]).then(n.bind(n,82062))},{id:"applescript",name:"AppleScript",import:()=>n.e(9038).then(n.bind(n,19038))},{id:"ara",name:"Ara",import:()=>n.e(7533).then(n.bind(n,17533))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(7676).then(n.bind(n,47676))},{id:"asm",name:"Assembly",import:()=>n.e(790).then(n.bind(n,30790))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(7480),n.e(3674)]).then(n.bind(n,33674))},{id:"awk",name:"AWK",import:()=>n.e(3068).then(n.bind(n,33068))},{id:"ballerina",name:"Ballerina",import:()=>n.e(5999).then(n.bind(n,55999))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(9153).then(n.bind(n,81534))},{id:"beancount",name:"Beancount",import:()=>n.e(4588).then(n.bind(n,64588))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(3267).then(n.bind(n,83267))},{id:"bibtex",name:"BibTeX",import:()=>n.e(1627).then(n.bind(n,11627))},{id:"bicep",name:"Bicep",import:()=>n.e(2822).then(n.bind(n,72822))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(8403),n.e(6429)]).then(n.bind(n,6429))},{id:"c",name:"C",import:()=>n.e(3224).then(n.bind(n,13224))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(5402).then(n.bind(n,65402))},{id:"clarity",name:"Clarity",import:()=>n.e(7891).then(n.bind(n,87891))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(5679).then(n.bind(n,85679))},{id:"cmake",name:"CMake",import:()=>n.e(8286).then(n.bind(n,8286))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(4898)]).then(n.bind(n,14898))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(6950).then(n.bind(n,96950))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(7061).then(n.bind(n,67061))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(2076),n.e(4957)]).then(n.bind(n,4957))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(3715).then(n.bind(n,93715))},{id:"coq",name:"Coq",import:()=>n.e(6296).then(n.bind(n,96296))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(8403),n.e(3224),n.e(8270)]).then(n.bind(n,78270))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(8403),n.e(3224),n.e(5228),n.e(8197)]).then(n.bind(n,48197))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(9240).then(n.bind(n,59240))},{id:"css",name:"CSS",import:()=>n.e(2614).then(n.bind(n,22614))},{id:"csv",name:"CSV",import:()=>n.e(4979).then(n.bind(n,94979))},{id:"cue",name:"CUE",import:()=>n.e(6838).then(n.bind(n,66838))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(2048).then(n.bind(n,62048))},{id:"d",name:"D",import:()=>n.e(5135).then(n.bind(n,55135))},{id:"dart",name:"Dart",import:()=>n.e(7806).then(n.bind(n,17806))},{id:"dax",name:"DAX",import:()=>n.e(2736).then(n.bind(n,42736))},{id:"desktop",name:"Desktop",import:()=>n.e(2639).then(n.bind(n,52639))},{id:"diff",name:"Diff",import:()=>n.e(3664).then(n.bind(n,43664))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(6033).then(n.bind(n,96033))},{id:"dotenv",name:"dotEnv",import:()=>n.e(5139).then(n.bind(n,55139))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(1973).then(n.bind(n,1973))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(7480),n.e(4730)]).then(n.bind(n,64730))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(2768)]).then(n.bind(n,2768))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(3224),n.e(3015)]).then(n.bind(n,73015))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(383).then(n.bind(n,50383))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(8403),n.e(3224),n.e(5228),n.e(6225),n.e(8362)]).then(n.bind(n,68362))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>n.e(4e3).then(n.bind(n,94e3))},{id:"fennel",name:"Fennel",import:()=>n.e(3365).then(n.bind(n,63365))},{id:"fish",name:"Fish",import:()=>n.e(5983).then(n.bind(n,5983))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(3079).then(n.bind(n,13079))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(2975),n.e(427)]).then(n.bind(n,50427))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(2975).then(n.bind(n,22975))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(9306),n.e(7855)]).then(n.bind(n,97855))},{id:"gdresource",name:"GDResource",import:()=>n.e(5340).then(n.bind(n,45340))},{id:"gdscript",name:"GDScript",import:()=>n.e(4857).then(n.bind(n,14857))},{id:"gdshader",name:"GDShader",import:()=>n.e(8307).then(n.bind(n,8307))},{id:"genie",name:"Genie",import:()=>n.e(1807).then(n.bind(n,61807))},{id:"gherkin",name:"Gherkin",import:()=>n.e(273).then(n.bind(n,80273))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(6195).then(n.bind(n,36195))}
1,{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(5228),n.e(4856)]).then(n.bind(n,74856))},{id:"gleam",name:"Gleam",import:()=>n.e(5131).then(n.bind(n,35131))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(7480),n.e(1862)]).then(n.bind(n,71862))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(7480),n.e(5936)]).then(n.bind(n,55936))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(3224),n.e(797)]).then(n.bind(n,70797))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(5134).then(n.bind(n,85134))},{id:"go",name:"Go",import:()=>n.e(1959).then(n.bind(n,11959))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(2076),n.e(7480),n.e(4484),n.e(9214),n.e(7424)]).then(n.bind(n,67424))},{id:"groovy",name:"Groovy",import:()=>n.e(3283).then(n.bind(n,43283))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(8403),n.e(8990)]).then(n.bind(n,58990))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(527)]).then(n.bind(n,40527))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(9969)]).then(n.bind(n,39969))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(2235).then(n.bind(n,52235))},{id:"haxe",name:"Haxe",import:()=>n.e(4797).then(n.bind(n,84797))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(3926).then(n.bind(n,93926))},{id:"hjson",name:"Hjson",import:()=>n.e(585).then(n.bind(n,80585))},{id:"hlsl",name:"HLSL",import:()=>n.e(2908).then(n.bind(n,12908))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278)]).then(n.bind(n,18278))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(636)]).then(n.bind(n,60636))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(2076),n.e(6697),n.e(7480),n.e(5228),n.e(4484),n.e(9214),n.e(7929)]).then(n.bind(n,57929))},{id:"hxml",name:"HXML",import:()=>n.e(6418).then(n.bind(n,6418))},{id:"hy",name:"Hy",import:()=>n.e(1408).then(n.bind(n,71408))},{id:"imba",name:"Imba",import:()=>Promise.all([n.e(7480),n.e(4668)]).then(n.bind(n,14668))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(761).then(n.bind(n,70761))},{id:"java",name:"Java",import:()=>n.e(6697).then(n.bind(n,26697))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>n.e(2076).then(n.bind(n,18608))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(25)]).then(n.bind(n,60025))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(2076),n.e(1374)]).then(n.bind(n,1374))},{id:"json",name:"JSON",import:()=>n.e(5295).then(n.bind(n,85295))},{id:"json5",name:"JSON5",import:()=>n.e(8360).then(n.bind(n,28360))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(2726).then(n.bind(n,82726))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(3169).then(n.bind(n,63169))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(2660).then(n.bind(n,62660))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(3160).then(n.bind(n,53160))},{id:"jsx",name:"JSX",import:()=>n.e(4484).then(n.bind(n,34484))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(2076),n.e(8403),n.e(3224),n.e(8475),n.e(3753),n.e(8270),n.e(1392)]).then(n.bind(n,61392))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(2650).then(n.bind(n,62650))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(2771).then(n.bind(n,72771))},{id:"latex",name:"LaTeX",import:()=>Promise.all([n.e(3753),n.e(2167)]).then(n.bind(n,52167))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(3617).then(n.bind(n,23617))},{id:"less",name:"Less",import:()=>n.e(126).then(n.bind(n,70126))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(625)]).then(n.bind(n,30625))},{id:"log",name:"Log file",import:()=>n.e(5037).then(n.bind(n,65037))},{id:"logo",name:"Logo",import:()=>n.e(8288).then(n.bind(n,58288))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(3224),n.e(1901)]).then(n.bind(n,1901))}
1,{id:"luau",name:"Luau",import:()=>n.e(8394).then(n.bind(n,8394))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(611).then(n.bind(n,20611))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(9306).then(n.bind(n,59306))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(5685),n.e(126),n.e(4913)]).then(n.bind(n,44913))},{id:"matlab",name:"MATLAB",import:()=>n.e(666).then(n.bind(n,90666))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(9306),n.e(201)]).then(n.bind(n,201))},{id:"mdx",name:"MDX",import:()=>n.e(9458).then(n.bind(n,89458))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(7606).then(n.bind(n,17606))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(3113).then(n.bind(n,93113))},{id:"mojo",name:"Mojo",import:()=>n.e(6916).then(n.bind(n,96916))},{id:"move",name:"Move",import:()=>n.e(2754).then(n.bind(n,32754))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(7941).then(n.bind(n,27941))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(5590).then(n.bind(n,65590))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(3224),n.e(2051)]).then(n.bind(n,12051))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(3224),n.e(9306),n.e(227)]).then(n.bind(n,50227))},{id:"nix",name:"Nix",import:()=>n.e(8518).then(n.bind(n,78518))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(8332).then(n.bind(n,58332))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(1682).then(n.bind(n,81682))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(6114).then(n.bind(n,16114))},{id:"ocaml",name:"OCaml",import:()=>n.e(6191).then(n.bind(n,26191))},{id:"pascal",name:"Pascal",import:()=>n.e(4169).then(n.bind(n,24169))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(8403),n.e(4830)]).then(n.bind(n,14830))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(8403),n.e(6643),n.e(2260)]).then(n.bind(n,76643))},{id:"plsql",name:"PL/SQL",import:()=>n.e(7535).then(n.bind(n,47535))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(5926).then(n.bind(n,35926))},{id:"postcss",name:"PostCSS",import:()=>n.e(5712).then(n.bind(n,55712))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(8512).then(n.bind(n,18512))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(9998).then(n.bind(n,19998))},{id:"prisma",name:"Prisma",import:()=>n.e(6021).then(n.bind(n,6021))},{id:"prolog",name:"Prolog",import:()=>n.e(2752).then(n.bind(n,62752))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(5309).then(n.bind(n,15309))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(9687)]).then(n.bind(n,89687))},{id:"puppet",name:"Puppet",import:()=>n.e(7155).then(n.bind(n,77155))},{id:"purescript",name:"PureScript",import:()=>n.e(5362).then(n.bind(n,45362))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(8475).then(n.bind(n,78475))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(2076),n.e(7777)]).then(n.bind(n,7777))},{id:"qmldir",name:"QML Directory",import:()=>n.e(9562).then(n.bind(n,89562))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(7744).then(n.bind(n,27744))},{id:"r",name:"R",import:()=>n.e(3753).then(n.bind(n,33753))},{id:"racket",name:"Racket",import:()=>n.e(1999).then(n.bind(n,31999))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(7734).then(n.bind(n,7734))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(9240),n.e(8115)]).then(n.bind(n,68115))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(7065).then(n.bind(n,67065))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(3166).then(n.bind(n,33166))},{id:"rel",name:"Rel",import:()=>n.e(7682).then(n.bind(n,57682))},{id:"riscv",name:"RISC-V",import:()=>n.e(6730).then(n.bind(n,66730))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(8403),n.e(3224),n.e(5228),n.e(8475),n.e(6225),n.e(8270),n.e(3e3)]).then(n.bind(n,13e3))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(8403),n.e(3224),n.e(5228),n.e(6225)]).then(n.bind(n,6225))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(2347).then(n.bind(n,12347))}
1,{id:"sas",name:"SAS",import:()=>Promise.all([n.e(8403),n.e(7820)]).then(n.bind(n,77820))},{id:"sass",name:"Sass",import:()=>n.e(3019).then(n.bind(n,83019))},{id:"scala",name:"Scala",import:()=>n.e(5681).then(n.bind(n,85681))},{id:"scheme",name:"Scheme",import:()=>n.e(4872).then(n.bind(n,64872))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(2614),n.e(5685)]).then(n.bind(n,5685))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(1171).then(n.bind(n,81171))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(5228).then(n.bind(n,45228))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(5228),n.e(7263)]).then(n.bind(n,87263))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(9136).then(n.bind(n,89136))},{id:"solidity",name:"Solidity",import:()=>n.e(9830).then(n.bind(n,89830))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(3456)]).then(n.bind(n,63456))},{id:"sparql",name:"SPARQL",import:()=>n.e(550).then(n.bind(n,20550))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(7960).then(n.bind(n,47960))},{id:"sql",name:"SQL",import:()=>n.e(8403).then(n.bind(n,28403))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(9128).then(n.bind(n,89128))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(8403),n.e(6216)]).then(n.bind(n,56216))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(8051).then(n.bind(n,18051))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(7480),n.e(8120)]).then(n.bind(n,68120))},{id:"swift",name:"Swift",import:()=>n.e(3342).then(n.bind(n,73342))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(491).then(n.bind(n,60491))},{id:"systemd",name:"Systemd Units",import:()=>n.e(7982).then(n.bind(n,97982))},{id:"tasl",name:"Tasl",import:()=>n.e(2837).then(n.bind(n,22837))},{id:"tcl",name:"Tcl",import:()=>n.e(5749).then(n.bind(n,88130))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(1959),n.e(653)]).then(n.bind(n,653))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(251).then(n.bind(n,60251))}
1,{id:"tex",name:"TeX",import:()=>Promise.all([n.e(3753),n.e(9052)]).then(n.bind(n,79052))},{id:"toml",name:"TOML",import:()=>n.e(6249).then(n.bind(n,6249))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(8403),n.e(3224),n.e(7480),n.e(7185)]).then(n.bind(n,7185))},{id:"tsv",name:"TSV",import:()=>n.e(3688).then(n.bind(n,63688))},{id:"tsx",name:"TSX",import:()=>n.e(9214).then(n.bind(n,69214))},{id:"turtle",name:"Turtle",import:()=>n.e(8803).then(n.bind(n,8803))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(6697),n.e(8403),n.e(3224),n.e(5228),n.e(8475),n.e(6225),n.e(5685),n.e(6643),n.e(94)]).then(n.bind(n,70094))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>n.e(7480).then(n.bind(n,97480))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(4708).then(n.bind(n,84708))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(4017).then(n.bind(n,74017))},{id:"v",name:"V",import:()=>n.e(9493).then(n.bind(n,59493))},{id:"vala",name:"Vala",import:()=>n.e(6491).then(n.bind(n,36491))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(4301).then(n.bind(n,54301))},{id:"verilog",name:"Verilog",import:()=>n.e(753).then(n.bind(n,70753))},{id:"vhdl",name:"VHDL",import:()=>n.e(3751).then(n.bind(n,93751))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(6781).then(n.bind(n,86781))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(7480),n.e(9850)]).then(n.bind(n,69850))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(2076),n.e(2614),n.e(8278),n.e(7480),n.e(9067)]).then(n.bind(n,49067))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(6363).then(n.bind(n,16363))},{id:"wasm",name:"WebAssembly",import:()=>n.e(4177).then(n.bind(n,64177))},{id:"wenyan",name:"Wenyan",aliases:["\u6587\u8a00"],import:()=>n.e(3231).then(n.bind(n,23231))},{id:"wgsl",name:"WGSL",import:()=>n.e(1986).then(n.bind(n,61986))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(8280).then(n.bind(n,88280))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(2395).then(n.bind(n,92395))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(6697),n.e(9879)]).then(n.bind(n,52260))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(6697),n.e(1606)]).then(n.bind(n,81606))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(4060).then(n.bind(n,24060))},{id:"zenscript",name:"ZenScript",import:()=>n.e(1221).then(n.bind(n,11221))},{id:"zig",name:"Zig",import:()=>n.e(7389).then(n.bind(n,37389))}],o={...Object.fromEntries(i.map((e=>[e.id,e.import]))),...Object.fromEntries(i.flatMap((e=>e.aliases?.map((t=>[t,e.import]))||[])))},s=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(7872).then(n.bind(n,37872))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(6799).then(n.bind(n,96799))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(9508).then(n.bind(n,69508))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(1613).then(n.bind(n,31613))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(1299).then(n.bind(n,31299))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(4852).then(n.bind(n,24852))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(3151).then(n.bind(n,83151))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(1177).then(n.bind(n,61177))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(1866).then(n.bind(n,31866))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(547).then(n.bind(n,20547))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(8952).then(n.bind(n,18952))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(9800).then(n.bind(n,79800))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(690).then(n.bind(n,40690))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(8346).then(n.bind(n,78346))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(5431).then(n.bind(n,65431))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(1898).then(n.bind(n,21898))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(6042).then(n.bind(n,96042))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(3890).then(n.bind(n,73890))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(1618).then(n.bind(n,81618))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(4450).then(n.bind(n,94450))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(6394).then(n.bind(n,66394))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(8121).then(n.bind(n,8121))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(4047).then(n.bind(n,84047))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(2637).then(n.bind(n,82637))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(7141).then(n.bind(n,17141))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(2638).then(n.bind(n,92638))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(8770).then(n.bind(n,8770))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(7294).then(n.bind(n,74913))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(1211).then(n.bind(n,91211))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(786).then(n.bind(n,20786))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(2295).then(n.bind(n,22295))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(2367).then(n.bind(n,72367))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(6835).then(n.bind(n,36835))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(6367).then(n.bind(n,36367))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(6736).then(n.bind(n,76736))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(3582).then(n.bind(n,93582))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(7313).then(n.bind(n,27313))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(3256).then(n.bind(n,33256))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(5923).then(n.bind(n,75923))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(1214).then(n.bind(n,61214))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(1485).then(n.bind(n,51485))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(4776).then(n.bind(n,44776))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(3670).then(n.bind(n,93670))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(5150).then(n.bind(n,95150))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(1534).then(n.bind(n,59153))}
1,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(4286).then(n.bind(n,94286))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(5063).then(n.bind(n,5063))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(6135).then(n.bind(n,26135))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(4355).then(n.bind(n,34355))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(9350).then(n.bind(n,19350))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(8134).then(n.bind(n,38134))}],a=Object.fromEntries(s.map((e=>[e.id,e.import])));class l extends Error{constructor(e){super(e),this.name="ShikiError"}}class c extends Error{constructor(e){super(e),this.name="ShikiError"}}function u(){return"undefined"!=typeof performance?performance.now():Date.now()}const h=(e,t)=>e+(t-e%t)%t;async function d(e){let t,n;const r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}const s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t){return e?function(e,t,n=1024){const r=t+n;let i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&s)return s.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}const r=63&e[t++];if(192==(224&n)){o+=String.fromCharCode((31&n)<<6|r);continue}const i=63&e[t++];if(n=224==(240&n)?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++],n<65536)o+=String.fromCharCode(n);else{const e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}const l={emscripten_get_now:u,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){const t=r.HEAPU8.length,n=2147483648;if((e>>>=0)>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);i=Math.min(i,e+100663296);if(o(Math.min(n,h(Math.max(e,i),65536))))return!0}return!1},fd_write:()=>0};return await async function(){const n={env:l,wasi_snapshot_preview1:l},o=await e(n);t=o.memory,i(t.buffer),Object.assign(r,o),r.UTF8ToString=a}(),r}let p,m,g=null;class f{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const i=e.charCodeAt(n);let o=i,s=!1;if(i>=55296&&i<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(o=65536+(i-55296<<10)|t-56320,s=!0)}t+=o<=127?1:o<=2047?2:o<=65535?3:4,s&&n++}return t}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){const t=e.length,n=f._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);const o=r?new Uint32Array(n+1):null;r&&(o[n]=t);const s=new Uint8Array(n);let a=0;for(let l=0;l<t;l++){const n=e.charCodeAt(l);let c=n,u=!1;if(n>=55296&&n<=56319&&l+1<t){const t=e.charCodeAt(l+1);t>=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(i[l]=a,u&&(i[l+1]=a),c<=127?o[a+0]=l:c<=2047?(o[a+0]=l,o[a+1]=l):c<=65535?(o[a+0]=l,o[a+1]=l,o[a+2]=l):(o[a+0]=l,o[a+1]=l,o[a+2]=l,o[a+3]=l)),c<=127?s[a++]=c:c<=2047?(s[a++]=192|(1984&c)>>>6,s[a++]=128|(63&c)>>>0):c<=65535?(s[a++]=224|(61440&c)>>>12,s[a++]=128|(4032&c)>>>6,s[a++]=128|(63&c)>>>0):(s[a++]=240|(1835008&c)>>>18,s[a++]=128|(258048&c)>>>12,s[a++]=128|(4032&c)>>>6,s[a++]=128|(63&c)>>>0),u&&l++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=o}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class b{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++b.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!g)throw new c("Must invoke loadWasm first.");this._onigBinding=g,this.content=e;const t=new f(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!b._sharedPtrInUse?(b._sharedPtr||(b._sharedPtr=g.omalloc(1e4)),b._sharedPtrInUse=!0,g.HEAPU8.set(t.utf8Value,b._sharedPtr),this.ptr=b._sharedPtr):this.ptr=t.createString(g)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===b._sharedPtr?b._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class y{_onigBinding;_ptr;constructor(e){if(!g)throw new c("Must invoke loadWasm first.");const t=[],n=[];for(let s=0,a=e.length;s<a;s++){const r=new f(e[s]);t[s]=r.createString(g),n[s]=r.utf8Length}const r=g.omalloc(4*e.length);g.HEAPU32.set(t,r/4);const i=g.omalloc(4*e.length);g.HEAPU32.set(n,i/4);const o=g.createOnigScanner(r,i,e.length);for(let s=0,a=e.length;s<a;s++)g.ofree(t[s]);g.ofree(i),g.ofree(r),0===o&&function(e){throw new c(e.UTF8ToString(e.getLastO
1nigError()))}(g),this._onigBinding=g,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new b(e);const n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){const i=this._onigBinding,o=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===o)return null;const s=i.HEAPU32;let a=o/4;const l=s[a++],c=s[a++],u=[];for(let h=0;h<c;h++){const t=e.convertUtf8OffsetToUtf16(s[a++]),n=e.convertUtf8OffsetToUtf16(s[a++]);u[h]={start:t,end:n,length:n-t}}return{index:l,captureIndices:u}}}function _(e){if(p)return p;return p=async function(){g=await d((async t=>{let n=e;var r;return n=await n,"function"==typeof n&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator?n=await n.instantiator(t):!function(e){return"function"==typeof e.default}(n)?(function(e){return void 0!==e.data}(n)&&(n=n.data),!function(e){return"undefined"!=typeof Response&&e instanceof Response}(n)?!function(e){return"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||"undefined"!=typeof Buffer&&Buffer.isBuffer?.(e)||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&e instanceof Uint32Array}(n)?n instanceof WebAssembly.Module?n=await k(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await k(n.default)(t)):n=await k(n)(t):n="function"==typeof WebAssembly.instantiateStreaming?await(r=n,e=>WebAssembly.instantiateStreaming(r,e))(t):await function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(n)(t)):n=await n.default(t),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n}))}(),p}function k(e){return t=>WebAssembly.instantiate(e,t)}async function S(e){return e&&await _(e),{createScanner:e=>new y(e),createString:e=>new b(e)}}let w=!1;function v(e){w&&console.trace(`[SHIKI DEPRECATE]: ${e}`)}function C(e){return Array.isArray(e)?function(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=C(e[n]);return t}(e):"object"==typeof e?function(e){let t={};for(let n in e)t[n]=C(e[n]);return t}(e):e}function P(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e}function N(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?N(e.substring(0,e.length-1)):e.substr(1+~t)}var A=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,T=class{static hasCaptures(e){return null!==e&&(A.lastIndex=0,A.test(e))}static replaceCaptures(e,t,n){return e.replace(A,((e,r,i,o)=>{let s=n[parseInt(r||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(o){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}};function L(e,t){return e<t?-1:e>t?1:0}function x(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=L(e[r],t[r]);if(0!==n)return n}return 0}return n-r}function R(e){return!!/^#[0-9a-f]{6}$/i.test(e)||(!!/^#[0-9a-f]{8}$/i.test(e)||(!!/^#[0-9a-f]{3}$/i.test(e)||!!/^#[0-9a-f]{4}$/i.test(e)))}function O(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var E=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},I=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new E((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let i=0,o=t.length;i<o;i++){let e,o=t[i];if(!o.settings)continue;if("string"==typeof o.scope){let t=o.scope;t=t.replace(/^[,]+/,""),t=t.replace(/[,]+$/,""),e=t.split(",")}else e=Array.isArray(o.scope)?o.scope:[""];let s=-1;if("string"==typeof o.settings.fontStyle){s=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++){switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}}let a=null;"string"==typeof o.settings.foreground&&R(o.settings.foreground)&&
1(a=o.settings.foreground);let l=null;"string"==typeof o.settings.background&&R(o.settings.background)&&(l=o.settings.background);for(let t=0,c=e.length;t<c;t++){let o=e[t].trim().split(" "),c=o[o.length-1],u=null;o.length>1&&(u=o.slice(0,o.length-1),u.reverse()),n[r++]=new B(c,u,i,s,a,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=L(e.scope,t.scope);return 0!==n?n:(n=x(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let o=new U(t),s=new D(n,o.getId(r),o.getId(i)),a=new H(new F(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let t=e[l];a.insert(0,t.scope,t.parentScopes,t.fontStyle,o.getId(t.foreground),o.getId(t.background))}return new I(o,s,a)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(0===t.length)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(">"===r){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!G(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}(e.parent,t.parentScopes)));return n?new D(n.fontStyle,n.foreground,n.background):null}},M=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(const r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function G(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}var D=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};var B=class{constructor(e,t,n,r,i,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},j=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(j||{});var U=class{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},$=Object.freeze([]),F=class e{constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||$,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},H=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){const i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}
1insert(t,n,r,i,o,s){if(""===n)return void this._doInsertHere(t,r,i,o,s);let a,l,c,u=n.indexOf(".");-1===u?(a=n,l=""):(a=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(a)?c=this._children[a]:(c=new e(this._mainRule.clone(),F.cloneArr(this._rulesWithParentScopes)),this._children[a]=c),c.insert(t+1,l,r,i,o,s)}_doInsertHere(e,t,n,r,i){if(null!==t){for(let o=0,s=this._rulesWithParentScopes.length;o<s;o++){let s=this._rulesWithParentScopes[o];if(0===x(s.parentScopes,t))return void s.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new F(e,t,n,r,i))}else this._mainRule.acceptOverwrite(e,n,r,i)}},W=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){const n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),o=e.getForeground(t),s=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:o,background:s})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return!!(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,i,o,s,a){let l=e.getLanguageId(t),c=e.getTokenType(t),u=e.containsBalancedBrackets(t)?1:0,h=e.getFontStyle(t),d=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=i?1:0),-1!==o&&(h=o),0!==s&&(d=s),0!==a&&(p=a),(l|c<<8|u<<10|h<<11|d<<15|p<<24)>>>0}};function q(e,t){const n=[],r=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let i=r.next();for(;null!==i;){let e=0;if(2===i.length&&":"===i.charAt(1)){switch(i.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=s();if(n.push({matcher:t,priority:e}),","!==i)break;i=r.next()}return n;function o(){if("-"===i){i=r.next();const e=o();return t=>!!e&&!e(t)}if("("===i){i=r.next();const e=function(){const e=[];let t=s();for(;t&&(e.push(t),"|"===i||","===i);){do{i=r.next()}while("|"===i||","===i);t=s()}return t=>e.some((e=>e(t)))}();return")"===i&&(i=r.next()),e}if(z(i)){const e=[];do{e.push(i),i=r.next()}while(z(i));return n=>t(e,n)}return null}function s(){const e=[];
1let t=o();for(;t;)e.push(t),t=o();return t=>e.every((e=>e(t)))}}function z(e){return!!e&&!!e.match(/[\w\.:]+/)}function V(e){"function"==typeof e.dispose&&e.dispose()}var K=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},X=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},J=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Y=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new K(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new J;for(const n of e)Q(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof K){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Q(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof K?ee({baseGrammar:o,selfGrammar:i},r):Z(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const s=n.injections(e.scopeName);if(s)for(const a of s)r.add(new K(a))}function Z(e,t,n){if(t.repository&&t.repository[e]){te([t.repository[e]],t,n)}}function ee(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&te(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&te(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function te(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const e=r.repository?P({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&te(r.patterns,{...t,repository:e},n);const i=r.include;if(!i)continue;const o=ae(i);switch(o.kind){case 0:ee({...t,selfGrammar:t.baseGrammar},n);break;case 1:ee(t,n);break;case 2:Z(o.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===o.kind?Z(o.ruleName,i,n):ee(i,n)}else 4===o.kind?n.add(new X(o.scopeName,o.ruleName)):n.add(new K(o.scopeName))}}}var ne=class{constructor(){this.kind=0}},re=class{constructor(){this.kind=1}},ie=class{constructor(e){this.ruleName=e,this.kind=2}},oe=class{constructor(e){this.scopeName=e,this.kind=3}},se=class{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}};
1function ae(e){if("$base"===e)return new ne;if("$self"===e)return new re;const t=e.indexOf("#");if(-1===t)return new oe(e);if(0===t)return new ie(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new se(n,r)}}var le=/\\(\d+)/,ce=/\\(\d+)/g,ue=(Symbol("RuleId"),-1),he=-2;var de=class{constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=T.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=T.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${N(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?T.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?T.replaceCaptures(this._contentName,e,t):this._contentName}},pe=class extends de{constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},me=class extends de{constructor(e,t,n,r,i){super(e,t,n,null),this._match=new _e(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ke,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ge=class extends de{constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns){e.getRule(n).collectPatterns(e,t)}}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ke,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},fe=class extends de{constructor(e,t,n,r,i,o,s,a,l,c){super(e,t,n,r),this._begin=new _e(i,this.id),this.beginCaptures=o,this._end=new _e(s||"\uffff",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ke;for(const t of this.patterns){e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},be=class extends de{constructor(e,t,n,r,i,o,s,a,l){super(e,t,n,r),this._begin=new _e(i,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=ne
1w _e(s,he),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ke;for(const t of this.patterns){e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ke,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uffff"),this._cachedCompiledWhilePatterns}
1},ye=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule((e=>new pe(t,e,n,r,i)))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule((i=>{if(t.id=i,t.match)return new me(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=P({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new ge(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new be(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new fe(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))})),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let o=0;for(const e in t){if("$vscodeTextmateLocation"===e)continue;const t=parseInt(e,10);t>o&&(o=t)}for(let e=0;e<=o;e++)i[e]=null;for(const s in t){if("$vscodeTextmateLocation"===s)continue;const o=parseInt(s,10);let a=0;t[s].patterns&&(a=e.getCompiledRuleId(t[s],n,r)),i[o]=e.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,a)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let o=0,s=t.length;o<s;o++){const s=t[o];let a=-1;if(s.include){const t=ae(s.include);switch(t.kind){case 0:case 1:a=e.getCompiledRuleId(r[s.include],n,r);break;case 2:let i=r[t.ruleName];i&&(a=e.getCompiledRuleId(i,n,r));break;case 3:case 4:const o=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(o,r);if(c)if(l){let t=c.repository[l];t&&(a=e.getCompiledRuleId(t,n,c.repository))}else a=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else a=e.getCompiledRuleId(s,n,r);if(-1!==a){const e=n.getRule(a);let t=!1;if((e instanceof ge||e instanceof fe||e instanceof be)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},_e=class e{constructor(e,t){if(e){const t=e.length;let n=0,r=[],i=!1;for(let o=0;o<t;o++){if("\\"===e.charAt(o)&&o+1<t){const t=e.charAt(o+1);"z"===t?(r.push(e.substring(n,o)),r.push("$(?!\\n)(?<!\\n)"),n=o+2):"A"!==t&&"G"!==t||(i=!0),o++}}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=le.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return ce.lastIndex=0,this.source.replace(ce,((e,t)=>O(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,i=[],o=[],s=[],a=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,o[e]=n,s[e]=n,a[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(i[e+1]="\uffff",o[e+1]="\uffff",s[e+1]="A",a[e+1]="A"):"G"===r?(i[e+1]="\uffff",o[e+1]="G",s[e+1]="\uffff",a[e+1]="G"):(i[e+1]=r,o[e+1]=r,s[e+1]=r,a[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:a.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},ke=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}
1push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new Se(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new Se(e,r,this._items.map((e=>e.ruleId)))}},Se=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},we=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ve=class e{constructor(e,t){this._getBasicScopeAttributes=new E((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new we(t,n)})),this._defaultAttributes=new we(e,8),this._embeddedLanguagesMatcher=new Pe(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){const n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};ve._NULL_SCOPE_METADATA=new we(0,0),ve.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var Ce=ve,Pe=class{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>O(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}},Ne=("undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG,!1),Ae=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Te(e,t,n,r,i,o,s,a){const l=t.content.length;let c=!1,u=-1;if(s){const s=function(e,t,n,r,i,o){let s=i.beginRuleCapturedEOL?0:-1;const a=[];for(let l=i;l;l=l.pop()){const t=l.getRule(e);t instanceof be&&a.push({rule:t,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:a,findOptions:c}=xe(l.rule,e,l.stack.endRule,n,r===s),u=a.findNextMatchSync(t,r,c);if(!u){0,i=l.stack.pop();break}if(u.ruleId!==he){i=l.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(o.produce(l.stack,u.captureIndices[0].start),Oe(e,t,n,l.stack,o,l.rule.whileCaptures,u.captureIndices),o.produce(l.stack,u.captureIndices[0].end),s=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}(e,t,n,r,i,o);i=s.stack,r=s.linePos,n=s.isFirstLine,u=s.anchorPosition}const h=Date.now();for(;!c;){if(0!==a){if(Date.now()-h>a)return new Ae(i,!0)}d()}return new Ae(i,!1);function d(){const s=function(e,t,n,r,i,o){const s=function(e,t,n,r,i,o){const s=i.getRule(e),{ruleScanner:a,findOptions:l}=Le(s,e,i.endRule,n,r===o),c=a.findNextMatchSync(t,r,l);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null}(e,t,n,r,i,o),a=e.getInjections();if(0===a.length)return s;const l=function(e,t,n,r,i,o,s){let a,l=Number.MAX_VALUE,c=null,u=0;const h=o.contentNameScopesList.getScopeNames();for(let d=0,p=e.length;d<p;d++){const o=e[d];if(!o.matcher(h))continue;const p=t.getRule(o.ruleId),{ruleScanner:m,findOptions:g}=Le(p,t,null,r,i===s),f=m.findNextMatchSync(n,i,g);if(!f)continue;0;const b=f.captureIndices[0].start;if(!(b>=l)&&(l=b,c=f.captureIndices,a=f.ruleId,u=o.priority,l===i))break}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:a};return null}(a,e,t,n,r,i,o);if(!l)return s;if(!s)return l;const c=s.captureIndices[0].start,u=l.captureIndices[0].start;if(u<c||l.priorityMatch&&u===c)return l;return s}(e,t,n,r,i,u);if(!s)return o.produce(i,l),void(c=!0);const a=s.captureIndices,h=s.matchedRuleId,d=!!(a&&a.length>0)&&a[0].end>r;if(h===ue){const s=i.getRule(e);0,o.produce(i,a[0].start),i=i.withContentNameScopesList(i.nameScopesList),Oe(e,t,n,i,o,s.endCaptures,a),o.produce(i,a[0].end);const h=i;if(i=i.parent,u=h.getAnchorPos(),!d&&h.getEnterPos()===r)return i=h,o.produce(i,l),void(c=!0)}else{const s=e.getRule(h);o.produce(i,a[0].start);const p=i,m=s.getName(t.content,a),g=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(h,r,u,a[0].end===l,null,g,g),s instanceof fe){const r=s;0,Oe(e,t,n,i,o,r.beginCaptures,a),o.produce(i,a[0].end),u=a[0].end;const h=r.getContentName(t.content,a),m=g.pushAttributed(h,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,a))),!d&&p.hasSameRuleAs(i))return i=i.pop(),o.produce(i,l),void(c=!0)}else if(s instanceof be){const r=s;0,Oe(e,t,n,i,o,r.beginCaptures,a),o.produce(i,a[0].end),u=a[0].end;const h=r.getContentName(t.content,a),m=g.pushAttributed(h,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithRes
1olvedBackReferences(t.content,a))),!d&&p.hasSameRuleAs(i))return i=i.pop(),o.produce(i,l),void(c=!0)}else{if(Oe(e,t,n,i,o,s.captures,a),o.produce(i,a[0].end),i=i.pop(),!d)return i=i.safePop(),o.produce(i,l),void(c=!0)}}a[0].end>r&&(r=a[0].end,n=!1)}}function Le(e,t,n,r,i){if(Ne){return{ruleScanner:e.compile(t,n),findOptions:Re(r,i)}}return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function xe(e,t,n,r,i){if(Ne){return{ruleScanner:e.compileWhile(t,n),findOptions:Re(r,i)}}return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function Re(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function Oe(e,t,n,r,i,o,s){if(0===o.length)return;const a=t.content,l=Math.min(o.length,s.length),c=[],u=s[0].end;for(let h=0;h<l;h++){const t=o[h];if(null===t)continue;const l=s[h];if(0===l.length)continue;if(l.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=l.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,l.start):i.produce(r,l.start),t.retokenizeCapturedWithRuleId){const o=t.getName(a,s),c=r.contentNameScopesList.pushAttributed(o,e),u=t.getContentName(a,s),h=c.pushAttributed(u,e),d=r.push(t.retokenizeCapturedWithRuleId,l.start,-1,!1,null,c,h),p=e.createOnigString(a.substring(0,l.end));Te(e,p,n&&0===l.start,l.start,d,i,!1,0),V(p);continue}const d=t.getName(a,s);if(null!==d){const t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(d,e);c.push(new Ee(t,l.end))}}for(;c.length>0;
1)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Ee=class{constructor(e,t){this.scopes=e,this.endPos=t}};function Ie(e,t,n,r,i){const o=q(t,Me),s=ye.getCompiledRuleId(n,r,i.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:s,grammar:i,priority:a.priority})}function Me(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let r=n;r<t.length;r++)if(Ge(t[r],e))return n=r+1,!0;return!1}))}function Ge(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}var De=class{constructor(e,t,n,r,i,o,s,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new Ce(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Be(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const e=q(l,Me);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:i[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),t=[],n=this._rootScopeName,r=e(n);if(r){const e=r.injections;if(e)for(let n in e)Ie(t,n,e[n],this,r);const i=this._grammarRepository.injections(n);i&&i.forEach((e=>{const n=this.getExternalGrammar(e);if(n){const e=n.injectionSelector;e&&Ie(t,e,n,this,n)}}))}return t.sort(((e,t)=>e.priority-t.priority)),t}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Be(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=ye.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==$e.NULL)i=!1,t.reset();else{i=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=W.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);let s;s=o?je.createRootAndLookUpScopeName(o,r,this):je.createRoot("unknown",r),t=new $e(null,this._rootId,-1,-1,!1,null,s,s)}e+="\n";const o=this.createOnigString(e),s=o.content.length,a=new He(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Te(this,o,i,0,t,a,!0,r);return V(o),{lineLength:s,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Be(e,t){return(e=C(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var je=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(const o of n)i=M.push(i,o.scopeNames),r=new e(r,i,o.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new M(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),o=new M(null,t),s=r.themeProvider.themeMatch(o),a=e.mergeAttributes(n,i,s);return new e(null,o,a)}get scopeName(){return this.scopePath.scopeName}
1toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,o=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,o=n.backgroundId),W.set(e,t.languageId,t.tokenType,null,r,i,o)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const o of r)i=e._pushAttributed(i,o,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),o=t.scopePath.push(n),s=r.themeProvider.themeMatch(o),a=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},Ue=class e{constructor(e,t,n,r,i,o,s,a){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=a,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&je.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,o,s,a){return new e(this,t,n,r,i,o,s,a)}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,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=je.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,je.fromExtension(r,n.contentNameScopesList))}};Ue.NULL=new Ue(null,0,0,0,!1,null,null,null);var $e=Ue,Fe=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):q(e,Me).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>q(e,Me).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},He=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e?.getScopeNames()??[];for(const e of this._tokenTypeOverrides)e.matcher(t)&&(n=W.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}return r&&(n=W.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n?void(this._lastTokenEndIndex=t):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=t))}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},We=class{constructor(e,t){this._onigLib=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,function(e,t,n,r,i,o,s,a){return new De(e,t,n,r,i,o,s,a)}(e,o,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},qe=class{constructor(e){this._options=e,this._syncRegistry=new We(I.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(I.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new Fe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){const o=new Y(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map((e=>this._loadSingleGrammar(e.scopeName))),o.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},ze=$e.NULL;const Ve=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ke{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Xe(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Ke(n,r,t)}function Je(e){return e.toLowerCase()}Ke.prototype.property={},Ke.prototype.normal={},Ke.prototype.space=null;class Ye{constructor(e,t){this.property=e,this.attribute=t}}Ye.prototype.space=null,Ye.prototype.boolean=!1,Ye.prototype.booleanish=!1,Ye.prototype.overloadedBoolean=!1,Ye.prototype.number=!1,Ye.prototype.commaSeparated=!1,Ye.prototype.spaceSeparated=!1,Ye.prototype.commaOrSpaceSeparated=!1,Ye.prototype.mustUseProperty=!1,Ye.prototype.defined=!1;let Qe=0;const Ze=st(),et=st(),tt=st(),nt=st(),rt=st(),it=st(),ot=st();function st(){return 2**++Qe}const at=Object.keys(r);class lt extends Ye{constructor(e,t,n,i){let o=-1;if(super(e,t),ct(this,"space",i),"number"==typeof n)for(;++o<at.length;){const e=at[o];
vendor: 4,684 bytes, line 1
1ct(this,at[o],(n&r[e])===r[e])}}}function ct(e,t,n){n&&(e[t]=n)}lt.prototype.defined=!0;const ut={}.hasOwnProperty;function ht(e){const t={},n={};let r;for(r in e.properties)if(ut.call(e.properties,r)){const i=e.properties[r],o=new lt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Je(r)]=r,n[Je(o.attribute)]=r}return new Ke(t,n,e.space)}const dt=ht({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),pt=ht({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function mt(e,t){return t in e?e[t]:t}function gt(e,t){return mt(e,t.toLowerCase())}const ft=ht({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:gt,properties:{xmlns:null,xmlnsXLink:null}}),bt=ht({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:et,ariaAutoComplete:null,ariaBusy:et,ariaChecked:et,ariaColCount:nt,ariaColIndex:nt,ariaColSpan:nt,ariaControls:rt,ariaCurrent:null,ariaDescribedBy:rt,ariaDetails:null,ariaDisabled:et,ariaDropEffect:rt,ariaErrorMessage:null,ariaExpanded:et,ariaFlowTo:rt,ariaGrabbed:et,ariaHasPopup:null,ariaHidden:et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rt,ariaLevel:nt,ariaLive:null,ariaModal:et,ariaMultiLine:et,ariaMultiSelectable:et,ariaOrientation:null,ariaOwns:rt,ariaPlaceholder:null,ariaPosInSet:nt,ariaPressed:et,ariaReadOnly:et,ariaRelevant:null,ariaRequired:et,ariaRoleDescription:rt,ariaRowCount:nt,ariaRowIndex:nt,ariaRowSpan:nt,ariaSelected:et,ariaSetSize:nt,ariaSort:null,ariaValueMax:nt,ariaValueMin:nt,ariaValueNow:nt,ariaValueText:null,role:null}}),yt=ht({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:gt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:it,acceptCharset:rt,accessKey:rt,action:null,allow:null,allowFullScreen:Ze,allowPaymentRequest:Ze,allowUserMedia:Ze,alt:null,as:null,async:Ze,autoCapitalize:null,autoComplete:rt,autoFocus:Ze,autoPlay:Ze,blocking:rt,capture:null,charSet:null,checked:Ze,cite:null,className:rt,cols:nt,colSpan:null,content:null,contentEditable:et,controls:Ze,controlsList:rt,coords:nt|it,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ze,defer:Ze,dir:null,dirName:null,disabled:Ze,download:tt,draggable:et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ze,formTarget:null,headers:rt,height:nt,hidden:Ze,high:nt,href:null,hrefLang:null,htmlFor:rt,httpEquiv:rt,id:null,imageSizes:null,imageSrcSet:null,inert:Ze,inputMode:null,integrity:null,is:null,isMap:Ze,itemId:null,itemProp:rt,itemRef:rt,itemScope:Ze,itemType:rt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ze,low:nt,manifest:null,max:null,maxLength:nt,media:null,method:null,min:null,minLength:nt,multiple:Ze,muted:Ze,name:null,nonce:null,noModule:Ze,noValidate:Ze,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ze,optimum:nt,pattern:null,ping:rt,placeholder:null,playsInl
1ine:Ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ze,referrerPolicy:null,rel:rt,required:Ze,reversed:Ze,rows:nt,rowSpan:nt,sandbox:rt,scope:null,scoped:Ze,seamless:Ze,selected:Ze,shadowRootClonable:Ze,shadowRootDelegatesFocus:Ze,shadowRootMode:null,shape:null,size:nt,sizes:null,slot:null,span:nt,spellCheck:et,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nt,step:null,style:null,tabIndex:nt,target:null,title:null,translate:null,type:null,typeMustMatch:Ze,useMap:null,value:et,width:nt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rt,axis:null,background:null,bgColor:null,border:nt,borderColor:null,bottomMargin:nt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ze,declare:Ze,event:null,face:null,frame:null,frameBorder:null,hSpace:nt,leftMargin:nt,link:null,longDesc:null,lowSrc:null,marginHeight:nt,marginWidth:nt,noResize:Ze,noHref:Ze,noShade:Ze,noWrap:Ze,object:null,profile:null,prompt:null,rev:null,rightMargin:nt,rules:null,scheme:null,scrolling:et,standby:null,summary:null,text:null,topMargin:nt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ze,disableRemotePlayback:Ze,prefix:null,property:null,results:nt,security:null,unselectable:null}}),_t=ht({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:mt,properties:{about:ot,accentHeight:nt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nt,amplitude:nt,arabicForm:null,ascent:nt,attributeName:null,attributeType:null,azimuth:nt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nt,by:null,calcMode:null,capHeight:nt,className:rt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nt,diffuseConstant:nt,direction:null,display:null,dur:null,divisor:nt,dominantBaseline:null,download:Ze,dx:null,dy:null,edgeMode:null,editable:null,elevation:nt,enableBackground:null,end:null,event:null,exponent:nt,externalResourcesRequired:null,fill:null,fillOpacity:nt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:it,g2:it,glyphName:it,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nt,horizOriginX:nt,horizOriginY:nt,id:null,ideographic:nt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nt,k:nt,k1:nt,k2:nt,k3:nt,k4:nt,kernelMatrix:ot,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nt,overlineThickness:nt,paintOrder:null,panose1:null,path:null,pathLength:nt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nt,pointsAtY:nt,pointsAtZ:nt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ot,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ot,rev:ot,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ot,requiredFeatures:ot,requiredFonts:ot,requiredFormats:ot,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nt,specularExponent:nt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nt,strikethroughThickness:nt,string:null,stroke:null,strokeDashArray:ot,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nt,strokeOpacity:nt,strokeWidth:null,style:null,surfaceScale:nt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ot,tabIndex:nt,tableValues:null,target:null,targetX:nt,targetY:nt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ot,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nt,underlineThickness:nt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nt,values:null,vAlphabetic:nt,vMathematical:nt,vectorEffect:null,vHanging:nt,vIdeographic:nt,version:null,vertAdvY:nt,vertOriginX:nt,vertOriginY:nt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),kt=Xe([pt,dt,ft,bt,yt],"html"),St=Xe([pt,dt,ft,bt,_t],"svg"),wt={}.hasOwnProperty;const vt=/["&'<>`]/g,Ct=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Pt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Nt=/[|\\{}()[\]^$+*?.]/g,At=new WeakMap;function Tt(e,t){return e=e.replace(t.subset?function(e){let t=At.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Nt,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),At.set(e,t));return t}(t.subset):vt,n),t.subset||t.escapeOnly?e:e.replace(Ct,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(Pt,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const Lt=/[\dA-Fa-f]/;const xt=/\d/;const Rt=["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","
1sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ot={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203e",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"},Et=["cent","copy","divide","gt","lt","not","para","times"],It={}.hasOwnProperty,Mt={};let Gt;for(Gt in Ot)It.call(Ot,Gt)&&(Mt[Ot[Gt]]=Gt);const Dt=/[^\dA-Za-z]/;function Bt(e,t,n){let r,i=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Lt.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const i=String.fromCharCode(e);if(It.call(Mt,i)){const e=Mt[i],o="&"+e;return n&&Rt.includes(e)&&!Et.includes(e)&&(!r||t&&61!==t&&Dt.test(String.fromCharCode(t)))?o:o+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.use
vendor: 3,171 bytes, line 1
1ShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!xt.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function jt(e,t){return Tt(e,Object.assign({format:Bt},t))}const Ut=/^>|^->|<!--|-->|--!>|<!-$/g,$t=[">"],Ft=["<",">"];function Ht(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function Wt(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const qt=/^data[-\w.:]+$/i,zt=/-[a-z]/g,Vt=/[A-Z]/g;function Kt(e){return"-"+e.toLowerCase()}function Xt(e){return e.charAt(1).toUpperCase()}function Jt(e){return e.join(" ").trim()}const Yt=/[ \t\n\f\r]/g;function Qt(e){return"object"==typeof e?"text"===e.type&&Zt(e.value):Zt(e)}function Zt(e){return""===e.replace(Yt,"")}const en=rn(1),tn=rn(-1),nn=[];function rn(e){return function(t,n,r){const i=t?t.children:nn;let o=(n||0)+e,s=i[o];if(!r)for(;s&&Qt(s);)o+=e,s=i[o];return s}}const on={}.hasOwnProperty;function sn(e){return function(t,n,r){return on.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const an=sn({body:function(e,t,n){const r=en(n,t);return!r||"comment"!==r.type},caption:ln,colgroup:ln,dd:function(e,t,n){const r=en(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=en(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:ln,html:function(e,t,n){const r=en(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=en(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=en(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=en(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=en(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:cn,rt:cn,tbody:function(e,t,n){const r=en(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:un,tfoot:function(e,t,n){return!en(n,t)},th:un,thead:function(e,t,n){const r=en(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=en(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});
1function ln(e,t,n){const r=en(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&Qt(r.value.charAt(0)))}function cn(e,t,n){const r=en(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function un(e,t,n){const r=en(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const hn=sn({body:function(e){const t=en(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&Qt(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,n){const r=tn(n,t),i=en(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&an(r,n.children.indexOf(r),n))return!1;return Boolean(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){const t=new Set;for(const r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||"element"===n.type},html:function(e){const t=en(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=tn(n,t),i=en(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&an(r,n.children.indexOf(r),n))return!1;return Boolean(i&&"element"===i.type&&"tr"===i.tagName)}});const dn={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function pn(e,t,n){const r=function(e,t){const n=Je(t);let r=t,i=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&qt.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(zt,Xt);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!zt.test(e)){let n=e.replace(Vt,Kt);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=lt}return new i(r,t)}(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1;let s,a=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?(r.boolean||r.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const l=jt(r.attribute,Object.assign({},e.settings.characterReferences,{subset:dn.name[i][o]}));return!0===n?l:(n=Array.isArray(n)?(r.commaSeparated?Wt:Jt)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(s=jt(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:dn.unquoted[i][o]}))),s!==n&&(e.settings.quoteSmart&&Ht(n,a)>Ht(n,e.alternative)&&(a=e.alternative),s=a+jt(n,Object.assign({},e.settings.characterReferences,{subset:("'"===a?dn.single:dn.double)[i][o],attribute:!0}))+a),l+(s?"="+s:s)))}const mn=["<","&"];function gn(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?jt(e.value,Object.assign({},r.settings.characterReferences,{subset:mn})):e.value}const fn=function(e,t){const n=t||{};function r(t,...n){let i=r.invalid;const o=r.handlers;if(t&&wt.call(t,e)){const n=String(t[e]);i=wt.call(o,n)?o[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+jt(e.value,Object.assign({},r.settings.characterReferences,{subset:$t}))+">":"\x3c!--"+e.value.replace(Ut,(function(e){return jt(e,Object.assign({},r.settings.characterReferences,{subset:Ft}))}))+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const i=r.schema,o="svg"!==i.space&&r.settings.omitOptionalTags;let s="svg"===i.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;"html"===i.space&&"svg"===e.tagName&&(r.schema=St);const c=function(e,t){const n=[];let r,i=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const i=pn(e,r,t[r]);i&&n.push(i)}for(;++i<n.length;){const t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}(r,e.properties),u=r.all("html"===i.space&&"template"===e.tagName?e.content:e);return r.schema=i,u&&(s=!1),!c&&o&&hn(e,t,n)||(a.push("<",e.tagName,c?" "+c:""),s&&("svg"===i.space||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&a.push(" "),a.push("/")),a.push(">")),a.push(u),s||o&&an(e,t,n)||a.push("</"+e.tagName+">"),a.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:gn(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:gn}});const bn={},yn={},_n=[];function kn(e,t,n){return fn(e,t,n,this)}function Sn(e){const t=[],n=e&&e.children||_n;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function wn(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let o=0;o<n.length;o+=2){const e=t?n[o]+(n[o+1]||""):n[o];i.push([e,r]),r+=n[o].length,r+=n[o+1]?.length||0}return i}function vn(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Cn(e){return"ansi"===e||vn(e)}function Pn(e){return"none"===e}function Nn(e){return Pn(e)}function An(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const i of r)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}async function Tn(e){return Promise.resolve("function"==typeof e?e():e).then((e=>e.default||e))}function Ln(e,t){const n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(const[i,o]of Object.entries(t?.colorReplacements||{}))"string"==typeof o?n[i]=o:i===r&&Object.assign(n,o);return n}function xn(e,t){return e&&t?.[e?.toLowerCase()]||e}function Rn(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&j.Italic&&(t["font-style"]="italic"),e.fontStyle&j.Bold&&(t["font-weight"]="bold"),e.fontStyle&j.Underline&&(t["text-decoration"]="underline")),t}function On(e){return"string"==typeof e?e:Object.entries(e).map((([e,t])=>`${e}:${t}`)).join(";")}
1class En extends Error{constructor(e){super(e),this.name="ShikiError"}}var In=Object.defineProperty,Mn=(e,t,n)=>(((e,t,n)=>{t in e?In(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const Gn=new WeakMap;function Dn(e,t){Gn.set(e,t)}function Bn(e){return Gn.get(e)}class jn{constructor(...e){if(Mn(this,"_stacks",{}),Mn(this,"lang"),2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new jn(Object.fromEntries((n=t,Array.isArray(n)?n:[n]).map((e=>[e,ze]))),e);var n}getInternalStack(e=this.theme){return this._stacks[e]}get scopes(){return Un(this._stacks[this.theme])}getScopes(e=this.theme){return Un(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Un(e){const t=[],n=new Set;return function e(r){if(n.has(r))return;n.add(r);const i=r?.nameScopesList?.scopeName;i&&t.push(i),r.parent&&e(r.parent)}(e),t}function $n(){const e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new En(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{const t=r.lines[e.line];if(void 0===t)throw new En(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);if(e.character<0||e.character>t.length)throw new En(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,offset:r.posToIndex(e.line,e.character)}}};const r=function(e){const t=wn(e,!0).map((([e])=>e));return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(const e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let i=0;i<e;i++)r+=t[i].length;return r+=n,r}}}(t.source),i=(t.options.decorations||[]).map((e=>({...e,start:n(e.start),end:n(e.end)})));!function(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new En(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const t=e[r],i=n.start.offset<t.start.offset&&t.start.offset<n.end.offset,o=n.start.offset<t.end.offset&&t.end.offset<n.end.offset,s=t.start.offset<n.start.offset&&n.start.offset<t.end.offset,a=t.start.offset<n.end.offset&&n.end.offset<t.end.offset;if(i||o||s||a){if(o&&o)continue;if(s&&a)continue;throw new En(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(!this.options.decorations?.length)return;const n=function(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort(((e,t)=>e-t));return n.length?e.map((e=>e.flatMap((e=>{const t=n.filter((t=>e.offset<t&&t<e.offset+e.content.length)).map((t=>t-e.offset)).sort(((e,t)=>e-t));return t.length?function(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}(e,t):e})))):e}(e,t(this).decorations.flatMap((e=>[e.start.offset,e.end.offset])));return n},code(e){if(!this.options.decorations?.length)return;const n=t(this),r=Array.from(e.children).filter((e=>"element"===e.type&&"span"===e.tagName));if(r.length!==n.converter.lines.length)throw new En(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){const o=r[e];let a="",l=-1,c=-1;if(0===t&&(l=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===l||-1===c)for(let r=0;r<o.children.length;r++)a+=Fn(o.children[r]),-1===l&&a.length===t&&(l=r+1),-1===c&&a.length===n&&(c=r+1);if(-1===l)throw new En(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);
1if(-1===c)throw new En(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);const u=o.children.slice(l,c);if(i.alwaysWrap||u.length!==o.children.length)if(i.alwaysWrap||1!==u.length||"element"!==u[0].type){const e={type:"element",tagName:"span",properties:{},children:u};s(e,i,"wrapper"),o.children.splice(l,u.length,e)}else s(u[0],i,"token");else s(o,i,"line")}function o(e,t){r[e]=s(r[e],t,"line")}function s(e,t,n){const r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&An(e,t.properties.class),e=i(e,n)||e}const a=[],l=n.decorations.sort(((e,t)=>t.start.offset-e.start.offset));for(const t of l){const{start:e,end:n}=t;if(e.line===n.line)i(e.line,e.character,n.character,t);else if(e.line<n.line){i(e.line,e.character,Number.POSITIVE_INFINITY,t);for(let r=e.line+1;r<n.line;r++)a.unshift((()=>o(r,t)));i(n.line,0,n.character,t)}}a.forEach((e=>e()))}}}function Fn(e){return"text"===e.type?e.value:"element"===e.type?e.children.map(Fn).join(""):""}const Hn=[$n()];function Wn(e){return[...e.transformers||[],...Hn]}var qn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],zn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Vn(e,t){const n=e.indexOf("\x1b[",t);if(-1!==n){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function Kn(e,t){let n=1;const r=e[t+n++];let i;if("2"===r){const r=[e[t+n++],e[t+n++],e[t+n]].map((e=>Number.parseInt(e)));3!==r.length||r.some((e=>Number.isNaN(e)))||(i={type:"rgb",rgb:r})}else if("5"===r){const r=Number.parseInt(e[t+n]);Number.isNaN(r)||(i={type:"table",index:Number(r)})}return[n,i]}function Xn(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=Number.parseInt(r);if(!Number.isNaN(i))if(0===i)t.push({type:"resetAll"});else if(i<=9){zn[i]&&t.push({type:"setDecoration",value:zn[i]})}else if(i<=29){const e=zn[i-20];e&&t.push({type:"resetDecoration",value:e})}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:qn[i-30]}});else if(38===i){const[r,i]=Kn(e,n);i&&t.push({type:"setForegroundColor",value:i}),n+=r}else if(39===i)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:qn[i-40]}});else if(48===i){const[r,i]=Kn(e,n);i&&t.push({type:"setBackgroundColor",value:i}),n+=r}else 49===i?t.push({type:"resetBackgroundColor"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:qn[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:qn[i-100+8]}})}return t}var Jn={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 Yn(e=Jn){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;function i(e){return function(){if(r)return r;r=[];for(let n=0;n<qn.length;n++)r.push(t(qn[n]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let o=0;o<6;o++)r.push(n([e[t],e[i],e[o]]));let i=8;for(let t=0;t<24;t++,i+=10)r.push(n([i,i,i]));return r}()[e]}return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return i(e.index)}}}}function Qn(e,t,n){const r=Ln(e,n),i=wn(t),o=Yn(Object.fromEntries(qn.map((t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),s=function(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let o=0;do{const s=Vn(r,o),a=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(a.length>0&&i.push({value:a,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const r=Xn(s.sequence);for(const i of r)"resetAll"===i.type?(e=null,t=null,n.clear()):"resetForegroundColor"===i.type?e=null:"resetBackgroun
1dColor"===i.type?t=null:"resetDecoration"===i.type&&n.delete(i.value);for(const i of r)"setForegroundColor"===i.type?e=i.value:"setBackgroundColor"===i.type?t=i.value:"setDecoration"===i.type&&n.add(i.value)}o=s.position}while(o<r.length);return i}}}();return i.map((t=>s.parse(t[0]).map((n=>{let i,s;n.decorations.has("reverse")?(i=n.background?o.value(n.background):e.bg,s=n.foreground?o.value(n.foreground):e.fg):(i=n.foreground?o.value(n.foreground):e.fg,s=n.background?o.value(n.background):void 0),i=xn(i,r),s=xn(s,r),n.decorations.has("dim")&&(i=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(i));let a=j.None;return n.decorations.has("bold")&&(a|=j.Bold),n.decorations.has("italic")&&(a|=j.Italic),n.decorations.has("underline")&&(a|=j.Underline),{content:n.value,offset:t[1],color:i,bgColor:s,fontStyle:a}}))))}function Zn(e,t,n={}){const{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(vn(r)||Pn(i))return wn(t).map((e=>[{content:e[0],offset:e[1]}]));const{theme:o,colorMap:s}=e.setTheme(i);if("ansi"===r)return Qn(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new l(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new l(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return function(e,t,n,r,i){const o=tr(e,t,n,r,i),s=new jn(tr(e,t,n,r,i).stateStack,t.name,n.name);return Dn(o.tokens,s),o.tokens}(t,a,o,s,n)}function er(...e){if(2===e.length)return Bn(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:o=t.getLoadedThemes()[0]}=r;if(vn(i)||Pn(o))throw new l("Plain language does not have grammar state");if("ansi"===i)throw new l("ANSI language does not have grammar state");const{theme:s,colorMap:a}=t.setTheme(o),c=t.getLanguage(i);return new jn(tr(n,c,s,a,r).stateStack,c.name,s.name)}function tr(e,t,n,r,i){const o=Ln(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500}=i,l=wn(e);let c=i.grammarState?function(e,t){if(!(e instanceof jn))throw new En("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??ze:null!=i.grammarContextCode?tr(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ze,u=[];const h=[];for(let p=0,m=l.length;p<m;p++){const[e,m]=l[p];if(""===e){u=[],h.push([]);continue}if(s>0&&e.length>=s){u=[],h.push([{content:e,offset:m,color:"",fontStyle:0}]);continue}let g,f,b;i.includeExplanation&&(g=t.tokenizeLine(e,c),f=g.tokens,b=0);const y=t.tokenizeLine2(e,c,a),_=y.tokens.length/2;for(let t=0;t<_;t++){const s=y.tokens[2*t],a=t+1<_?y.tokens[2*t+2]:e.length;if(s===a)continue;const l=y.tokens[2*t+1],c=xn(r[W.getForeground(l)],o),h=W.getFontStyle(l),p={content:e.substring(s,a),offset:m+s,color:c,fontStyle:h};if(i.includeExplanation){const t=[];if("scopeName"!==i.includeExplanation)for(const e of n.settings){let n;switch(typeof e.scope){case"string":n=e.scope.split(/,/).map((e=>e.trim()));break;case"object":n=e.scope;break;default:continue}t.push({settings:e,selectors:n.map((e=>e.split(/ /)))})}p.explanation=[];let r=0;for(;s+r<a;){const n=f[b],o=e.substring(n.startIndex,n.endIndex);r+=o.length,p.explanation.push({content:o,scopes:"scopeName"===i.includeExplanation?(d=n.scopes,d.map((e=>({scopeName:e})))):nr(t,n.scopes)}),b+=1}}u.push(p)}h.push(u),u=[],c=y.ruleStack}var d;return{tokens:h,stateStack:c}}function nr(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const i=t[r];n[r]={scopeName:i,themeMatches:or(e,i,t.slice(0,r))}}return n}function rr(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function ir(e,t,n){if(!rr(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)rr(e[r],n[i])&&(r-=1),i-=1;return-1===r}function or(e,t,n){const r=[];for(const{selectors:i,settings:o}of e)for(const e of i)if(ir(e,t,n)){r.push(o);break}return r}function sr(e,t,n){const r=Object.entries(n.themes).filter((e=>e[1])).map((e=>({color:e[0],theme:e[1]}))),i=r.map((r=>{const i=Zn(e,t,{...n,theme:r.theme});return{tokens:i,state:Bn(i),theme:"string"==typeof r.theme?r.theme:r.theme.name}})),o=function(...e){const t=e.map((()=>[])),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map((e=>e[r])),o=t.map((()=>[]));t.forEach(((e,t)=>e.push(o[t])));const s=i.map((()=>0)),a=i.map((e=>e[0]));for(;a.every((e=>e));){const e=Math.min(...a.map((e=>e.content.length)));for(let t=0;t<n;t++){const n=a[t];n.content.length===e?(o[t].push(n),s[t]+=1,a[t]=i[t][s[t]]):(o[t].push({...n,content:n.content.slice(0,e)}),a[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map((e=>e.tokens))),s=o[0].map(((e,t)=>e.map(((e,i)=>{const s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=e.explanation),o.forEach(((e,n)=>{const{content:o,explanation:a,offset:l,...c}=e[t][i];s.variants[r[n].color]=c})),s})))),a=i[0].state?new jn(Object.fromEntries(i.map((e=>[e.theme,e.state?.getInternalStack(e.theme)]))),i[0].state.lang):void 0;return a&&Dn(s,a),s}function ar(e,t,n){let r,i,o,s,a,c;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:h="--shiki-"}=n,d=Object.entries(n.themes).filter((e=>e[1])).map((e=>({color:e[0],theme:e[1]}))).sort(((e,t)=>e.color===u?-1:t.color===u?1:0));if(0===d.length)throw new l("`themes` option must not be empty");const p=sr(e,t,n);if(c=Bn(p),u&&!d.find((e=>e.color===u)))throw new l(`\`themes\` option must contain the defaultColor key \`${u}\``);const m=d.map((t=>e.getTheme(t.theme))),g=d.map((e=>e.color));o=p.map((e=>e.map((e=>function(e,t,n,r){const i={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map((t=>Rn(e.variants[t]))),s=new Set(o.flatMap((e=>Object.keys(e)))),a={};return o.forEach(((e,i)=>{for(const o of s){const s=e[o]||"inherit";if(0===i&&r)a[o]=s;else{const e="color"===o?"":"background-color"===o?"-bg":`-${o}`,r=n+t[i]+("color"===o?"":e);a[r]=s}}})),i.htmlStyle=a,i}(e,g,h,u))))),c&&Dn(o,c);const f=d.map((e=>Ln(e.theme,n)));i=d.map(((e,t)=>(0===t&&u?"":`${h+e.color}:`)+(xn(m[t].fg,f[t])||"inherit"))).join(";"),r=d.map(((e,t)=>(0===t&&u?"":`${h+e.color}-bg:`)+(xn(m[t].bg,f[t])||"inherit"))).join(";"),s=`shiki-themes ${m.map((e=>e.name)).join(" ")}`,a=u?void 0:[i,r].join(";")}else{if(!("theme"in n))throw new l("Invalid options, either `theme` or `themes` must be provided");{const a=Ln(n.theme,n);o=Zn(e,t,n);const l=e.getTheme(n.theme);r=xn(l.bg,a),i=xn(l.fg,a),s=l.name,c=Bn(o)}}return{tokens:o,fg:i,bg:r,themeName:s,rootStyle:a,grammarState:c}}function lr(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>lr(e,t,n),codeToTokens:(t,n)=>ar(e,t,n)}){let i=t;for(const p of Wn(n))i=p.preprocess?.call(r,i,n)||i;let{tokens:o,fg:s,bg:a,themeName:l,rootStyle:c,grammarState:u}=ar(e,i,n);
1const{mergeWhitespaces:h=!0}=n;!0===h?o=function(e){return e.map((e=>{const t=[];let n="",r=0;return e.forEach(((i,o)=>{const s=!(i.fontStyle&&i.fontStyle&j.Underline);s&&i.content.match(/^\s+$/)&&e[o+1]?(r||(r=i.offset),n+=i.content):n?(s?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=""):t.push(i)})),t}))}(o):"never"===h&&(o=function(e){return e.map((e=>e.flatMap((e=>{if(e.content.match(/^\s+$/))return e;const t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;const[,n,r,i]=t;if(!n&&!i)return e;const o=[{...e,offset:e.offset+n.length,content:r}];return n&&o.unshift({content:n,offset:e.offset}),i&&o.push({content:i,offset:e.offset+n.length+r.length}),o}))))}(o));const d={...r,get source(){return i}};for(const p of Wn(n))o=p.tokens?.call(d,o)||o;return function(e,t,n,r=Bn(e)){const i=Wn(t),o=[],s={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t;let c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==l&&null!=l?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter((([e])=>!e.startsWith("_"))))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const h=[],d={...n,structure:a,addClassToHast:An,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return c},get code(){return u},get lines(){return h}};if(e.forEach(((e,t)=>{t&&("inline"===a?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===a&&o.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(const o of e){let e={type:"element",tagName:"span",properties:{...o.htmlAttrs},children:[{type:"text",value:o.content}]};"string"==typeof o.htmlStyle&&v("`htmlStyle` as a string is deprecated. Use an object instead.");const l=On(o.htmlStyle||Rn(o));l&&(e.properties.style=l);for(const s of i)e=s?.span?.call(d,e,t+1,r,n,o)||e;"inline"===a?s.children.push(e):"classic"===a&&n.children.push(e),r+=o.content.length}if("classic"===a){for(const e of i)n=e?.line?.call(d,n,t+1)||n;h.push(n),o.push(n)}})),"classic"===a){for(const e of i)u=e?.code?.call(d,u)||u;c.children.push(u);for(const e of i)c=e?.pre?.call(d,c)||c;s.children.push(c)}let p=s;for(const m of i)p=m?.root?.call(d,p)||p;r&&Dn(p,r);return p}(o,{...n,fg:s,bg:a,themeName:l,rootStyle:c},d,u)}function cr(e,t,n){const r={meta:{},options:n,codeToHast:(t,n)=>lr(e,t,n),codeToTokens:(t,n)=>ar(e,t,n)};let i=function(e,t){const n=t||bn,r=n.quote||'"',i='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:kn,all:Sn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Ve,characterReferences:n.characterReferences||yn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?St:kt,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(lr(e,t,n,r));for(const o of Wn(n))i=o.postprocess?.call(r,i,n)||i;return i}const ur={light:"#333333",dark:"#bbbbbb"},hr={light:"#fffffe",dark:"#1e1e1e"},dr="__shiki_resolved";function pr(e){if(e?.[dr])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const e=t.settings?t.settings.find((e=>!e.name&&!e.scope)):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?ur.light:ur.dark),n||(n="light"===t.type?hr.light:hr.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const o=new Map;function s(e){if(o.has(e))return o.get(e);i+=1;const n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?s(e):(o.set(e,n),n)}t.settings=t.settings.map((e=>{const n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;const i={...e,settings:{...e.settings}};if(n){const n=s(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){const n=s(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}));for(const a of Object.keys(t.colors||{}))if(("editor.foreground"===a||"editor.background"===a||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const e=s(t.colors[a]);t.colorReplacements[e]=t.colors[a],t.colors[a]=e}return Object.defineProperty(t,dr,{enumerable:!1,writable:!1,value:!0}),t}async function mr(e){return Array.from(new Set((await Promise.all(e.filter((e=>!Cn(e))).map((async e=>await Tn(e).then((e=>Array.isArray(e)?e:[e])))))).flat()))}async function gr(e){return(await Promise.all(e.map((async e=>Nn(e)?null:pr(await Tn(e)))))).filter((e=>!!e))}var fr=Object.defineProperty,br=(e,t,n)=>(((e,t,n)=>{t in e?fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class yr extends qe{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,br(this,"_resolvedThemes",new Map),br(this,"_resolvedGrammars",new Map),br(this,"_langMap",new Map),br(this,"_langGraph",new Map),br(this,"_textmateThemeCache",new WeakMap),br(this,"_loadedThemesCache",null),br(this,"_loadedLanguagesCache",null),this._themes.map((e=>this.loadTheme(e))),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=pr(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=I.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new En(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter((t=>t.embeddedLangsLazy?.includes(e.name))));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEac
1h((t=>{this._alias[t]=e.name})),this._loadedLanguagesCache=null,t.size)for(const i of t)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const r of e)this.resolveEmbeddedLanguages(r);const t=Array.from(this._langGraph.entries()),n=t.filter((([e,t])=>!t));if(n.length){const e=t.filter((([e,t])=>t&&t.embeddedLangs?.some((e=>n.map((([e])=>e)).includes(e))))).filter((e=>!n.includes(e)));throw new En(`Missing languages ${n.map((([e])=>`\`${e}\``)).join(", ")}, required by ${e.map((([e])=>`\`${e}\``)).join(", ")}`)}for(const[r,i]of t)this._resolver.addLanguage(i);for(const[r,i]of t)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}var _r=Object.defineProperty,kr=(e,t,n)=>(((e,t,n)=>{t in e?_r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class Sr{constructor(e,t){kr(this,"_langs",new Map),kr(this,"_scopeToLang",new Map),kr(this,"_injections",new Map),kr(this,"_onigLib"),this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach((e=>this.addLanguage(e)))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach((t=>{this._langs.set(t,e)})),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach((t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)}))}getInjections(e){const t=e.split(".");let n=[];for(let r=1;r<=t.length;r++){const e=t.slice(0,r).join(".");n=[...n,...this._injections.get(e)||[]]}return n}}let wr=0;function vr(e){wr+=1,!1!==e.warnings&&wr>=10&&wr%10==0&&console.warn(`[Shiki] ${wr} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new En("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(pr),i=new Sr(e.engine,n),o=new yr(i,r,n,e.langAlias);let s;function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();const t=o.getTheme(e);if(!t)throw new En(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(...e){u(),o.loadLanguages(e.flat(1))}function c(...e){u();for(const t of e.flat(1))o.loadTheme(t)}function u(){if(t)throw new En("Shiki instance has been disposed")}function h(){t||(t=!0,o.dispose(),wr-=1)}return{setTheme:function(e){u();const t=a(e);return s!==e&&(o.setTheme(t),s=e),{theme:t,colorMap:o.getColorMap()}},getTheme:a,getLanguage:function(e){u();const t=o.getGrammar("string"==typeof e?e:e.name);if(!t)throw new En(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),o.getLoadedThemes()},getLoadedLanguages:function(){return u(),o.getLoadedLanguages()},loadLanguage:async function(...e){return l(await mr(e))},loadLanguageSync:l,loadTheme:async function(...e){return u(),c(await gr(e))},loadThemeSync:c,dispose:h,[Symbol.dispose]:h}}async function Cr(e={}){e.loadWasm&&v("`loadWasm` option is deprecated. Use `engine: createOnigurumaEngine(loadWasm)` instead.");const[t,n,r]=await Promise.all([gr(e.themes||[]),mr(e.langs||[]),e.engine||S(e.loadWasm||m)]);return vr({...e,loadWasm:void 0,themes:t,langs:n,engine:r})}async function Pr(e={}){const t=await Cr(e);return{getLastGrammarState:(...e)=>
1er(t,...e),codeToTokensBase:(e,n)=>Zn(t,e,n),codeToTokensWithThemes:(e,n)=>sr(t,e,n),codeToTokens:(e,n)=>ar(t,e,n),codeToHast:(e,n)=>lr(t,e,n),codeToHtml:(e,n)=>cr(t,e,n),...t,getInternalContext:()=>t}}function Nr(e,t,n){let r,i,o;if(t)v("`createdBundledHighlighter` signature with `bundledLanguages` and `bundledThemes` is deprecated. Use the options object signature instead."),r=e,i=t,o=()=>{return e=n,v("import `createOnigurumaEngine` from `@shikijs/engine-oniguruma` or `shiki/engine/oniguruma` instead"),S(e);var e};else{const t=e;r=t.langs,i=t.themes,o=t.engine}return async function(e){function t(e){if("string"==typeof e){if(Cn(e))return[];const t=r[e];if(!t)throw new l(`Language \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}function n(e){if(Nn(e))return"none";if("string"==typeof e){const t=i[e];if(!t)throw new l(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}const s=(e.themes??[]).map((e=>n(e))),a=(e.langs??[]).map((e=>t(e))),c=await Pr({engine:o(),...e,themes:s,langs:a});return{...c,loadLanguage:(...e)=>c.loadLanguage(...e.map(t)),loadTheme:(...e)=>c.loadTheme(...e.map(n))}}}function Ar(e){const t=function(e){let t;return async function(n={}){if(t){const e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}return t=e({...n,themes:n.themes||[],langs:n.langs||[]}),t}}(e);return{getSingletonHighlighter:e=>t(e),codeToHtml:async(e,n)=>(await t({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHtml(e,n),codeToHast:async(e,n)=>(await t({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHast(e,n),codeToTokens:async(e,n)=>(await t({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToTokens(e,n),codeToTokensBase:async(e,n)=>(await t({langs:[n.lang],themes:[n.theme]})).codeToTokensBase(e,n),codeToTokensWithThemes:async(e,n)=>(await t({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)})).codeToTokensWithThemes(e,n),getLastGrammarState:async(e,n)=>(await t({langs:[n.lang],themes:[n.theme]})).getLastGrammarState(e,n)}}const Tr=Nr({langs:o,themes:a,engine:()=>S(n.e(7791).then(n.bind(n,57791)))}),{codeToHtml:Lr,codeToHast:xr,codeToTokens:Rr,codeToTokensBase:Or,codeToTokensWithThemes:Er,getSingletonHighlighter:Ir,getLastGrammarState:Mr}=Ar(Tr)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.