PageSourceSearch

https://current-lab.com/_next/static/chunks/18670-70a38d709163163a.js

js current-lab.com collected 2026-10-08 19:18:23 UTC 136,666 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18670],{24372:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={callServer:function(){return s.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let s=n(16899),a=n(49067),o=n(77197)},25367:(e,t,n)=>{n.d(t,{A:()=>r});function r(e,...t){let n=e.length-1;return e.slice(0,n).reduce((e,n,r)=>e+n+t[r],"")+e[n]}},29215:(e,t,n)=>{let r;n.d(t,{Yz:()=>C});var i=n(32328);let s=[{id:"abap",name:"ABAP",import:()=>n.e(60392).then(n.bind(n,60392))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(24389).then(n.bind(n,24389))},{id:"ada",name:"Ada",import:()=>n.e(82728).then(n.bind(n,82728))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(1830)]).then(n.bind(n,1830))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(52577),n.e(41630),n.e(5669),n.e(11013),n.e(85898),n.e(88888)]).then(n.bind(n,97330))},{id:"apache",name:"Apache Conf",import:()=>n.e(47264).then(n.bind(n,47264))},{id:"apex",name:"Apex",import:()=>n.e(27202).then(n.bind(n,27202))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(59070),n.e(51393)]).then(n.bind(n,51393))},{id:"applescript",name:"AppleScript",import:()=>n.e(16381).then(n.bind(n,16381))},{id:"ara",name:"Ara",import:()=>n.e(7330).then(n.bind(n,7330))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(36627).then(n.bind(n,36627))},{id:"asm",name:"Assembly",import:()=>n.e(33077).then(n.bind(n,33077))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(5669),n.e(97137)]).then(n.bind(n,97137))},{id:"awk",name:"AWK",import:()=>n.e(46383).then(n.bind(n,46383))},{id:"ballerina",name:"Ballerina",import:()=>n.e(79308).then(n.bind(n,79308))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(99445).then(n.bind(n,99445))},{id:"beancount",name:"Beancount",import:()=>n.e(38635).then(n.bind(n,38635))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(72720).then(n.bind(n,72720))},{id:"bibtex",name:"BibTeX",import:()=>n.e(39224).then(n.bind(n,39224))},{id:"bicep",name:"Bicep",import:()=>n.e(45561).then(n.bind(n,45561))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(59070),n.e(57984),n.e(22114)]).then(n.bind(n,22114))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(35699).then(n.bind(n,35699))},{id:"c",name:"C",import:()=>n.e(10031).then(n.bind(n,10031))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(96873).then(n.bind(n,96873))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(66672),n.e(28652)]).then(n.bind(n,28652))},{id:"clarity",name:"Clarity",import:()=>n.e(71676).then(n.bind(n,71676))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(34024).then(n.bind(n,34024))},{id:"cmake",name:"CMake",import:()=>n.e(61689).then(n.bind(n,61689))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(59070),n.e(59661)]).then(n.bind(n,59661))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(63441).then(n.bind(n,63441))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(33754).then(n.bind(n,33754))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(52577),n.e(44330)]).then(n.bind(n,44330))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(95896).then(n.bind(n,95896))},{id:"coq",name:"Coq",import:()=>n.e(53907).then(n.bind(n,53907))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(86666),n.e(88835),n.e(57984),n.e(10031),n.e(42824)]).then(n.bind(n,78927))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(57984),n.e(10031),n.e(75791),n.e(4642)]).then(n.bind(n,4642))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(57539).then(n.bind(n,57539))},{id:"css",name:"CSS",import:()=>n.e(5669).then(n.bind(n,5669))},{id:"csv",name:"CSV",import:()=>n.e(68048).then(n.bind(n,68048))},{id:"cue",name:"CUE",import:()=>n.e(61029).then(n.bind(n,61029))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(3623).then(n.bind(n,3623))},{id:"d",name:"D",import:()=>n.e(29256).then(n.bind(n,29256))},{id:"dart",name:"Dart",import:()=>n.e(68049).then(n.bind(n,68049))},{id:"dax",name:"DAX",import:()=>n.e(89835).then(n.bind(n,89835))},{id:"desktop",name:"Desktop",import:()=>n.e(39940).then(n.bind(n,39940))},{id:"diff",name:"Diff",import:()=>n.e(88015).then(n.bind(n,88015))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(27878).then(n.bind(n,27878))},{id:"dotenv",name:"dotEnv",import:()=>n.e(2636).then(n.bind(n,2636))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(70642).then(n.bind(n,70642))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(5669),n.e(11013),n.e(38589)]).then(n.bind(n,60970))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(87283)]).then(n.bind(n,87283))},{id:"elm",name:"Elm",import:()=>
1Promise.all([n.e(10031),n.e(95480)]).then(n.bind(n,95480))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(73879).then(n.bind(n,9592))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(86666),n.e(88835),n.e(5669),n.e(11013),n.e(59070),n.e(57984),n.e(10031),n.e(75791),n.e(54155),n.e(99929),n.e(20933)]).then(n.bind(n,20933))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(81029),n.e(83147)]).then(n.bind(n,83147))},{id:"fennel",name:"Fennel",import:()=>n.e(31246).then(n.bind(n,31246))},{id:"fish",name:"Fish",import:()=>n.e(58724).then(n.bind(n,58724))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(52740).then(n.bind(n,52740))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(2976),n.e(26828)]).then(n.bind(n,26828))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(2976).then(n.bind(n,2976))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(81029),n.e(62064)]).then(n.bind(n,62064))},{id:"gdresource",name:"GDResource",import:()=>n.e(78971).then(n.bind(n,78971))},{id:"gdscript",name:"GDScript",import:()=>n.e(26222).then(n.bind(n,26222))},{id:"gdshader",name:"GDShader",import:()=>n.e(9828).then(n.bind(n,9828))},{id:"genie",name:"Genie",import:()=>n.e(66736).then(n.bind(n,66736))},{id:"gherkin",name:"Gherkin",import:()=>n.e(38034).then(n.bind(n,38034))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(48804).then(n.bind(n,48804))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(75791),n.e(17927)]).then(n.bind(n,17927))},{id:"gleam",name:"Gleam",import:()=>n.e(25552).then(n.bind(n,25552))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(5669),n.e(11013),n.e(90621)]).then(n.bind(n,90621))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(5669),n.e(11013),n.e(43779)]).then(n.bind(n,43779))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(10031),n.e(16474)]).then(n.bind(n,16474))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(27973).then(n.bind(n,27973))},{id:"go",name:"Go",import:()=>n.e(45780).then(n.bind(n,45780))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(54155)]).then(n.bind(n,54155))},{id:"groovy",name:"Groovy",import:()=>n.e(94204).then(n.bind(n,94204))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(57984),n.e(6869)]).then(n.bind(n,6869))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(78572)]).then(n.bind(n,78572))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(89094)]).then(n.bind(n,89094))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(82996).then(n.bind(n,82996))},{id:"haxe",name:"Haxe",import:()=>n.e(29074).then(n.bind(n,29074))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(717).then(n.bind(n,717))},{id:"hjson",name:"Hjson",import:()=>n.e(73818).then(n.bind(n,73818))},{id:"hlsl",name:"HLSL",import:()=>n.e(40919).then(n.bind(n,40919))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013)]).then(n.bind(n,11013))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(21147)]).then(n.bind(n,21147))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(59070),n.e(75791),n.e(54155),n.e(60350)]).then(n.bind(n,60350))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(59070),n.e(54155),n.e(36345)]).then(n.bind(n,36345))},{id:"hxml",name:"HXML",import:()=>n.e(79793).then(n.bind(n,79793))},{id:"hy",name:"Hy",import:()=>n.e(34623).then(n.bind(n,34623))},{id:"imba",name:"Imba",import:()=>n.e(85183).then(n.bind(n,85183))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(53446).then(n.bind(n,53446))},{id:"java",name:"Java",import:()=>n.e(59070).then(n.bind(n,59070))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(52577).then(n.bind(n,11611))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(68090)]).then(n.bind(n,68090))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(52577),n.e(37145)]).then(n.bind(n,37145))},{id:"json",name:"JSON",import:()=>n.e(45004).then(n.bind(n,45004))},{id:"json5",name:"JSON5",import:()=>n.e(65979).then(n.bind(n,65979))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(34397).then(n.bind(n,34397))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(53994).then(n.bind(n,53994))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(82035).then(n.bind(n,82035))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(85659).then(n.bind(n,85659))},{id:"jsx",name:"JSX",import:()=>n.e(69312).then(n.bind(n,29503))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(52577),n.e(86666),n.e(88835),n.e(57984),n.e(10031),n.e(66672),n.e(6694),n.e(54326)]).then(n.bind(n,73423))},{id:"kdl",name:"KDL",import:()=>n.e(90471).then(n.bind(n,90471))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(18421).then(n.bind(n,18421))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(15816).then(n.bind(n,15816))},{id:"latex",name:"LaTeX",import:()=>Promise.all([n.e(6694),n.e(48152)]).then(n.bind(n,48152))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(53610).then(n.bind(n,53610))},{id:"less",name:"Less",import:()=>n.e(55285).then(n.bind(n,55285))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(83646)]).then(n.bind(n,83646))},{id:"llvm",name:"LLVM IR",import:()=>n.e(62997).then(n.bind(n,62997))},{id:"log",name:"Log file",import:()=>n.e(87646).then(n.bind(n,87646))},{id:"logo",name:"Logo",import:()=>n.e(26563).then(n.bind(n,26563))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(10031),n.e(62174)]).then(n.bind(n,62174))}
1,{id:"luau",name:"Luau",import:()=>n.e(72857).then(n.bind(n,72857))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(93852).then(n.bind(n,93852))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(81029).then(n.bind(n,81029))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(60535),n.e(5669),n.e(85898),n.e(55285),n.e(72494)]).then(n.bind(n,72494))},{id:"matlab",name:"MATLAB",import:()=>n.e(35733).then(n.bind(n,35733))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(81029),n.e(99358)]).then(n.bind(n,99358))},{id:"mdx",name:"MDX",import:()=>n.e(13645).then(n.bind(n,13645))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(89941).then(n.bind(n,89941))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(7530).then(n.bind(n,7530))},{id:"mojo",name:"Mojo",import:()=>n.e(55551).then(n.bind(n,55551))},{id:"move",name:"Move",import:()=>n.e(33857).then(n.bind(n,33857))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(94638).then(n.bind(n,94638))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(83565).then(n.bind(n,83565))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(10031),n.e(79144)]).then(n.bind(n,79144))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(59070),n.e(10031),n.e(81029),n.e(26160)]).then(n.bind(n,26160))},{id:"nix",name:"Nix",import:()=>n.e(78805).then(n.bind(n,78805))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(72815).then(n.bind(n,72815))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(48421).then(n.bind(n,48421))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(14763).then(n.bind(n,69845))},{id:"ocaml",name:"OCaml",import:()=>n.e(83072).then(n.bind(n,83072))},{id:"pascal",name:"Pascal",import:()=>n.e(92046).then(n.bind(n,92046))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(59070),n.e(57984),n.e(657)]).then(n.bind(n,657))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(59070),n.e(57984),n.e(51676),n.e(99255)]).then(n.bind(n,51676))},{id:"pkl",name:"Pkl",import:()=>n.e(23149).then(n.bind(n,23149))},{id:"plsql",name:"PL/SQL",import:()=>n.e(71548).then(n.bind(n,71548))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(15425).then(n.bind(n,15425))},{id:"polar",name:"Polar",import:()=>n.e(43596).then(n.bind(n,43596))},{id:"postcss",name:"PostCSS",import:()=>
1n.e(45791).then(n.bind(n,45791))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(43727).then(n.bind(n,43727))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(77093).then(n.bind(n,77093))},{id:"prisma",name:"Prisma",import:()=>n.e(6410).then(n.bind(n,6410))},{id:"prolog",name:"Prolog",import:()=>n.e(33495).then(n.bind(n,33495))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(66322).then(n.bind(n,66322))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(80604)]).then(n.bind(n,80604))},{id:"puppet",name:"Puppet",import:()=>n.e(42864).then(n.bind(n,42864))},{id:"purescript",name:"PureScript",import:()=>n.e(23833).then(n.bind(n,23833))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(66672).then(n.bind(n,66672))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(52577),n.e(47122)]).then(n.bind(n,47122))},{id:"qmldir",name:"QML Directory",import:()=>n.e(64813).then(n.bind(n,64813))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(46011).then(n.bind(n,46011))},{id:"r",name:"R",import:()=>n.e(6694).then(n.bind(n,6694))},{id:"racket",name:"Racket",import:()=>n.e(3424).then(n.bind(n,3424))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(76733).then(n.bind(n,76733))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(57539),n.e(71300)]).then(n.bind(n,71300))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(3114).then(n.bind(n,3114))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(96589).then(n.bind(n,96589))},{id:"rel",name:"Rel",import:()=>n.e(56281).then(n.bind(n,56281))},{id:"riscv",name:"RISC-V",import:()=>n.e(75629).then(n.bind(n,75629))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(41377).then(n.bind(n,41377))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(86666),n.e(88835),n.e(5669),n.e(11013),n.e(59070),n.e(57984),n.e(10031),n.e(75791),n.e(54155),n.e(66672),n.e(99929),n.e(78795)]).then(n.bind(n,34033))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(86666),n.e(88835),n.e(5669),n.e(11013),n.e(59070),n.e(57984),n.e(10031),n.e(75791),n.e(54155),n.e(99929)]).then(n.bind(n,55934))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(28392).then(n.bind(n,28392))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(57984),n.e(6111)]).then(n.bind(n,6111))},{id:"sass",name:"Sass",import:()=>n.e(97380).then(n.bind(n,97380))},{id:"scala",name:"Scala",import:()=>n.e(59034).then(n.bind(n,59034))},{id:"scheme",name:"Scheme",import:()=>n.e(27623).then(n.bind(n,27623))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(5669),n.e(85898)]).then(n.bind(n,85898))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(4201).then(n.bind(n,4201))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>
1n.e(49896).then(n.bind(n,49896))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(75791).then(n.bind(n,75791))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(75791),n.e(30668)]).then(n.bind(n,30668))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(86235).then(n.bind(n,86235))},{id:"solidity",name:"Solidity",import:()=>n.e(3149).then(n.bind(n,3149))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(52577),n.e(5669),n.e(11013),n.e(41083)]).then(n.bind(n,41083))},{id:"sparql",name:"SPARQL",import:()=>n.e(90117).then(n.bind(n,90117))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(5115).then(n.bind(n,5115))},{id:"sql",name:"SQL",import:()=>n.e(57984).then(n.bind(n,57984))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(61003).then(n.bind(n,61003))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(57984),n.e(119)]).then(n.bind(n,119))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(44096).then(n.bind(n,44096))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(5669),n.e(81303)]).then(n.bind(n,81303))},{id:"swift",name:"Swift",import:()=>n.e(54389).then(n.bind(n,54389))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(51080).then(n.bind(n,51080))},{id:"systemd",name:"Systemd Units",import:()=>n.e(50777).then(n.bind(n,50777))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(93109).then(n.bind(n,93109))},{id:"tasl",name:"Tasl",import:()=>n.e(85630).then(n.bind(n,85630))},{id:"tcl",name:"Tcl",import:()=>n.e(85497).then(n.bind(n,85497))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(52577),n.e(5669),n.e(45780),n.e(17294)]).then(n.bind(n,17294))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(81376).then(n.bind(n,81376))}
1,{id:"tex",name:"TeX",import:()=>Promise.all([n.e(6694),n.e(4551)]).then(n.bind(n,4551))},{id:"toml",name:"TOML",import:()=>n.e(59138).then(n.bind(n,59138))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(5669),n.e(11013),n.e(59070),n.e(57984),n.e(10031),n.e(28687)]).then(n.bind(n,28687))},{id:"tsv",name:"TSV",import:()=>n.e(82483).then(n.bind(n,82483))},{id:"tsx",name:"TSX",import:()=>n.e(26814).then(n.bind(n,50397))},{id:"turtle",name:"Turtle",import:()=>n.e(82212).then(n.bind(n,82212))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(86666),n.e(88835),n.e(5669),n.e(11013),n.e(59070),n.e(57984),n.e(10031),n.e(75791),n.e(54155),n.e(66672),n.e(85898),n.e(99929),n.e(51676),n.e(41685)]).then(n.bind(n,41685))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(60535).then(n.bind(n,75011))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(21875).then(n.bind(n,21875))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(14382).then(n.bind(n,14382))}
1,{id:"v",name:"V",import:()=>n.e(52754).then(n.bind(n,52754))},{id:"vala",name:"Vala",import:()=>n.e(37380).then(n.bind(n,37380))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(67826).then(n.bind(n,67826))},{id:"verilog",name:"Verilog",import:()=>n.e(49306).then(n.bind(n,49306))},{id:"vhdl",name:"VHDL",import:()=>n.e(93528).then(n.bind(n,93528))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(59830).then(n.bind(n,59830))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(5669),n.e(11013),n.e(13434)]).then(n.bind(n,13434))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(5669),n.e(11013),n.e(13434),n.e(38132)]).then(n.bind(n,38132))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(31290),n.e(5669),n.e(11013),n.e(85898),n.e(55285),n.e(13434),n.e(38002)]).then(n.bind(n,58779))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(64340).then(n.bind(n,64340))},{id:"wasm",name:"WebAssembly",import:()=>n.e(13246).then(n.bind(n,13246))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(43336).then(n.bind(n,43336))},{id:"wgsl",name:"WGSL",import:()=>n.e(56421).then(n.bind(n,56421))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(68991).then(n.bind(n,68991))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(4580).then(n.bind(n,4580))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(17442).then(n.bind(n,61780))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(59070),n.e(21636)]).then(n.bind(n,99255))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(59070),n.e(96013)]).then(n.bind(n,96013))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(6019).then(n.bind(n,6019))},{id:"zenscript",name:"ZenScript",import:()=>n.e(82762).then(n.bind(n,82762))},{id:"zig",name:"Zig",import:()=>n.e(91854).then(n.bind(n,91854))}],a=Object.fromEntries(s.map(e=>[e.id,e.import])),o=Object.fromEntries(s.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),l={...a,...o},c=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(29163).then(n.bind(n,29163))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(8152).then(n.bind(n,8152))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(47699).then(n.bind(n,47699))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(83430).then(n.bind(n,83430))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(65264).then(n.bind(n,65264))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(13255).then(n.bind(n,13255))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(13284).then(n.bind(n,13284))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(5985).then(n.bind(n,28366))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(34885).then(n.bind(n,34885))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(29164).then(n.bind(n,29164))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(78211).then(n.bind(n,78211))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(211).then(n.bind(n,211))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(78341).then(n.bind(n,78341))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(2529).then(n.bind(n,2529))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(1508).then(n.bind(n,1508))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(77693).then(n.bind(n,77693))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(34373).then(n.bind(n,34373))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(94241).then(n.bind(n,94241))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(43101).then(n.bind(n,43101))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(9679).then(n.bind(n,9679))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(10937).then(n.bind(n,10937))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(29916).then(n.bind(n,29916))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(34575).then(n.bind(n,34575))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(53945).then(n.bind(n,53945))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(54812).then(n.bind(n,54812))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(65981).then(n.bind(n,65981))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(45926).then(n.bind(n,45926))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(59602).then(n.bind(n,59602))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(29076).then(n.bind(n,29076))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(15277).then(n.bind(n,15277))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(14726).then(n.bind(n,14726))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(18280).then(n.bind(n,18280))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(28142).then(n.bind(n,28142))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(16750).then(n.bind(n,16750))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(87557).then(n.bind(n,87557))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(26309).then(n.bind(n,26309))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(58402).then(n.bind(n,58402))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(44228).then(n.bind(n,44228))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(78077).then(n.bind(n,78077))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(35456).then(n.bind(n,35456))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(5176).then(n.bind(n,5176))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(17352).then(n.bind(n,17352))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(28956).then(n.bind(n,28956))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(49651).then(n.bind(n,49651))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(25517).then(n.bind(n,25517))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(17982).then(n.bind(n,17982))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(46091).then(n.bind(n,46091))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(65864).then(n.bind(n,65864))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(225).then(n.bind(n,225))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(5014).then(n.bind(n,5014))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(54275).then(n.bind(n,54275))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(14177).then(n.bind(n,14177))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(60965).then(n.bind(n,60965))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(43589).then(n.bind(n,43589))}
1,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(58693).then(n.bind(n,58693))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(64964).then(n.bind(n,64964))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(69648).then(n.bind(n,69648))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(55636).then(n.bind(n,55636))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(13985).then(n.bind(n,13985))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(99961).then(n.bind(n,99961))}].map(e=>[e.id,e.import]));var h=n(76738).Buffer;class u extends Error{constructor(e){super(e),this.name="ShikiError"}}function d(){return"undefined"!=typeof performance?performance.now():Date.now()}let m=(e,t)=>e+(t-e%t)%t;async function p(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&s)return s.decode(e.subarray(t,i));let a="";for(;t<i;){let n=e[t++];if(!(128&n)){a+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){a+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(r.HEAPU8,e,t):""}let o={emscripten_get_now:d,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let s=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let a=s*(1+.2/r);if(a=Math.min(a,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,m(Math.max(e,a),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:o,wasi_snapshot_preview1:o});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=a}return await l(),r}var f=Object.defineProperty,g=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?f(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};let b=null;class y{constructor(e){g(this,"utf16Length"),g(this,"utf8Length"),g(this,"utf16Value"),g(this,"utf8Value"),g(this,"utf16OffsetToUtf8"),g(this,"utf8OffsetToUtf16");const t=e.length,n=y._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);const s=r?new Uint32Array(n+1):null;r&&(s[n]=t);const a=new Uint8Array(n);let o=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let c=l,h=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,h=!0)}
1r&&(i[n]=o,h&&(i[n+1]=o),c<=127?s[o+0]=n:c<=2047?(s[o+0]=n,s[o+1]=n):c<=65535?(s[o+0]=n,s[o+1]=n,s[o+2]=n):(s[o+0]=n,s[o+1]=n,s[o+2]=n,s[o+3]=n)),c<=127?a[o++]=c:(c<=2047?a[o++]=192|(1984&c)>>>6:(c<=65535?a[o++]=224|(61440&c)>>>12:(a[o++]=240|(1835008&c)>>>18,a[o++]=128|(258048&c)>>>12),a[o++]=128|(4032&c)>>>6),a[o++]=128|(63&c)>>>0),h&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),s=i,a=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(s=(i-55296<<10)+65536|t-56320,a=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,a&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let _=class e{constructor(t){if(g(this,"id",++e.LAST_ID),g(this,"_onigBinding"),g(this,"content"),g(this,"utf16Length"),g(this,"utf8Length"),g(this,"utf16OffsetToUtf8"),g(this,"utf8OffsetToUtf16"),g(this,"ptr"),!b)throw new u("Must invoke loadWasm first.");this._onigBinding=b,this.content=t;const n=new y(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=b.omalloc(1e4)),e._sharedPtrInUse=!0,b.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(b)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};g(_,"LAST_ID",0),g(_,"_sharedPtr",0),g(_,"_sharedPtrInUse",!1);class k{constructor(e){if(g(this,"_onigBinding"),g(this,"_ptr"),!b)throw new u("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,i=e.length;r<i;r++){const i=new y(e[r]);t[r]=i.createString(b),n[r]=i.utf8Length}const r=b.omalloc(4*e.length);b.HEAPU32.set(t,r/4);const i=b.omalloc(4*e.length);b.HEAPU32.set(n,i/4);const s=b.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)b.ofree(t[n]);b.ofree(i),b.ofree(r),0===s&&function(e){throw new u(e.UTF8ToString(e.getLastO
1nigError()))}(b),this._onigBinding=b,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new _(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,s=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===s)return null;let a=i.HEAPU32,o=s/4,l=a[o++],c=a[o++],h=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(a[o++]),r=e.convertUtf8OffsetToUtf16(a[o++]);h[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:h}}}function S(e){return t=>WebAssembly.instantiate(e,t)}async function w(e){return e&&await (r||(r=async function(){b=await p(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,s,a;if(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (s=n,e=>WebAssembly.instantiateStreaming(s,e))(t):await (a=n,async e=>{let t=await a.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==h&&h.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await S(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await S(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new k(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new _(e)}}let v=(0,i.q6)({langs:l,themes:c,engine:()=>w(Promise.all([n.e(44814),n.e(64665)]).then(n.bind(n,64665)))}),{codeToHtml:C}=(0,i.CZ)(v,{guessEmbeddedLanguages:i.tX})}
1,32328:(e,t,n)=>{let r;n.d(t,{CZ:()=>tz,q6:()=>tH,tX:()=>tu,uz:()=>th});class i extends Error{constructor(e){super(e),this.name="ShikiError"}}var s,a,o=n(82402);function l(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var c=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,h=class{static hasCaptures(e){return null!==e&&(c.lastIndex=0,c.test(e))}static replaceCaptures(e,t,n){return e.replace(c,(e,r,i,s)=>{let a=n[parseInt(r||i,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(s){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function u(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++){var i,s;let n=(i=e[r],i<(s=t[r])?-1:+(i>s));if(0!==n)return n}return 0}return n-r}function d(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 m(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var p=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},f=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,s=t[e];if(!s.settings)continue;if("string"==typeof s.scope){let e=s.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(s.scope)?s.scope:[""];let a=-1;if("string"==typeof s.settings.fontStyle){a=0;let e=s.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}let o=null;"string"==typeof s.settings.foreground&&d(s.settings.foreground)&&(o=s.settings.foreground);let l=null;"string"==typeof s.settings.background&&d(s.settings.background)&&(l=s.settings.background);for(let t=0,s=i.length;t<s;t++){let s=i[t].trim().split(" "),c=s[s.length-1],h=null;s.length>1&&(h=s.slice(0,s.length-1)).reverse(),n[r++]=new y(c,h,e,a,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=u(e.parentScopes,t.parentScopes))?i: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 s=new k(t),a=new b(n,s.getId(r),s.getId(i)),o=new v(new w(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,s.getId(n.foreground),s.getId(n.background))}return new f(s,a,o)}(e,t)}_cachedMatchRoot=new p(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let s=t[i],a=!1;if(">"===s){if(i===t.length-1)return!1;s=t[++i],a=!0}for(;e&&(n=e.scopeName,!((r=s)===n||n.startsWith(r)&&"."===n[r.length]));){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new b(n.fontStyle,n.foreground,n.background):null}},g=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},b=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},y=class{constructor(e,t,n,r,i,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=s}},_=((s=_||{}
1)[s.NotSet=-1]="NotSet",s[s.None=0]="None",s[s.Italic=1]="Italic",s[s.Bold=2]="Bold",s[s.Underline=4]="Underline",s[s.Strikethrough=8]="Strikethrough",s),k=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},S=Object.freeze([]),w=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||S,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)}},v=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(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)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,s,a){let o,l,c;if(""===n)return void this._doInsertHere(t,r,i,s,a);let h=n.indexOf(".");-1===h?(o=n,l=""):(o=n.substring(0,h),l=n.substring(h+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),w.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,r,i,s,a)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let a=this._rulesWithParentScopes[s];if(0===u(a.parentScopes,t))return void a.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 w(e,t,n,r,i))}},C=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,s,a,o){let l=e.getLanguageId(t),c=e.getTokenType(t),h=+!!e.containsBalancedBrackets(t),u=e.getFontStyle(t),d=e.getForeground(t),m=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(h=+!!i),-1!==s&&(u=s),0!==a&&(d=a),0!==o&&(m=o),(l|c<<8|h<<10|u<<11|d<<15|m<<24)>>>0}};function N(e,t){var n;let r,i,s=[],a=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),o=a.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let t=c();if(s.push({matcher:t,priority:e}),","!==o)break;o=a.next()}return s;function l(){if("-"===o){o=a.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=a.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=a.next();while("|"===o||","===o);t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=a.next()),e}if(P(o)){let e=[];do e.push(o),o=a.next();while(P(o));return n=>t(e,n)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function P(e){return!!e&&!!e.match(/[\w\.:]+/)}var A=((a=A||{})[a.None=0]="None",a[a.NotBeginString=1]="NotBeginString",a[a.NotEndString=2]="NotEndString",a[a.NotBeginPosition=4]="NotBeginPosition",a[a.DebugCall=8]="DebugCall",a);function x(e){"function"==typeof e.dispose&&e.dispose()}var T=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},L=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},I=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},R=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new T(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new I;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let s=n.lookup(t);e instanceof T?O({baseGrammar:s,selfGrammar:i},r):E(e.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);let a=n.injections(e.scopeName);if(a)for(let e of a)r.add(new T(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof T){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function E(e,t,n){t.repository&&t.repository[e]&&j([t.repository[e]],t,n)}function O(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&j(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&j(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function j(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?l({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&j(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let s=U(i);switch(s.kind){case 0:O({...t,selfGrammar:t.baseGrammar},n);break;case 1:O(t,n);break;case 2:E(s.ruleName,{...t,repository:e},n);break;case 3:case 4:let a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){let r={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===s.kind?E(s.ruleName,r,n):O(r,n)}else 4===s.kind?n.add(new L(s.scopeName,s.ruleName)):n.add(new T(s.scopeName))}}}var M=class{kind=0},G=class{kind=1},B=class{constructor(e){this.ruleName=e}kind=2},$=class{constructor(e){this.scopeName=e}kind=3},D=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function U(e){if("$base"===e)return new M;if("$self"===e)return new G;let t=e.indexOf("#");return -1===t?new $(e):0===t?new B(e.substring(1)):new D(e.substring(0,t),e.substring(t+1))}var q=/\\(\d+)/,F=/\\(\d+)/g;Symbol("RuleId");var W=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=h.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=h.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?h.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?h.replaceCaptures(this._contentName,e,t):this._contentName}},H=class extends W{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},z=class extends W{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Y(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 X,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},V=class extends W{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new X,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},J=class extends W{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,s,a,o,l,c){super(e,t,n,r),this._begin=new Y(i,this.id),this.beginCaptures=s,this._end=new Y(a||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new X,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}},K=class extends W{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,s,a,o,l){super(e,t,n,r),this._begin=new Y(i,this.id),this.beginCaptures=s,this.whileCaptures=o,this._while=ne
1w Y(a,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new X,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 X,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},Q=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new H(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new z(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=l({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new V(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new K(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 J(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 s=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>s&&(s=t)}for(let e=0;e<=s;e++)i[e]=null;for(let s in t){if("$vscodeTextmateLocation"===s)continue;let a=parseInt(s,10),o=0;t[s].patterns&&(o=e.getCompiledRuleId(t[s],n,r)),i[a]=e.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,o)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let s=0,a=t.length;s<a;s++){let a=t[s],o=-1;if(a.include){let t=U(a.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[a.include],n,r);break;case 2:let i=r[t.ruleName];i&&(o=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let s=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(s,r);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,n,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else o=e.getCompiledRuleId(a,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof V||e instanceof J||e instanceof K)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Y=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,r=[],i=!1;for(let s=0;s<t;s++)if("\\"===e.charAt(s)&&s+1<t){const t=e.charAt(s+1);"z"===t?(r.push(e.substring(n,s)),r.push("$(?!\\n)(?<!\\n)"),n=s+2):("A"===t||"G"===t)&&(i=!0),s++}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,"string"==typeof this.source?this.hasBackReferences=q.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return F.lastIndex=0,this.source.replace(F,(e,t)=>m(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],s=[],a=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,s[e]=n,a[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="ï¿¿",s[e+1]="ï¿¿",a[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="ï¿¿",s[e+1]="G",a[e+1]="ï¿¿",o[e+1]="G"):(i[e+1]=r,s[e+1]=r,a[e+1]=r,o[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:s.join(""),A1_G0:a.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},X=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}
1push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new Z(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return 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)}_resolveAnchors(e,t,n){return new Z(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Z=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ee=class{constructor(e,t){this.languageId=e,this.tokenType=t}},et=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ee(e,8),this._embeddedLanguagesMatcher=new en(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ee(0,0);_getBasicScopeAttributes=new p(e=>new ee(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},en=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>m(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==o&&o.env.VSCODE_TEXTMATE_DEBUG;var er=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ei(e,t,n,r,i,s,a,o){let l=t.content.length,c=!1,h=-1;if(a){let a=function(e,t,n,r,i,s){let a=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof K&&o.push({rule:n,stack:t})}for(let m=o.pop();m;m=o.pop()){var l,c,h,u,d;let{ruleScanner:o,findOptions:p}=(l=m.rule,c=e,h=m.stack.endRule,u=n,d=r===a,{ruleScanner:l.compileWhileAG(c,h,u,d),findOptions:0}),f=o.findNextMatchSync(t,r,p);if(f){if(-2!==f.ruleId){i=m.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(s.produce(m.stack,f.captureIndices[0].start),ea(e,t,n,m.stack,s,m.rule.whileCaptures,f.captureIndices),s.produce(m.stack,f.captureIndices[0].end),a=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{i=m.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:a,isFirstLine:n}}(e,t,n,r,i,s);i=a.stack,r=a.linePos,n=a.isFirstLine,h=a.anchorPosition}let u=Date.now();for(;!c;){if(0!==o&&Date.now()-u>o)return new er(i,!0);!function(){let a=function(e,t,n,r,i,s){let a=function(e,t,n,r,i,s){let{ruleScanner:a,findOptions:o}=es(i.getRule(e),e,i.endRule,n,r===s),l=a.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,s),o=e.getInjections();if(0===o.length)return a;let l=function(e,t,n,r,i,s,a){let o,l=Number.MAX_VALUE,c=null,h=0,u=s.contentNameScopesList.getScopeNames();for(let s=0,d=e.length;s<d;s++){let d=e[s];if(!d.matcher(u))continue;let{ruleScanner:m,findOptions:p}=es(t.getRule(d.ruleId),t,null,r,i===a),f=m.findNextMatchSync(n,i,p);if(!f)continue;let g=f.captureIndices[0].start;if(!(g>=l)&&(l=g,c=f.captureIndices,o=f.ruleId,h=d.priority,l===i))break}return c?{priorityMatch:-1===h,captureIndices:c,matchedRuleId:o}:null}(o,e,t,n,r,i,s);if(!l)return a;
1if(!a)return l;let c=a.captureIndices[0].start,h=l.captureIndices[0].start;return h<c||l.priorityMatch&&h===c?l:a}(e,t,n,r,i,h);if(!a){s.produce(i,l),c=!0;return}let o=a.captureIndices,u=a.matchedRuleId,d=!!o&&o.length>0&&o[0].end>r;if(-1===u){let a=i.getRule(e);s.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),ea(e,t,n,i,s,a.endCaptures,o),s.produce(i,o[0].end);let u=i;if(i=i.parent,h=u.getAnchorPos(),!d&&u.getEnterPos()===r){i=u,s.produce(i,l),c=!0;return}}else{let a=e.getRule(u);s.produce(i,o[0].start);let m=i,p=a.getName(t.content,o),f=i.contentNameScopesList.pushAttributed(p,e);if(i=i.push(u,r,h,o[0].end===l,null,f,f),a instanceof J){ea(e,t,n,i,s,a.beginCaptures,o),s.produce(i,o[0].end),h=o[0].end;let r=a.getContentName(t.content,o),u=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(u),a.endHasBackReferences&&(i=i.withEndRule(a.getEndWithResolvedBackReferences(t.content,o))),!d&&m.hasSameRuleAs(i)){i=i.pop(),s.produce(i,l),c=!0;return}}else if(a instanceof K){ea(e,t,n,i,s,a.beginCaptures,o),s.produce(i,o[0].end),h=o[0].end;let r=a.getContentName(t.content,o),u=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(u),a.whileHasBackReferences&&(i=i.withEndRule(a.getWhileWithResolvedBackReferences(t.content,o))),!d&&m.hasSameRuleAs(i)){i=i.pop(),s.produce(i,l),c=!0;return}}else if(ea(e,t,n,i,s,a.captures,o),s.produce(i,o[0].end),i=i.pop(),!d){i=i.safePop(),s.produce(i,l),c=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new er(i,!1)}function es(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function ea(e,t,n,r,i,s,a){if(0===s.length)return;let o=t.content,l=Math.min(s.length,a.length),c=[],h=a[0].end;for(let t=0;t<l;t++){let l=s[t];if(null===l)continue;let u=a[t];if(0===u.length)continue;if(u.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=u.start;
1)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,u.start):i.produce(r,u.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,a),s=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,a),h=s.pushAttributed(c,e),d=r.push(l.retokenizeCapturedWithRuleId,u.start,-1,!1,null,s,h),m=e.createOnigString(o.substring(0,u.end));ei(e,m,n&&0===u.start,u.start,d,i,!1,0),x(m);continue}let d=l.getName(o,a);if(null!==d){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(d,e);c.push(new eo(t,u.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var eo=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function el(e,t,n,r,i){let s=N(t,ec),a=Q.getCompiledRuleId(n,r,i.repository);for(let n of s)e.push({debugSelector:t,matcher:n.matcher,ruleId:a,grammar:i,priority:n.priority})}function ec(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(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var eh=class{constructor(e,t,n,r,i,s,a,o){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=o,this._basicScopeAttributesProvider=new et(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=eu(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of N(e,ec))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)el(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&el(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,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){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=eu(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=Q.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==em.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),s=C.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),a=this.getRule(this._rootId).getName(null,null);e=a?ed.createRootAndLookUpScopeName(a,s,this):ed.createRoot("unknown",s),t=new em(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let s=this.createOnigString(e),a=s.content.length,o=new ef(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ei(this,s,i,0,t,o,!0,r);return x(s),{lineLength:a,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eu(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName}
1,e.repository.$base=t||e.repository.$self,e}var ed=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=g.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new g(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),s=new g(null,t),a=r.themeProvider.themeMatch(s),o=e.mergeAttributes(n,i,a);return new e(null,s,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,s=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,s=n.backgroundId),C.set(e,t.languageId,t.tokenType,null,r,i,s)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),s=t.scopePath.push(n),a=r.themeProvider.themeMatch(s),o=e.mergeAttributes(t.tokenAttributes,i,a);return new e(t,s,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},em=class e{constructor(e,t,n,r,i,s,a,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ed.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,s,a,o){return new e(this,t,n,r,i,s,a,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=ed.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ed.fromExtension(r,n.contentNameScopesList))}},ep=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):N(e,ec).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>N(e,ec).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ef=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=C.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=C.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},eg=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,new eh(e,s,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},eb=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eg(f.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(f.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 ep(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let s=new R(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(e=>this._loadSingleGrammar(e.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="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)}},ey=em.NULL;let e_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var ek=n(97774);let eS={}.hasOwnProperty,ew=/["&'<>`]/g,ev=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eC=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eN=/[|\\{}()[\]^$+*?.]/g,eP=new WeakMap,eA=/[\dA-Fa-f]/,ex=/\d/;var eT=n(52420);let eL={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",A
1circ:"\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:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub
1:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},eI=["cent","copy","divide","gt","lt","not","para","times"],eR={}.hasOwnProperty,eE={};for(r in eL)eR.call(eL,r)&&(eE[eL[r]]=r);let eO=/[^\dA-Za-z]/;function ej(e,t,n){var r,i;let s,a,o=(r=n.omitOptionalSemicolons,s="&#x"+e.toString(16).toUpperCase(),r&&t&&!eA.test(String.fromCharCode(t))?s:s+";");if((n.useNamedReferences||n.useShortestReferences)&&(a=function(e,t,n,r){let i=String.fromCharCode(e);if(eR.call(eE,i)){let e=eE[i],s="&"+e;return n&&eT.K.includes(e)&&!eI.includes(e)&&(!r||t&&61!==t&&eO.test(String.fromCharCode(t)))?s:s+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){let r,s=(i=n.omitOptionalSemicolons,r="&#"+String(e),i&&t&&!ex.test(String.fromCharCode(t))?r:r+";");s.length<o.length&&(o=s)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function eM(e,t){let n;var r,i=e,s=Object.assign({format:ej},t);if(i=i.replace(s.subset?(r=s.subset,(n=eP.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eN,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),eP.set(r,n)),n):ew,a),s.subset||s.escapeOnly)return i;return i.replace(ev,function(e,t,n){return s.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),s)}).replace(eC,a);function a(e,t,n){return s.format(e.charCodeAt(0),n.charCodeAt(t+1),s)}}let eG=/^>|^->|<!--|-->|--!>|<!-$/g,eB=[">"],e$=["<",">"];function eD(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}var eU=n(12565),eq=n(14252),eF=n(23326);let eW=/[ \t\n\f\r]/g;function eH(e){return"object"==typeof e?"text"===e.type&&ez(e.value):ez(e)}function ez(e){return""===e.replace(eW,"")}let eV=eQ(1),eJ=eQ(-1),eK=[];function eQ(e){return function(t,n,r){let i=t?t.children:eK,s=(n||0)+e,a=i[s];if(!r)for(;a&&eH(a);)s+=e,a=i[s];return a}}let eY={}.hasOwnProperty;function eX(e){return function(t,n,r){return eY.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let eZ=eX({body:function(e,t,n){let r=eV(n,t);return!r||"comment"!==r.type},caption:e0,colgroup:e0,dd:function(e,t,n){let r=eV(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=eV(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:e0,html:function(e,t,n){let r=eV(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=eV(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=eV(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=eV(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=eV(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:e1,rt:e1,tbody:function(e,t,n){let r=eV(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:e5,tfoot:function(e,t,n){return!eV(n,t)},th:e5,thead:function(e,t,n){let r=eV(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=eV(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function e0(e,t,n){let r=eV(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&eH(r.value.charAt(0)))}function e1(e,t,n){let r=eV(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function e5(e,t,n){let r=eV(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let e6=eX({body:function(e){let t=eV(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&eH(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){let r=eJ(n,t),i=eV(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&eZ(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=eV(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=eJ(n,t),i=eV(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&eZ(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),e2={name:[["	\n\f\r &/=>".split(""),"	\n\f\r \"&'/=>
1`".split("")],["\0	\n\f\r \"&'/<=>".split(""),"\0	\n\f\r \"&'/<=>`".split("")]],unquoted:[["	\n\f\r &>".split(""),"\0	\n\f\r \"&'<=>`".split("")],["\0	\n\f\r \"&'<=>`".split(""),"\0	\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e3=["<","&"];function e8(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:eM(e.value,Object.assign({},r.settings.characterReferences,{subset:e3}))}let e7=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,s=r.handlers;if(t&&eS.call(t,e)){let n=String(t[e]);i=eS.call(s,n)?s[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 Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+eM(e.value,Object.assign({},r.settings.characterReferences,{subset:eB}))+">":"\x3c!--"+e.value.replace(eG,function(e){return eM(e,Object.assign({},r.settings.characterReferences,{subset:e$}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,s=r.schema,a="svg"!==s.space&&r.settings.omitOptionalTags,o="svg"===s.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===s.space&&"svg"===e.tagName&&(r.schema=ek.JW);let c=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=(0,eq.I)(e.schema,t),s=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=eM(i.attribute,Object.assign({},e.settings.characterReferences,{subset:e2.name[s][a]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?eU.A:eF.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=eM(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e2.unquoted[s][a]}))),r!==n&&(e.settings.quoteSmart&&eD(n,o)>eD(n,e.alternative)&&(o=e.alternative),r=o+eM(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?e2.single:e2.double)[s][a],attribute:!0}))+o),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),h=r.all("html"===s.space&&"template"===e.tagName?e.content:e);return r.schema=s,h&&(o=!1),!c&&a&&e6(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===s.space||r.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(h),o||a&&eZ(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:e8(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:e8}}),e9={},e4={},te=[];function tt(e,t,n){return e7(e,t,n,this)}function tn(e){let t=[],n=e&&e.children||te,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function tr(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function ti(e,t){return e&&t?.[e?.toLowerCase()]||e}async function ts(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function ta(e){return!e||["plaintext","txt","text","plain"].includes(e)}function to(e){return"ansi"===e||ta(e)}function tl(e){return"none"===e}function tc(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function th(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let s=t?n[e]+(n[e+1]||""):n[e];i.push([s,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}function tu(e,t,n){let r=new Set;for(let t of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(t[1]);for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(t[1]);for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(t[1]);if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}let td="light-dark()",tm=["color","background-color"];function tp(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&_.Italic&&(t["font-style"]="italic"),e.fontStyle&_.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&_.Underline&&n.push("underline"),e.fontStyle&_.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function tf(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tg=new WeakMap;function tb(e,t){tg.set(e,t)}function ty(e){return tg.get(e)}class t_{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new t_(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,ey])),e)}constructor(...e){if(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}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,r;return t=this._stacks[e],n=[],r=new Set,!function e(t){if(r.has(t))return;r.add(t);let i=t?.nameScopesList?.scopeName;i&&n.push(i),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let tk=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let r,s=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new i(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...a.indexToPos(e),offset:e}}{let t=a.lines[e.line];if(void 0===t)throw new i(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${a.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new i(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:a.posToIndex(e.line,n)}}},a={lines:r=th(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:r.length-1,character:r[r.length-1].length};let t=e,i=0;for(let e of r){if(t<e.length)break;t-=e.length,i++}return{line:i,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=r[t].length;return n+t}},o=(t.options.decorations||[]).map(e=>({...e,start:s(e.start),end:s(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new i(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],s=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,l=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(s||a||o||l){if(s&&a||o&&l||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new i(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(o),e.set(t.meta,{decorations:o,converter:a,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){let n;if(!this.options.decorations?.length)return;let r=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);return(n=Array.from(r instanceof Set?r:new Set(r)).sort((e,t)=>
1e-t)).length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let r=0,i=[];for(let n of t)n>r&&i.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&i.push({...e,content:e.content.slice(r),offset:e.offset+r}),i})):e},code(e){if(!this.options.decorations?.length)return;let 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 i(`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 s(e,t,n,s){let o=r[e],l="",c=-1,h=-1;if(0===t&&(c=0),0===n&&(h=0),n===1/0&&(h=o.children.length),-1===c||-1===h)for(let e=0;e<o.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===c&&l.length===t&&(c=e+1),-1===h&&l.length===n&&(h=e+1);if(-1===c)throw new i(`Failed to find start index for decoration ${JSON.stringify(s.start)}`);if(-1===h)throw new i(`Failed to find end index for decoration ${JSON.stringify(s.end)}`);let u=o.children.slice(c,h);if(s.alwaysWrap||u.length!==o.children.length)if(s.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};a(e,s,"wrapper"),o.children.splice(c,u.length,e)}else a(u[0],s,"token");else a(o,s,"line")}function a(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&tc(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)s(t.line,t.character,n.character,e);else if(t.line<n.line){s(t.line,t.character,1/0,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=a(r[t],e,"line")});s(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function tS(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tk]}var tw=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tC(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tN={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let tP={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function tA(e,t,n={}){var r,s,a,o,l;let c,h,{lang:u="text",theme:d=e.getLoadedThemes()[0]}=n;if(ta(u)||tl(d))return th(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:m,colorMap:p}=e.setTheme(d);if("ansi"===u){let e,r,i,s,a,o,l;return e=tr(m,n),r=th(t),i=function(e=tN){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<tw.length;n++)t.push(e[tw[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let s=0;s<6;s++)t.push(n([r[e],r[i],r[s]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tw.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,m.colors?.[t]||tP[e]]}))),s=null,a=null,o=new Set,l={parse(e){let t=[],n=0;do{let r=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),i=r.sequence?e.substring(n,r.startPosition):e.substring(n);if(i.length>0&&t.push({value:i,foreground:s,background:a,decorations:new Set(o)}),r.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)tv[r]&&t.push({type:"setDecoration",value:tv[r]});else if(r<=29){let e=tv[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tw[r-30]}});else if(38===r){let n=tC(e);
1n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tw[r-40]}});else if(48===r){let n=tC(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tw[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tw[r-100+8]}})}return t}(r.sequence);for(let t of e)"resetAll"===t.type?(s=null,a=null,o.clear()):"resetForegroundColor"===t.type?s=null:"resetBackgroundColor"===t.type?a=null:"resetDecoration"===t.type&&o.delete(t.value);for(let t of e)"setForegroundColor"===t.type?s=t.value:"setBackgroundColor"===t.type?a=t.value:"setDecoration"===t.type&&o.add(t.value)}n=r.position}while(n<e.length);return t}},r.map(t=>l.parse(t[0]).map(n=>{let r,s;n.decorations.has("reverse")?(r=n.background?i.value(n.background):m.bg,s=n.foreground?i.value(n.foreground):m.fg):(r=n.foreground?i.value(n.foreground):m.fg,s=n.background?i.value(n.background):void 0),r=ti(r,e),s=ti(s,e),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(t)if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}else if(t[2])return`#${t[1]}${t[2]}80`;else return`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`;let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=_.None;return n.decorations.has("bold")&&(a|=_.Bold),n.decorations.has("italic")&&(a|=_.Italic),n.decorations.has("underline")&&(a|=_.Underline),n.decorations.has("strikethrough")&&(a|=_.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:s,fontStyle:a}}))}let f=e.getLanguage(u);if(n.grammarState){if(n.grammarState.lang!==f.name)throw new i(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${f.name}"`);if(!n.grammarState.themes.includes(m.name))throw new i(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${m.name}"`)}return c=tx(r=t,s=f,a=m,o=p,l=n),h=new t_(tx(r,s,a,o,l).stateStack,s.name,a.name),tb(c.tokens,h),c.tokens}function tx(e,t,n,r,s){let a=tr(n,s),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=s,c=th(e),h=s.grammarState?function(e,t){if(!(e instanceof t_))throw new i("Invalid grammar state");return e.getInternalStack(t)}(s.grammarState,n.name)??ey:null!=s.grammarContextCode?tx(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ey,u=[],d=[];for(let e=0,i=c.length;e<i;e++){let i,m,[p,f]=c[e];if(""===p){u=[],d.push([]);continue}if(o>0&&p.length>=o){u=[],d.push([{content:p,offset:f,color:"",fontStyle:0}]);continue}s.includeExplanation&&(i=t.tokenizeLine(p,h,l).tokens,m=0);let g=t.tokenizeLine2(p,h,l),b=g.tokens.length/2;for(let e=0;e<b;e++){let t=g.tokens[2*e],o=e+1<b?g.tokens[2*e+2]:p.length;if(t===o)continue;let l=g.tokens[2*e+1],c=ti(r[C.getForeground(l)],a),h=C.getFontStyle(l),d={content:p.substring(t,o),offset:f+t,color:c,fontStyle:h};if(s.includeExplanation){let e=[];
1if("scopeName"!==s.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=i[m],n=p.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:"scopeName"===s.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:s}of e)for(let e of i)if(function(e,t,n){if(!tT(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tT(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(s);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),m+=1}}u.push(d)}d.push(u),u=[],h=g.ruleStack}return{tokens:d,stateStack:h}}function tT(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tL(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=tA(e,t,{...n,theme:r.theme}),s=ty(i);return{tokens:i,state:s,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),s=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),s=t.map(()=>[]);t.forEach((e,t)=>e.push(s[t]));let a=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(s[t].push(n),a[t]+=1,o[t]=i[t][a[t]]):(s[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),a=s[0].map((e,t)=>e.map((e,i)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),s.forEach((e,n)=>{let{content:s,explanation:o,offset:l,...c}=e[t][i];a.variants[r[n].color]=c}),a})),o=i[0].state?new t_(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&tb(a,o),a}function tI(e,t,n){let r,s,a,o,l,c;if("themes"in n){let{defaultColor:h="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=n,m=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===h?-1:+(t.color===h));if(0===m.length)throw new i("`themes` option must not be empty");let p=tL(e,t,n);if(c=ty(p),h&&td!==h&&!m.find(e=>e.color===h))throw new i(`\`themes\` option must contain the defaultColor key \`${h}\``);let f=m.map(t=>e.getTheme(t.theme)),g=m.map(e=>e.color);a=p.map(e=>e.map(e=>(function(e,t,n,r,s="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>tp(e.variants[t])),l=new Set(o.flatMap(e=>Object.keys(e))),c={},h=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;
1return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let a of l){let l=e[a]||"inherit";if(0===n&&r&&tm.includes(a))if(r===td&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new i('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||"inherit",d=o[r][a]||"inherit";c[a]=`light-dark(${u}, ${d})`,"css-vars"===s&&(c[h(n,a)]=l)}else c[a]=l;else"css-vars"===s&&(c[h(n,a)]=l)}}),a.htmlStyle=c,a})(e,g,u,h,d))),c&&tb(a,c);let b=m.map(e=>tr(e.theme,n));s=tR(m,f,b,u,h,"fg",d),r=tR(m,f,b,u,h,"bg",d),o=`shiki-themes ${f.map(e=>e.name).join(" ")}`,l=h?void 0:[s,r].join(";")}else if("theme"in n){let i=tr(n.theme,n);a=tA(e,t,n);let l=e.getTheme(n.theme);r=ti(l.bg,i),s=ti(l.fg,i),o=l.name,c=ty(a)}else throw new i("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:s,bg:r,themeName:o,rootStyle:l,grammarState:c}}function tR(e,t,n,r,s,a,o){return e.map((l,c)=>{let h=ti(t[c][a],n[c])||"inherit",u=`${r+l.color}${"bg"===a?"-bg":""}:${h}`;if(0===c&&s){if(s===td&&e.length>1){let r=e.findIndex(e=>"light"===e.color),s=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===s)throw new i('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=ti(t[r][a],n[r])||"inherit",l=ti(t[s][a],n[s])||"inherit";return`light-dark(${o}, ${l});${u}`}return h}return"css-vars"===o?u:null}).filter(e=>!!e).join(";")}function tE(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>
1tE(e,t,n),codeToTokens:(t,n)=>tI(e,t,n)}){let i=t;for(let e of tS(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:s,fg:a,bg:o,themeName:l,rootStyle:c,grammarState:h}=tI(e,i,n),{mergeWhitespaces:u=!0,mergeSameStyleTokens:d=!1}=n;!0===u?s=s.map(e=>{let t=[],n="",r=0;return e.forEach((i,s)=>{let a=!(i.fontStyle&&(i.fontStyle&_.Underline||i.fontStyle&_.Strikethrough));a&&i.content.match(/^\s+$/)&&e[s+1]?(r||(r=i.offset),n+=i.content):n?(a?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=""):t.push(i)}),t}):"never"===u&&(s=s.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let s=[{...e,offset:e.offset+n.length,content:r}];return n&&s.unshift({content:n,offset:e.offset}),i&&s.push({content:i,offset:e.offset+n.length+r.length}),s}))),d&&(s=s.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=tf(e.htmlStyle||tp(e)),i=tf(n.htmlStyle||tp(n)),s=e.fontStyle&&(e.fontStyle&_.Underline||e.fontStyle&_.Strikethrough),a=n.fontStyle&&(n.fontStyle&_.Underline||n.fontStyle&_.Strikethrough);s||a||r!==i?t.push({...n}):e.content+=n.content}return t}));let m={...r,get source(){return i}};for(let e of tS(n))s=e.tokens?.call(m,s)||s;return function(e,t,n,r=ty(e)){let i=tS(t),s=[],a={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,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:[]},h={type:"element",tagName:"code",properties:{},children:s},u=[],d={...n,structure:o,addClassToHast:tc,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return c},get code(){return h},get lines(){return u}};if(e.forEach((e,t)=>{t&&("inline"===o?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&s.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let s of e){let e={type:"element",tagName:"span",properties:{...s.htmlAttrs},children:[{type:"text",value:s.content}]},l=tf(s.htmlStyle||tp(s));for(let a of(l&&(e.properties.style=l),i))e=a?.span?.call(d,e,t+1,r,n,s)||e;"inline"===o?a.children.push(e):"classic"===o&&n.children.push(e),r+=s.content.length}if("classic"===o){for(let e of i)n=e?.line?.call(d,n,t+1)||n;u.push(n),s.push(n)}}),"classic"===o){for(let e of i)h=e?.code?.call(d,h)||h;for(let e of(c.children.push(h),i))c=e?.pre?.call(d,c)||c;a.children.push(c)}let m=a;for(let e of i)m=e?.root?.call(d,m)||m;return r&&tb(m,r),m}(s,{...n,fg:a,bg:o,themeName:l,rootStyle:c},m,h)}let tO=function(e,t){let n=t||e9,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:tt,all:tn,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||e_,characterReferences:n.characterReferences||e4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?ek.JW:ek.qy,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},tj="__shiki_resolved";function tM(e){if(e?.[tj])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),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,s=new Map;function a(e){if(s.has(e))return s.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?a(e):(s.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=a(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=a(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=a(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tj,{enumerable:!1,writable:!1,value:!0}),t}async function tG(e){return Array.from(new Set((await Promise.all(e.filter(e=>!to(e)).map(async e=>await ts(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tB(e){return(await Promise.all(e.map(async e=>tl(e)?null:tM(await ts(e))))).filter(e=>!!e)}
1class t$ extends Error{constructor(e){super(e),this.name="ShikiError"}}class tD extends eb{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tM(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=f.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new t$(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new t$(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(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(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class tU{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let tq=0;async function tF(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tB(e.themes||[]),tG(e.langs||[]),e.engine]);return function(e){let t;tq+=1,!1!==e.warnings&&tq>=10&&tq%10==0&&console.warn(`[Shiki] ${tq} instances have been created. Shiki is supposed to be used as a singleton, c
1onsider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new t$("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tM),s=new tD(new tU(e.engine,r),i,r,e.langAlias);function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=s.getTheme(e);if(!t)throw new t$(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),s.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))s.loadTheme(t)}function c(){if(n)throw new t$("Shiki instance has been disposed")}function h(){n||(n=!0,s.dispose(),tq-=1)}return{setTheme:function(e){c();let n=a(e);return t!==e&&(s.setTheme(n),t=e),{theme:n,colorMap:s.getColorMap()}},getTheme:a,getLanguage:function(e){c();let t=s.getGrammar("string"==typeof e?e:e.name);if(!t)throw new t$(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),s.getLoadedThemes()},getLoadedLanguages:function(){return c(),s.getLoadedLanguages()},loadLanguage:async function(...e){return o(await tG(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await tB(e))},loadThemeSync:l,dispose:h,[Symbol.dispose]:h}}({...e,themes:t,langs:n,engine:r})}async function tW(e){let t=await tF(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return ty(e[1]);let[t,n,r={}]=e,{lang:s="text",theme:a=t.getLoadedThemes()[0]}=r;if(ta(s)||tl(a))throw new i("Plain language does not have grammar state");if("ansi"===s)throw new i("ANSI language does not have grammar state");
1let{theme:o,colorMap:l}=t.setTheme(a),c=t.getLanguage(s);return new t_(tx(n,c,o,l,r).stateStack,c.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>tA(t,e,n),codeToTokensWithThemes:(e,n)=>tL(t,e,n),codeToTokens:(e,n)=>tI(t,e,n),codeToHast:(e,n)=>tE(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>tE(e,t,n),codeToTokens:(t,n)=>tI(e,t,n)},i=tO(tE(e,t,n,r));for(let e of tS(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function tH(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function s(n){if("string"==typeof n){if(to(n))return[];let r=t[n=e.langAlias?.[n]||n];if(!r)throw new i(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(tl(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new i(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),l=(e.langs??[]).map(e=>s(e)),c=await tW({engine:e.engine??r(),...e,themes:o,langs:l});return{...c,loadLanguage:(...e)=>c.loadLanguage(...e.map(s)),loadTheme:(...e)=>c.loadTheme(...e.map(a)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}function tz(e,t){let n,r=async function(t={}){if(n){let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{n=e({...t,themes:[],langs:[]});let r=await n;return await Promise.all([r.loadTheme(...t.themes||[]),r.loadLanguage(...t.langs||[])]),r}};async function i(e,n){let i=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),s=await t?.guessEmbeddedLanguages?.(e,n.lang,i);return s&&await i.loadLanguage(...s),i}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}},60271:(e,t,n)=>{n.d(t,{RK:()=>w});var r=n(19749),i=n(95155);function s(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(void 0===e.marks||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function a(e){return"string"==typeof e._type&&"@"!==e._type[0]&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(e=>"string"==typeof e._key))&&"children"in e&&Array.isArray(e.children)&&e.children.every(e=>"object"==typeof e&&"_type"in e)}function o(e){return a(e)&&"listItem"in e&&"string"==typeof e.listItem&&(void 0===e.level||"number"==typeof e.level)}function l(e){return"@list"===e._type}function c(e){return"@span"===e._type}function h(e){return"@text"===e._type}let u=["strong","em","code","underline","strike-through"];function d(e,t,n){if(!s(e)||!e.marks||!e.marks.length)return[];let r=e.marks.slice(),i={};return r.forEach(e=>{i[e]=1;for(let r=t+1;r<n.length;r++){let t=n[r];if(t&&s(t)&&Array.isArray(t.marks)&&-1!==t.marks.indexOf(e))i[e]++;else break}}),r.sort((e,t)=>(function(e,t,n){let r=e[t],i=e[n];if(r!==i)return i-r;let s=u.indexOf(t),a=u.indexOf(n);return s===a?t.localeCompare(n):s-a})(i,e,t))}function m(e,t,n){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:n,level:e.level||1,listItem:e.listItem,children:[e]}}function p(e,t){let n=t.level||1,r=t.listItem||"normal",i="string"==typeof t.listItem;if(l(e)&&(e.level||1)===n&&i&&(e.listItem||"normal")===r)return e;if(!("children"in e))return;let a=e.children[e.children.length-1];return a&&!s(a)?p(a,t):void 0}let f={textDecoration:"underline"},g=(e,t)=>`[@portabletext/react] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,b=e=>g(`block type "${e}"`,"types");function y(e){console.warn(e)}let _={display:"none"},k={types:{},block:{normal:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("p",{children:n}),t[0]=n,t[1]=s),s},blockquote:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("blockquote",{children:n}),t[0]=n,t[1]=s),s},h1:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("h1",{children:n}),t[0]=n,t[1]=s),s},h2:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("h2",{children:n}),t[0]=n,t[1]=s),s},h3:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("h3",{children:n}),t[0]=n,t[1]=s),s},h4:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("h4",{children:n}),t[0]=n,t[1]=s),s},h5:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("h5",{children:n}),t[0]=n,t[1]=s),s},h6:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("h6",{children:n}),t[0]=n,t[1]=s),s}},marks:{em:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("em",{children:n}),t[0]=n,t[1]=s),s},strong:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("strong",{children:n}),t[0]=n,t[1]=s),s},code:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("code",{children:n}),t[0]=n,t[1]=s),s},underline:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("span",{style:f,children:n}),t[0]=n,t[1]=s),s},"strike-through":function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("del",{children:n}),t[0]=n,t[1]=s),s},link:function(e){let t=(0,r.c)(3),{children:n,value:s}=e,a=s?.href,o;return t[0]!==n||t[1]!==a?(o=(0,i.jsx)("a",{href:a,children:n}),t[0]=n,t[1]=a,t[2]=o):o=t[2],o}},list:{number:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("ol",{children:n}),t[0]=n,t[1]=s),s},bullet:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("ul",{children:n}),t[0]=n,t[1]=s),s}},listItem:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("li",{children:n}),t[0]=n,t[1]=s),s},hardBreak:function(){let e=(0,r.c)(1),t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("br",{}),e[0]=t):t=e[0],t}
1,unknownType:function(e){let t=(0,r.c)(5),{value:n,isInline:s}=e,a;t[0]===n._type?a=t[1]:(a=b(n._type),t[0]=n._type,t[1]=a);let o=a,l;return t[2]!==s||t[3]!==o?(l=(0,i.jsx)(s?"span":"div",{style:_,children:o}),t[2]=s,t[3]=o,t[4]=l):l=t[4],l},unknownMark:function(e){let t=(0,r.c)(3),{markType:n,children:s}=e,a=`unknown__pt__mark__${n}`,o;return t[0]!==s||t[1]!==a?(o=(0,i.jsx)("span",{className:a,children:s}),t[0]=s,t[1]=a,t[2]=o):o=t[2],o},unknownList:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("ul",{children:n}),t[0]=n,t[1]=s),s},unknownListItem:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("li",{children:n}),t[0]=n,t[1]=s),s},unknownBlockStyle:function(e){let t=(0,r.c)(2),{children:n}=e,s;return t[0]===n?s=t[1]:(s=(0,i.jsx)("p",{children:n}),t[0]=n,t[1]=s),s}};function S(e,t,n){let r=t[n],i=e[n];return"function"==typeof r||r&&"function"==typeof i?r:r?{...i,...r}:i}function w(e){let t=(0,r.c)(7),{value:n,components:s,listNestingMode:a,onMissingComponent:l}=e,c=(void 0===l?y:l)||N,h;if(t[0]!==s||t[1]!==c||t[2]!==n||t[3]!==a){let e=function(e,t){let n=[],r;for(let a=0;a<e.length;a++){let l=e[a];if(l){var i,s;if(!o(l)){n.push(l),r=void 0;continue}if(!r){r=m(l,a,t),n.push(r);continue}if(i=l,s=r,(i.level||1)===s.level&&i.listItem===s.listItem){r.children.push(l);continue}if((l.level||1)>r.level){let e=m(l,a,t);if("html"===t){let t=r.children[r.children.length-1],n={...t,children:[...t.children,e]};r.children[r.children.length-1]=n}else r.children.push(e);r=e;continue}if((l.level||1)<r.level){let e=n[n.length-1],i=e&&p(e,l);if(i){(r=i).children.push(l);continue}r=m(l,a,t),n.push(r);continue}if(l.listItem!==r.listItem){let e=n[n.length-1],i=e&&p(e,{level:l.level||1});if(i&&i.listItem===l.listItem){(r=i).children.push(l);continue}r=m(l,a,t),n.push(r);continue}console.warn("Unknown state encountered for block",l),n.push(l)}}return n}(Array.isArray(n)?n:null==n?[]:[n],a||"html"),r=v(s?function(e,t){let{block:n,list:r,listItem:i,marks:s,types:a,...o}=t;return{...e,block:S(e,t,"block"),list:S(e,t,"list"),listItem:S(e,t,"listItem"),marks:S(e,t,"marks"),types:S(e,t,"types"),...o}}(k,s):k,c);h=e.map((e,t)=>r({node:e,index:t,isInline:!1,renderNode:r})),t[0]=s,t[1]=c,t[2]=n,t[3]=a,t[4]=h}else h=t[4];let u=h,d;return t[5]===u?d=t[6]:(d=(0,i.jsx)(i.Fragment,{children:u}),t[5]=u,t[6]=d),d}let v=(e,t)=>function n(r){var s,u,d,m,p,f,y,_;let k,S,{node:w,index:v,isInline:N}=r,P=w._key||`node-${v}`;return l(w)?function(r,s,a){let o=r.children.map((e,t)=>n({node:e._key?e:{...e,_key:`li-${s}-${t}`},index:t,isInline:!1,renderNode:n})),l=e.list,c=("function"==typeof l?l:l[r.listItem])||e.unknownList;if(c===e.unknownList){let e=r.listItem||"bullet";t(g(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return(0,i.jsx)(c,{value:r,index:s,isInline:!1,renderNode:n,children:o},a)}(w,v,P):o(w)?function(r,s,a){let o=C({node:r,index:s,isInline:!1,renderNode:n}),l=e.listItem,c=("function"==typeof l?l:l[r.listItem])||e.unknownListItem;if(c===e.unknownListItem){let e=r.listItem||"bullet";t(g(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let h=o.children;if(r.style&&"normal"!==r.style){let{listItem:e,...t}=r;h=n({node:t,index:s,isInline:!1,renderNode:n})}return(0,i.jsx)(c,{value:r,index:s,isInline:!1,renderNode:n,children:h},a)}(w,v,P):c(w)?function(r,s,a){let{markDef:o,markType:l,markKey:u}=r,d=e.marks[l]||e.unknownMark,m=r.children.map((e,t)=>n({node:e,index:t,isInline:!0,renderNode:n}));return d===e.unknownMark&&t(g(`mark type "${l}"`,"marks"),{nodeType:"mark",type:l}),(0,i.jsx)(d,{text:function e(t){let n="";return t.children.forEach(t=>{h(t)?n+=t.text:c(t)&&(n+=e(t))}),n}(r),value:o,markType:l,markKey:u,renderNode:n,children:m},a)}(w,0,P):w._type in e.types?(s=w,u=v,d=P,m=N,(k=e.types[s._type])?(0,i.jsx)(k,{value:s,isInline:m,index:u,renderNode:n},d):null):a(w)?function(r,s,a,o){let{_key:l,...c}=C({node:r,index:s,isInline:o,renderNode:n}),h=c.node.style||"normal",u=("function"==typeof e.block?e.block:e.block[h])||e.unknownBlockStyle;return u===e.unknownBlockStyle&&t(g(`block style "${h}"`,"block"),{nodeType:"blockStyle",type:h}),(0,i.jsx)(u,{...c,value:c.node,renderNode:n},a)}(w,v,P,N):h(w)?function(t,n){if("\n"===t.text){let t=e.hardBreak;return t?(0,i.jsx)(t,{},n):"\n"}return t.text}(w,P):(p=w,f=v,y=P,_=N,t(b(p._type),{nodeType:"block",type:p._type}),S=e.unknownType,(0,i.jsx)(S,{value:p,isInline:_,index:f,renderNode:n},y))};function C(e){let{node:t,index:n,isInline:r,renderNode:i}=e,a=(function(e){let{children:t}=e,n=e.markDefs??[];if(!t||!t.length)return[];let r=t.map(d),i={_type:"@span",children:[],markType:"<unknown>"},a=[i];for(let e=0;e<t.length;e++){let i=t[e];if(!i)continue;let o=r[e]||[],l=1;if(a.length>1)for(;l<a.length;l++){let e=a[l]?.markKey||"",t=o.indexOf(e);if(-1===t)break;o.splice(t,1)}let c=(a=a.slice(0,l))[a.length-1];
1if(c){for(let e of o){let t=n?.find(t=>t._key===e),r={_type:"@span",_key:i._key,children:[],markDef:t,markType:t?t._type:e,markKey:e};c.children.push(r),a.push(r),c=r}if(s(i)){let e=i.text.split("\n");for(let t=e.length;t-- >1;)e.splice(t,0,"\n");c.children=c.children.concat(e.map(e=>({_type:"@text",text:e})))}else c.children=c.children.concat(i)}}return i.children})(t).map((e,t)=>i({node:e,isInline:!0,index:t,renderNode:i}));return{_key:t._key||`block-${n}`,children:a,index:n,isInline:r,node:t}}function N(){}},60636:(e,t,n)=>{n.d(t,{y:()=>i});let r=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,s);return s},i=e=>e?r(e):r},68390:(e,t,n)=>{n.d(t,{GJ:()=>l,M1:()=>h,ZA:()=>f});var r=n(44592),i=n(32625),s=n(12115);function a(e,t,n){try{return e(t)}catch(e){return(0,i.R8)("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,e,n),null}}function o(e){function t(t){if(void 0===t)return null;let n="";if(Array.isArray(t)){if(void 0===t[0])return null;n=t[0]}return"string"==typeof t&&(n=t),a(e.parse,n)}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:n=>t(n)??e}},withOptions(e){return{...this,...e}}}}o({parse:e=>e,serialize:String});let l=o({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});function c(e,t){return e.valueOf()===t.valueOf()}function h(e){return o({parse:t=>e.includes(t)?t:null,serialize:String})}o({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),o({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return(1&t.length?"0":"")+t}}),o({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),o({parse:e=>"true"===e,serialize:String}),o({parse:e=>{let t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:c}),o({parse:e=>{let t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:c}),o({parse:e=>{let t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:c});let u=(0,r.zj)(),d={};function m(e,t,n,i,s,o){let l=!1,c=Object.entries(e).reduce((e,[c,h])=>{var u;let d=t?.[c]??c,m=i[d],p="multi"===h.type?[]:null,f=void 0===m?("multi"===h.type?n?.getAll(d):n?.get(d))??p:m;return s&&o&&((u=s[d]??p)===f||null!==u&&null!==f&&"string"!=typeof u&&"string"!=typeof f&&u.length===f.length&&u.every((e,t)=>e===f[t]))?e[c]=o[c]??null:(l=!0,e[c]=((0,r.Dn)(f)?null:a(h.parse,f,d))??null,s&&(s[d]=f)),e},{});if(!l){let t=Object.keys(e),n=Object.keys(o??{});l=t.length!==n.length||t.some(e=>!n.includes(e))}return{state:c,hasChanged:l}}function p(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function f(e,t={}){let{parse:n,type:a,serialize:o,eq:l,defaultValue:c,...h}=t,[{[e]:g},b]=function(e,t={}){let n=(0,s.useId)(),a=(0,i.uZ)(),o=(0,i.TU)(),{history:l="replace",scroll:c=a?.scroll??!1,shallow:h=a?.shallow??!0,throttleMs:f=r.Vv.timeMs,limitUrlUpdates:g=a?.limitUrlUpdates,clearOnDefault:b=a?.clearOnDefault??!0,startTransition:y,urlKeys:_=d}=t,k=Object.keys(e).join(","),S=(0,s.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,_[e]??e])),[k,JSON.stringify(_)]),w=(0,i.V7)(Object.values(S)),v=w.searchParams,C=(0,s.useRef)({}),N=(0,s.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>[t,e[t].defaultValue??null])),[Object.values(e).map(({defaultValue:e})=>e).join(",")]),P=r.ex.useQueuedQueries(Object.values(S)),[A,x]=(0,s.use
1State)(()=>m(e,_,v??new URLSearchParams,P).state),T=(0,s.useRef)(A);if((0,i.Yz)("[nuq+ %s `%s`] render - state: %O, iSP: %s",n,k,A,v),Object.keys(C.current).join("&")!==Object.values(S).join("&")){let{state:t,hasChanged:r}=m(e,_,v,P,C.current,T.current);r&&((0,i.Yz)("[nuq+ %s `%s`] State changed: %O",n,k,{state:t,initialSearchParams:v,queuedQueries:P,queryRef:C.current,stateRef:T.current}),T.current=t,x(t)),C.current=Object.fromEntries(Object.entries(S).map(([t,n])=>{let r=e[t];return[n,r?.type==="multi"?v?.getAll(n):v?.get(n)??null]}))}(0,s.useEffect)(()=>{let{state:t,hasChanged:r}=m(e,_,v,P,C.current,T.current);r&&((0,i.Yz)("[nuq+ %s `%s`] State changed: %O",n,k,{state:t,initialSearchParams:v,queuedQueries:P,queryRef:C.current,stateRef:T.current}),T.current=t,x(t))},[Object.values(S).map(e=>`${e}=${v?.getAll(e)}`).join("&"),JSON.stringify(P)]),(0,s.useEffect)(()=>{let t=Object.keys(e).reduce((t,r)=>(t[r]=({state:t,query:s})=>{x(a=>{let{defaultValue:o}=e[r],l=S[r],c=t??o??null;return Object.is(a[r]??o??null,c)?((0,i.Yz)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",n,k,l,t,o,T.current),a):(T.current={...T.current,[r]:c},C.current[l]=s,(0,i.Yz)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",n,k,l,t,o,T.current),T.current)})},t),{});for(let r of Object.keys(e)){let e=S[r];(0,i.Yz)("[nuq+ %s `%s`] Subscribing to sync for `%s`",n,e,k),u.on(e,t[r])}return()=>{for(let r of Object.keys(e)){let e=S[r];(0,i.Yz)("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",n,e,k),u.off(e,t[r])}}},[k,S]);let L=(0,s.useCallback)((t,s={})=>{let a,d=Object.fromEntries(Object.keys(e).map(e=>[e,null])),m="function"==typeof t?t(p(T.current,N))??d:t??d;(0,i.Yz)("[nuq+ %s `%s`] setState: %O",n,k,m);let _=0,v=!1,C=[];for(let[t,n]of Object.entries(m)){let o=e[t],d=S[t];if(!o)continue;(s.clearOnDefault??o.clearOnDefault??b)&&null!==n&&void 0!==o.defaultValue&&(o.eq??((e,t)=>e===t))(n,o.defaultValue)&&(n=null);let m=null===n?null:(o.serialize??String)(n);u.emit(d,{state:n,query:m});let p={key:d,query:m,options:{history:s.history??o.history??l,shallow:s.shallow??o.shallow??h,scroll:s.scroll??o.scroll??c,startTransition:s.startTransition??o.startTransition??y}};if(s?.limitUrlUpdates?.method==="debounce"||g?.method==="debounce"||o.limitUrlUpdates?.method==="debounce"){!0===p.options.shallow&&console.warn((0,i.z3)(422));let e=s?.limitUrlUpdates?.timeMs??g?.timeMs??o.limitUrlUpdates?.timeMs??r.Vv.timeMs,t=r.ex.push(p,e,w);_<e&&(a=t,_=e)}else{let e=s?.limitUrlUpdates?.timeMs??o?.limitUrlUpdates?.timeMs??g?.timeMs??s.throttleMs??o.throttleMs??f;C.push(r.ex.abort(d)),r.V.push(p,e),v=!0}}let P=C.reduce((e,t)=>t(e),v?r.V.flush(w,o):r.V.getPendingPromise(w));return a??P},[k,l,h,c,f,g?.method,g?.timeMs,y,S,w.updateUrl,w.getSearchParamsSnapshot,w.rateLimitFactor,o,N]);return[(0,s.useMemo)(()=>p(A,N),[A,N]),L]}({[e]:{parse:n??(e=>e),type:a,serialize:o,eq:l,defaultValue:c}},h);return[g,(0,s.useCallback)((t,n={})=>b(n=>({[e]:"function"==typeof t?t(n[e]):t}),n),[e,b])]}},80052:(e,t,n)=>{n.d(t,{v:()=>a});var r=n(12115),i=n(60636);let s=e=>{let t=(0,i.y)(e),n=e=>(function(e,t=e=>e){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},a=e=>e?s(e):s}}]);

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.